/* Custom styles for Presidential Gifts */

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #060B18;
}
::-webkit-scrollbar-thumb {
    background: #D4A843;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #E8C05A;
}

/* Navigation scroll state */
#navbar.scrolled {
    background: rgba(6, 11, 24, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(212, 168, 67, 0.1);
}

/* Nav link underline animation */
.nav-link {
    position: relative;
}
.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: #D4A843;
    transition: width 0.3s ease;
}
.nav-link:hover::after {
    width: 100%;
}

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

/* Scroll reveal base - content always visible by default */
.reveal {
    opacity: 1;
    transform: none;
    transition: opacity 0.8s ease, transform 0.8s ease;
}

/* Only apply reveal animation when JS is enabled and user prefers motion */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(30px);
    }
    .reveal.visible {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Hero text entrance - only for below-fold content */
.hero-reveal {
    opacity: 1;
    transform: none;
}

@media (prefers-reduced-motion: no-preference) {
    .hero-reveal {
        opacity: 0;
        transform: translateY(20px);
        animation: heroFadeIn 1s ease forwards;
    }
    .hero-reveal:nth-child(2) { animation-delay: 0.2s; }
    .hero-reveal:nth-child(3) { animation-delay: 0.4s; }
    .hero-reveal:nth-child(4) { animation-delay: 0.6s; }
}

@keyframes heroFadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Gold shimmer effect on hover for buttons */
button:hover, a:hover {
    /* handled via Tailwind classes */
}

/* Image loading placeholder */
img {
    background: linear-gradient(135deg, #0A0F1E 0%, #1a2332 100%);
}

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

/* Focus styles */
a:focus-visible, button:focus-visible {
    outline: 2px solid #D4A843;
    outline-offset: 2px;
}

/* Reduce motion preference */
@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;
    }
}
