/* Custom styles and overrides */

html {
    scroll-behavior: smooth;
}

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

/* Navbar scroll state */
#navbar.scrolled {
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

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

@keyframes float-medium {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-8px); }
}

@keyframes float-fast {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-16px); }
}

.card-float-slow {
    animation: float-slow 6s ease-in-out infinite;
}

.card-float-medium {
    animation: float-medium 5s ease-in-out infinite;
    animation-delay: 1s;
}

.card-float-fast {
    animation: float-fast 4.5s ease-in-out infinite;
    animation-delay: 0.5s;
}

/* Scroll reveal — progressive enhancement via JS, no default hidden state */
.scroll-reveal {
    /* Content is visible by default — JS adds animation class */
}

/* Mobile menu transitions */
#mobile-menu {
    transition: max-height 0.3s ease, opacity 0.3s ease;
}

#mobile-menu.hidden {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
}

#mobile-menu:not(.hidden) {
    max-height: 400px;
    opacity: 1;
}

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

::-webkit-scrollbar-track {
    background: #0a1f35;
}

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

::-webkit-scrollbar-thumb:hover {
    background: #e0bc5e;
}

/* Focus visible for accessibility */
*:focus-visible {
    outline: 2px solid #d4a843;
    outline-offset: 2px;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .card-float-slow,
    .card-float-medium,
    .card-float-fast {
        animation: none;
    }
}

/* Selection color */
::selection {
    background: #d4a843;
    color: #0a1f35;
}
