/* Custom styles for Holly's Hair Studio */

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

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #faf5fb;
}
::-webkit-scrollbar-thumb {
    background: #d9afd9;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #b573b5;
}

/* Floating card animations */
.float-card-1 {
    animation: float1 4s ease-in-out infinite;
}
.float-card-2 {
    animation: float2 5s ease-in-out infinite;
}
.float-card-3 {
    animation: float3 4.5s ease-in-out infinite;
}

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

@keyframes float2 {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(10px); }
}

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

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

@media (prefers-reduced-motion: no-preference) {
    .scroll-reveal {
        opacity: 0;
        transform: translateY(30px);
    }
    .scroll-reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Navbar styles */
#navbar {
    background: rgba(250, 245, 251, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(217, 175, 217, 0.2);
}

#navbar.scrolled {
    box-shadow: 0 4px 20px rgba(123, 45, 142, 0.1);
}

/* Mobile menu */
#mobileMenu {
    animation: menuFadeIn 0.3s ease;
}

@keyframes menuFadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.mobile-link {
    position: relative;
}

.mobile-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(to right, #7b2d8e, #d97706);
    transition: width 0.3s ease;
}

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

/* Hero gradient text effect */
.font-display em {
    font-style: italic;
}

/* Service card hover effect */
.group:hover .group-hover\:scale-110 {
    transform: scale(1.1);
}

/* Image hover zoom */
.group:hover .group-hover\:scale-110 {
    transform: scale(1.1);
}

/* Selection color */
::selection {
    background: #d9afd9;
    color: #3a163f;
}
