/* Custom styles — overrides and enhancements beyond Tailwind */

/* Smooth scroll offset for fixed navbar */
section[id] {
    scroll-margin-top: 80px;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #0A1628;
}
::-webkit-scrollbar-thumb {
    background: #1B3A73;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #C8963E;
}

/* Selection color */
::selection {
    background: rgba(200, 150, 62, 0.3);
    color: #0A1628;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    html {
        scroll-behavior: auto;
    }
}

/* Scroll reveal base state — always visible */
.reveal {
    opacity: 1;
    transform: none;
}

/* Scroll reveal enhanced state — only active when JS runs and preference allows */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 1;
        transform: translateY(0);
        transition: opacity 0.6s ease, transform 0.6s ease;
    }
    .reveal.delay-1 { transition-delay: 0.1s; }
    .reveal.delay-2 { transition-delay: 0.2s; }
    .reveal.delay-3 { transition-delay: 0.3s; }
    .reveal.delay-4 { transition-delay: 0.4s; }
}

/* Gold accent line animation */
.gold-line {
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #C8963E, #E0BC5E);
    border-radius: 2px;
}

/* Card hover glow */
.card-glow:hover {
    box-shadow: 0 0 40px rgba(200, 150, 62, 0.15);
}

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