/* ==========================================================
   LEARN TECH - PÁGINA INICIAL (index.html)
   Obs.: também é carregado em turmas, calendário e autenticação.
   Não remova regras daqui sem conferir o index.html.
   ========================================================== */


* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  background: linear-gradient(#1b1033, #0a0d18);
  color: #ffffff;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}


/* ==========================================================
   HEADER
   ========================================================== */

header {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 64px;
  flex-shrink: 0;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: #ffffff;
}

.brand-logo img {
  width: 50px;
  height: 45px;
  object-fit: contain;
  transition: transform 0.2s ease;
}

.brand-logo img:hover {
  transform: scale(1.05);
}

.brand-logo span {
  font-size: 19px;
  font-weight: 800;
  letter-spacing: 0.5px;
  transition: color 0.2s ease, transform 0.2s ease;
}

.brand-logo span:hover {
  color: #3b82f6;
  transform: scale(1.05);
}

nav {
  display: flex;
  align-items: center;
  gap: 52px;
}

nav a {
  color: #ffffff;
  text-decoration: none;
  font-weight: 800;
  font-size: 20px;
  letter-spacing: 0.5px;
  transition: color 0.2s ease, transform 0.2s ease;
}

nav a:hover,
nav a.active {
  color: #3b82f6;
  transform: scale(1.05);
}

.auth-buttons {
  display: flex;
  align-items: center;
}

.auth-buttons a {
  text-decoration: none;
}

.btn-login {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.4);
  color: #ffffff;
  padding: 8px 24px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.btn-login:hover {
  background: #3b82f6;
  transform: scale(1.05);
}


/* ==========================================================
   MAIN
   ========================================================== */

main {
  flex: 1;
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding: 30px 64px 48px;
}


/* ==========================================================
   HERO
   ========================================================== */

.hero-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: 48px;
  align-items: center;
  margin-bottom: 56px;
}

.hero-content {
  padding-top: 10px;
}

.hero-subtitle {
  color: #00e575;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.5px;
  margin-bottom: 16px;
}

.hero-title {
  font-size: 46px;
  font-weight: 900;
  line-height: 1.15;
  margin-bottom: 36px;
  letter-spacing: -0.5px;
}

.blue-accent {
  background-image: linear-gradient(90deg, #ffffff, #2b74e2);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.hero-buttons {
  display: flex;
  gap: 20px;
}

.hero-buttons a {
  text-decoration: none;
}

.btn-comece,
.btn-saiba-mais {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.4);
  color: #ffffff;
  padding: 13px 32px;
  border-radius: 6px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.btn-comece:hover,
.btn-saiba-mais:hover {
  background-color: #3b82f6;
  transform: scale(1.05);
}


/* ==========================================================
   CARROSSEL
   ========================================================== */

.hero-carousel {
  position: relative;
  width: 100%;
  height: 340px;
  border-radius: 6px;
  overflow: hidden;
  background: #172036;
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.25);
}

.hero-carousel img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  opacity: 1;
  transition: opacity 0.35s ease, transform 0.6s ease;
}

.hero-carousel img.changing {
  opacity: 0;
}

.carousel-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.02), rgba(0, 0, 0, 0.25));
}

/* BOTÕES DO CARROSSEL */
.carousel-btn {
  position: absolute;
  top: 50%;
  z-index: 3;
  transform: translateY(-50%);
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.55);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  backdrop-filter: blur(5px);
  transition: background 0.2s ease, transform 0.2s ease;
}

.carousel-btn:hover {
  background: rgba(59, 130, 246, 0.9);
  transform: translateY(-50%) scale(1.08);
}

.carousel-btn.left {
  left: 18px;
}

.carousel-btn.right {
  right: 18px;
}

.carousel-btn svg {
  width: 23px;
  height: 23px;
  stroke-width: 2.5;
}

/* INDICADORES */
.carousel-indicators {
  position: absolute;
  left: 50%;
  bottom: 18px;
  z-index: 4;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 9px;
}

.carousel-indicator {
  width: 9px;
  height: 9px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.55);
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.carousel-indicator:hover {
  background: #ffffff;
  transform: scale(1.15);
}

.carousel-indicator.active {
  background: #3b82f6;
  transform: scale(1.3);
}


/* ==========================================================
   INFORMAÇÕES
   ========================================================== */

.info-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: 48px;
}

.info-box {
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 8px;
  padding: 18px 24px 22px;
}

.info-box h3 {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 10px;
  letter-spacing: 0.2px;
}

.info-box p {
  color: #cbd5e1;
  font-size: 11.5px;
  line-height: 1.5;
  font-weight: 400;
}


/* ==========================================================
   RESPONSIVIDADE
   ========================================================== */

@media (max-width: 900px) {
  header {
    padding: 20px 30px;
  }

  nav {
    gap: 25px;
  }

  nav a {
    font-size: 16px;
  }

  main {
    padding: 30px;
  }

  .hero-section {
    grid-template-columns: 1fr;
    gap: 35px;
  }

  .hero-content {
    padding-top: 0;
  }

  .hero-carousel {
    height: 350px;
  }

  .info-grid {
    grid-template-columns: 1fr;
    gap: 25px;
  }
}

@media (max-width: 768px) {
  header {
    padding: 16px 20px;
    flex-direction: column;
    gap: 20px;
  }

  .brand-logo span {
    font-size: 17px;
  }

  nav {
    gap: 20px;
    flex-wrap: wrap;
    justify-content: center;
  }

  nav a {
    font-size: 15px;
  }

  .auth-buttons {
    width: 100%;
    justify-content: center;
  }

  main {
    padding: 20px;
  }

  .hero-title {
    font-size: 32px;
  }

  .hero-buttons {
    flex-direction: column;
    width: 100%;
  }

  .hero-buttons a,
  .btn-comece,
  .btn-saiba-mais {
    width: 100%;
  }

  .hero-carousel {
    height: 260px;
  }

  .carousel-btn {
    width: 40px;
    height: 40px;
  }

  .carousel-btn.left {
    left: 10px;
  }

  .carousel-btn.right {
    right: 10px;
  }

  .info-box {
    padding: 16px 18px;
  }
}

@media (max-width: 480px) {
  header {
    padding: 16px;
    gap: 16px;
  }

  nav {
    gap: 12px 18px;
  }

  nav a {
    font-size: 13px;
  }

  main {
    padding: 16px;
  }

  .hero-title {
    font-size: clamp(27px, 8vw, 32px);
    margin-bottom: 24px;
  }

  .hero-subtitle {
    font-size: 13px;
  }

  .hero-carousel {
    height: 220px;
  }

  .info-box {
    padding: 14px;
  }
}
