  /* ========== BASE ========== */
  *, *::before, *::after { box-sizing: border-box; }
  html { scroll-behavior: smooth; scroll-padding-top: 80px; }
  body { margin: 0; }

  /* ========== NAVBAR ========== */
  .navbar-text { transition: color 0.4s ease; }
  #navbar.scrolled .navbar-text { color: rgba(255,255,255,0.85) !important; }
  #navbar.scrolled {
    background: rgba(17, 26, 64, 0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 1px 0 rgba(255,255,255,0.06);
  }
  #navbar.scrolled .menu-line { background: white; }

  /* ========== MOBILE MENU ========== */
  #mobile-menu.open { opacity: 1 !important; pointer-events: all !important; }
  #mobile-menu .mobile-link { transform: translateY(12px); opacity: 0; transition: all 0.35s ease; }
  #mobile-menu.open .mobile-link { transform: translateY(0); opacity: 1; }
  #mobile-menu.open .mobile-link:nth-child(1) { transition-delay: 0.05s; }
  #mobile-menu.open .mobile-link:nth-child(2) { transition-delay: 0.1s; }
  #mobile-menu.open .mobile-link:nth-child(3) { transition-delay: 0.15s; }
  #mobile-menu.open .mobile-link:nth-child(4) { transition-delay: 0.2s; }
  #mobile-menu.open .mobile-link:nth-child(5) { transition-delay: 0.25s; }

  /* Hamburger animation */
  #menu-btn.active .menu-line:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  #menu-btn.active .menu-line:nth-child(2) { opacity: 0; transform: scaleX(0); }
  #menu-btn.active .menu-line:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

  /* ========== SCROLL REVEAL ========== */
  .reveal {
    opacity: 1;
    transform: none;
    transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
  }
  @media (prefers-reduced-motion: no-preference) {
    .reveal {
      opacity: 0;
      transform: translateY(32px);
    }
    .reveal.revealed {
      opacity: 1;
      transform: translateY(0);
    }
    .reveal.delay-1 { transition-delay: 0.1s; }
    .reveal.delay-2 { transition-delay: 0.2s; }
    .reveal.delay-3 { transition-delay: 0.3s; }
    .reveal.delay-4 { transition-delay: 0.4s; }
  }

  /* ========== CUSTOM SCROLLBAR ========== */
  ::-webkit-scrollbar { width: 8px; }
  ::-webkit-scrollbar-track { background: #111a40; }
  ::-webkit-scrollbar-thumb { background: #2da876; border-radius: 4px; }
  ::-webkit-scrollbar-thumb:hover { background: #55c492; }

  /* ========== SELECTION ========== */
  ::selection { background: rgba(45, 168, 118, 0.2); color: #111a40; }
</style>
