:root {
  /* Colors */
  --c-primary: #020A3B;
  --c-secondary: #e5b847;
  --c-light: #f2f2f2;

  /* Fluid Typography using clamp
     Updated to be more "professional" (slightly smaller and more balanced) */
  --fs-xs: clamp(0.75rem, 0.5vw + 0.4rem, 0.875rem);
  --fs-sm: clamp(0.875rem, 0.6vw + 0.5rem, 1rem);
  --fs-base: clamp(1rem, 0.8vw + 0.5rem, 1.125rem);
  --fs-lg: clamp(1.125rem, 1vw + 0.6rem, 1.375rem);
  --fs-xl: clamp(1.25rem, 1.5vw + 0.7rem, 1.75rem);
  --fs-2xl: clamp(1.5rem, 2vw + 0.8rem, 2.25rem);
  --fs-3xl: clamp(1.875rem, 3vw + 1rem, 3rem);
  --fs-4xl: clamp(2.25rem, 4vw + 1rem, 3.75rem);
  --fs-5xl: clamp(2.25rem, 4vw + 1rem, 3.75rem);

  /* Ultra-Professional Fluid Spacing System */
  /* Following modern high-end standards (Stripe, Apple, Linear) */
  --sp-vertical: clamp(5rem, 10vw, 10rem);   /* 80px - 160px: Generous breathing room */
  --sp-container: clamp(1.5rem, 7vw, 7.5rem); /* 24px - 120px: Dynamic horizontal gutters */
  
  --sp-xs: 0.5rem;   /* 8px */
  --sp-sm: 1rem;     /* 16px */
  --sp-md: 2rem;     /* 32px */
  --sp-lg: 4rem;     /* 64px */
  --sp-xl: 8rem;     /* 128px */
}

/* Reset / Base Setup */
html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  background-color: var(--c-primary);
  color: var(--c-light);
  font-family: 'Inter', sans-serif;
  overflow-x: hidden;
  font-size: var(--fs-base);
  line-height: 1.6;
  font-weight: 400;
}

/* Headings using Inter with different weights */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Inter', sans-serif;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

h1 { font-weight: 800; }
h2 { font-weight: 700; } /* Back to Bold as requested */
h3 { font-weight: 600; }
h4 { font-weight: 600; }

/* Fluid Typography Classes */
.text-fluid-xs { font-size: var(--fs-xs); }
.text-fluid-sm { font-size: var(--fs-sm); }
.text-fluid-base { font-size: var(--fs-base); }
.text-fluid-lg { font-size: var(--fs-lg); }
.text-fluid-xl { font-size: var(--fs-xl); }
.text-fluid-2xl { font-size: var(--fs-2xl); }
.text-fluid-3xl { font-size: var(--fs-3xl); }
.text-fluid-4xl { font-size: var(--fs-4xl); }
.text-fluid-5xl { font-size: var(--fs-5xl); }

/* Fluid Spacing Classes */
.py-fluid-section { 
  padding-top: var(--sp-vertical); 
  padding-bottom: var(--sp-vertical); 
}
.mb-fluid-lg { 
  margin-bottom: var(--sp-lg); 
}
.gap-fluid-md { gap: var(--sp-md); }
.gap-fluid-lg { gap: var(--sp-lg); }

/* Containers */
.container-fluid {
  width: 100%;
  max-width: 1600px; /* Wider for more professional canvas */
  margin: 0 auto;
  padding-left: var(--sp-container);
  padding-right: var(--sp-container);
}

/* Glassmorphism */
.glass-panel {
  background: rgba(242, 242, 242, 0.03);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(242, 242, 242, 0.08);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.glass-ultra-realistic {
  background: rgba(255, 255, 255, 0.05); /* Increased slightly for visibility */
  backdrop-filter: blur(15px) saturate(140%);
  -webkit-backdrop-filter: blur(15px) saturate(140%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  border-radius: 4px;
}

/* Spotlight Card Effect */
.spotlight-card {
  position: relative;
  overflow: hidden;
  border-radius: 4px;
}

.spotlight-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
    rgba(229, 184, 71, 0.15) 0%,
    transparent 80%
  );
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
  z-index: 1;
}

.spotlight-card:hover::before {
  opacity: 1;
}

.spotlight-card::after {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 0;
  background: var(--c-secondary);
  transition: width 0.3s ease;
  z-index: 2;
}

.spotlight-card:hover::after {
  width: 6px; /* Thicker line on hover */
}

.spotlight-card > * {
  position: relative;
  z-index: 3;
}

/* Components */
.btn-primary {
  background-color: var(--c-secondary);
  color: var(--c-primary); /* Darker text on yellow button for better contrast */
  padding: clamp(1rem, 2vw, 1.5rem) clamp(2rem, 4vw, 4rem);
  font-size: var(--fs-sm);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: all 0.3s ease;
  border: 2px solid var(--c-secondary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
}

.btn-primary:hover {
  background-color: transparent;
  color: var(--c-secondary);
}

.btn-primary.dark-bg:hover {
  background-color: transparent;
  border-color: var(--c-secondary);
  color: var(--c-secondary);
}

.img-placeholder {
  background-color: rgba(242, 242, 242, 0.05);
  border: 1px dashed rgba(242, 242, 242, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--c-light);
  font-size: var(--fs-sm);
  aspect-ratio: 16/9;
  width: 100%;
}

/* Specific Resets */
img, video {
  max-width: 100%;
  height: auto;
  object-fit: cover;
}

.grid-fluid-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: var(--sp-md);
}

/* Utils */
.parallax-bg {
  position: absolute;
  z-index: 0;
  pointer-events: none;
}

/* Floating Animation - Removed as requested */


/* ─── Hero Styling ─── */
#hero {
  position: relative;
  background-image: url('assets/bg-hero01.webp');
  background-size: cover;
  background-position: 50% 50%;
  background-repeat: no-repeat;
  background-attachment: scroll;
  padding-top: var(--sp-vertical);
  padding-bottom: var(--sp-vertical);
}

/* Overlay dark para garantir contraste do texto */
#hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-color: rgba(2, 10, 59, 0.75);
  z-index: 1;
}

#hero > .container-fluid {
  position: relative;
  z-index: 2;
}

/* For mobile, we might want a slightly darker overlay to ensure readability */
@media (max-width: 1023px) {
  #hero {
    background-image: linear-gradient(to bottom, rgba(2, 10, 59, 0.9), rgba(2, 10, 59, 0.9)), url('assets/bg-hero01.webp');
  }
}

/* ─── Hero Infinite Carousel ─── */
.hero-infinite-carousel {
  z-index: 10;
  padding-right: var(--sp-container);
  opacity: 1 !important;
  /* Professional vertical fade */
  mask-image: linear-gradient(to bottom, transparent, black 15%, black 85%, transparent);
  -webkit-mask-image: linear-gradient(to bottom, transparent, black 15%, black 85%, transparent);
}

.carousel-track-container {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 1.25rem;
}

.carousel-track {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  width: 22%;
  animation: scrollVertical 60s linear infinite;
  will-change: transform;
}

.carousel-track.reverse {
  animation: scrollVerticalReverse 60s linear infinite;
}

.carousel-img {
  width: 100%;
  border-radius: 0.75rem;
  object-fit: cover;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

@keyframes scrollVertical {
  0% { transform: translateY(0); }
  100% { transform: translateY(calc(-50% - 0.75rem)); } /* Compensating for 1.5rem gap */
}

@keyframes scrollVerticalReverse {
  0% { transform: translateY(calc(-50% - 0.75rem)); }
  100% { transform: translateY(0); }
}

/* Mobile & Tablet (Horizontal Carousel) */
@media (max-width: 1023px) {
  .mask-carousel {
    height: auto !important; /* let it adapt to the content */
  }
  
  .carousel-track-container {
    flex-direction: column;
    gap: 1rem;
    align-items: stretch;
  }

  .carousel-track {
    flex-direction: row;
    width: max-content;
    gap: 1rem;
    animation: scrollHorizontal 35s linear infinite;
  }

  .carousel-track.reverse {
    animation: scrollHorizontalReverse 35s linear infinite;
  }

  .carousel-img {
    width: clamp(140px, 38vw, 220px);
    height: auto;
    aspect-ratio: 10 / 14; /* Vertical format like desktop */
  }

  @keyframes scrollHorizontal {
    0% { transform: translateX(0); }
    100% { transform: translateX(calc(-50% - 0.5rem)); }
  }

  @keyframes scrollHorizontalReverse {
    0% { transform: translateX(calc(-50% - 0.5rem)); }
    100% { transform: translateX(0); }
  }
}

/* Logo Carousel */
.logo-carousel {
  width: 100%;
  overflow: hidden;
  position: relative;
  padding: clamp(40px, 6vw, 80px) 0;
  background: transparent;
  mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent);
}

.logo-track {
  display: flex;
  width: max-content;
  animation: logo-scroll 150s linear infinite;
  gap: clamp(60px, 10vw, 120px);
  align-items: center;
}

/* Pause on hover for better UX (REMOVED as requested) */

.logo-item {
  flex: 0 0 auto;
  /* Altura fluida significativamente aumentada */
  height: clamp(75px, 10vw, 110px);
  display: flex;
  align-items: center;
  justify-content: center;
  filter: grayscale(1) brightness(0.8) contrast(1.2);
  opacity: 0.6;
  transition: all 0.4s ease;
}

.logo-item:hover {
  filter: grayscale(0) brightness(1);
  opacity: 1;
}

.logo-item img {
  height: 100%;
  width: auto;
  /* Limite de largura bem mais generoso para acomodar logos muito extensos */
  max-width: clamp(180px, 40vw, 350px);
  object-fit: contain;
}

/* Utilitário para aumentar logos que possuem muita margem transparente embutida na imagem original */
.scale-up {
  transform: scale(1.6);
}
.scale-up-lg {
  transform: scale(2.0);
}
.scale-up-xl {
  transform: scale(2.8);
}
/* Utilitário para diminuir logos que ficam desproporcionalmente grandes */
.scale-down {
  transform: scale(0.75);
}
.scale-down-sm {
  transform: scale(0.5);
}

@keyframes logo-scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ============================================
   SECTION 2 — Floating Cards
   ============================================ */
.cards-float-container {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 4;
  max-width: 580px;
  margin: 0 auto;
}
@media (min-width: 1024px) {
  .cards-float-container {
    margin: 0;
  }
}

.float-card {
  position: absolute;
  border-radius: 20px;
  overflow: hidden;
  border: none;
  box-shadow: 0 12px 40px rgba(0,0,0,0.18);
  transition: transform 0.5s ease, box-shadow 0.5s ease;
}
.float-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Card 1 — topo esquerda, fundo, rotação anti-horária */
.float-card-1 {
  width: 58%;
  top: 0;
  left: 0;
  z-index: 10;
  transform: rotate(-4deg);
  animation: float-1 5s ease-in-out infinite;
}

/* Card 2 — topo direita, meio, rotação horária */
.float-card-2 {
  width: 53%;
  top: 5%;
  right: -5%;
  z-index: 20;
  transform: rotate(5deg);
  animation: float-2 6s ease-in-out infinite;
}

/* Card 3 — baixo centro, frente, sem rotação */
.float-card-3 {
  width: 48%;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  z-index: 30;
  box-shadow: 0 18px 50px rgba(0,0,0,0.22);
  animation: float-3 7s ease-in-out infinite;
}

/* Hover em cada card */
.float-card-1:hover {
  transform: rotate(-4deg) translateY(-8px);
  box-shadow: 0 20px 50px rgba(0,0,0,0.25);
}
.float-card-2:hover {
  transform: rotate(5deg) translateY(-8px);
  box-shadow: 0 20px 50px rgba(0,0,0,0.25);
}
.float-card-3:hover {
  transform: translateX(-50%) scale(1.04);
  box-shadow: 0 24px 60px rgba(0,0,0,0.28);
}

/* Animações flutuantes independentes */
@keyframes float-1 {
  0%, 100% { transform: rotate(-4deg) translateY(0); }
  50%      { transform: rotate(-4deg) translateY(-10px); }
}
@keyframes float-2 {
  0%, 100% { transform: rotate(5deg) translateY(0); }
  50%      { transform: rotate(5deg) translateY(-12px); }
}
/* ─── Video Section ─── */
.video-wrapper {
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

.video-wrapper:hover {
  border-color: var(--c-secondary);
  box-shadow: 0 30px 60px rgba(229, 184, 71, 0.1);
}

#playButtonOverlay .bg-secondary {
  animation: pulse-secondary 2s infinite;
}

@keyframes pulse-secondary {
  0% {
    box-shadow: 0 0 0 0 rgba(229, 184, 71, 0.4);
  }
  70% {
    box-shadow: 0 0 0 20px rgba(229, 184, 71, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(229, 184, 71, 0);
  }
}

/* ─── Blobs animados de fundo (Sessão Empresas) ─── */
.blob-bg {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.3;
  pointer-events: none;
  z-index: 0;
}

.blob-bg-1 {
  width: clamp(300px, 40vw, 600px);
  height: clamp(300px, 40vw, 600px);
  background: var(--c-secondary);
  top: 10%;
  left: -5%;
  animation: blob-float-1 18s ease-in-out infinite;
}

.blob-bg-2 {
  width: clamp(250px, 35vw, 500px);
  height: clamp(250px, 35vw, 500px);
  background: var(--c-primary);
  bottom: 5%;
  right: -5%;
  opacity: 0.15;
  animation: blob-float-2 22s ease-in-out infinite;
}

@keyframes blob-float-1 {
  0%   { transform: translate(0, 0) scale(1); }
  25%  { transform: translate(15vw, 10vh) scale(1.1); }
  50%  { transform: translate(25vw, -5vh) scale(0.95); }
  75%  { transform: translate(5vw, 15vh) scale(1.05); }
  100% { transform: translate(0, 0) scale(1); }
}

@keyframes blob-float-2 {
  0%   { transform: translate(0, 0) scale(1); }
  25%  { transform: translate(-20vw, -8vh) scale(1.15); }
  50%  { transform: translate(-10vw, 12vh) scale(0.9); }
  75%  { transform: translate(-25vw, -3vh) scale(1.1); }
  100% { transform: translate(0, 0) scale(1); }
}
/* ─── Animated Blue Gradient (Sessão CTA) ─── */
.animated-blue-gradient {
  background: linear-gradient(-45deg, #020A3B, #0a1c7a, #010521, #020A3B);
  background-size: 400% 400%;
  animation: gradientBG 15s ease infinite;
}

@keyframes gradientBG {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* Utilities for background colors */
.bg-light { background-color: var(--c-light) !important; }
.bg-primary { background-color: var(--c-primary) !important; }
.text-primary { color: var(--c-primary) !important; }
.text-light { color: var(--c-light) !important; }

/* ─── Particle Logo Canvas ─── */
.particle-logo-container {
    width: fit-content;
    height: fit-content;
    overflow: visible;
}

.particle-logo-container canvas {
    position: absolute;
    z-index: 2;
    cursor: crosshair;
    pointer-events: auto;
}

.particle-base-img {
    transition: opacity 0.3s ease;
}

/* ─── Logo Reveal: Simples em Mobile/Tablet ─── */
@media (max-width: 1023px) {
  #logo-reveal {
    height: auto !important;
    min-height: unset !important;
    padding: clamp(3rem, 8vw, 5rem) 1.5rem;
  }

  #logo-reveal .logo-reveal-img {
    -webkit-mask-image: none !important;
    mask-image: none !important;
    filter: none !important;
    max-width: 85vw;
    margin: 0 auto;
    display: block;
  }

  #logo-reveal-bg {
    clip-path: inset(0 0% 0 0) !important;
  }

  /* Remove a imagem P&B de fundo em mobile (redundante) */
  #logo-reveal > img[aria-hidden="true"] {
    display: none;
  }
}
