/* Custom styles for Undersupply */

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

/* Body base */
body {
    font-family: 'DM Sans', sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Navbar styles */
#navbar {
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

#navbar.scrolled {
    background: rgba(5, 10, 21, 0.92);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: #33ffbe;
    border-radius: 1px;
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.nav-link:hover {
    color: #33ffbe !important;
}

/* Mobile links */
.mobile-link {
    display: block;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.mobile-link:last-child {
    border-bottom: none;
}

/* Hero section */
#hero {
    position: relative;
}

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

.reveal-on-scroll[data-reveal-delay="1"] {
    transition-delay: 0.1s;
}

.reveal-on-scroll[data-reveal-delay="2"] {
    transition-delay: 0.2s;
}

.reveal-on-scroll[data-reveal-delay="3"] {
    transition-delay: 0.3s;
}

.reveal-on-scroll[data-reveal-delay="4"] {
    transition-delay: 0.4s;
}

.reveal-on-scroll[data-reveal-delay="5"] {
    transition-delay: 0.5s;
}

.reveal-on-scroll[data-reveal-delay="6"] {
    transition-delay: 0.6s;
}

/* Scroll reveal hidden state (progressive enhancement - JS adds class) */
@media (prefers-reduced-motion: no-preference) {
    .reveal-hidden {
        opacity: 0;
        transform: translateY(30px);
    }
}

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

/* Button focus styles */
a:focus-visible, button:focus-visible {
    outline: 2px solid #33ffbe;
    outline-offset: 2px;
    border-radius: 4px;
}

/* Selection color */
::selection {
    background: rgba(51, 255, 190, 0.2);
    color: #fff;
}

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

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

::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.25);
}

/* Responsive adjustments */
@media (max-width: 640px) {
    .font-serif {
        line-height: 1.1;
    }
}

/* Ensure images don't overflow */
img {
    max-width: 100%;
    height: auto;
}
