*, *::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;
}

::-webkit-scrollbar {
    width: 8px;
}

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

::-webkit-scrollbar-thumb {
    background: rgba(201, 168, 76, 0.3);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(201, 168, 76, 0.5);
}

/* Hero gradient animation */
.hero-gradient {
    background: 
        radial-gradient(ellipse 70% 50% at 30% 30%, rgba(0, 229, 192, 0.15) 0%, transparent 60%),
        radial-gradient(ellipse 60% 40% at 70% 70%, rgba(201, 168, 76, 0.12) 0%, transparent 55%),
        radial-gradient(ellipse 80% 60% at 50% 50%, rgba(67, 79, 163, 0.2) 0%, transparent 70%);
    animation: heroShift 12s ease-in-out infinite alternate;
}

@keyframes heroShift {
    0% {
        background: 
            radial-gradient(ellipse 70% 50% at 30% 30%, rgba(0, 229, 192, 0.15) 0%, transparent 60%),
            radial-gradient(ellipse 60% 40% at 70% 70%, rgba(201, 168, 76, 0.12) 0%, transparent 55%),
            radial-gradient(ellipse 80% 60% at 50% 50%, rgba(67, 79, 163, 0.2) 0%, transparent 70%);
    }
    50% {
        background: 
            radial-gradient(ellipse 60% 40% at 60% 40%, rgba(0, 229, 192, 0.12) 0%, transparent 55%),
            radial-gradient(ellipse 70% 50% at 40% 60%, rgba(201, 168, 76, 0.15) 0%, transparent 55%),
            radial-gradient(ellipse 70% 50% at 50% 50%, rgba(67, 79, 163, 0.18) 0%, transparent 65%);
    }
    100% {
        background: 
            radial-gradient(ellipse 65% 45% at 50% 35%, rgba(0, 229, 192, 0.13) 0%, transparent 58%),
            radial-gradient(ellipse 55% 50% at 55% 65%, rgba(201, 168, 76, 0.14) 0%, transparent 52%),
            radial-gradient(ellipse 75% 55% at 50% 50%, rgba(67, 79, 163, 0.22) 0%, transparent 68%);
    }
}

/* Hero animations */
.hero-anim {
    opacity: 0;
    transform: translateY(24px);
    animation: heroFadeIn 0.9s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.hero-anim:nth-child(1) { animation-delay: 0.2s; }
.hero-anim:nth-child(2) { animation-delay: 0.4s; }
.hero-anim:nth-child(3) { animation-delay: 0.6s; }
.hero-anim:nth-child(4) { animation-delay: 0.8s; }
.hero-anim:nth-child(5) { animation-delay: 1.0s; }

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

/* Scroll reveal */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1), transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

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

@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(32px);
    }
    .reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
}

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

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

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

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

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

/* Gold shimmer on hover for service cards */
.group:hover .group-hover\:text-gold-400 {
    transition: color 0.3s ease;
}

/* Subtle pulse for the hero CTA */
@keyframes subtlePulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(201, 168, 76, 0.2); }
    50% { box-shadow: 0 0 30px 4px rgba(201, 168, 76, 0.15); }
}

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

/* Image lazy load placeholder */
img {
    background: linear-gradient(135deg, #0f1532 0%, #060b18 100%);
}
