  *, *::before, *::after {
    box-sizing: border-box;
  }

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

  body {
    overflow-x: hidden;
  }

  ::selection {
    background: rgba(201, 168, 76, 0.3);
    color: #f0f0f0;
  }

  /* Scroll reveal animations */
  .reveal-up {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  }

  .reveal-left {
    opacity: 0;
    transform: translateX(-40px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  }

  .reveal-right {
    opacity: 0;
    transform: translateX(40px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  }

  .reveal-up.revealed,
  .reveal-left.revealed,
  .reveal-right.revealed {
    opacity: 1;
    transform: translate(0, 0);
  }

  /* Hero animations */
  .hero-subtitle-up {
    opacity: 0;
    transform: translateY(20px);
    animation: heroFadeUp 0.8s 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  }

  .hero-title-up {
    opacity: 0;
    transform: translateY(30px);
    animation: heroFadeUp 0.8s 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  }

  .hero-fade {
    opacity: 0;
    animation: heroFade 1s 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  }

  .hero-fade:nth-of-type(2) {
    animation-delay: 1s;
  }

  @keyframes heroFadeUp {
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  @keyframes heroFade {
    to {
      opacity: 1;
    }
  }

  /* Navbar scroll state */
  #navbar.scrolled {
    background: rgba(6, 14, 20, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(201, 168, 76, 0.1);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
  }

  #navbar.scrolled .nav-link {
    color: rgba(226, 232, 240, 0.8);
  }

  /* Active nav link */
  .nav-link.active {
    color: #d4af5a !important;
  }

  /* Gold accent line on hover for nav links */
  .nav-link::after {
    content: '';
    display: block;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #c9a84c, #e8c96a);
    transition: width 0.3s ease;
    margin-top: 2px;
  }

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

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

  /* Parallax hero background */
  .hero-bg {
    will-change: transform;
  }

  /* Image hover zoom */
  .group img {
    will-change: transform;
  }

  /* Subtle glow effects */
  .glow-gold {
    box-shadow: 0 0 40px rgba(201, 168, 76, 0.15);
  }

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

  ::-webkit-scrollbar-track {
    background: #060e14;
  }

  ::-webkit-scrollbar-thumb {
    background: #2a3f50;
    border-radius: 4px;
  }

  ::-webkit-scrollbar-thumb:hover {
    background: #3d5466;
  }

  /* Back to top button */
  #back-to-top.visible {
    opacity: 1;
    pointer-events: all;
  }

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

  /* Smooth transitions for interactive elements */
  a, button {
    transition: all 0.2s ease;
  }

  /* Ensure images don't overflow */
  img {
    max-width: 100%;
    height: auto;
  }

  /* Reduce motion for users who prefer it */
  @media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
      animation-duration: 0.01ms !important;
      animation-iteration-count: 1 !important;
      transition-duration: 0.01ms !important;
    }
    html {
      scroll-behavior: auto;
    }
    .reveal-up, .reveal-left, .reveal-right {
      opacity: 1;
      transform: none;
    }
  }

  /* Mobile-specific adjustments */
  @media (max-width: 768px) {
    .font-display {
      line-height: 1.1;
    }
  }
