  /* === Base & Utilities === */
  *, *::before, *::after {
    box-sizing: border-box;
  }

  html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
  }

  body {
    overflow-x: hidden;
  }

  ::selection {
    background: rgba(181, 105, 78, 0.3);
    color: #e8c4a0;
  }

  /* === Scroll Reveal (progressive enhancement) === */
  @media (prefers-reduced-motion: no-preference) {
    .scroll-reveal {
      opacity: 0;
      transform: translateY(30px);
      transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94), transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    }

    .scroll-reveal.revealed {
      opacity: 1;
      transform: translateY(0);
    }
  }

  /* Default visible state for reduced-motion or no-JS */
  @media (prefers-reduced-motion: reduce) {
    .scroll-reveal {
      opacity: 1;
      transform: none;
    }
  }

  /* === Floating Cards Animation === */
  @media (prefers-reduced-motion: no-preference) {
    .floating-card {
      animation: float 6s ease-in-out infinite;
    }

    .floating-card:nth-child(1) {
      animation-delay: 0s;
    }

    .floating-card:nth-child(2) {
      animation-delay: -1.5s;
    }

    .floating-card:nth-child(3) {
      animation-delay: -3s;
    }

    .floating-card:nth-child(4) {
      animation-delay: -4.5s;
    }

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

  /* === Scroll Indicator === */
  @media (prefers-reduced-motion: no-preference) {
    .animate-scroll-indicator {
      animation: scrollDown 1.8s ease-in-out infinite;
    }

    @keyframes scrollDown {
      0% { top: -16px; opacity: 0; }
      50% { opacity: 1; }
      100% { top: 48px; opacity: 0; }
    }
  }

  /* === Navbar Scroll State === */
  nav.scrolled {
    background: rgba(14, 11, 8, 0.92);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(232, 196, 160, 0.07);
    box-shadow: 0 4px 40px rgba(0, 0, 0, 0.3);
  }

  /* === Mobile Menu === */
  .mobile-menu-open #mobileMenu {
    opacity: 1;
    pointer-events: all;
  }

  .mobile-menu-open .menu-line-1 {
    transform: rotate(45deg) translate(4px, 4px);
  }

  .mobile-menu-open .menu-line-2 {
    opacity: 0;
  }

  .mobile-menu-open .menu-line-3 {
    transform: rotate(-45deg) translate(4px, -4px);
    width: 1.5rem;
  }

  .mobile-link {
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.4s ease, transform 0.4s ease, color 0.3s ease;
  }

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

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

  /* === Custom Scrollbar === */
  ::-webkit-scrollbar {
    width: 8px;
  }

  ::-webkit-scrollbar-track {
    background: #0e0b08;
  }

  ::-webkit-scrollbar-thumb {
    background: rgba(181, 105, 78, 0.4);
    border-radius: 4px;
  }

  ::-webkit-scrollbar-thumb:hover {
    background: rgba(181, 105, 78, 0.6);
  }

  /* === Focus Styles === */
  a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
    outline: 2px solid #b5694e;
    outline-offset: 2px;
  }

  /* === Date Input Fix === */
  input[type="date"] {
    color-scheme: dark;
  }

  /* === Select Arrow === */
  select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23e8c4a0' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 36px;
  }
