/* Custom styles for One Team Nutrition Bar */

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

/* Scroll reveal animations - progressive enhancement only */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 1;
        transform: translateY(0);
        transition: opacity 0.6s ease, transform 0.6s ease;
    }
}

/* Navbar scroll state */
.nav-scrolled {
    background: rgba(19, 21, 24, 0.95) !important;
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.05);
}

.nav-scrolled .nav-text {
    color: #ffffff !important;
}

/* Mobile menu transitions */
#mobileMenu {
    animation: slideDown 0.3s ease;
}

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

.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;
}

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

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

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

::-webkit-scrollbar-thumb:hover {
    background: #60636b;
}

/* Selection color */
::selection {
    background: rgba(255, 107, 63, 0.3);
    color: #ffffff;
}

/* Image loading placeholder */
img {
    background: linear-gradient(135deg, #272a2f 0%, #31343a 100%);
}

/* Button focus states */
button:focus-visible,
a:focus-visible {
    outline: 2px solid #ff6b3f;
    outline-offset: 2px;
}

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