/* Custom styles for TaShell's Country Heaven Boutique */

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

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

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Scroll reveal animations - applied only via JS for progressive enhancement */
@media (prefers-reduced-motion: no-preference) {
    .reveal-up {
        opacity: 0;
        animation: fadeInUp 0.8s ease-out forwards;
    }
    
    .reveal-left {
        opacity: 0;
        animation: fadeInLeft 0.8s ease-out forwards;
    }
    
    .reveal-right {
        opacity: 0;
        animation: fadeInRight 0.8s ease-out forwards;
    }
}

/* Ensure content is visible even without JS */
@media not all and (prefers-reduced-motion: no-preference) {
    .reveal-up,
    .reveal-left,
    .reveal-right {
        opacity: 1;
    }
}

/* Hover effects for interactive elements */
a, button {
    transition: all 0.3s ease;
}

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

::-webkit-scrollbar-track {
    background: #1a1a1a;
}

::-webkit-scrollbar-thumb {
    background: #c05621;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #9c4217;
}

/* Focus styles for accessibility */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
    outline: 2px solid #c05621;
    outline-offset: 2px;
}

/* Image loading optimization */
img {
    loading: lazy;
}

/* Form focus states */
input:focus,
textarea:focus {
    border-color: #c05621;
    box-shadow: 0 0 0 3px rgba(192, 86, 33, 0.1);
}

/* Mobile menu transitions */
#mobile-menu {
    transition: opacity 0.3s ease, max-height 0.3s ease;
}

#mobile-menu.hidden {
    opacity: 0;
    max-height: 0;
}

#mobile-menu:not(.hidden) {
    opacity: 1;
    max-height: 300px;
}
