*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { overflow-x: hidden; }

/* Custom scrollbar */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #040c08; }
::-webkit-scrollbar-thumb { background: #2d542d; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #C9A84C; }

/* Floating animation for hero cards */
@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-12px); }
}

.floating-card {
  animation: float var(--float-dur, 3.5s) ease-in-out infinite;
  animation-delay: var(--float-delay, 0s);
}

.floating-card:nth-child(1) { --float-dur: 4s; --float-delay: 0s; }
.floating-card:nth-child(2) { --float-dur: 3.5s; --float-delay: 0.5s; }
.floating-card:nth-child(3) { --float-dur: 4.5s; --float-delay: 1s; }
.floating-card:nth-child(4) { --float-dur: 3s; --float-delay: 0.3s; }

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

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* Service card hover glow */
.service-card:hover {
  box-shadow: 0 0 40px rgba(201, 168, 76, 0.08), 0 20px 40px rgba(0, 0, 0, 0.3);
}

/* Frame card hover */
.frame-card:hover .aspect-\[4\/3\] img {
  transform: scale(1.05);
}

/* Gold gradient text utility */
.text-gold-gradient {
  background: linear-gradient(135deg, #C9A84C 0%, #e0c878 50%, #9a7a30 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Mobile menu transitions */
#mobile-menu {
  transition: opacity 0.4s ease, visibility 0.4s ease;
}
#mobile-menu.open {
  opacity: 1 !important;
  pointer-events: all !important;
}

/* Reduced motion */
@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 {
    opacity: 1;
    transform: none;
  }
}

/* Selection color */
::selection {
  background: rgba(201, 168, 76, 0.3);
  color: #FAF8F3;
}
