/* Custom Styles for Emeline's Braids */

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

/* Base Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in-up {
    animation: fadeInUp 0.8s ease-out forwards;
}

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

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

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    .scroll-reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
    
    .animate-fade-in-up {
        animation: none;
        opacity: 1;
    }
    
    html {
        scroll-behavior: auto;
    }
}

/* Mobile Menu Transitions */
#mobile-menu {
    transition: max-height 0.3s ease-out, opacity 0.3s ease-out;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
}

#mobile-menu.open {
    max-height: 400px;
    opacity: 1;
}

/* Image Hover Effects */
.group:hover .group-hover\:scale-105 {
    transform: scale(1.05);
}

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

::-webkit-scrollbar-track {
    background: #0F0A0C;
}

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

::-webkit-scrollbar-thumb:hover {
    background: #8B2E3F;
}

/* Focus Styles */
*:focus-visible {
    outline: 2px solid #D4AF37;
    outline-offset: 2px;
}

/* Input Autofill */
input:-webkit-autofill,
textarea:-webkit-autofill,
select:-webkit-autofill {
    -webkit-box-shadow: 0 0 0 30px #0F0A0C inset !important;
    -webkit-text-fill-color: #FDF8F6 !important;
}

/* Selection Color */
::selection {
    background: #6B1D2A;
    color: #F4E4E1;
}

/* Loading State */
.loading {
    opacity: 0.7;
    pointer-events: none;
}

/* Button Ripple Effect */
button::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(212, 175, 55, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

button:active::after {
    width: 300px;
    height: 300px;
}
