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

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

  body {
    overflow-x: hidden;
  }

  ::selection {
    background: rgba(212, 148, 58, 0.3);
    color: #F9F0F7;
  }

  /* Scrollbar */
  ::-webkit-scrollbar {
    width: 6px;
  }
  ::-webkit-scrollbar-track {
    background: #1A0C17;
  }
  ::-webkit-scrollbar-thumb {
    background: #6B2F5B;
    border-radius: 3px;
  }
  ::-webkit-scrollbar-thumb:hover {
    background: #8A3A74;
  }

  /* Navigation */
  #nav {
    background: transparent;
    transition: background 0.5s ease, backdrop-filter 0.5s ease;
  }

  #nav.scrolled {
    background: rgba(26, 12, 23, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(107, 47, 91, 0.2);
  }

  /* Scroll Reveal Animations */
  .reveal-up, .reveal-left, .reveal-right {
    opacity: 1;
    transform: none;
    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);
  }

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

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

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

  #mobile-menu.closed {
    opacity: 0;
    pointer-events: none;
  }

  /* Menu Toggle Animation */
  #menu-toggle.active .menu-line:nth-child(1) {
    transform: rotate(45deg);
    top: 4px;
  }
  #menu-toggle.active .menu-line:nth-child(2) {
    opacity: 0;
  }
  #menu-toggle.active .menu-line:nth-child(3) {
    transform: rotate(-45deg);
    width: 1.5rem;
  }

  /* Hover line animation for nav links */
  .nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: linear-gradient(90deg, #D4943A, #FFD970);
    transition: width 0.3s ease;
  }

  .nav-link {
    position: relative;
  }

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

  /* Image hover effects */
  .group img {
    transition: transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  }

  /* Form focus styles */
  input:focus, textarea:focus {
    outline: none;
  }

  /* Subtle grain overlay */
  body::after {
    content: '';
    position: fixed;
    inset: 0;
    pointer-events: none;
    opacity: 0.025;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
    background-repeat: repeat;
    z-index: 9999;
  }

  /* Transition utilities */
  @media (prefers-reduced-motion: no-preference) {
    .transition-smooth {
      transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    }
  }

  /* Smooth section transitions */
  section {
    position: relative;
  }

  /* Input placeholder */
  ::placeholder {
    color: rgba(168, 78, 146, 0.4);
  }

  /* Focus visible for accessibility */
  a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
    outline: 1px solid rgba(212, 148, 58, 0.5);
    outline-offset: 2px;
  }
