/* Base & Reset */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    background-color: #020c1b;
    color: #ffffff;
}

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

.nav-link:hover {
    color: #e6c066;
}

/* Navbar scroll state */
#navbar.scrolled {
    background: rgba(2, 12, 27, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(212, 168, 67, 0.1);
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
}

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

.mobile-link {
    font-size: 1.5rem;
    transition: color 0.3s ease;
}

/* Scroll reveal */
.scroll-reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .scroll-reveal {
        opacity: 1;
        transform: none;
    }
    
    html {
        scroll-behavior: auto;
    }
    
    .group img {
        transition: none;
    }
}

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

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

/* Apply floating to hero cards */
#hero .absolute > div {
    animation: float 6s ease-in-out infinite;
}

#hero .absolute > div:nth-child(2) {
    animation-delay: -1.5s;
    animation-duration: 7s;
}

#hero .absolute > div:nth-child(3) {
    animation-delay: -3s;
    animation-duration: 5.5s;
}

#hero .absolute > div:nth-child(4) {
    animation-delay: -4.5s;
    animation-duration: 6.5s;
}

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

::-webkit-scrollbar-track {
    background: #020c1b;
}

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

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

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

/* Focus visible */
a:focus-visible, button:focus-visible {
    outline: 2px solid #d4a843;
    outline-offset: 4px;
    border-radius: 4px;
}
