/* Custom Styles for root. Hair and Beauty */

/* Base Styles */
html {
    scroll-behavior: smooth;
}

body {
    overflow-x: hidden;
}

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

/* Scroll Reveal Animation (Progressive Enhancement) */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.8s ease-out, transform 0.8s ease-out;
    }
    
    .reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
}

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

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

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

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

/* Focus Styles */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
    outline: 2px solid #E5A800;
    outline-offset: 2px;
}

/* Selection Color */
::selection {
    background-color: #E8C4D1;
    color: #4A233A;
}

/* Image Optimization */
img {
    max-width: 100%;
    height: auto;
}

/* Form Focus States */
input:focus,
textarea:focus,
select:focus {
    border-color: #A84B6E !important;
}

/* Smooth Transitions */
* {
    transition-property: background-color, border-color, color;
    transition-duration: 300ms;
}

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

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