/* Custom styles for Bostic Time */

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

/* Navbar scroll state */
#navbar.scrolled {
    background: rgba(9, 21, 40, 0.95);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(14, 45, 86, 0.5);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

/* Menu tabs */
.menu-tab {
    background: transparent;
    color: #8da4cf;
    border: 1px solid transparent;
}

.menu-tab:hover {
    color: #f0a800;
    border-color: rgba(240, 168, 0, 0.3);
}

.menu-tab.active {
    background: rgba(240, 168, 0, 0.15);
    color: #f0a800;
    border-color: rgba(240, 168, 0, 0.4);
}

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

/* Only apply hidden state when animation is active via JS */
.scroll-reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

.scroll-reveal.reveal-hidden {
    opacity: 0;
    transform: translateY(30px);
}

/* Mobile menu */
#mobile-menu {
    animation: slideDown 0.2s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Floating card animations */
@keyframes float1 {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-8px); }
}

@keyframes float2 {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(6px); }
}

@keyframes float3 {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-5px); }
}

/* Apply floating animations only when JS is active */
.js-enabled .absolute.right-0 > div:nth-child(1) {
    animation: float1 4s ease-in-out infinite;
}

.js-enabled .absolute.right-12 > div {
    animation: float2 5s ease-in-out infinite;
}

.js-enabled .absolute.right-4 > div {
    animation: float3 3.5s ease-in-out infinite;
}

/* Gold accent line */
.gold-line {
    height: 2px;
    background: linear-gradient(90deg, #f0a800, transparent);
}

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

::-webkit-scrollbar-track {
    background: #091528;
}

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

::-webkit-scrollbar-thumb:hover {
    background: #2d5192;
}

/* Selection color */
::selection {
    background: rgba(240, 168, 0, 0.3);
    color: #f0a800;
}

/* 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;
    }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .font-display {
        line-height: 1.15;
    }
}
