/* ==========================================================================
   CSS Variables & Theme Setup (Premium Dark Glassmorphism Aesthetic)
   ========================================================================== */
   :root {
    /* Colors - Changed to Dark Green Base */
    --bg-dark: #040806; /* Very dark green/black */
    --bg-surface: rgba(14, 25, 20, 0.6); /* Translucent dark green */
    --bg-surface-solid: #0e1914; /* Solid dark green */
    --bg-surface-offset: #080f0c; /* Slightly lighter for offset backgrounds */
    --bg-border: rgba(255, 255, 255, 0.08); /* Kept subtle */
    
    --text-main: #FFFFFF;
    --text-muted: #94A3B8; /* Keep neutral gray for readability */
    
    /* Green Accents */
    --accent-main: #1D8F63; /* Emerald/Jade Green */
    --accent-light: #4ADE80; /* Light Neon Green for pops of color */
    
    /* Elegant gradient taking over the old Gold */
    --accent-gradient: linear-gradient(135deg, #10B981 0%, #059669 50%, #047857 100%);
    
    /* Layout */
    --container-width: 1200px;
    --container-padding: 2rem;
    
    /* Typography */
    --font-sans: 'Outfit', system-ui, -apple-system, sans-serif;
    --font-serif: 'Playfair Display', Georgia, serif;
    
    /* Effects */
    --transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
    --glass-blur: blur(12px);
    --glow-shadow: 0 0 40px rgba(16, 185, 129, 0.2);
  }
  
  /* ==========================================================================
     Reset & Base Styles
     ========================================================================== */
  * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }
  
  html {
    font-size: 16px;
    scroll-behavior: smooth;
  }
  
  body {
    font-family: var(--font-sans);
    background-color: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
  }
  
  img {
    max-width: 100%;
    height: auto;
    display: block;
  }
  
  a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
  }
  
  ul {
    list-style: none;
  }
  
  /* ==========================================================================
     Typography
     ========================================================================== */
  h1, h2, h3, h4 {
    line-height: 1.2;
    font-weight: 600;
    letter-spacing: -0.02em;
  }
  
  h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    margin-bottom: 1.5rem;
  }
  
  h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 1rem;
  }
  
  h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    color: var(--text-main);
  }
  
  p {
    color: var(--text-muted);
    font-size: 1.05rem;
  }
  
  .serif-title {
    font-family: var(--font-serif);
    font-weight: 400;
    letter-spacing: -0.01em;
  }
  
  .text-gradient {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
  }
  
  .overline {
    display: inline-block;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--accent-light);
    margin-bottom: 0.5rem;
    font-weight: 600;
  }
  
  .align-center {
    text-align: center;
  }
  
  /* ==========================================================================
     Layout & Utilities
     ========================================================================== */
  .container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--container-padding);
  }
  
  .section {
    padding: 8rem 0; /* Increased padding slightly for offsets */
    position: relative;
    z-index: 10;
  }
  
  /* New class for alternating background offsets */
  .section-offset {
    background-color: var(--bg-surface-offset);
    border-top: 1px solid var(--bg-border);
    border-bottom: 1px solid var(--bg-border);
  }
  
  .mt-s { margin-top: 1rem; }
  .mt-m { margin-top: 2rem; }
  .mt-l { margin-top: 3rem; }
  .mt-xl { margin-top: 5rem; }
  .mb-s { margin-bottom: 1rem; }
  .mb-m { margin-bottom: 2rem; }
  .mb-l { margin-bottom: 3rem; }
  .mb-xl { margin-bottom: 5rem; }
  
  /* Dynamic Background Glows */
  .bg-glow {
    position: fixed;
    border-radius: 50%;
    filter: blur(100px);
    z-index: 0;
    opacity: 0.3; /* Dropped opacity slightly */
    pointer-events: none;
  }
  
  .blob-1 {
    top: -10%;
    left: -10%;
    width: 60vw;
    height: 60vw;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.15) 0%, rgba(0,0,0,0) 70%); /* Emerald Glow */
  }
  
  .blob-2 {
    bottom: -20%;
    right: -10%;
    width: 70vw;
    height: 70vw;
    background: radial-gradient(circle, rgba(5, 150, 105, 0.1) 0%, rgba(0,0,0,0) 70%); /* Deep Green Glow */
  }
  
  /* Glassmorphism Cards */
  .glass-card {
    background: var(--bg-surface);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--bg-border);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: var(--glass-shadow);
    transition: var(--transition);
  }
  
  .hover-lift:hover {
    transform: translateY(-8px);
    border-color: rgba(16, 185, 129, 0.4);
    background: rgba(14, 25, 20, 0.8);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5), var(--glow-shadow);
  }
  
  /* ==========================================================================
     Buttons
     ========================================================================== */
  .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 1.75rem;
    border-radius: 50px;
    font-weight: 500;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
    border: 1px solid transparent;
  }
  
  .btn i {
    font-size: 1.25rem;
  }
  
  .btn-primary {
    background: var(--accent-gradient);
    color: #FFFFFF;
    font-weight: 600;
  }
  
  .btn-primary:hover {
    filter: brightness(1.2);
    transform: translateY(-2px);
  }
  
  .btn-glow {
    box-shadow: 0 10px 30px rgba(16, 185, 129, 0.3);
  }
  
  .btn-glow:hover {
    box-shadow: 0 15px 40px rgba(16, 185, 129, 0.5);
  }
  
  .btn-outline {
    background: transparent;
    border-color: var(--bg-border);
    color: var(--text-main);
  }
  
  .btn-outline:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.2);
  }
  
  .btn-large {
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
  }
  
  .badge-sm {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.2);
    border-radius: 50px;
    font-size: 0.75rem;
    color: var(--accent-light);
    font-weight: 500;
  }
  
  /* ==========================================================================
     Components
     ========================================================================== */
  /* Navbar */
  .navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    padding: 1.25rem 0;
    transition: var(--transition);
    border-bottom: 1px solid transparent;
  }
  
  .navbar.scrolled {
    background: rgba(4, 8, 6, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--bg-border);
    padding: 1rem 0;
  }
  
  .nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  
  .logo {
    display: flex;
    flex-direction: column;
    border: none !important;
    outline: none !important;
    text-decoration: none;
  }
  
  .logo-img {
    height: 60px;
    width: auto;
    max-width: 200px;
    transition: var(--transition);
    display: block;
    opacity: 0.9;
  }
  
  .logo-img:hover {
    opacity: 1;
  }
  
  .nav-links {
    display: flex;
    gap: 2rem;
  }
  
  .nav-links a {
    font-size: 0.95rem;
    font-weight: 500;
  }
  
  .nav-links a:hover {
    color: var(--accent-light);
  }
  
  .menu-toggle {
    display: none;
    background: transparent;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
  }
  
  /* Hero Section */
  .hero {
    padding: 10rem 0 6rem;
    min-height: 100vh;
    display: flex;
    align-items: center;
  }
  
  .hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
  }
  
  .badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(16, 185, 129, 0.1); /* Emerald tint */
    border: 1px solid rgba(16, 185, 129, 0.2);
    border-radius: 50px;
    color: var(--accent-light); /* Green */
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 2rem;
  }
  
  .hero-description {
    font-size: 1.25rem;
    margin-bottom: 2.5rem;
    max-width: 600px;
  }
  
  .hero-stats {
      display: flex;
      gap: 2rem;
  }
  
  .stat-item {
      display: flex;
      flex-direction: column;
  }
  
  .stat-number {
      font-family: var(--font-serif);
      font-size: 1.75rem;
      color: var(--accent-light);
  }
  
  .stat-label {
      font-size: 0.8rem;
      text-transform: uppercase;
      letter-spacing: 0.05em;
  }
  
  .hero-image-wrapper {
    position: relative;
  }
  
  .image-card {
    padding: 1rem;
    border-radius: 32px;
    position: relative;
    height: 500px;
  }
  
  .floating-badge {
    position: absolute;
    bottom: 3rem;
    left: -2rem;
    background: var(--bg-surface-solid);
    padding: 1rem 1.5rem;
    border-radius: 16px;
    border: 1px solid var(--bg-border);
    box-shadow: var(--glass-shadow);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 600;
    animation: float 6s ease-in-out infinite;
  }
  
  .floating-badge i {
    color: var(--accent-light);
    font-size: 1.5rem;
  }
  
  @keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
  }
  
  /* Marquee */
  .marquee-section {
    padding: 2rem 0;
    border-top: 1px solid var(--bg-border);
    border-bottom: 1px solid var(--bg-border);
    background: rgba(4, 8, 6, 0.5);
    overflow: hidden;
    position: relative;
  }
  
  .marquee-track {
    display: flex;
    white-space: nowrap;
    animation: scroll-left 30s linear infinite;
  }
  
  .marquee-content {
    display: flex;
    align-items: center;
    padding: 0 2rem;
  }
  
  .marquee-content span {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin: 0 3rem;
  }
  
  .marquee-content span i {
    color: var(--accent-light);
  }
  
  @keyframes scroll-left {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
  }
  
  /* Grid Layouts */
  .grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }
  
  .grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
  }
  
  .icon-box {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.15); /* Keep it very subtle */
    color: var(--accent-light); /* Green icon */
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin-bottom: 1.5rem;
  }
  
  .cta-banner {
    margin-top: 5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: linear-gradient(to right, var(--bg-surface), rgba(16, 185, 129, 0.1));
  }
  
  .cta-banner p {
    font-size: 1.25rem;
    color: var(--text-main);
    margin: 0;
  }
  
  /* Split Layout / Profissionais */
  .concept-text {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
  }
  
  .split-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
  }
  
  .professional-profile {
      display: grid;
      grid-template-columns: 1fr 1.5fr;
      gap: 3rem;
      align-items: center;
  }
  
  .professional-profile.reverse {
      grid-template-columns: 1.5fr 1fr;
  }
  
  .divider {
      height: 1px;
      background: var(--bg-border);
      margin: 4rem auto;
      width: 80%;
  }
  
  /* Carousel / Testimonials */
  .carousel-container {
      position: relative;
      display: flex;
      align-items: center;
      gap: 1rem;
      margin-top: 3rem;
  }
  
  .carousel-track {
      display: flex;
      overflow-x: auto;
      scroll-snap-type: x mandatory;
      gap: 1.5rem;
      padding: 1rem 0 2rem;
      scroll-behavior: smooth;
      scrollbar-width: none; /* Firefox */
      -ms-overflow-style: none; /* IE and Edge */
      flex-grow: 1;
  }
  
  .carousel-track::-webkit-scrollbar {
      display: none; /* Chrome */
  }
  
  .carousel-card {
      min-width: calc(33.333% - 1rem); /* 3 cards per view minus the gap */
      max-width: calc(33.333% - 1rem);
      scroll-snap-align: start;
      flex: 0 0 auto;
      display: flex;
      flex-direction: column;
      height: 100%;
  }
  
  .carousel-card .stars {
      color: #F59E0B;
  }
  
  .carousel-card p.mb-m {
      line-height: 1.5;
      font-size: 0.95rem;
  }

  /* YouTube Section */
  .video-card {
      max-width: 900px;
      margin: 0 auto;
      padding: 1rem;
  }
  
  .video-wrapper {
      position: relative;
      padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
      height: 0;
      overflow: hidden;
      border-radius: 12px;
      background: #000;
  }
  
  .video-link {
      display: block;
      width: 100%;
      height: 100%;
      position: absolute; /* Fix the height issue from the wrapper */
      top: 0;
      left: 0;
      overflow: hidden;
  }
  
  .video-thumbnail {
      width: 100%;
      height: 100%;
      object-fit: cover;
      transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  }
  
  .video-link:hover .video-thumbnail {
      transform: scale(1.05);
  }
  
  .play-button-overlay {
      position: absolute;
      top: 50%;
      left: 50%;
      transform: translate(-50%, -50%);
      font-size: 5rem;
      color: #fff;
      opacity: 0.9;
      text-shadow: 0 4px 20px rgba(0,0,0,0.5);
      transition: var(--transition);
      pointer-events: none;
  }
  
  .video-link:hover .play-button-overlay {
      transform: translate(-50%, -50%) scale(1.2);
      color: var(--accent-light);
      opacity: 1;
  }

  .video-footer {
      display: flex;
      justify-content: center;
  }

  /* Footer Social Links */
  .social-links {
      display: flex;
      flex-direction: column;
      gap: 1rem;
  }
  
  .social-icon {
      display: flex;
      align-items: center;
      gap: 0.75rem;
      color: var(--text-muted);
      font-size: 0.95rem;
      transition: var(--transition);
  }
  
  .social-icon i {
      font-size: 1.5rem;
      color: var(--accent-light);
  }
  
  .social-icon:hover {
      color: var(--text-main);
      transform: translateX(5px);
  }

  .carousel-btn {
      background: var(--bg-surface-solid);
      border: 1px solid var(--bg-border);
      color: var(--text-main);
      width: 48px;
      height: 48px;
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
      cursor: pointer;
      font-size: 1.5rem;
      transition: var(--transition);
      z-index: 10;
      flex-shrink: 0;
  }
  
  .carousel-btn:hover {
      background: var(--accent-gradient);
      border-color: transparent;
      color: #fff;
      transform: scale(1.05);
  }

  @media (max-width: 1024px) {
      .carousel-card {
          min-width: calc(50% - 0.75rem);
      }
  }

  @media (max-width: 768px) {
      .carousel-card {
          min-width: 85%;
      }
      .carousel-btn {
          display: none; /* Hide buttons on mobile */
      }
  }

  /* FAQ Accordion */
  .accordion-item {
      border-bottom: 1px solid var(--bg-border);
  }
  .accordion-item:last-child {
      border-bottom: none;
  }
  
  .accordion-header {
      width: 100%;
      padding: 1.5rem 2rem;
      background: transparent;
      border: none;
      display: flex;
      justify-content: space-between;
      align-items: center;
      color: white;
      font-size: 1.1rem;
      font-weight: 500;
      cursor: pointer;
      font-family: var(--font-sans);
  }
  
  .accordion-header i {
      color: var(--accent-light);
      transition: var(--transition);
  }
  
  .accordion-header[aria-expanded="true"] i {
      transform: rotate(180deg);
  }
  
  .accordion-content {
      padding: 0 2rem;
      max-height: 0;
      overflow: hidden;
      transition: max-height 0.3s ease;
  }
  
  .accordion-content p {
      padding-bottom: 1.5rem;
  }
  
  /* Footer */
  .footer {
    border-top: 1px solid var(--bg-border);
    padding-top: 5rem;
    background: #020403; /* Super dark green/black */
  }
  
  .footer-container {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 4rem;
    margin-bottom: 4rem;
  }
  
  .footer-contact h4 {
    margin-bottom: 1.5rem;
    font-size: 1.25rem;
    color: var(--accent-light);
  }
  
  .footer-contact p {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
  }
  
  .footer-contact i {
    color: var(--accent-light);
  }
  
  .footer-bottom {
    padding: 1.5rem 0;
    border-top: 1px solid var(--bg-border);
    text-align: center;
    font-size: 0.875rem;
  }
  
  /* ==========================================================================
     Animations & Transitions (Intersection Observer)
     ========================================================================== */
  .fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
    transition-delay: var(--delay, 0s);
  }
  
  .reveal.active .fade-up {
    opacity: 1;
    transform: translate(0);
  }
  
  /* ==========================================================================
     Responsive Design
     ========================================================================== */
  @media (max-width: 1024px) {
    .hero-container,
    .split-layout,
    .professional-profile,
    .professional-profile.reverse {
      grid-template-columns: 1fr;
      gap: 3rem;
    }
    
    .professional-profile.reverse .profile-image {
        grid-row: 1;
    }
  
    .grid-3 {
      grid-template-columns: repeat(2, 1fr);
    }
    
    .hero {
      padding-top: 8rem;
      text-align: center;
    }
    
    .badge {
      margin: 0 auto 2rem;
    }
    
    .hero-description {
      margin: 0 auto 2.5rem;
    }
    
    .hero-actions, .hero-stats {
      justify-content: center;
      display: flex;
    }
    
    .floating-badge {
      left: 2rem;
    }
    
    .concept-text {
      text-align: left;
    }
    
    .cta-banner {
      flex-direction: column;
      text-align: center;
      gap: 1.5rem;
    }
  }
  
  @media (max-width: 768px) {
    :root {
      --container-padding: 1.5rem;
    }
    
    h1 { font-size: 2.5rem; }
    h2 { font-size: 1.75rem; }
    
    .grid-3, .grid-2 {
      grid-template-columns: 1fr;
    }
    
    .footer-container {
      grid-template-columns: 1fr;
      gap: 2rem;
    }
    
    .nav-links, .nav-btn { display: none; }
    .menu-toggle { display: block; }
  }
