/* Custom styles for Amazing Hair Grace */

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

/* Navbar scroll state */
.nav-logo-text {
    transition: color 0.3s ease;
}

#navbar.scrolled .nav-logo-text {
    color: #4b263a;
}

.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: #f59e0b;
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

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

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

.mobile-link {
    position: relative;
    transition: color 0.3s ease;
}

.mobile-link:hover {
    color: #f59e0b;
}

.mobile-link::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 2px;
    background: #f59e0b;
    transition: width 0.3s ease;
}

.mobile-link:hover::before {
    width: 20px;
}

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

.scroll-reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    
    .scroll-reveal {
        opacity: 1;
        transform: none;
    }
    
    .scroll-reveal * {
        transition: none !important;
    }
    
    img {
        transition: none !important;
    }
}

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

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

::-webkit-scrollbar-thumb {
    background: #dbaac4;
    border-radius: 5px;
}

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

/* Selection color */
::selection {
    background: #dbaac4;
    color: #2a1320;
}

/* Image hover effects */
img {
    transition: transform 0.5s ease;
}

/* Button focus states */
a:focus-visible, button:focus-visible {
    outline: 3px solid #fbbf24;
    outline-offset: 2px;
    border-radius: 4px;
}

/* Service card hover glow */
.group:hover .w-16 {
    box-shadow: 0 8px 25px -5px rgba(163, 82, 127, 0.3);
}

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

/* Hero decorative elements */
@media (prefers-reduced-motion: no-preference) {
    .absolute.top-20.right-0,
    .absolute.bottom-20.left-0,
    .absolute.-bottom-6.-left-6,
    .absolute.-top-6.-right-6 {
        animation: float 6s ease-in-out infinite;
    }
    
    .absolute.bottom-20.left-0 {
        animation-delay: 1s;
    }
    
    .absolute.-top-6.-right-6 {
        animation-delay: 2s;
    }
}
