/* Custom styles for Desierto Leather Shop */

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

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

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

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

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

/* Scroll reveal animations - progressive enhancement */
@media (prefers-reduced-motion: no-preference) {
    .scroll-reveal {
        opacity: 1;
        transform: translateY(0);
        transition: opacity 0.8s ease, transform 0.8s ease;
    }

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

    /* Stagger children */
    .scroll-reveal:nth-child(1) { transition-delay: 0.1s; }
    .scroll-reveal:nth-child(2) { transition-delay: 0.2s; }
    .scroll-reveal:nth-child(3) { transition-delay: 0.3s; }
    .scroll-reveal:nth-child(4) { transition-delay: 0.4s; }
    .scroll-reveal:nth-child(5) { transition-delay: 0.5s; }
    .scroll-reveal:nth-child(6) { transition-delay: 0.6s; }
}

/* Navbar scroll state */
.navbar-scrolled {
    background: rgba(250, 249, 246, 0.95) !important;
    backdrop-filter: blur(10px);
    box-shadow: 0 1px 20px rgba(131, 20, 67, 0.08);
}

/* Mobile menu open state */
.mobile-menu-open #mobile-menu {
    transform: translateX(0);
}

/* Hamburger animation */
.menu-open .menu-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.menu-open .menu-line:nth-child(2) {
    opacity: 0;
}

.menu-open .menu-line:nth-child(3) {
    width: 24px;
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Hover effects for service cards */
.group:hover .group-hover\:-translate-y-1 {
    transform: translateY(-4px);
}

/* Button ripple effect */
button, a {
    position: relative;
    overflow: hidden;
}

/* Image loading placeholder */
img {
    background: linear-gradient(135deg, #fce7f3 0%, #fbcfe8 50%, #fef3c7 100%);
    background-size: 400% 400%;
    animation: shimmer 1.5s ease-in-out infinite;
}

img.loaded {
    animation: none;
    background: none;
}

@keyframes shimmer {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Form focus styles */
input:focus, textarea:focus, select:focus {
    border-color: #be185d !important;
    box-shadow: 0 0 0 3px rgba(190, 24, 93, 0.1) !important;
}

/* Selection color */
::selection {
    background: #fce7f3;
    color: #500724;
}

/* Print styles */
@media print {
    nav, #contact-form, .scroll-reveal { display: none; }
    body { background: white; }
}
