/* Custom styles for Yatzari's Lady Barber */

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

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

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

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #5ebfaa, #3da892);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #95d9cc, #5ebfaa);
}

/* Selection color */
::selection {
    background: #c3eae1;
    color: #0d1a30;
}

/* Focus styles */
*:focus-visible {
    outline: 3px solid #5ebfaa;
    outline-offset: 2px;
    border-radius: 4px;
}

/* Print styles */
@media print {
    .floating-shape,
    #backToTop {
        display: none !important;
    }
    
    .hero-gradient {
        background: #0d1a30 !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }
}

/* 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;
    }
    
    .floating-shape {
        animation: none !important;
    }
}

/* High contrast mode */
@media (forced-colors: active) {
    .service-card {
        border: 2px solid ButtonText;
    }
    
    .cta-button {
        border: 2px solid ButtonText;
    }
}

/* Aspect ratio utilities */
.aspect-card {
    aspect-ratio: 4/5;
}

/* Glass morphism */
.glass {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

/* Gradient text */
.gradient-text {
    background: linear-gradient(135deg, #5ebfaa, #95d9cc);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Shadow utilities */
.shadow-mint {
    box-shadow: 0 10px 40px rgba(94, 191, 170, 0.2);
}

.shadow-midnight {
    box-shadow: 0 10px 40px rgba(13, 26, 48, 0.2);
}

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

.hover-lift:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 60px rgba(13, 26, 48, 0.15);
}

/* Pulse animation for status indicators */
@keyframes pulse-ring {
    0% {
        transform: scale(0.8);
        opacity: 1;
    }
    100% {
        transform: scale(2);
        opacity: 0;
    }
}

.pulse-ring::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: inherit;
    animation: pulse-ring 1.5s ease-out infinite;
}

/* Text gradient for headings */
.text-gradient {
    background: linear-gradient(135deg, #0d1a30, #2b4879);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Card hover border effect */
.card-border-hover {
    position: relative;
    overflow: hidden;
}

.card-border-hover::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 2px;
    background: linear-gradient(135deg, #5ebfaa, #0d1a30);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.card-border-hover:hover::before {
    opacity: 1;
}

/* Image reveal animation */
@keyframes reveal {
    from {
        clip-path: inset(0 100% 0 0);
    }
    to {
        clip-path: inset(0 0 0 0);
    }
}

.reveal-image {
    animation: reveal 0.8s ease forwards;
}

/* Stagger animation for gallery items */
@keyframes stagger-in {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.stagger-item {
    animation: stagger-in 0.5s ease forwards;
    opacity: 0;
}

.stagger-item:nth-child(1) { animation-delay: 0.1s; }
.stagger-item:nth-child(2) { animation-delay: 0.2s; }
.stagger-item:nth-child(3) { animation-delay: 0.3s; }
.stagger-item:nth-child(4) { animation-delay: 0.4s; }
.stagger-item:nth-child(5) { animation-delay: 0.5s; }
.stagger-item:nth-child(6) { animation-delay: 0.6s; }

/* Loading skeleton */
@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

.skeleton {
    background: linear-gradient(90deg, #e1f5f0 25%, #c3eae1 50%, #e1f5f0 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}
