*, *::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: #0A1628;
}
::-webkit-scrollbar-thumb {
    background: #1B3555;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #D4A843;
}

/* Selection */
::selection {
    background: rgba(212, 168, 67, 0.3);
    color: #fff;
}

/* Reveal animations — progressive enhancement */
@media (prefers-reduced-motion: no-preference) {
    .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);
    }
}

@media (prefers-reduced-motion: reduce) {
    .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

/* Navbar glass effect */
.navbar-scrolled {
    background: rgba(5, 10, 20, 0.9) !important;
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(212, 168, 67, 0.1);
}

/* Gold gradient line */
.gold-line {
    height: 2px;
    background: linear-gradient(90deg, transparent, #D4A843, transparent);
}

/* Image hover zoom */
img {
    max-width: 100%;
    height: auto;
}

/* Smooth focus outlines */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 2px solid #D4A843;
    outline-offset: 2px;
    border-radius: 4px;
}

/* Mobile menu transition */
#mobile-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
#mobile-menu.open {
    max-height: 500px;
}

/* Counter animation */
.counter-value {
    display: inline-block;
}

/* Testimonial card shimmer */
.reveal:nth-child(2) {
    transition-delay: 0.1s;
}
.reveal:nth-child(3) {
    transition-delay: 0.2s;
}
.reveal:nth-child(4) {
    transition-delay: 0.3s;
}
.reveal:nth-child(5) {
    transition-delay: 0.4s;
}
.reveal:nth-child(6) {
    transition-delay: 0.5s;
}
.reveal:nth-child(7) {
    transition-delay: 0.6s;
}
