/* Custom styles for The Chop Shop Salon */

/* Smooth scrolling is handled in HTML */

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

/* Reveal animation for scroll */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered animation delays */
.reveal:nth-child(1) { transition-delay: 0ms; }
.reveal:nth-child(2) { transition-delay: 100ms; }
.reveal:nth-child(3) { transition-delay: 200ms; }
.reveal:nth-child(4) { transition-delay: 300ms; }
.reveal:nth-child(5) { transition-delay: 400ms; }
.reveal:nth-child(6) { transition-delay: 500ms; }

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

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

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

::-webkit-scrollbar-thumb:hover {
    background: #022c22;
}

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

/* Print styles */
@media print {
    nav,
    .reveal,
    button,
    iframe {
        display: none !important;
    }
    
    body {
        background: white !important;
        color: black !important;
    }
    
    .bg-emerald-900 {
        background: white !important;
        color: black !important;
    }
}

/* Reduced motion preferences */
@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;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .bg-emerald-900 {
        background: #000000 !important;
    }
    
    .text-emerald-900 {
        color: #000000 !important;
    }
    
    .text-cream-50 {
        color: #ffffff !important;
    }
}

/* Hover effects for interactive elements */
.group:hover .group-hover\\:scale-110 {
    transform: scale(1.1);
}

/* Form validation styles */
input:valid,
textarea:valid {
    border-bottom-color: #064e3b;
}

input:invalid,
textarea:invalid {
    border-bottom-color: #dc2626;
}

/* Loading state for buttons */
button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Custom selection color */
::selection {
    background-color: #a7f3d0;
    color: #064e3b;
}

::-moz-selection {
    background-color: #a7f3d0;
    color: #064e3b;
}
