  /* ===== 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(224, 122, 95, 0.3);
    color: #f6f6f7;
  }

  /* ===== SCROLLBAR ===== */
  ::-webkit-scrollbar {
    width: 6px;
  }
  ::-webkit-scrollbar-track {
    background: #13131f;
  }
  ::-webkit-scrollbar-thumb {
    background: #3e3e52;
    border-radius: 3px;
  }
  ::-webkit-scrollbar-thumb:hover {
    background: #525268;
  }

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

    .card-1 {
      animation-delay: 0s;
    }
    .card-2 {
      animation-delay: -1.5s;
      animation-duration: 7s;
    }
    .card-3 {
      animation-delay: -3s;
      animation-duration: 5.5s;
    }
    .card-4 {
      animation-delay: -4.5s;
      animation-duration: 6.5s;
    }

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

  /* ===== SCROLL REVEAL (progressive enhancement) ===== */
  @media (prefers-reduced-motion: no-preference) {
    .reveal {
      opacity: 1;
      transform: none;
      transition: opacity 0.8s ease, transform 0.8s ease;
    }

    .reveal[data-reveal] {
      opacity: 0;
      transform: translateY(24px);
    }

    .reveal[data-reveal].revealed {
      opacity: 1;
      transform: translateY(0);
    }
  }

  /* Fallback: always visible if JS disabled */
  .reveal {
    opacity: 1;
    transform: none;
  }

  /* ===== NAVBAR SCROLL STATE ===== */
  #navbar.scrolled {
    background: rgba(11, 11, 20, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(62, 62, 82, 0.4);
  }

  #navbar.scrolled .nav-link {
    color: #c4c4cc;
  }

  /* ===== MOBILE MENU TRANSITIONS ===== */
  #mobile-menu.open {
    opacity: 1;
    pointer-events: all;
  }

  /* ===== LINK UNDERLINE ANIMATION ===== */
  .nav-link {
    position: relative;
  }

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

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

  /* ===== CARD HOVER EFFECTS ===== */
  .reveal:hover .group {
    /* handled by Tailwind group utility on parent */
  }

  /* ===== IMAGE LAZY FADE ===== */
  img[loading="lazy"] {
    transition: opacity 0.5s ease;
  }

  /* ===== FOCUS STYLES ===== */
  a:focus-visible,
  button:focus-visible {
    outline: 2px solid #e07a5f;
    outline-offset: 4px;
    border-radius: 4px;
  }

  /* ===== UTILITY ===== */
  .font-thin {
    font-weight: 200;
  }
