/* ============================================
   TAYLOR'S BARBER SHOP — Custom Styles
   Premium Dark Luxury Theme
   ============================================ */

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

body {
    overflow-x: hidden;
}

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

/* ============================================
   NAVBAR
   ============================================ */
#navbar {
    background: transparent;
}

#navbar.scrolled {
    background: rgba(8, 14, 26, 0.92);
    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);
}

/* ============================================
   HERO
   ============================================ */
#hero {
    position: relative;
}

#hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 30% 50%, rgba(13, 148, 136, 0.15) 0%, transparent 60%),
                radial-gradient(ellipse at 70% 50%, rgba(212, 168, 83, 0.08) 0%, transparent 60%);
    pointer-events: none;
}

/* ============================================
   SCROLL REVEAL ANIMATIONS
   (Progressive enhancement — content visible without JS)
   ============================================ */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 1;
        transform: translateY(0);
        transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
                    transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
    }

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

    /* Staggered delays for service cards */
    .service-card:nth-child(1) { transition-delay: 0.05s; }
    .service-card:nth-child(2) { transition-delay: 0.1s; }
    .service-card:nth-child(3) { transition-delay: 0.15s; }
    .service-card:nth-child(4) { transition-delay: 0.2s; }
    .service-card:nth-child(5) { transition-delay: 0.25s; }
    .service-card:nth-child(6) { transition-delay: 0.3s; }
}

/* ============================================
   GALLERY HOVER EFFECTS
   ============================================ */
.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 0.75rem;
}

.gallery-item img {
    transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.gallery-item:hover img {
    transform: scale(1.08);
}

/* ============================================
   BUTTON GLOW EFFECTS
   ============================================ */
.btn-gold {
    position: relative;
    overflow: hidden;
}

.btn-gold::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, transparent 0%, rgba(255,255,255,0.15) 50%, transparent 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.btn-gold:hover::after {
    opacity: 1;
}

/* ============================================
   SERVICE CARD SHINE EFFECT
   ============================================ */
.service-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 0.75rem;
    background: linear-gradient(135deg, rgba(212, 168, 83, 0.05) 0%, transparent 60%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

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

/* ============================================
   FORM FOCUS STATES
   ============================================ */
input:focus,
textarea:focus,
select:focus {
    outline: none;
    box-shadow: 0 0 0 1px rgba(212, 168, 83, 0.4);
}

/* ============================================
   MOBILE MENU ANIMATION
   ============================================ */
#mobile-menu {
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

#mobile-menu.active {
    opacity: 1;
    pointer-events: all;
}

/* Mobile menu links animation */
.mobile-link {
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.3s ease, transform 0.3s ease, color 0.3s ease;
}

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

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

/* ============================================
   CUSTOM SCROLLBAR
   ============================================ */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #080e1a;
}

::-webkit-scrollbar-thumb {
    background: #1e293b;
    border-radius: 4px;
}

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

/* ============================================
   GOLD LINE DECORATION
   ============================================ */
.gold-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(212, 168, 83, 0.4), transparent);
}

/* ============================================
   IMAGE PLACEHOLDERS — prevent layout shift
   ============================================ */
img {
    max-width: 100%;
    height: auto;
}

/* ============================================
   RESPONSIVE TWEAKS
   ============================================ */
@media (max-width: 768px) {
    #hero h1 {
        font-size: 2.75rem;
    }

    .reveal {
        /* Ensure content is visible on mobile even without JS */
        opacity: 1 !important;
        transform: none !important;
    }
}
