/* Custom Styles for Javiana Rivero Nails Studio */

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

/* Base Typography */
body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Hero Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

.animate-fade-in:nth-child(2) {
    animation-delay: 0.2s;
}

.animate-fade-in:nth-child(3) {
    animation-delay: 0.4s;
}

.animate-fade-in:nth-child(4) {
    animation-delay: 0.6s;
}

/* Scroll Indicator */
@keyframes scroll {
    0% {
        transform: translateY(-100%);
    }
    100% {
        transform: translateY(400%);
    }
}

.animate-scroll {
    animation: scroll 1.5s ease-in-out infinite;
}

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

.reveal.hidden {
    opacity: 0;
    transform: translateY(30px);
}

/* Mobile Menu Animation */
#mobile-menu {
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

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

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

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

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

/* Selection Color */
::selection {
    background: #f8d7cc;
    color: #1a1a1a;
}

/* Focus States */
input:focus,
textarea:focus,
select:focus,
button:focus {
    outline: none;
}

/* Image Loading */
img {
    opacity: 1;
    transition: opacity 0.3s ease-in-out;
}

img[data-src] {
    opacity: 0;
}

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

/* Mobile Menu Active State */
body.menu-open {
    overflow: hidden;
}

body.menu-open #mobile-menu {
    transform: translateX(0);
}

body.menu-open #mobile-menu-btn span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

body.menu-open #mobile-menu-btn span:nth-child(2) {
    opacity: 0;
}

body.menu-open #mobile-menu-btn span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
    width: 1.5rem;
}
