/* Base */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    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: #050D1A;
}
::-webkit-scrollbar-thumb {
    background: #1A3558;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #C9A84C;
}

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

/* Nav active state */
.nav-link.active {
    color: #D4B96A !important;
}

/* Scroll reveal base — always visible by default (progressive enhancement) */
.scroll-reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

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

/* Gold shimmer on hover for cards */
.group:hover .bg-gold-500\/10 {
    background-color: rgba(201, 168, 76, 0.15);
}

/* Form select arrow */
select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23C9A84C' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
}

/* Mobile menu animation */
#mobile-menu.open {
    transform: translateX(0);
}

/* Menu lines animation */
.menu-line {
    display: block;
}

#mobile-menu-btn.open .menu-line:nth-child(1) {
    transform: rotate(45deg) translate(4px, 4px);
}
#mobile-menu-btn.open .menu-line:nth-child(2) {
    opacity: 0;
}
#mobile-menu-btn.open .menu-line:nth-child(3) {
    transform: rotate(-45deg) translate(4px, -4px);
    width: 1.25rem;
}

/* Fade in for hero elements */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

#hero > .relative.z-10 > div > div:first-child > * {
    animation: fadeInUp 0.8s ease forwards;
}

#hero > .relative.z-10 > div > div:first-child > div:nth-child(2) {
    animation-delay: 0.1s;
}

#hero > .relative.z-10 > div > div:first-child > div:nth-child(3) {
    animation-delay: 0.2s;
}

#hero > .relative.z-10 > div > div:first-child > div:nth-child(4) {
    animation-delay: 0.3s;
}

#hero > .relative.z-10 > div > div:first-child > div:nth-child(5) {
    animation-delay: 0.4s;
}

#hero > .relative.z-10 > div > div:last-child {
    animation: fadeInUp 0.8s ease 0.3s forwards;
    opacity: 0;
}

/* Pulse animation for CTA */
@keyframes subtle-pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(201, 168, 76, 0.3); }
    50% { box-shadow: 0 0 20px 4px rgba(201, 168, 76, 0.15); }
}

.bg-gold-500:hover {
    animation: subtle-pulse 2s ease infinite;
}
