/* Custom styles for Island Hair Gallerie */

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

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

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

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

::-webkit-scrollbar-thumb:hover {
    background: #065f46;
}

/* Navbar scroll effect */
.nav-scrolled {
    background: rgba(254, 253, 248, 0.95) !important;
    backdrop-filter: blur(10px);
    box-shadow: 0 1px 0 rgba(4, 120, 87, 0.1);
}

.nav-scrolled .nav-link {
    color: #065f46 !important;
}

.nav-scrolled .mobile-nav-link {
    color: #065f46 !important;
}

.nav-scrolled .faux-logo svg path,
.nav-scrolled .faux-logo circle {
    stroke: #065f46 !important;
}

/* Service card hover effect */
.service-card {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* Mobile menu animation */
.mobile-menu-open #mobile-menu {
    transform: translateX(0);
}

.mobile-menu-open .mobile-nav-link {
    animation: fadeInUp 0.4s ease forwards;
    opacity: 0;
}

.mobile-menu-open .mobile-nav-link:nth-child(1) { animation-delay: 0.1s; }
.mobile-menu-open .mobile-nav-link:nth-child(2) { animation-delay: 0.15s; }
.mobile-menu-open .mobile-nav-link:nth-child(3) { animation-delay: 0.2s; }
.mobile-menu-open .mobile-nav-link:nth-child(4) { animation-delay: 0.25s; }

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mobile menu button animation */
.mobile-menu-open #mobile-menu-btn span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

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

.mobile-menu-open #mobile-menu-btn span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
    width: 1.5rem;
}

/* Selection color */
::selection {
    background: #047857;
    color: #fefdf8;
}

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    
    .service-card,
    .service-card img,
    .aspect-square img {
        transition: none;
    }
    
    .aspect-square img:hover,
    .service-card:hover img {
        transform: none;
    }
}
