/* Base & Typography */
html {
    scroll-behavior: smooth;
}

body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Selection */
::selection {
    background-color: rgba(200, 169, 97, 0.3);
    color: #FDF8E8;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #040D1C;
}
::-webkit-scrollbar-thumb {
    background: #1A3F6E;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #C8A961;
}

/* Reveal Animations — progressive enhancement, only active with JS & no reduced-motion preference */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal[data-revealed="false"] {
    opacity: 0;
    transform: translateY(30px);
}

@media (prefers-reduced-motion: reduce) {
    .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
    .reveal[data-revealed="false"] {
        opacity: 1;
        transform: none;
    }
    html {
        scroll-behavior: auto;
    }
}

/* Hero image subtle parallax on scroll */
#hero img {
    will-change: transform;
}

/* Gold accent line animation */
.gold-line {
    position: relative;
    display: inline-block;
}
.gold-line::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #C8A961, #EBC55A);
    transition: width 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.gold-line:hover::after {
    width: 100%;
}

/* Card hover glow */
.group:hover .card-glow {
    opacity: 1;
}

/* Navbar transition states */
nav.scrolled {
    background: rgba(4, 13, 28, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 1px 0 rgba(200, 169, 97, 0.1);
}

/* Mobile menu transitions */
.mobile-link {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.3s ease, transform 0.3s ease, color 0.3s ease;
}

/* Input autofill styling */
input:-webkit-autofill,
textarea:-webkit-autofill {
    -webkit-box-shadow: 0 0 0 30px #040D1C inset !important;
    -webkit-text-fill-color: #FDF8E8 !important;
}
