/* ==========================================================================
   LEARNTECH COFFEE - MASTER STYLE SHEET
   Ecosystem: Educação & Gastronomia
   References: Cheirin Bão, Grão Moente, Le Petit, Planet Coffee
========================================================================== 
*/

:root {
  /* Design Tokens Originais */
  --bg-black: #050505;
  --primary-purple: #7159c1;
  --accent-orange: #ff9000;
  --glass-white: rgba(255, 255, 255, 0.05);
  --border-glass: rgba(255, 255, 255, 0.1);
  --text-pure: #ffffff;
  --text-dim: #a8a8b3;
  --smooth: 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);

  /* Variáveis Faltantes Detectadas na Análise */
  --primary: #8257e5;
  --secondary: #996dff;
  --button: #8257e5;
  --text-color: #ffffff;
  --text-color-menu-mobile: #a8a8b3;
  --text-color-154: rgba(255, 255, 255, 0.6);
  --border: rgba(153, 109, 255, 0.2);
  --background: #050505; /* Corrigindo o erro de digitação 'backgrond' */
}

/* 1. RESET & BASE
   ========================================================================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 62.5%; /* 1rem = 10px */
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg-black);
  color: var(--text-pure);
  font-family: "Inter", sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
}

/* Efeito Cósmico de Fundo */
body::before {
  content: "";
  position: fixed;
  top: -10rem;
  right: -10rem;
  width: 60rem;
  height: 60rem;
  background: radial-gradient(
    circle,
    rgba(113, 89, 193, 0.15) 0%,
    transparent 70%
  );
  z-index: -1;
  filter: blur(80px);
}

.container {
  max-width: 120rem;
  margin: 0 auto;
  padding: 0 2rem;
}

/* --- SEÇÃO header --- */
header {
  width: 100%;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1000;
  transition: all 0.4s ease;
  background: rgba(0, 0, 0, 0.1); /* Quase invisível no topo */
}

/* Estado do Header ao dar Scroll (Adicionado via JS) */
header.scroll-active {
  background: rgba(10, 10, 10, 0.8);
  backdrop-filter: blur(15px);
  border-bottom: 1px solid rgba(153, 109, 255, 0.2);
  padding-block: 10px;
}

.menu-section .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 20px;
}

.logo {
  height: 40px;
  transition: transform 0.3s ease;
}

.logo:hover {
  transform: scale(1.05) rotate(-2deg);
}

/* LINKS DE NAVEGAÇÃO */
.nav-links {
  display: flex;
  gap: 32px;
  list-style: none;
}

.nav-links a {
  color: var(--text-color);
  font-size: 1.6rem;
  font-weight: 500;
  text-decoration: none;
  position: relative;
  transition: color 0.3s;
}

/* Efeito de Linha Neon no Hover */
.nav-links a::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--secondary);
  box-shadow: 0 0 10px var(--secondary);
  transition: width 0.3s ease;
}

.nav-links a:hover {
  color: var(--secondary);
}

.nav-links a:hover::after {
  width: 100%;
}

/* MENU TOGGLE (HAMBURGUER) */
.menu-toggle {
  display: none; /* Escondido no Desktop */
  cursor: pointer;
}

.menu-toggle div {
  width: 25px;
  height: 3px;
  background: var(--text-color);
  margin: 5px;
  transition: 0.3s;
}

/* Responsividade Mobile */
@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }

  .nav-links {
    position: absolute;
    top: 100%;
    right: 0;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(20px);
    width: 100%;
    height: 0; /* Começa fechado */
    overflow: hidden;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: height 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  }

  /* No Media Query de 768px */
  .nav-links.show {
    display: flex !important;
    height: 100vh;
    opacity: 1;
    visibility: visible;
  }
}

/* --- SEÇÃO FUSION --- */
.fusion-highlight {
  position: relative;
  width: 100%;
  min-height: 80vh;
  display: flex;
  align-items: center;
  background-image: url("/assets/fusion.jpg");
  background-attachment: fixed; /* Efeito Parallax: a imagem fica fixa e o texto sobe */
  box-shadow: inset 0 0 100px rgba(113, 89, 193, 0.2);
  background-size: cover;
  background-position: center;
  overflow: hidden;
  padding-block: 40px;
}

/* Camada de escurecimento para dar leitura ao texto */
.fusion-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    rgba(0, 0, 0, 0.85) 20%,
    rgba(0, 0, 0, 0.4) 60%,
    transparent 100%
  );
  z-index: 1;
}

.fusion-highlight .container {
  position: relative;
  z-index: 2;
  padding-inline: 8vw;
}

.fusion-content {
  max-width: 600px;
}

.tag-tech {
  color: var(--secondary);
  font-weight: 700;
  letter-spacing: 0.2rem;
  font-size: 1.2rem;
  border-left: 3px solid var(--secondary);
  padding-left: 10px;
}

.fusion-title {
  font-size: 6.4rem;
  color: var(--text-color);
  margin-block: 20px;
  line-height: 1.1;

  text-shadow: 0 0 20px rgba(153, 109, 255, 0.6);
  animation: float 3s ease-in-out infinite;
}

/* Animação para o título flutuar suavemente */
@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

.fusion-title span {
  color: transparent;
  -webkit-text-stroke: 1px var(--button);
}

/* EFEITO GLASSMORPHISM */
.glass-info {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 15px;
  padding: 30px;
  margin-top: 30px;
  border: 1px solid rgba(153, 109, 255, 0.2);
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.8);
}

.glass-info p {
  font-size: 1.8rem;
  color: var(--text-color-menu-mobile);
  margin-bottom: 25px;
}

.fusion-stats {
  display: flex;
  gap: 40px;
  margin-bottom: 30px;
}

.stat-item {
  display: flex;
  flex-direction: column;
}

.stat-value {
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--primary);
}

.stat-label {
  font-size: 1.2rem;
  text-transform: uppercase;
  color: var(--text-color-154);
}

.btn-fusion {
  display: inline-block;
  padding: 15px 35px;
  background: var(--button);
  color: white;
  font-weight: 700;
  border-radius: 5px;
  transition: 0.3s ease;
}

.btn-fusion:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(130, 87, 229, 0.3);
  filter: brightness(1.2);
}

/* 2. HERO SECTION
   ========================================================================== */
#home.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  background:
    radial-gradient(
      circle at 70% 50%,
      rgba(130, 87, 229, 0.15),
      transparent 40%
    ),
    #000;
}

#home.hero h1 {
  font-size: 7.2rem;
  max-width: 700px;
}

#home.hero h1 span {
  color: var(--secondary);
  text-shadow: 0 0 15px var(--button);
  display: inline-block;
}

/* O "Blur Effect" que você colocou no HTML */
.blur-effect {
  position: absolute;
  bottom: -10%;
  right: -5%;
  width: 40vw;
  height: 40vw;
  background: var(--primary);
  filter: blur(180px);
  opacity: 0.2;
  z-index: 0;
  pointer-events: none;
}

/* 3. VITRINE (GRID DE CARDS)
   ========================================================================== */
.cards-container {
  padding: 12rem 0; /* Aumentado de 8rem para 12rem para garantir respiro */
  position: relative;
  z-index: 5;
  background-color: var(
    --bg-black
  ); /* Garante que a seção tenha fundo próprio */
}

#menu {
  scroll-margin-top: 100px; /* Isso impede que o Header fixo cubra o título ao clicar no link */
}

.section-header {
  text-align: center;
  margin-bottom: 6rem;
}
.section-header h2 {
  font-family: "Playfair Display", serif;
  font-size: 4rem;
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(30rem, 1fr));
  gap: 3rem;
}

/* Glassmorphism Card */
.card-coffee {
  background: var(--glass-white);
  border: 1px solid var(--border-glass);
  border-radius: 2.4rem;
  padding: 2.5rem;
  backdrop-filter: blur(16px);
  transition:
    transform var(--smooth),
    border-color 0.3s;
  display: flex;
  flex-direction: column;
}

.card-coffee:hover {
  transform: translateY(-1rem);
  border-color: var(--primary-purple);
  box-shadow: 0 2rem 4rem rgba(113, 89, 193, 0.2);
}

.card-image-wrapper {
  position: relative;
  width: 100%;
  height: 22rem;
  border-radius: 1.6rem;
  overflow: hidden;
  margin-bottom: 2rem;
}

.card-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.card-coffee:hover img {
  transform: scale(1.1);
}

/* Detalhes Internos */
.sensory-notes {
  color: var(--accent-orange);
  font-size: 1.1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15rem;
  margin-bottom: 1rem;
}

.card-content h3 {
  font-family: "Playfair Display", serif;
  font-size: 2.4rem;
  margin-bottom: 1.5rem;
}

.card-footer {
  margin-top: auto;
  padding-top: 2rem;
  border-top: 1px solid var(--border-glass);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.price {
  font-size: 2rem;
  font-weight: 700;
}

/* --- CARROSSEL ORBITAL --- */
.orbital-carousel {
  padding-block: 100px;
  background: var(--backgrond); /* Usando sua variável */
  overflow: hidden;
  position: relative;
}

.carousel-header {
  text-align: center;
  margin-bottom: 60px;
}

.carousel-header h2 {
  font-size: 5.6rem; /* Aumentado levemente */
  color: var(--text-color);
  letter-spacing: -2px;
}

.carousel-header h2 span {
  color: transparent;
  -webkit-text-stroke: 1px var(--secondary);
  filter: drop-shadow(0 0 10px rgba(153, 109, 255, 0.3));
}

/* Container do Carrossel */
.carousel-container {
  width: 100%;
  overflow: visible; /* Importante para não cortar o brilho dos cards vizinhos */
  display: flex;
  justify-content: center;
}

.carousel-track {
  display: flex;
  gap: 30px;
  align-items: center;
  position: relative; /* Essencial para o cálculo do JS */
  padding-left: 0; /* Reseta qualquer padding que possa quebrar o cálculo */
}

.carousel-card.clone {
  /* Opcional: você pode deixar os clones um pouco mais transparentes 
       ou tratá-los igual aos inativos */
  pointer-events: none; /* Evita interações em clones */
}

/* Estilo do Card */
.carousel-card {
  position: relative;
  min-width: 280px; /* Usando min-width para estabilidade */
  height: 380px;
  border-radius: 24px;
  overflow: hidden;
  transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  filter: grayscale(100%) brightness(0.4); /* Mais escuro quando inativo */
  transform: scale(0.85);
  border: 1px solid rgba(153, 109, 255, 0.05);
}

/* Card em Destaque (Centro) */
.carousel-card.active {
  min-width: 420px;
  height: 540px;
  filter: grayscale(0%) brightness(1);
  transform: scale(1.05); /* Leve "pop" para frente */
  border: 1px solid rgba(153, 109, 255, 0.4);
  box-shadow:
    0 20px 80px rgba(130, 87, 229, 0.25),
    0 0 20px rgba(153, 109, 255, 0.1);
  z-index: 10;
}

.carousel-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

/* Zoom suave na imagem do card ativo */
.carousel-card.active img {
  transform: scale(1.05);
}

/* Overlay de Glassmorphism mais moderno */
.card-overlay {
  position: absolute;
  bottom: 0;
  width: 100%;
  padding: 30px 20px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, transparent 100%);
  backdrop-filter: blur(4px);
  text-align: center;
  color: var(--text-color);
  transform: translateY(10px);
  transition: all 0.5s ease;
  opacity: 0;
}

.carousel-card.active .card-overlay {
  transform: translateY(0);
  opacity: 1;
}

.card-overlay span {
  font-size: 1.4rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 4px;
  background: linear-gradient(90deg, #fff, var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Controles */
.carousel-controls {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 30px;
  margin-top: 40px;
}

.control-btn {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  color: var(--text-color);
  width: 60px;
  height: 60px;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1.8rem;
}

.control-btn:hover {
  background: var(--button);
  border-color: var(--secondary);
  box-shadow: 0 0 20px rgba(130, 87, 229, 0.4);
  transform: scale(1.1);
}

.indicators {
  display: flex;
  gap: 12px;
  background: rgba(255, 255, 255, 0.05);
  padding: 10px 20px;
  border-radius: 20px;
  border: 1px solid var(--border);
}

.dot {
  width: 8px;
  height: 8px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s ease;
}

.dot.active {
  width: 24px; /* Dot esticado estilo mobile moderno */
  background: var(--secondary);
  border-radius: 10px;
  box-shadow: 0 0 10px var(--secondary);
}

/* --- NOVA SEÇÃO 5: Rocket Brew Fusion --- */
.rocket-brew-fusion {
  position: relative;
  width: 100%;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: radial-gradient(circle at 30% 50%, rgba(130, 87, 229, 0.1), #000);
}

.rocket-brew-fusion .fusion-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  position: relative;
  z-index: 2;
}

/* Lado A: Tech Portal */
.tech-portal h2 span {
  color: transparent;
  -webkit-text-stroke: 1px var(--secondary);
  text-shadow: 0 0 15px var(--primary);
}

.neon-highlight {
  color: var(--secondary);
  font-weight: 700;
  transition: text-shadow 0.3s ease;
}

.neon-highlight:hover {
  text-shadow: 0 0 10px var(--secondary);
  cursor: pointer;
}

/* Lado B: Organic Brew */
.organic-brew {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.organic-brew img {
  max-width: 100%;
  height: auto;
  filter: drop-shadow(0 15px 30px rgba(0, 0, 0, 0.8));
  animation: float-main 4s ease-in-out infinite alternate;
}

/* Os Blur Effects de Fundo integrados */
.rocket-brew-fusion .blur-desktop-right {
  opacity: 0.1; /* Sutil */
}

.rocket-brew-fusion .blur-desktop-left {
  opacity: 0.2; /* Destaque no texto */
}

@keyframes float-main {
  0% {
    transform: translateY(0);
  }
  100% {
    transform: translateY(-15px);
  }
}

/* 4. RESPONSIVIDADE (MOBILE & TABLET)
   ========================================================================== */
@media (max-width: 768px) {
  html {
    font-size: 55%;
  }

  .cards {
    grid-template-columns: 1fr;
    padding: 0 2rem;
  }

  /* Ajuste do Menu Mobile (Exemplo de ativação) */
  .menu-section.on .nav-links {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: var(--bg-black);
    z-index: 99;
    justify-content: center;
    align-items: center;
  }
}

/* 5. IMPRESSÃO (FICHA TÉCNICA)
   ========================================================================== */
@media print {
  body {
    background: white;
    color: black;
  }
  .hero,
  .button,
  footer {
    display: none;
  }
  .card-coffee {
    border: 1px solid #eee;
    break-inside: avoid;
  }
}

/*  footer
   ========================================================================== */
footer {
  background: linear-gradient(to top, #0a0a0a 0%, #000 100%);
  padding-top: 80px;
  border-top: 1px solid rgba(153, 109, 255, 0.1);
  color: var(--text-color);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1.5fr;
  gap: 60px;
  padding-bottom: 60px;
}

.footer-brand p {
  margin-top: 20px;
  font-size: 1.6rem;
  color: var(--text-color-menu-mobile);
  max-width: 250px;
  line-height: 1.6;
}

.footer-nav h4,
.footer-actions h4 {
  font-size: 1.4rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--secondary);
  margin-bottom: 25px;
}

.footer-nav ul {
  list-style: none;
}

.footer-nav ul li {
  margin-bottom: 12px;
}

.footer-nav ul li a {
  color: var(--text-color-154);
  text-decoration: none;
  transition: 0.3s;
}

.footer-nav ul li a:hover {
  color: var(--secondary);
  padding-left: 5px;
}

/* BOTÃO VOLTAR AO TOPO GADGET */
.back-to-top {
  margin-top: 30px;
  display: flex;
  align-items: center;
  gap: 15px;
  text-decoration: none;
  color: var(--text-color);
  font-weight: 700;
  font-size: 1.2rem;
  transition: 0.3s;
}

.back-to-top img {
  width: 40px;
  height: 40px;
  padding: 10px;
  border: 1px solid var(--secondary);
  border-radius: 50%;
  transform: rotate(-90deg); /* Se sua arrow.svg for para a direita */
  transition: 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.back-to-top:hover img {
  background: var(--secondary);
  transform: rotate(-90deg) translateY(-10px);
  box-shadow: 0 0 20px var(--secondary);
}

.footer-bottom {
  padding-block: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  text-align: center;
  font-size: 1.4rem;
  color: var(--text-color-154);
}

.footer-bottom span {
  font-family: monospace;
  color: var(--secondary);
  opacity: 0.7;
}

/* Responsividade */
@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 40px;
  }
  .footer-brand p {
    margin-inline: auto;
  }
  .back-to-top {
    justify-content: center;
  }
}
