/* Custom styles for Total Image Salon */

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

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

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Animation classes */
.animate-fade-in-up {
    animation: fadeInUp 0.8s ease-out forwards;
}

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

/* Staggered animation delays */
.delay-100 {
    animation-delay: 0.1s;
}

.delay-200 {
    animation-delay: 0.2s;
}

.delay-300 {
    animation-delay: 0.3s;
}

.delay-400 {
    animation-delay: 0.4s;
}

.delay-500 {
    animation-delay: 0.5s;
}

/* Scroll-triggered animations */
.scroll-hidden {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

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

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

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

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

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

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

/* Image hover effects */
.group:hover .group-hover\:scale-105 {
    transform: scale(1.05);
}

/* Gradient utilities */
.gradient-terracotta {
    background: linear-gradient(135deg, #cc5d45 0%, #b94a35 100%);
}

/* Glass morphism effect */
.glass {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Shadow utilities */
.shadow-terracotta {
    box-shadow: 0 10px 40px -10px rgba(204, 93, 69, 0.3);
}

.shadow-terracotta-lg {
    box-shadow: 0 20px 60px -15px rgba(204, 93, 69, 0.4);
}

/* Hover lift effect */
.hover-lift {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-5px);
}

/* Image aspect ratio utilities */
.aspect-salon {
    aspect-ratio: 4/5;
}

/* Focus visible styles */
*:focus-visible {
    outline: 2px solid #cc5d45;
    outline-offset: 2px;
}

/* 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;
    }
}

/* Print styles */
@media print {
    .no-print {
        display: none !important;
    }
    
    body {
        background: white !important;
    }
}

/* Loading state */
.loading {
    position: relative;
    overflow: hidden;
}

.loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.4),
        transparent
    );
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% {
        left: -100%;
    }
    100% {
        left: 100%;
    }
}

/* Pulse animation for CTA */
@keyframes pulse-soft {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(204, 93, 69, 0.4);
    }
    50% {
        box-shadow: 0 0 0 15px rgba(204, 93, 69, 0);
    }
}

.pulse-cta {
    animation: pulse-soft 2s infinite;
}

/* Image placeholder background */
.img-placeholder {
    background: linear-gradient(
        135deg,
        #f5ebe0 0%,
        #e6a992 100%
    );
}
