/* Custom styles for Two Pines Hair Co. */

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

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

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

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

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

/* Floating card animations */
.floating-card {
    animation: float 6s ease-in-out infinite;
}

.floating-card:nth-child(1) {
    animation-delay: 0s;
}

.floating-card:nth-child(2) {
    animation-delay: -1.5s;
}

.floating-card:nth-child(3) {
    animation-delay: -3s;
}

.floating-card:nth-child(4) {
    animation-delay: -4.5s;
}

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

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

.animate-scroll-line {
    animation: scroll-line 2s ease-in-out infinite;
}

/* Service card hover effect */
.service-card {
    transform: translateY(0);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-card:hover {
    transform: translateY(-8px);
}

/* Gallery item hover */
.gallery-item {
    cursor: pointer;
}

/* Mobile menu transitions */
.mobile-link {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s ease;
}

#mobileMenu.open .mobile-link:nth-child(1) { opacity: 1; transform: translateY(0); transition-delay: 0.1s; }
#mobileMenu.open .mobile-link:nth-child(2) { opacity: 1; transform: translateY(0); transition-delay: 0.2s; }
#mobileMenu.open .mobile-link:nth-child(3) { opacity: 1; transform: translateY(0); transition-delay: 0.3s; }
#mobileMenu.open .mobile-link:nth-child(4) { opacity: 1; transform: translateY(0); transition-delay: 0.4s; }
#mobileMenu.open .mobile-link:nth-child(5) { opacity: 1; transform: translateY(0); transition-delay: 0.5s; }

/* Navbar scroll state */
.nav-scrolled {
    background: rgba(5, 5, 5, 0.95) !important;
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

/* Selection color */
::selection {
    background: rgba(201, 162, 39, 0.3);
    color: #fff;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .floating-card {
        animation: none;
    }
    
    html {
        scroll-behavior: auto;
    }
    
    .service-card:hover {
        transform: none;
    }
    
    .gallery-item img {
        transition: none;
    }
}

/* Mobile responsive adjustments */
@media (max-width: 768px) {
    .floating-card {
        display: none;
    }
}
