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

html {
    scroll-behavior: smooth;
}

body {
    overflow-x: hidden;
}

/* Scroll reveal — progressive enhancement, only applies when JS runs */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.7s ease, transform 0.7s ease;
    }
    
    .reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
    
    .stat-card {
        opacity: 0;
        transform: translateX(30px);
        transition: opacity 0.6s ease, transform 0.6s ease;
    }
    
    .stat-card.revealed {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Navbar scroll state */
nav.scrolled {
    background: rgba(3, 7, 18, 0.92) !important;
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(212, 175, 55, 0.1);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

/* Gold gradient text utility */
.text-gold-gradient {
    background: linear-gradient(135deg, #d4af37, #c9a227);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

::-webkit-scrollbar-track {
    background: #030712;
}

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

::-webkit-scrollbar-thumb:hover {
    background: #059669;
}

/* Selection color */
::selection {
    background: rgba(4, 120, 87, 0.4);
    color: #fefdf8;
}

/* Service card shine effect */
.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.03), transparent);
    transition: left 0.7s ease;
    pointer-events: none;
}

.service-card:hover::before {
    left: 100%;
}

.service-card {
    position: relative;
    overflow: hidden;
}

/* Mobile menu transition */
#mobileMenu {
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Pulse animation for live indicator */
@keyframes softPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.animate-pulse {
    animation: softPulse 2s ease-in-out infinite;
}

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

.stat-card:nth-child(1) { animation: float 6s ease-in-out infinite; }
.stat-card:nth-child(2) { animation: float 6s ease-in-out infinite 1s; }
.stat-card:nth-child(3) { animation: float 6s ease-in-out infinite 2s; }

/* Subtle gold line accent */
.gold-accent {
    position: relative;
}

.gold-accent::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #d4af37, transparent);
    margin-top: 1rem;
    border-radius: 2px;
}
