/* Custom styles for Stylistic Hair Studio */

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

/* Scroll reveal animations - progressive enhancement */
.scroll-reveal {
    opacity: 1;
    transform: none;
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

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

/* Decorative circles in hero */
.deco-circle {
    position: absolute;
    border-radius: 50%;
    opacity: 0.08;
}

.deco-1 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, #f9d0d9, transparent);
    top: -100px;
    right: -100px;
    animation: float 8s ease-in-out infinite;
}

.deco-2 {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, #f5beab, transparent);
    bottom: 10%;
    left: -50px;
    animation: float 10s ease-in-out infinite reverse;
}

.deco-3 {
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, #fce7eb, transparent);
    top: 40%;
    right: 10%;
    animation: float 6s ease-in-out infinite;
}

.deco-4 {
    width: 150px;
    height: 150px;
    background: radial-gradient(circle, #faddd0, transparent);
    bottom: 20%;
    right: 25%;
    animation: float 7s ease-in-out infinite reverse;
}

@keyframes float {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-20px) scale(1.05); }
}

/* Scroll indicator */
.scroll-indicator {
    animation: bounce 2s ease-in-out infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0) translateX(-50%); }
    40% { transform: translateY(-10px) translateX(-50%); }
    60% { transform: translateY(-5px) translateX(-50%); }
}

/* Navbar scroll state */
.nav-scrolled {
    background: rgba(255, 251, 247, 0.95) !important;
    backdrop-filter: blur(20px);
    box-shadow: 0 4px 30px rgba(161, 32, 55, 0.1);
}

.nav-scrolled .nav-link {
    color: #6e1a2e !important;
}

.nav-scrolled .logo-text {
    color: #6e1a2e !important;
}

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

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

::-webkit-scrollbar-thumb {
    background: linear-gradient(to bottom, #a12037, #e46b4e);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(to bottom, #841d33, #d65035);
}

/* Selection color */
::selection {
    background: #f9d0d9;
    color: #6e1a2e;
}

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

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

/* Button hover glow */
.bg-burgundy-700:hover,
.bg-burgundy-800:hover {
    box-shadow: 0 10px 40px rgba(161, 32, 55, 0.3);
}

/* Form focus states */
input:focus,
textarea:focus,
select:focus {
    box-shadow: 0 0 0 3px rgba(161, 32, 55, 0.1);
}

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

/* Reduced motion preference */
@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;
    }
    
    .scroll-reveal {
        opacity: 1;
        transform: none;
    }
}
