  /* ── Reset & Base ── */
  *, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
  }

  html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
  }

  body {
    overflow-x: hidden;
  }

  ::selection {
    background: rgba(212, 160, 23, 0.3);
    color: #f0f4f8;
  }

  /* ── Scrollbar ── */
  ::-webkit-scrollbar {
    width: 8px;
  }
  ::-webkit-scrollbar-track {
    background: #102438;
  }
  ::-webkit-scrollbar-thumb {
    background: #334e68;
    border-radius: 4px;
  }
  ::-webkit-scrollbar-thumb:hover {
    background: #d4a017;
  }

  /* ── Navbar ── */
  #navbar {
    background: transparent;
  }

  #navbar.scrolled {
    background: rgba(10, 21, 32, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(51, 78, 104, 0.3);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
  }

  .nav-link {
    position: relative;
  }

  .nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: #d4a017;
    transition: width 0.3s ease;
  }

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

  /* ── Mobile Menu ── */
  .mobile-link {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.4s ease, transform 0.4s ease;
  }

  #mobileMenu.open .mobile-link {
    opacity: 1;
    transform: translateY(0);
  }

  #mobileMenu.open .mobile-link:nth-child(1) { transition-delay: 0.05s; }
  #mobileMenu.open .mobile-link:nth-child(2) { transition-delay: 0.1s; }
  #mobileMenu.open .mobile-link:nth-child(3) { transition-delay: 0.15s; }
  #mobileMenu.open .mobile-link:nth-child(4) { transition-delay: 0.2s; }
  #mobileMenu.open .mobile-link:nth-child(5) { transition-delay: 0.25s; }

  /* ── Menu Button Animation ── */
  #menuBtn.active .menu-line:nth-child(1) {
    transform: rotate(45deg) translate(4px, 4px);
  }
  #menuBtn.active .menu-line:nth-child(2) {
    opacity: 0;
  }
  #menuBtn.active .menu-line:nth-child(3) {
    width: 20px;
    transform: rotate(-45deg) translate(4px, -4px);
  }

  /* ── Floating Cards ── */
  @keyframes floatSlow {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-12px); }
  }

  @keyframes floatMedium {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-8px); }
  }

  @keyframes floatFast {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-16px); }
  }

  @keyframes floatBadge {
    0%, 100% { transform: translate(-50%, -50%) scale(1); }
    50% { transform: translate(-50%, -50%) scale(1.05); }
  }

  .float-slow {
    animation: floatSlow 6s ease-in-out infinite;
  }

  .float-medium {
    animation: floatMedium 4.5s ease-in-out infinite;
    animation-delay: 0.5s;
  }

  .float-fast {
    animation: floatFast 5s ease-in-out infinite;
    animation-delay: 1s;
  }

  .float-badge {
    animation: floatBadge 4s ease-in-out infinite;
  }

  /* ── Marquee ── */
  @keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
  }

  .animate-marquee {
    animation: marquee 30s linear infinite;
  }

  /* ── Bounce Slow ── */
  @keyframes bounceSlow {
    0%, 100% { transform: translate(-50%, -50%) translateY(0); }
    50% { transform: translate(-50%, -50%) translateY(-10px); }
  }

  .animate-bounce-slow {
    animation: bounceSlow 2.5s ease-in-out infinite;
  }

  /* ── Reveal Animations (progressive enhancement) ── */
  .reveal-up, .reveal-left, .reveal-right {
    opacity: 1;
    transform: none;
    transition: opacity 0.8s ease, transform 0.8s ease;
  }

  @media (prefers-reduced-motion: no-preference) {
    .reveal-up {
      opacity: 0;
      transform: translateY(40px);
    }
    .reveal-left {
      opacity: 0;
      transform: translateX(-40px);
    }
    .reveal-right {
      opacity: 0;
      transform: translateX(40px);
    }

    .reveal-up.revealed,
    .reveal-left.revealed,
    .reveal-right.revealed {
      opacity: 1;
      transform: none;
    }
  }

  /* ── Menu Item Hover ── */
  #menu .space-y-6 > div:hover {
    transform: translateX(4px);
    transition: transform 0.3s ease;
  }

  #menu .space-y-6 > div {
    transition: transform 0.3s ease;
  }

  /* ── Input Focus ── */
  input:focus, textarea:focus {
    box-shadow: 0 0 0 3px rgba(212, 160, 23, 0.15);
  }

  /* ── Button Ripple ── */
  button, a {
    cursor: pointer;
  }

  /* ── Responsive ── */
  @media (max-width: 768px) {
    .font-serif {
      word-spacing: -0.02em;
    }
  }

  @media (max-width: 640px) {
    #hero h1 {
      font-size: 3.5rem;
    }

    #about h2,
    #menu h2,
    #experience h2,
    #visit h2 {
      font-size: 3rem;
    }

    .animate-marquee {
      animation-duration: 20s;
    }
  }
