/* Custom styles for Joyeria Nelly */

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

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

/* Scroll reveal animations - progressive enhancement */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.6s ease-out, transform 0.6s ease-out;
    }
    
    .reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
    
    /* Stagger children animations */
    .reveal-stagger > * {
        opacity: 0;
        transform: translateY(20px);
        transition: opacity 0.5s ease-out, transform 0.5s ease-out;
    }
    
    .reveal-stagger.revealed > *:nth-child(1) { transition-delay: 0.1s; }
    .reveal-stagger.revealed > *:nth-child(2) { transition-delay: 0.2s; }
    .reveal-stagger.revealed > *:nth-child(3) { transition-delay: 0.3s; }
    .reveal-stagger.revealed > *:nth-child(4) { transition-delay: 0.4s; }
    .reveal-stagger.revealed > *:nth-child(5) { transition-delay: 0.5s; }
    .reveal-stagger.revealed > *:nth-child(6) { transition-delay: 0.6s; }
    
    .reveal-stagger.revealed > * {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Navbar scroll effect */
nav.scrolled {
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

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

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

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

::-webkit-scrollbar-thumb:hover {
    background: #5f636b;
}

/* Selection color */
::selection {
    background: #f97316;
    color: white;
}

/* Image hover effects */
img {
    transition: transform 0.3s ease;
}

/* Button focus styles */
button:focus-visible,
a:focus-visible {
    outline: 2px solid #f97316;
    outline-offset: 2px;
}

/* Ensure proper contrast for all text */
.text-charcoal-600 {
    color: #5f636b;
}

.text-charcoal-300 {
    color: #a1a4aa;
}

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

/* Print styles */
@media print {
    nav,
    #mobile-menu-btn,
    button {
        display: none;
    }
    
    body {
        color: #000;
        background: white;
    }
}
