/* 
   MOHMMADS HAIR ART - Custom Premium Styling & Luxury Design System
   Theme: Royal Gold & Obsidian Charcoal (Dubai/London Luxury Salon Style)
*/

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,500;0,600;0,700;1,400&family=Poppins:wght@300;400;500;600;700&display=swap');

:root {
    /* Colors */
    --color-primary: #111111;
    --color-secondary: #1E1E1E;
    --color-gold: #D4AF37;
    --color-gold-rgb: 212, 175, 55;
    --color-text: #FFFFFF;
    --color-muted: #BBBBBB;
    --color-bg-alt: #F8F8F8;
    
    /* Layout Tokens */
    --border-radius-sm: 8px;
    --border-radius-md: 16px;
    --border-radius-lg: 32px;
    
    /* Transitions */
    --transition-fast: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-smooth: 0.45s cubic-bezier(0.25, 0.8, 0.25, 1);
    --transition-slow: 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    
    /* Shadows & Glows */
    --gold-glow: 0 10px 30px rgba(212, 175, 55, 0.15);
    --gold-glow-strong: 0 15px 40px rgba(212, 175, 55, 0.3);
    --dark-shadow: 0 15px 35px rgba(0, 0, 0, 0.6);
}

/* --- Base Styles --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    background-color: var(--color-primary);
    color: var(--color-text);
    font-family: 'Poppins', sans-serif;
}

body {
    overflow-x: hidden;
    line-height: 1.6;
    background-color: var(--color-primary);
}

/* Custom Black & Gold Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}
::-webkit-scrollbar-track {
    background: var(--color-primary);
}
::-webkit-scrollbar-thumb {
    background: #2A2A2A;
    border: 2px solid var(--color-primary);
    border-radius: 5px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--color-gold);
}

/* --- Typography Helpers --- */
.font-display {
    font-family: 'Playfair Display', Georgia, serif;
}

.font-body {
    font-family: 'Poppins', sans-serif;
}

/* Gradient text matching luxury standard */
.gold-gradient-text {
    background: linear-gradient(135deg, #FFF 0%, #D4AF37 50%, #AA7C11 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

/* --- Smooth Transitions and Interaction Micro-Effects --- */
.navbar-blur {
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(212, 175, 55, 0.08);
}

/* Active Navunderline */
.nav-link-underline {
    position: relative;
}
.nav-link-underline::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 50%;
    width: 0;
    height: 1px;
    background-color: var(--color-gold);
    transition: var(--transition-fast);
    transform: translateX(-50%);
}
.nav-link-underline:hover::after,
.nav-link-underline.active::after {
    width: 100%;
}

/* Ripple effect on buttons */
.btn-ripple {
    position: relative;
    overflow: hidden;
}

/* Custom Card Lifts & Hover Shadows */
.luxury-card {
    background: var(--color-secondary);
    border: 1px solid rgba(212, 175, 55, 0.08);
    border-radius: var(--border-radius-md);
    transition: var(--transition-smooth);
    box-shadow: var(--dark-shadow);
}
.luxury-card:hover {
    transform: translateY(-8px);
    border-color: rgba(212, 175, 55, 0.4);
    box-shadow: var(--gold-glow);
}

/* Glassmorphism utility */
.glass-panel {
    background: rgba(30, 30, 30, 0.65);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(212, 175, 55, 0.12);
}
.glass-panel:hover {
    border-color: rgba(212, 175, 55, 0.3);
}

/* --- Animation Classes (Intersection Observer driven) --- */
.reveal {
    opacity: 0;
    transition: all 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}

.reveal-fade-up {
    transform: translateY(40px);
}

.reveal-zoom-in {
    transform: scale(0.92);
}

.reveal-slide-left {
    transform: translateX(-40px);
}

.reveal-slide-right {
    transform: translateX(40px);
}

/* Active states for scroll reveals */
.reveal.active {
    opacity: 1;
    transform: translate(0) scale(1);
}

/* Floating badge floating keyframes */
@keyframes floating {
    0% { transform: translateY(0); }
    50% { transform: translateY(-12px); }
    100% { transform: translateY(0); }
}
.floating-element-1 {
    animation: floating 5s ease-in-out infinite;
}
.floating-element-2 {
    animation: floating 5s ease-in-out infinite;
    animation-delay: 2.5s;
}

/* Floating WhatsApp Pulsing Keyframes */
@keyframes wa-pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.5);
    }
    70% {
        box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}
.whatsapp-pulse-btn {
    animation: wa-pulse 2.2s infinite;
}

/* --- Masonry Gallery Grid Details --- */
.gallery-container {
    column-count: 1;
    column-gap: 20px;
}

@media (min-width: 640px) {
    .gallery-container {
        column-count: 2;
    }
}

@media (min-width: 1024px) {
    .gallery-container {
        column-count: 3;
    }
}

.gallery-card {
    break-inside: avoid;
    margin-bottom: 20px;
    position: relative;
    border-radius: var(--border-radius-md);
    overflow: hidden;
    cursor: pointer;
    border: 1px solid rgba(212, 175, 55, 0.1);
    box-shadow: var(--dark-shadow);
    transition: var(--transition-smooth);
}

.gallery-card img {
    width: 100%;
    height: auto;
    object-fit: cover;
    transition: var(--transition-slow);
    display: block;
}

.gallery-card:hover {
    transform: scale(1.02);
    border-color: rgba(212, 175, 55, 0.4);
    box-shadow: var(--gold-glow);
}

.gallery-card:hover img {
    transform: scale(1.06);
}

.gallery-hover-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(17, 17, 17, 0.95) 0%, rgba(17, 17, 17, 0.4) 60%, transparent 100%);
    opacity: 0;
    transition: var(--transition-fast);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 24px;
}

.gallery-card:hover .gallery-hover-overlay {
    opacity: 1;
}

/* --- Premium Lightbox Zoom Styling --- */
.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(17, 17, 17, 0.98);
    z-index: 9999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s var(--transition-fast);
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox.open {
    opacity: 1;
    pointer-events: auto;
}

.lightbox-close {
    position: absolute;
    top: 24px;
    right: 24px;
    background: rgba(30, 30, 30, 0.8);
    border: 1px solid rgba(212, 175, 55, 0.2);
    color: #FFFFFF;
    font-size: 2rem;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-fast);
    z-index: 10000;
}

.lightbox-close:hover {
    background: var(--color-gold);
    color: var(--color-primary);
    transform: rotate(90deg);
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(30, 30, 30, 0.8);
    border: 1px solid rgba(212, 175, 55, 0.2);
    color: #FFFFFF;
    font-size: 1.5rem;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-fast);
    z-index: 10000;
}

.lightbox-nav:hover {
    background: var(--color-gold);
    color: var(--color-primary);
}

.lightbox-prev {
    left: 24px;
}

.lightbox-next {
    right: 24px;
}

.lightbox-content {
    max-width: 90%;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    animation: zoomInLight 0.4s var(--transition-smooth);
}

@keyframes zoomInLight {
    from { transform: scale(0.9); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.lightbox-img {
    max-width: 100%;
    max-height: 72vh;
    object-fit: contain;
    border-radius: var(--border-radius-sm);
    border: 1px solid rgba(212, 175, 55, 0.2);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.8);
}

.lightbox-caption {
    margin-top: 16px;
    color: #FFFFFF;
    font-size: 1.1rem;
    font-weight: 500;
    text-align: center;
    letter-spacing: 0.5px;
}

/* --- Review Carousel Slide Layout --- */
.reviews-slider-container {
    overflow: hidden;
    position: relative;
    width: 100%;
}

.reviews-wrapper {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.review-slide {
    flex: 0 0 100%;
    max-width: 100%;
    padding: 10px;
}

@media (min-width: 768px) {
    .review-slide {
        flex: 0 0 50%;
        max-width: 50%;
    }
}

@media (min-width: 1024px) {
    .review-slide {
        flex: 0 0 33.333%;
        max-width: 33.333%;
    }
}

/* Luxury loading overlay */
.preloader {
    position: fixed;
    inset: 0;
    background: var(--color-primary);
    z-index: 99999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: opacity 0.6s ease-in-out;
}

.preloader.fade-out {
    opacity: 0;
    pointer-events: none;
}

.preloader-gold-glow {
    position: relative;
    width: 80px;
    height: 80px;
}

.preloader-spinner {
    box-sizing: border-box;
    display: block;
    position: absolute;
    width: 64px;
    height: 64px;
    margin: 8px;
    border: 3px solid transparent;
    border-radius: 50%;
    animation: preloader-spin 1.2s cubic-bezier(0.5, 0, 0.5, 1) infinite;
    border-top-color: var(--color-gold);
}

@keyframes preloader-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.preloader-text {
    margin-top: 24px;
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 5px;
    color: var(--color-gold);
    animation: pulse-text 2s infinite ease-in-out;
}

@keyframes pulse-text {
    0%, 100% { opacity: 0.4; }
    50% { opacity: 1; }
}

/* Booking Section Inputs styling */
.booking-input {
    background: rgba(17, 17, 17, 0.6);
    border: 1px solid rgba(212, 175, 55, 0.15);
    color: #FFFFFF;
    border-radius: var(--border-radius-sm);
    transition: var(--transition-fast);
}

.booking-input:focus {
    border-color: var(--color-gold);
    outline: none;
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.2);
    background: rgba(17, 17, 17, 0.9);
}

.booking-input::placeholder {
    color: #666666;
}

/* Custom form row height sizing */
select.booking-input option {
    background-color: var(--color-secondary);
    color: #FFFFFF;
}
