/* ==================================================
   CONFIGURAÇÕES GERAIS
================================================== */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --vermelho-senai: #e30613;
  --vermelho-escuro: #b5000b;

  --azul-tech: #1e4f85;

  --preto: #111827;
  --cinza: #f3f4f6;
  --branco: #ffffff;

  --sombra: 0 12px 35px rgba(0, 0, 0, 0.1);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Segoe UI", Arial, sans-serif;

  color: #333;

  background: linear-gradient(135deg, #fafafa, #eeeeee);

  overflow-x: hidden;
}

/* ==================================================
   HEADER
================================================== */

.header {
  height: 90px;

  display: flex;

  align-items: center;

  padding: 0 45px;

  background: rgba(255, 255, 255, 0.95);

  border-bottom: 5px solid var(--vermelho-senai);

  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);

  position: relative;

  z-index: 10;
}

.logo img {
  width: 155px;

  transition: 0.35s;
}

.logo img:hover {
  transform: scale(1.04);
}

/* ==================================================
   HERO
================================================== */

.hero {
    position: relative;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;

    min-height: 150px;

    /* topo | direita | baixo | esquerda */
    padding: 15px 15px 0px 15px;

    background: linear-gradient(135deg, #111827, #1f2937);
}

/* círculo superior */

.hero::before {
  content: "";
  position: absolute;
  width: 430px;
  height: 430px;
  border-radius: 50%;
  background: var(--vermelho-senai);
  top: -220px;
  right: -170px;
  opacity: 0.18;
}

/* círculo inferior */

.hero::after {
  content: "";
  position: absolute;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: var(--azul-tech);
  bottom: -170px;
  left: -120px;
  opacity: 0.22;
}

.hero-content {
  position: relative;

  z-index: 2;

  max-width: 1100px;

  color: #fff;
}

/* ========================= */

.hero h1 {
  font-size: clamp(34px, 4vw, 48px);
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 800;
  margin-bottom: 6px;
}

.hero p {
  font-size: clamp(18px, 2vw, 20px);
  color: #dddddd;
  margin: 0;
  line-height: 1.4;
  margin-bottom: 35px;
}

/* ==================================================
   INDICADORES
================================================== */

.status {
  display: flex;

  justify-content: center;

  gap: 22px;

  flex-wrap: wrap;
}

.status div {
  min-width: 185px;

  padding: 22px;

  border-radius: 18px;

  background: rgba(255, 255, 255, 0.1);

  border: 1px solid rgba(255, 255, 255, 0.18);

  backdrop-filter: blur(10px);

  transition: 0.3s;
}

.status div:hover {
  transform: translateY(-8px);

  background: rgba(227, 6, 19, 0.88);
}

.status strong {
  display: block;

  font-size: 40px;

  color: #fff;
}

.status span {
  display: block;

  margin-top: 8px;

  color: #f2f2f2;

  font-size: 15px;
}

/* ==================================================
   INTRODUÇÃO
================================================== */

.intro {
  max-width: 1100px;

  margin: 60px auto;

  padding: 0 30px;

  text-align: center;
}

.intro h2 {
  font-size: clamp(30px, 4vw, 40px);

  color: var(--vermelho-senai);

  margin-bottom: 20px;

  font-weight: 700;
}

.intro p {
  max-width: 900px;

  margin: auto;

  font-size: 19px;

  line-height: 1.8;

  color: #555;
}

/* ==================================================
   SEMESTRES
================================================== */

.semestre {
  max-width: 1200px;

  margin: 50px auto;

  padding: 0 30px;

  animation: aparecer 0.8s ease;
}

@keyframes aparecer {
  from {
    opacity: 0;

    transform: translateY(30px);
  }

  to {
    opacity: 1;

    transform: translateY(0);
  }
}

/* ==================================================
   TÍTULO
================================================== */

.titulo-semestre {
  display: flex;

  align-items: center;

  gap: 20px;

  margin-bottom: 35px;
}

.titulo-semestre span {
  width: 80px;

  height: 80px;

  flex-shrink: 0;

  border-radius: 50%;

  background: var(--vermelho-senai);

  color: #fff;

  display: flex;

  align-items: center;

  justify-content: center;

  font-size: 34px;

  font-weight: 800;

  box-shadow: 0 10px 25px rgba(227, 6, 19, 0.25);
}

.titulo-semestre h2 {
  font-size: 32px;

  color: var(--preto);

  margin-bottom: 5px;
}

.titulo-semestre p {
  font-size: 17px;

  color: #666;
}

/* ==================================================
   LINHA ENTRE SEMESTRES
================================================== */

.semestre + .semestre {
  position: relative;
}

.semestre + .semestre::before {
  content: "";

  position: absolute;

  left: 50%;

  top: -50px;

  width: 3px;

  height: 40px;

  background: var(--vermelho-senai);

  opacity: 0.25;
}

/* ==================================================
   GRID
================================================== */

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 28px;
}

/* ==================================================
   CARD
================================================== */

.disciplina {
  position: relative;
  overflow: hidden;
  background: #fff;
  border-radius: 22px;
  border: 1px solid #e5e5e5;
  padding: 30px;
  min-height: 60px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  transition: 0.35s;
}

.disciplina:hover {
  transform: translateY(-8px);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.14);
}

/* Barra superior */

.disciplina::before {
  content: "";

  position: absolute;

  top: 0;

  left: 0;

  width: 100%;

  height: 6px;

  background: linear-gradient(90deg, var(--vermelho-senai), #ff6670);
}

/* detalhe decorativo */

.disciplina::after {
  content: "";

  position: absolute;

  width: 130px;

  height: 130px;

  right: -50px;

  bottom: -50px;

  border-radius: 50%;

  background: var(--vermelho-senai);

  opacity: 0.05;
}

/* ==================================================
   ÍCONE
================================================== */

.icone {
  width: 68px;

  height: 68px;

  border-radius: 18px;

  background: #fff1f2;

  display: flex;

  align-items: center;

  justify-content: center;

  font-size: 34px;

  margin-bottom: 22px;
}

/* ==================================================
   TEXTO
================================================== */

.disciplina h3 {
  font-size: 22px;

  color: var(--preto);

  margin-bottom: 15px;

  line-height: 1.3;
}

.disciplina p {
  font-size: 15px;

  color: #666;

  line-height: 1.7;

  margin-bottom: 20px;
}

.disciplina strong {
  display: inline-flex;

  align-items: center;

  justify-content: center;

  padding: 10px 18px;

  border-radius: 40px;

  background: var(--vermelho-senai);

  color: #fff;

  font-size: 14px;

  font-weight: 700;
}

/* ==================================================
   ÁREA DE TECNOLOGIAS
================================================== */

.tecnologias {
  max-width: 1200px;

  margin: 70px auto;

  padding: 60px 35px;

  border-radius: 30px;

  background: linear-gradient(135deg, #111827, #1f2937);

  color: #fff;

  text-align: center;

  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.2);
}

.tecnologias h2 {
  font-size: clamp(30px, 4vw, 40px);

  margin-bottom: 40px;
}

.lista-tech {
  display: grid;

  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));

  gap: 22px;
}

.lista-tech div {
  padding: 28px 20px;

  border-radius: 18px;

  background: rgba(255, 255, 255, 0.08);

  border: 1px solid rgba(255, 255, 255, 0.15);

  transition: 0.3s;
}

.lista-tech div:hover {
  background: var(--vermelho-senai);

  transform: translateY(-6px);
}

.lista-tech span {
  display: block;

  font-size: 42px;

  margin-bottom: 12px;
}

/* ==================================================
   BLOCO FINAL
================================================== */

.final {
  max-width: 1000px;

  margin: 70px auto;

  padding: 50px 40px;

  background: #fff;

  border-radius: 25px;

  border-left: 8px solid var(--vermelho-senai);

  text-align: center;

  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
}

.final h2 {
  color: var(--vermelho-senai);

  font-size: clamp(28px, 4vw, 38px);

  margin-bottom: 20px;
}

.final p {
  font-size: 19px;

  line-height: 1.8;

  color: #555;
}

/* ==================================================
   FOOTER
================================================== */

footer {
  margin-top: 70px;

  padding: 35px 20px;

  background: #111827;

  color: #fff;

  text-align: center;

  border-top: 5px solid var(--vermelho-senai);
}

footer img {
  width: 150px;

  margin-bottom: 15px;

  filter: brightness(0) invert(1);
}

footer p {
  margin: 6px 0;

  font-size: 15px;
}

footer .copyright {
  margin-top: 20px;

  color: #999;

  font-size: 14px;
}

/* ==================================================
   RESPONSIVIDADE
================================================== */

@media (max-width: 992px) {
  .header {
    padding: 0 25px;
  }

  .hero {
    min-height: 300px;

    padding: 50px 20px;
  }

  .titulo-semestre {
    gap: 15px;
  }

  .titulo-semestre span {
    width: 70px;

    height: 70px;

    font-size: 28px;
  }

  .titulo-semestre h2 {
    font-size: 28px;
  }
}

@media (max-width: 768px) {
  .header {
    height: 80px;
  }

  .logo img {
    width: 130px;
  }

  .hero {
    min-height: 260px;

    padding: 45px 20px;
  }

  .hero h1 {
    letter-spacing: 0;
  }

  .status {
    gap: 15px;
  }

  .status div {
    min-width: 160px;

    padding: 18px;
  }

  .intro {
    margin: 40px auto;

    padding: 0 20px;
  }

  .semestre {
    margin: 40px auto;

    padding: 0 20px;
  }

  .cards {
    gap: 20px;
  }

  .tecnologias {
    margin: 50px 15px;

    padding: 40px 20px;
  }

  .final {
    margin: 50px 15px;

    padding: 40px 25px;
  }
}

@media (max-width: 576px) {
  .hero {
    min-height: 220px;

    padding: 35px 15px;
  }

  .hero h1 {
    font-size: 32px;
  }

  .hero p {
    font-size: 17px;
  }

  .status {
    flex-direction: column;

    align-items: center;
  }

  .status div {
    width: 100%;

    max-width: 250px;
  }

  .titulo-semestre {
    align-items: flex-start;
  }

  .titulo-semestre span {
    width: 55px;

    height: 55px;

    font-size: 22px;
  }

  .titulo-semestre h2 {
    font-size: 22px;
  }

  .disciplina {
    min-height: auto;
  }
}

/* ==================================================
   SCROLLBAR
================================================== */

::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: #ececec;
}

::-webkit-scrollbar-thumb {
  background: var(--vermelho-senai);

  border-radius: 20px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--vermelho-escuro);
}
