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

html {
    scroll-behavior: smooth;
}

body {
    overflow-x: hidden;
}

/* Scroll reveal — progressive enhancement, only applies when JS runs and motion is preferred */
@media (prefers-reduced-motion: no-preference) {
    .scroll-reveal {
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.7s ease, transform 0.7s ease;
    }

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

/* Fallback: if JS is disabled or reduced-motion is set, ensure content is visible */
.scroll-reveal {
    opacity: 1;
    transform: none;
}

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

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

::-webkit-scrollbar-track {
    background: #050D1A;
}

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

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

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

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

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

/* Image loading placeholder */
img {
    background-color: #0A1628;
}
