/* Custom styles for Blood Sweat & Shears */

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

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

::-webkit-scrollbar-track {
    background: #1E1E28;
}

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

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

/* Scroll indicator animation */
@keyframes scrollIndicator {
    0% {
        top: -16px;
        opacity: 1;
    }
    100% {
        top: 48px;
        opacity: 0;
    }
}

.animate-scroll-indicator {
    animation: scrollIndicator 1.5s ease-in-out infinite;
}

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

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

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

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

/* Mobile menu animations */
.menu-line {
    display: block;
}

#mobile-menu-btn.active .menu-line:nth-child(1) {
    transform: rotate(45deg) translate(4px, 4px);
}

#mobile-menu-btn.active .menu-line:nth-child(2) {
    opacity: 0;
}

#mobile-menu-btn.active .menu-line:nth-child(3) {
    transform: rotate(-45deg) translate(4px, -4px);
}

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

nav.scrolled .font-serif,
nav.scrolled .text-charcoal-900 {
    color: #1E1E28 !important;
}

nav.scrolled a:not(.bg-charcoal-900):not(.bg-gradient-to-r) {
    color: #4A4A5A !important;
}

nav.scrolled a:not(.bg-charcoal-900):not(.bg-gradient-to-r):hover {
    color: #FF5A42 !important;
}

/* Light navbar for hero */
nav:not(.scrolled) .font-serif,
nav:not(.scrolled) .text-charcoal-900 {
    color: #FFFFFF !important;
}

nav:not(.scrolled) a:not(.bg-charcoal-900):not(.bg-gradient-to-r) {
    color: rgba(255, 255, 255, 0.8) !important;
}

nav:not(.scrolled) a:not(.bg-charcoal-900):not(.bg-gradient-to-r):hover {
    color: #FFA896 !important;
}

nav:not(.scrolled) .menu-line {
    background: #FFFFFF !important;
}

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    
    .scroll-reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
    
    .animate-scroll-indicator {
        animation: none;
    }
    
    .group:hover .group-hover\:scale-110 {
        transform: none;
    }
    
    .group:hover .group-hover\:scale-110 {
        transform: none;
    }
}

/* Selection color */
::selection {
    background: #FF7B66;
    color: #FFFFFF;
}

/* Focus visible styles */
:focus-visible {
    outline: 2px solid #FF7B66;
    outline-offset: 2px;
}

/* Mobile menu link transitions */
.mobile-link {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.3s ease, transform 0.3s ease, color 0.3s ease;
}

#mobile-menu.open .mobile-link {
    opacity: 1;
    transform: translateY(0);
}

#mobile-menu.close .mobile-link {
    opacity: 0;
    transform: translateY(10px);
}
