@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

:root {
  /* Cores Principais LagunaTec */
  --primary-blue: #0000FF;
  --primary-teal: #2EC2B8;

  /* Cores Secundárias */
  --light-blue: #55AAFF;
  --dark-blue: #143597;
  --medium-blue: #0066FF;
  --dark-teal: #259F94;
  --deep-teal: #007E84;
  --mint: #37C8AB;
  --accent-orange: #ff4800;

  /* Variáveis Light Mode Premium */
  --bg-main: #ffffff;
  --bg-secondary: #f4f6f8;
  /* Fundo levemente contrastante para seções */
  --bg-glass: rgba(255, 255, 255, 0.75);
  --bg-glass-solid: rgba(255, 255, 255, 0.95);

  /* Textos */
  --text-dark: #0f172a;
  --text-primary: #1e293b;
  --text-muted: #64748b;
  --text-light: #ffffff;

  /* UI Elements & Shadows */
  --border-ultra-light: rgba(0, 0, 0, 0.04);
  --border-light: rgba(0, 0, 0, 0.08);
  --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
  --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.05), 0 4px 6px -2px rgba(0, 0, 0, 0.025);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.05), 0 10px 10px -5px rgba(0, 0, 0, 0.02);
  --shadow-hover: 0 25px 50px -12px rgba(46, 194, 184, 0.25);
  --shadow-blue-glow: 0 0 40px rgba(0, 102, 255, 0.15);

  /* Border Radius */
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-full: 9999px;

  /* Transitions */
  --transition-fast: 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-bounce: 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Reset Base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--bg-main);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Tipografia */
h1,
h2,
h3,
h4,
h5,
h6 {
  color: var(--text-dark);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

p {
  color: var(--text-muted);
}

/* Utilitários Visuais */
.text-gradient {
  background: linear-gradient(135deg, var(--medium-blue), var(--primary-teal));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
  /* Fallback */
}

.text-gradient-alt {
  background: linear-gradient(135deg, var(--dark-blue), var(--primary-blue));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.glass-panel {
  background: var(--bg-glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
}

.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Botões */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  transition: all var(--transition-normal);
  cursor: pointer;
  border: none;
  gap: 8px;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary-blue), var(--primary-teal));
  color: #fff;
  border: none;
  box-shadow: 0 10px 20px rgba(0, 0, 255, 0.2);
  transition: transform ease-in 0.1s, box-shadow ease-in 0.25s;
  position: relative;
  /* Removido o 'overflow: hidden' que estava prendendo as bolhas dentro do botão! */
}

.btn-primary:hover {
  box-shadow: 0 15px 25px rgba(46, 194, 184, 0.3);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border-light);
}

.btn-outline:hover {
  background: var(--bg-secondary);
  border-color: var(--primary-teal);
  color: var(--primary-teal);
  transform: translateY(-2px);
}

.btn-lg {
  padding: 16px 32px;
  font-size: 1.125rem;
}

/* --- Bubbly Click Animation --- */
/* A animação de clique Bubbly (Explosão de Bolhas) anexada aos botões primários */
.btn-primary:focus {
  outline: 0;
}

.btn-primary:active {
  transform: scale(0.95);
}

.btn-primary:before,
.btn-primary:after {
  position: absolute;
  content: '';
  display: block;
  width: 140%;
  height: 100%;
  left: -20%;
  z-index: -1000;
  transition: all ease-in-out 0.5s;
  background-repeat: no-repeat;
}

.btn-primary:before {
  display: none;
  top: -75%;
  background-image:
    radial-gradient(circle, var(--primary-teal) 20%, transparent 20%),
    radial-gradient(circle, transparent 20%, var(--primary-teal) 20%, transparent 30%),
    radial-gradient(circle, var(--primary-teal) 20%, transparent 20%),
    radial-gradient(circle, var(--primary-teal) 20%, transparent 20%),
    radial-gradient(circle, transparent 10%, var(--primary-teal) 15%, transparent 20%),
    radial-gradient(circle, var(--primary-teal) 20%, transparent 20%),
    radial-gradient(circle, var(--primary-teal) 20%, transparent 20%),
    radial-gradient(circle, var(--primary-teal) 20%, transparent 20%),
    radial-gradient(circle, var(--primary-teal) 20%, transparent 20%);
  background-size: 10% 10%, 20% 20%, 15% 15%, 20% 20%, 18% 18%, 10% 10%, 15% 15%, 10% 10%, 18% 18%;
}

.btn-primary:after {
  display: none;
  bottom: -75%;
  background-image:
    radial-gradient(circle, var(--primary-teal) 20%, transparent 20%),
    radial-gradient(circle, var(--primary-teal) 20%, transparent 20%),
    radial-gradient(circle, transparent 10%, var(--primary-teal) 15%, transparent 20%),
    radial-gradient(circle, var(--primary-teal) 20%, transparent 20%),
    radial-gradient(circle, var(--primary-teal) 20%, transparent 20%),
    radial-gradient(circle, var(--primary-teal) 20%, transparent 20%),
    radial-gradient(circle, var(--primary-teal) 20%, transparent 20%);
  background-size: 15% 15%, 20% 20%, 18% 18%, 20% 20%, 15% 15%, 10% 10%, 20% 20%;
}

.btn-primary.animate:before {
  display: block;
  animation: topBubbles ease-in-out 0.75s forwards;
}

.btn-primary.animate:after {
  display: block;
  animation: bottomBubbles ease-in-out 0.75s forwards;
}

@keyframes topBubbles {
  0% {
    background-position: 5% 90%, 10% 90%, 10% 90%, 15% 90%, 25% 90%, 25% 90%, 40% 90%, 55% 90%, 70% 90%;
  }

  50% {
    background-position: 0% 80%, 0% 20%, 10% 40%, 20% 0%, 30% 30%, 22% 50%, 50% 50%, 65% 20%, 90% 30%;
  }

  100% {
    background-position: 0% 70%, 0% 10%, 10% 30%, 20% -10%, 30% 20%, 22% 40%, 50% 40%, 65% 10%, 90% 20%;
    background-size: 0% 0%, 0% 0%, 0% 0%, 0% 0%, 0% 0%, 0% 0%;
  }
}

@keyframes bottomBubbles {
  0% {
    background-position: 10% -10%, 30% 10%, 55% -10%, 70% -10%, 85% -10%, 70% -10%, 70% 0%;
  }

  50% {
    background-position: 0% 80%, 20% 80%, 45% 60%, 60% 100%, 75% 70%, 95% 60%, 105% 0%;
  }

  100% {
    background-position: 0% 90%, 20% 90%, 45% 70%, 60% 110%, 75% 80%, 95% 70%, 110% 10%;
    background-size: 0% 0%, 0% 0%, 0% 0%, 0% 0%, 0% 0%, 0% 0%;
  }
}

/* Navbar Elegante (Estilo Antigravity Invisible & Mega Menu) */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 16px 0;
  transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
  background: var(--bg-main);
  /* Sempre branco */
  border-bottom: none;
  box-shadow: none;
}

/* Quando rola a tela pra baixo, esconde subindo */
.navbar.hidden {
  transform: translateY(-100%);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1280px;
  /* Alinhamento exato com o .container do site */
  margin: 0 auto;
  padding: 0 40px;
}

/* Group links to the left */
.nav-left-group {
  display: flex;
  align-items: center;
  gap: 40px;
}

.logo img {
  height: 25px;
  /* Reduzido em aprox 10% */
  width: auto;
  display: block;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav-item {
  position: static;
  /* Necessário para que o dropdown ocupe 100% da tela */
  display: flex;
  align-items: center;
  height: 48px;
  /* Altura de hitbox para manter o menu aberto */
}

/* Nav Link Estilo Pílula Leve igual ao Antigravity */
.nav-item>a {
  text-decoration: none;
  color: var(--text-primary);
  font-weight: 500;
  font-size: 0.95rem;
  transition: all var(--transition-fast);
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: var(--radius-full);
}

.nav-item:hover>a {
  background: var(--bg-secondary);
  color: var(--text-dark);
}

.nav-item>a>svg {
  transition: transform var(--transition-fast);
  color: var(--primary-teal);
}

.nav-item:hover>a>svg {
  transform: rotate(180deg);
}

/* Mega Menu Dropdown */
.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  background: var(--bg-main);
  border-bottom: 1px solid var(--border-light);
  box-shadow: var(--shadow-md);
  padding: 40px 0 60px 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
  z-index: 1001;
  pointer-events: none;
}

/* Criar uma 'ponte' invisível para o mouse não escapar antes de chegar no menu */
.dropdown-menu::before {
  content: '';
  position: absolute;
  top: -20px;
  /* Cobre o espaço em branco entre a navbar e o dropdown */
  left: 0;
  width: 100%;
  height: 20px;
  background: transparent;
}

.nav-item:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

.mega-menu-container {
  display: flex;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 40px;
  gap: 120px;
}

/* Esquerda do Mega Menu (Texto de Contexto) */
.mega-menu-info {
  flex: 1;
  max-width: 320px;
}

.mega-menu-title {
  font-size: 1.5rem;
  color: var(--text-dark);
  margin-bottom: 16px;
  line-height: 1.2;
}

.mega-menu-desc {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.mega-menu-btn {
  display: inline-block;
  padding: 8px 16px;
  background: var(--bg-secondary);
  color: var(--text-dark);
  text-decoration: none;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 500;
  transition: background var(--transition-fast);
}

.mega-menu-btn:hover {
  background: #e2e8f0;
}

/* Direita do Mega Menu (Lista de Links) */
.mega-menu-links {
  flex: 2;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: x 32px;
  align-content: start;
}

.mega-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  text-decoration: none;
  color: var(--text-primary);
  font-weight: 500;
  font-size: 0.95rem;
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
}

.mega-link-icon {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Animação de rotação 360º para direita dos ícones */
.mega-link-icon>svg {
  transform: rotate(0deg);
  transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
  /* Bounce effect */
  color: var(--primary-teal);
}

.mega-link:hover .mega-link-icon>svg {
  transform: rotate(360deg);
  /* Faz a volta completa 360º fluida e volta a ficar em pé */
}

.mega-link svg.arrow {
  opacity: 0;
  transform: translateX(-5px);
  transition: all var(--transition-fast);
  color: var(--text-muted);
}

.mega-link:hover {
  background: var(--bg-secondary);
}

.mega-link:hover svg.arrow {
  opacity: 1;
  transform: translateX(0);
  color: var(--primary-blue);
}

/* Navbar CTA Button Area */
.nav-cta {
  display: flex;
  align-items: center;
}

.navbar .btn-primary {
  padding: 10px 24px;
  font-size: 0.95rem;
  /* Herda as cores, sombra e animação do `.btn-primary` original */
}

/* Sections */
.section {
  padding: 80px 0;
  /* Espaçamento ajustado para focar no divider */
  position: relative;
}

/* --- Typing Divider (Efeito Terminal Antigravity) --- */
.typing-divider {
  padding: 60px 0;
  text-align: center;
  font-size: 3.25rem;
  /* Aumento de +20% a pedido */
  font-weight: 600;
  color: var(--text-dark);
  /* Cinza Escuro/Preto */
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 140px;
  /* Para não pular a tela ao digitar */
}

@media (max-width: 768px) {
  .typing-divider {
    font-size: 2.15rem;
    /* Aumento de +20% no mobile */
    padding: 40px 20px;
    min-height: 120px;
  }
}

.typing-text {
  display: inline-block;
  margin: 0;
}

/* O gradiente brilha nas palavras-chave inseridas via classe text-gradient */

.blinking-cursor {
  display: inline-block;
  width: 12px;
  height: 40px;
  margin-left: 8px;
  background: linear-gradient(135deg, var(--primary-blue), var(--primary-teal));
  animation: blink 1s step-end infinite;
  vertical-align: middle;
}

@media (max-width: 768px) {
  .blinking-cursor {
    height: 28px;
    width: 8px;
  }
}

@keyframes blink {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0;
  }
}

.bg-secondary {
  background-color: var(--bg-secondary);
}

.section-header {
  text-align: center;
  margin-bottom: 64px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.section-title {
  font-size: 2.5rem;
  margin-bottom: 16px;
}

.section-description {
  font-size: 1.125rem;
}

/* Hero Section */
.hero {
  padding: 160px 0 100px;
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

/* Elementos Gráficos de Fundo */
.hero-bg-glow {
  position: absolute;
  top: -10%;
  right: -5%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(46, 194, 184, 0.15) 0%, rgba(255, 255, 255, 0) 70%);
  border-radius: 50%;
  z-index: -1;
  filter: blur(60px);
}

.hero-bg-glow-2 {
  position: absolute;
  bottom: 10%;
  left: -10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(85, 170, 255, 0.1) 0%, rgba(255, 255, 255, 0) 70%);
  border-radius: 50%;
  z-index: -1;
  filter: blur(60px);
}

.hero-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.badge {
  display: inline-flex;
  padding: 8px 16px;
  background: rgba(0, 102, 255, 0.08);
  color: var(--medium-blue);
  border-radius: var(--radius-full);
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 24px;
  border: 1px solid rgba(0, 102, 255, 0.1);
}

.hero-title {
  font-size: 4rem;
  margin-bottom: 24px;
  line-height: 1.1;
}

.hero-subtitle {
  font-size: 1.25rem;
  margin-bottom: 40px;
  max-width: 540px;
  color: var(--text-muted);
}

.hero-cta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-visual {
  position: relative;
  width: 100%;
  height: 500px;
  perspective: 1000px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Particles Dashboard Hero */
#tsparticles {
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 0 15px rgba(46, 194, 184, 0.3));
}

@media (max-width: 991px) {
  .hero-visual {
    height: 400px;
  }
}

/* Solutions/Services Section (Carousel Layout) */
.carousel-wrapper {
  position: relative;
  width: 100%;
  max-width: 1200px;
  /* Alinhar com o container */
  margin: 0 auto;
}

.carousel-control {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: white;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  color: var(--primary-teal);
  transition: all var(--transition-bounce);
}

.carousel-control:hover {
  background: var(--primary-teal);
  color: white;
  box-shadow: var(--shadow-md);
  transform: translateY(-50%) scale(1.1);
}

.carousel-control.prev {
  left: -27px;
  /* Meio pra fora do container */
}

.carousel-control.next {
  right: -27px;
}

.services-carousel {
  display: flex;
  overflow-x: auto;
  gap: 32px;
  padding: 24px 8px 40px 8px;
  /* Espaço p/ hover não cortar lateral */
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  /* Firefox */
  width: 100%;
}

.services-carousel::-webkit-scrollbar {
  display: none;
}

.service-card {
  /* Sempre mostra exatamente 3 itens subtraindo os 2 buracos (gap) de 32px */
  flex: 0 0 calc((100% - 64px) / 3);
  scroll-snap-align: center;
  background: var(--bg-main);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 40px 32px;
  transition: all var(--transition-normal);
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
}

@media (max-width: 992px) {
  .service-card {
    flex: 0 0 calc((100% - 32px) / 2);
    /* 2 items para tablets */
  }
}

@media (max-width: 768px) {
  .service-card {
    flex: 0 0 100%;
    /* 1 item no celular */
  }

  .carousel-control {
    display: none;
    /* No mobile ele roda com o dedo via scroll normal */
  }
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(46, 194, 184, 0.3);
}

.service-icon {
  width: 56px;
  height: 56px;
  background: var(--bg-secondary);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  color: var(--primary-teal);
  transition: all var(--transition-normal);
}

.service-card:hover .service-icon {
  background: var(--primary-teal);
  color: white;
  transform: scale(1.1) rotate(5deg);
}

.service-card h3 {
  font-size: 1.35rem;
  margin-bottom: 16px;
  color: var(--text-dark);
}

.service-card p {
  color: var(--text-muted);
  line-height: 1.6;
  font-size: 0.95rem;
  flex-grow: 1;
  /* Empurra o botão pro rodapé */
}

/* Botão Saiba Mais (Card Subpage) */
.service-card-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 24px;
  padding: 10px 0;
  color: var(--primary-teal);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  transition: gap var(--transition-fast);
  align-self: flex-start;
  /* Alinha à esquerda no card */
}

.service-card-btn svg {
  transition: transform var(--transition-fast);
}

.service-card:hover .service-card-btn {
  gap: 12px;
}

/* =============================================
   Clients / Logo Belt Section
   ============================================= */
.clients-section {
  padding: 56px 0;
  overflow: hidden;
  position: relative;
  background: var(--bg-main);
  border-top: 1px solid var(--border-ultra-light);
  border-bottom: 1px solid var(--border-ultra-light);
}

.clients-label {
  text-align: center;
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-dark);
  margin-bottom: 28px;
  opacity: 0.7;
}

/* The track wrapper — clips overflow and applies fade masks */
.logo-track-wrapper {
  position: relative;
  width: 100%;
  overflow: hidden;
}

/* Pause the whole track on hover */
.logo-track-wrapper:hover .logo-track {
  animation-play-state: paused;
}

/* The scrolling flex strip — duplicated logos inside */
.logo-track {
  display: flex;
  align-items: center;
  gap: 0;
  width: max-content;
  animation: logoScroll 32s linear infinite;
}

@keyframes logoScroll {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }
}

/* Each single logo pill */
.logo-item {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 40px;
  flex-shrink: 0;
  position: relative;
}

/* Divider line between logos */
.logo-item::after {
  content: '';
  position: absolute;
  right: 0;
  top: 20%;
  height: 60%;
  width: 1px;
  background: var(--border-light);
}

/* The logo itself — grayscale + faded by default */
.logo-item img {
  height: 28px;
  width: auto;
  object-fit: contain;
  /* Start faded + grayscale */
  filter: grayscale(100%) opacity(0.45);
  transition: filter 0.4s ease, transform 0.4s ease;
  will-change: filter, transform;
  display: block;
}

/* When the wrapper is hovered, individually lit items get colour */
.logo-track-wrapper:hover .logo-item:hover img {
  filter: grayscale(0%) opacity(1);
  transform: scale(1.08);
}

/* Fallback text logos for companies without image assets */
.logo-text {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  filter: opacity(0.35);
  transition: filter 0.4s ease, transform 0.4s ease;
  white-space: nowrap;
  user-select: none;
}

.logo-track-wrapper:hover .logo-item:hover .logo-text {
  filter: opacity(1);
  transform: scale(1.06);
}

/* =============================================
   Effect 1 — SVG Draw-on-Scroll Paths
   ============================================= */
.section-svg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
  overflow: visible;
  /* Subtle liquid floating animation */
  animation: liquid-float 8s ease-in-out infinite;
}

.scroll-path {
  /* stroke-dasharray and stroke-dashoffset are set dynamically by JS */
  stroke: url(#grad-lusion);
  stroke-width: 6px;
  stroke-linecap: round;
  fill: none;
  /* Reduced transition - now smooth through JS lerp */
  transition: stroke-dashoffset 0.05s linear;
  will-change: stroke-dashoffset;
  /* Lusion.co Glow Effect (Bloom) */
  filter: drop-shadow(0 0 8px rgba(0, 245, 255, 0.8)) drop-shadow(0 0 20px rgba(6, 16, 223, 0.4));
}

@keyframes liquid-float {

  0%,
  100% {
    transform: translate(0, 0) rotate(0deg);
  }

  33% {
    transform: translate(15px, -10px) rotate(0.5deg);
  }

  66% {
    transform: translate(-10px, 15px) rotate(-0.5deg);
  }
}

/* Ensure sections allow SVG overflow for glow */
.section {
  position: relative;
  overflow: visible !important;
}

/* Make sure section content sits above the SVG */
.section .container,
.video-expand-section .video-expand-sticky,
.typing-divider {
  position: relative;
  z-index: 10;
}

/* Restored proper min-height for wrap */

/* =============================================
   Effect 2 — Video Expand on Scroll
   ============================================= */
.video-expand-section {
  height: 280vh;
  position: relative;
}

.video-expand-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--bg-main);
}

/* Text label that fades out as you scroll */
.video-expand-label {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  z-index: 2;
  pointer-events: none;
  /* Opacity + translateY controlled by JS */
  opacity: 1;
  transition: opacity 0.1s linear;
  width: 100%;
  padding: 0 24px;
}

.video-expand-title {
  font-size: 2.75rem;
  margin-top: 16px;
  margin-bottom: 12px;
}

.video-expand-desc {
  font-size: 1.1rem;
  color: var(--text-muted);
}

/* The growing video frame */
.video-expand-frame {
  position: absolute;
  /* Start: small card at bottom-left */
  bottom: 48px;
  left: 48px;
  width: 360px;
  height: 210px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-xl), 0 0 0 1px var(--border-light);
  z-index: 10;
  /* JS will interpolate these via inline styles */
  transform-origin: bottom left;
  will-change: width, height, bottom, left, border-radius;
  background: #000;
  transition: box-shadow 0.3s ease;
}

.video-expand-frame:hover {
  box-shadow: var(--shadow-xl), 0 0 0 1px var(--border-light), 0 0 40px rgba(46, 194, 184, 0.2);
}

.video-inner video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.video-placeholder {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 1;
  color: white;
  text-align: center;
  padding: 24px;
  pointer-events: none;
  transition: opacity 0.5s ease;
}

/* Hide placeholder when video is playing or loaded */
video:not([src=""]),
video[src] {
  z-index: 2;
  position: relative;
}

.video-placeholder-icon {
  margin-bottom: 16px;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% {
    transform: scale(1);
    opacity: 0.8;
  }

  50% {
    transform: scale(1.1);
    opacity: 1;
  }

  100% {
    transform: scale(1);
    opacity: 0.8;
  }
}

.about-content-box {
  background: var(--bg-main);
  padding: 40px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  border: 1px solid var(--border-light);
  position: relative;
  z-index: 2;
}

@media (max-width: 768px) {
  .video-expand-frame {
    width: 260px;
    height: 152px;
    bottom: 32px;
    left: 16px;
  }

  .video-expand-title {
    font-size: 1.8rem;
  }
}

/* Responsive */
@media (max-width: 992px) {
  .hero-container {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-title {
    font-size: 3rem;
  }

  .hero-subtitle {
    margin: 0 auto 40px;
  }

  .hero-cta {
    justify-content: center;
  }

  .hero-visual {
    height: 400px;
    margin-top: 40px;
  }

  .card-1 {
    right: 5%;
    width: 240px;
  }

  .card-2 {
    left: 5%;
    width: 220px;
  }

  .card-3 {
    right: 0;
    width: 160px;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
    /* Mobile menu will be handled in JS */
  }

  .section {
    padding: 80px 0;
  }

  .hero-title {
    font-size: 2.5rem;
  }
}