/* Custom Styles for Salon Image */

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

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

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

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

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

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

/* Service Card Hover Effects */
.service-card {
    transform: translateY(0);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-card:hover {
    transform: translateY(-8px);
}

.service-card:hover img {
    transform: scale(1.1);
}

/* Gallery Item Hover */
.gallery-item {
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.gallery-item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(217, 90, 43, 0.6), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-item:hover::after {
    opacity: 1;
}

/* Navbar Scroll Effect */
.nav-scrolled {
    background: rgba(251, 249, 246, 0.95) !important;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

/* Mobile Menu Animation */
.mobile-link {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
}

.mobile-menu-open .mobile-link {
    opacity: 1;
    transform: translateY(0);
}

.mobile-menu-open .mobile-link:nth-child(1) { transition-delay: 0.1s; }
.mobile-menu-open .mobile-link:nth-child(2) { transition-delay: 0.15s; }
.mobile-menu-open .mobile-link:nth-child(3) { transition-delay: 0.2s; }
.mobile-menu-open .mobile-link:nth-child(4) { transition-delay: 0.25s; }
.mobile-menu-open .mobile-link:nth-child(5) { transition-delay: 0.3s; }

/* Scroll Reveal Animations */
.scroll-reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

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

/* Hero Badge Pulse */
@keyframes pulse-ring {
    0% {
        transform: scale(0.8);
        opacity: 0.8;
    }
    50% {
        transform: scale(1.2);
        opacity: 0.4;
    }
    100% {
        transform: scale(0.8);
        opacity: 0.8;
    }
}

.hero-badge {
    animation: pulse-ring 2s ease-in-out infinite;
}

/* Floating Shapes */
@keyframes float {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    33% {
        transform: translateY(-15px) rotate(5deg);
    }
    66% {
        transform: translateY(10px) rotate(-3deg);
    }
}

.animate-float {
    animation: float 6s ease-in-out infinite;
}

.animate-float-delayed {
    animation: float 6s ease-in-out 3s infinite;
}

/* Button Ripple Effect */
button, a {
    position: relative;
    overflow: hidden;
}

button::after, a::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

button:active::after, a:active::after {
    width: 300px;
    height: 300px;
}

/* Form Input Focus States */
input:focus, textarea:focus, select:focus {
    box-shadow: 0 0 0 3px rgba(217, 90, 43, 0.1);
}

/* Image Placeholder Background */
img {
    background: linear-gradient(135deg, #f7f3ec 0%, #efe8d8 100%);
}

/* Geometric Pattern Overlay */
.pattern-overlay {
    background-image: radial-gradient(circle at 25% 25%, rgba(217, 90, 43, 0.05) 0%, transparent 50%),
                      radial-gradient(circle at 75% 75%, rgba(199, 169, 109, 0.05) 0%, transparent 50%);
}

/* Responsive Typography */
@media (max-width: 768px) {
    .font-serif {
        line-height: 1.2;
    }
}

/* Print Styles */
@media print {
    .animate-float,
    .animate-float-delayed {
        animation: none;
    }
    
    nav, footer {
        display: none;
    }
}

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

/* High Contrast Mode */
@media (prefers-contrast: high) {
    .service-card {
        border: 2px solid currentColor;
    }
    
    .gallery-item {
        border: 2px solid currentColor;
    }
}

/* Dark Mode Support (if browser/system prefers) */
@media (prefers-color-scheme: dark) {
    :root {
        /* Could add dark mode variables here */
    }
}

/* Loading State */
.loading {
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* Focus Visible for Accessibility */
:focus-visible {
    outline: 3px solid #d95a2b;
    outline-offset: 2px;
}

/* Touch Device Optimizations */
@media (hover: none) {
    .service-card:hover {
        transform: none;
    }
    
    .gallery-item:hover::after {
        opacity: 0;
    }
}
