/* Custom styles for Shic Hair Studio */

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

/* Prevent flash of hidden content */
body {
    opacity: 1 !important;
}

/* Navbar transitions */
#navbar {
    transition: background-color 0.4s ease, box-shadow 0.4s ease, padding 0.4s ease;
}

#navbar.scrolled {
    background-color: rgba(242, 252, 249, 0.95);
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 20px rgba(16, 42, 67, 0.08);
}

#navbar.scrolled .font-serif {
    color: #102a43 !important;
}

/* Mobile menu */
#mobileMenu {
    transition: opacity 0.4s ease, visibility 0.4s ease, transform 0.4s ease;
}

#mobileMenu.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

#mobileMenu.closed {
    opacity: 0;
    visibility: hidden;
    transform: translateY(-20px);
}

/* Service card hover */
.service-card {
    transform: translateY(0);
    transition: transform 0.4s ease, box-shadow 0.4s ease, background-color 0.4s ease;
}

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

/* Gallery image hover */
.gallery-item {
    overflow: hidden;
    border-radius: 1rem;
}

.gallery-item img {
    transition: transform 0.7s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

/* Floating animation for decorative elements */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

.float-1 { animation: float 6s ease-in-out infinite; }
.float-2 { animation: float 8s ease-in-out infinite; }
.float-3 { animation: float 5s ease-in-out infinite; }

/* Subtle gradient text */
.gradient-text {
    background: linear-gradient(135deg, #102a43 0%, #36a888 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Selection color */
::selection {
    background-color: #c3efdf;
    color: #102a43;
}

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

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

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

::-webkit-scrollbar-thumb:hover {
    background: #5ec9a8;
}

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

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

/* Form focus states */
input:focus,
textarea:focus,
select:focus {
    box-shadow: 0 0 0 3px rgba(94, 201, 168, 0.2);
}

/* Image loading placeholder */
img {
    background: linear-gradient(135deg, #e1f8f0 0%, #d9e2ec 100%);
}
