/* ===== Custom Styles for Salon42 ===== */

/* Base */
html {
    scroll-behavior: smooth;
}

body {
    overflow-x: hidden;
}

/* Selection */
::selection {
    background: rgba(212, 168, 83, 0.3);
    color: #f5f0e0;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #0a1628;
}
::-webkit-scrollbar-thumb {
    background: #1e3658;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #d4a853;
}

/* ===== Navbar ===== */
#navbar.scrolled {
    background: rgba(6, 13, 31, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(212, 168, 83, 0.1);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: #d4a853;
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.nav-link:hover {
    color: #f5d97a !important;
}

/* Mobile menu */
#mobileMenu.open {
    translate: 0 0;
}

/* ===== Hero ===== */
@keyframes scrollLine {
    0% { top: -50%; opacity: 0; }
    50% { opacity: 1; }
    100% { top: 150%; opacity: 0; }
}

.animate-scrollLine {
    animation: scrollLine 2s ease-in-out infinite;
}

/* Hero image subtle float */
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

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

/* ===== Service Cards ===== */
.service-card {
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, #d4a853, transparent);
    opacity: 0;
    transition: opacity 0.5s ease;
}

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

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3), 0 0 40px rgba(212, 168, 83, 0.05);
}

/* ===== Gallery ===== */
.gallery-item {
    cursor: pointer;
}

/* ===== Mobile Links ===== */
.mobile-link {
    position: relative;
}

/* ===== Animations (progressive enhancement) ===== */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.8s ease, transform 0.8s ease;
    }

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

    .reveal-delay-1 { transition-delay: 0.1s; }
    .reveal-delay-2 { transition-delay: 0.2s; }
    .reveal-delay-3 { transition-delay: 0.3s; }
    .reveal-delay-4 { transition-delay: 0.4s; }
    .reveal-delay-5 { transition-delay: 0.5s; }
    .reveal-delay-6 { transition-delay: 0.6s; }
}

/* ===== Focus styles ===== */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
    outline: 2px solid #d4a853;
    outline-offset: 2px;
}

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

/* ===== Gold shimmer effect for CTA ===== */
@keyframes shimmer {
    0% { background-position: -200% center; }
    100% { background-position: 200% center; }
}

.btn-shimmer {
    background-size: 200% auto;
    background-image: linear-gradient(90deg, #d4a853 0%, #f5d97a 25%, #d4a853 50%, #f5d97a 75%, #d4a853 100%);
    animation: shimmer 4s linear infinite;
}

.btn-shimmer:hover {
    animation: shimmer 2s linear infinite;
}
