/* ==========================================================================
   Base & Design Tokens
   ========================================================================== */
:root {
    /* Color Palette */
    --primary-color: #6a1b9a;
    /* Deep Purple */
    --primary-light: #9c27b0;
    /* Lighter Purple */
    --primary-dark: #4a148c;
    /* Darkest Purple */
    --accent-color: #e1bee7;
    /* Soft Lilac/White mix */
    --bg-color: #ffffff;
    /* Pure White Background */
    --bg-alt: #f3e5f5;
    /* Very Light Purple/White for alternating sections */
    --text-main: #212121;
    /* Dark Gray for readability */
    --text-muted: #757575;
    /* Lighter Gray for secondary text */
    --white: #ffffff;

    /* Typography */
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Outfit', sans-serif;

    /* Spacing & Utilities */
    --section-pad: 5rem 2rem;
    --border-radius: 12px;
    --box-shadow: 0 10px 30px rgba(106, 27, 154, 0.1);
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-main);
    background-color: var(--bg-color);
    overflow-x: hidden;
}

h1,
h2,
h3,
h4 {
    font-family: var(--font-heading);
    color: var(--primary-dark);
    margin-bottom: 1rem;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ==========================================================================
   Navigation
   ========================================================================== */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 5%;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    transition: var(--transition);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.navbar.scrolled {
    padding: 0.4rem 5%;
    box-shadow: 0 5px 20px rgba(106, 27, 154, 0.15);
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo img {
    height: 60px;
    width: auto;
}

.logo span {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.nav-links {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.nav-links a {
    font-weight: 600;
    font-size: 1.05rem;
    position: relative;
    white-space: nowrap;
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: var(--primary-color);
    transition: var(--transition);
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.nav-links a:hover {
    color: var(--primary-color);
}

.nav-links a.nav-btn {
    border: 2px solid var(--primary-color);
    padding: 0.5rem 1.2rem;
    border-radius: 20px;
}

.nav-links a.nav-btn::after {
    display: none;
}

.nav-links a.nav-btn:hover {
    background-color: var(--primary-color);
    color: var(--white);
}

#auth-nav-item {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.hamburger {
    display: none;
    font-size: 1.5rem;
    color: var(--primary-dark);
    cursor: pointer;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 0 5%;
    background: linear-gradient(135deg, var(--bg-color) 0%, var(--bg-alt) 100%);
    position: relative;
    overflow: hidden;
}

/* Decorative background elements */
.hero::before {
    content: '';
    position: absolute;
    top: -10%;
    right: -5%;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: radial-gradient(circle, var(--accent-color) 0%, transparent 70%);
    opacity: 0.6;
    z-index: 0;
}

.hero-content {
    flex: 1;
    z-index: 1;
    padding-right: 2rem;
}

.hero h1 {
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.hero h1 span {
    color: var(--primary-color);
    position: relative;
    display: inline-block;
}

/* Underline effect for the span */
.hero h1 span::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 0;
    width: 100%;
    height: 15px;
    background-color: var(--accent-color);
    z-index: -1;
    opacity: 0.5;
    transform: rotate(-2deg);
}

.hero p {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    max-width: 500px;
}

.btn-primary {
    display: inline-block;
    padding: 1rem 2.5rem;
    background-color: var(--primary-color);
    color: var(--white);
    font-weight: 600;
    border-radius: 30px;
    box-shadow: 0 4px 15px rgba(106, 27, 154, 0.4);
    transition: var(--transition);
    border: 2px solid var(--primary-color);
}

.btn-primary:hover {
    background-color: transparent;
    color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(106, 27, 154, 0.3);
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
    z-index: 1;
    position: relative;
}

/* Soft animated blob behind the main image */
.hero-image::after {
    content: '';
    position: absolute;
    width: 90%;
    height: 90%;
    background: var(--primary-light);
    border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
    z-index: -1;
    animation: morph 8s ease-in-out infinite alternate;
    opacity: 0.15;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

@keyframes morph {
    0% {
        border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
    }

    100% {
        border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
    }
}

.hero-image img {
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    max-height: 70vh;
    object-fit: cover;
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-15px);
    }

    100% {
        transform: translateY(0px);
    }
}

/* ==========================================================================
   Services Section
   ========================================================================== */
.services {
    padding: var(--section-pad);
    background-color: var(--white);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.services::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('https://lwerxoyevagsnpcltgsh.supabase.co/storage/v1/object/public/imgsalome/ENTRADASALOME.webp');
    background-size: 300px auto;
    /* Repeatable size */
    background-repeat: repeat;
    opacity: 0.06;
    z-index: 0;
}

.services>* {
    position: relative;
    z-index: 1;
}

.section-header {
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: 2.5rem;
    display: inline-block;
    position: relative;
}

.section-header h2::after {
    content: '';
    position: absolute;
    width: 50px;
    height: 3px;
    background-color: var(--primary-color);
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
}

.section-header p {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-top: 1rem;
}

.service-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 350px));
    justify-content: center;
    gap: 2.5rem;
    padding: 0 5%;
}

.card {
    background: var(--white);
    padding: 3rem 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    border-bottom: 4px solid transparent;
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom right, var(--bg-alt), transparent);
    z-index: 0;
    opacity: 0;
    transition: var(--transition);
}

.card:hover {
    transform: translateY(-10px);
    border-bottom-color: var(--primary-color);
    box-shadow: 0 15px 40px rgba(106, 27, 154, 0.15);
}

.card:hover::before {
    opacity: 1;
}

.card>* {
    position: relative;
    z-index: 1;
}

.icon-wrapper {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background-color: var(--bg-alt);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--primary-color);
    transition: var(--transition);
}

.card:hover .icon-wrapper {
    background-color: var(--primary-color);
    color: var(--white);
    transform: scale(1.1) rotate(5deg);
}

.card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.card p {
    color: var(--text-muted);
}

/* ==========================================================================
   Gallery Section
   ========================================================================== */
.gallery {
    padding: 6rem 5%;
    background-color: var(--bg-alt);
}

.section-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 3rem auto;
}

.section-header h2 {
    font-size: 2.5rem;
    position: relative;
    display: inline-block;
    padding-bottom: 15px;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--primary-color);
    border-radius: 2px;
}

.user-welcome {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    line-height: 1.4;
    font-size: 0.85rem;
    text-align: right;
}

.user-welcome strong {
    color: var(--primary-color);
    font-size: 0.95rem;
}

.gallery-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    padding: 0;
}

.gallery-container img {
    width: 100%;
    height: 350px;
    object-fit: cover;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    cursor: pointer;
}

.gallery-container img:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 40px rgba(106, 27, 154, 0.2);
    z-index: 2;
    position: relative;
}

/* ==========================================================================
   Location Map Section
   ========================================================================== */
.location-map {
    padding: 4rem 5%;
    background-color: var(--white);
    display: flex;
    justify-content: center;
}

.location-map iframe {
    max-width: 1000px;
    width: 100%;
    height: 450px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

/* ==========================================================================
   Contact/Footer Section
   ========================================================================== */
.footer {
    background-color: var(--primary-dark);
    color: var(--white);
    padding: 5rem 5% 2rem;
    position: relative;
}

.footer::before {
    content: '';
    position: absolute;
    top: -50px;
    left: 0;
    width: 100%;
    height: 100px;
    background-color: var(--primary-dark);
    clip-path: polygon(0 50%, 100% 0, 100% 100%, 0% 100%);
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 3rem;
    margin-bottom: 3rem;
    position: relative;
    z-index: 1;
}

.footer-brand,
.footer-contact {
    flex: 1;
    min-width: 280px;
}

.footer-logo {
    max-height: 203px;
    margin-bottom: 1rem;
    background-color: white;
    /* Contrast for logo if needed */
    padding: 10px;
    border-radius: 8px;
}

.footer-brand h2 {
    color: var(--white);
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.footer-brand p {
    color: var(--accent-color);
}

.footer-contact h3 {
    color: var(--white);
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    position: relative;
    display: inline-block;
}

.footer-contact h3::after {
    content: '';
    position: absolute;
    width: 40px;
    height: 3px;
    background-color: var(--white);
    bottom: -10px;
    left: 0;
    border-radius: 2px;
}

.contact-link {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 2rem;
    font-size: 1.2rem;
    color: var(--white);
    background: rgba(255, 255, 255, 0.05);
    padding: 1rem 1.5rem;
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.contact-link i {
    font-size: 1.8rem;
    color: var(--accent-color);
}

.contact-link:hover {
    background: var(--primary-light);
    color: var(--white);
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.contact-link:hover i {
    color: var(--white);
    transform: rotate(10deg);
}

.address-link {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 1.1rem;
    color: var(--accent-color);
    margin-top: 2rem;
    padding: 0 1rem;
    font-style: italic;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--accent-color);
    font-size: 0.9rem;
    position: relative;
    z-index: 1;
}

/* ==========================================================================
   Service Details Modal
   ========================================================================== */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(74, 20, 140, 0.45);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    animation: fadeInOverlay 0.3s ease;
}

@keyframes fadeInOverlay {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.modal-content {
    background: linear-gradient(145deg, #ffffff 0%, #faf5ff 100%);
    margin: 5vh auto;
    padding: 0;
    border-radius: 24px;
    width: 90%;
    max-width: 580px;
    max-height: 85vh;
    overflow-y: auto;
    box-shadow: 0 25px 60px rgba(106, 27, 154, 0.3), 0 0 0 1px rgba(106, 27, 154, 0.08);
    animation: slideUpModal 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
}

@keyframes slideUpModal {
    from {
        opacity: 0;
        transform: translateY(40px) scale(0.96);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Modal header area */
.modal-content .modal-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    padding: 2rem 2.5rem;
    border-radius: 24px 24px 0 0;
    position: relative;
    overflow: hidden;
}

.modal-content .modal-header::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 200px;
    height: 200px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 50%;
}

.modal-content .modal-header::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 150px;
    height: 150px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
}

.modal-content .modal-header h2 {
    color: #ffffff;
    font-size: 1.8rem;
    margin: 0;
    position: relative;
    z-index: 1;
}

.modal-content .modal-header .modal-subtitle {
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.95rem;
    margin-top: 0.3rem;
    position: relative;
    z-index: 1;
}

/* Close button */
.close-modal {
    position: absolute;
    top: 1.2rem;
    right: 1.5rem;
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.15);
    border: none;
    border-radius: 50%;
    color: #ffffff;
    font-size: 1.4rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
    line-height: 1;
}

.close-modal:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg) scale(1.1);
}

/* Service list */
.modal-service-list {
    padding: 1.5rem 2rem 1rem;
}

.modal-service-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.2rem;
    margin-bottom: 0.7rem;
    background: #ffffff;
    border-radius: 14px;
    border: 1px solid rgba(106, 27, 154, 0.08);
    box-shadow: 0 2px 8px rgba(106, 27, 154, 0.06);
    transition: all 0.3s ease;
    animation: fadeInItem 0.4s ease both;
}

.modal-service-item:hover {
    transform: translateX(5px);
    box-shadow: 0 6px 20px rgba(106, 27, 154, 0.12);
    border-color: rgba(106, 27, 154, 0.15);
}

@keyframes fadeInItem {
    from {
        opacity: 0;
        transform: translateX(-10px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.modal-service-item .service-icon {
    width: 40px;
    height: 40px;
    min-width: 40px;
    background: linear-gradient(135deg, var(--bg-alt) 0%, #e1bee7 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    color: var(--primary-color);
    margin-right: 1rem;
    transition: all 0.3s ease;
}

.modal-service-item:hover .service-icon {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
    color: #ffffff;
    transform: scale(1.1);
}

.modal-service-item .service-name {
    flex: 1;
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-main);
}

.modal-service-item .service-price {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
    color: #ffffff;
    padding: 0.35rem 1rem;
    border-radius: 20px;
    font-weight: 700;
    font-size: 0.9rem;
    white-space: nowrap;
    min-width: 70px;
    text-align: center;
    box-shadow: 0 3px 10px rgba(106, 27, 154, 0.25);
}

/* Modal footer / Book Now area */
.modal-footer {
    padding: 1rem 2rem 2rem;
    text-align: center;
}

/* Loading and error states */
.modal-service-list .loading-text {
    text-align: center;
    color: var(--text-muted);
    padding: 2rem 0;
    font-style: italic;
}

/* Scrollbar styling for modal */
.modal-content::-webkit-scrollbar {
    width: 6px;
}

.modal-content::-webkit-scrollbar-track {
    background: transparent;
}

.modal-content::-webkit-scrollbar-thumb {
    background: var(--accent-color);
    border-radius: 3px;
}

.modal-content::-webkit-scrollbar-thumb:hover {
    background: var(--primary-light);
}

/* ==========================================================================
   Animations & Utilities
   ========================================================================== */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.delay-1 {
    transition-delay: 0.2s;
}

.delay-2 {
    transition-delay: 0.4s;
}

/* ==========================================================================
   Responsive Design
   ========================================================================== */
@media (max-width: 992px) {
    .hero {
        flex-direction: column;
        padding-top: 6rem;
        text-align: center;
    }

    .hero-content {
        padding-right: 0;
        margin-bottom: 3rem;
    }

    .hero h1 {
        font-size: 3rem;
    }

    .hero p {
        margin: 0 auto 2rem;
    }

    .hero h1 span::after {
        left: 50%;
        transform: translateX(-50%) rotate(-2deg);
        width: 80%;
    }
}

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100vh;
        background-color: var(--white);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        padding: 4rem 2rem;
        box-shadow: 0 10px 10px rgba(0, 0, 0, 0.1);
        transition: var(--transition);
        z-index: 999;
        gap: 2.5rem;
    }

    .nav-links.active {
        left: 0;
    }

    #auth-nav-item {
        flex-direction: column;
        width: 100%;
        gap: 0.8rem;
    }

    .nav-links .user-welcome {
        align-items: center;
        margin-right: 0;
        margin-bottom: 0.5rem;
        background: var(--bg-alt);
        padding: 1.5rem;
        border-radius: 15px;
        width: 100%;
        text-align: center;
    }

    .nav-links a {
        font-size: 1.4rem;
    }

    .nav-links a.nav-btn {
        width: 100%;
        text-align: center;
        padding: 1rem;
    }

    .hamburger {
        display: block;
        z-index: 1000;
    }

    .section-header h2 {
        font-size: 2rem;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
    }

    .footer-contact h3::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .contact-link {
        justify-content: center;
    }

    .mobile-home-btn {
        display: block !important;
    }

    .booking-wizard-steps {
        overflow-x: auto;
        padding-bottom: 1rem;
        justify-content: flex-start !important;
        gap: 1rem !important;
    }

    .step-indicator {
        min-width: 60px;
    }
}

@media (max-width: 576px) {
    .hero h1 {
        font-size: 2.2rem;
    }

    .booking-container {
        padding: 1rem;
    }

    .service-selection {
        grid-template-columns: 1fr !important;
    }

    .time-slots-grid {
        grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)) !important;
    }

    .loading-gallery {
        text-align: center;
        padding: 100px 0;
        color: var(--primary-dark);
        font-size: 1.2rem;
    }

    /* --- Refined Booking Selection Styles & Color Tones --- */
    .booking-category-header {
        width: 100%;
        grid-column: 1 / -1;
        margin: 2.5rem 0 1rem 0;
        border-radius: 12px;
        color: var(--primary-color);
        font-weight: 800;
        font-size: 1.1rem;
        text-transform: uppercase;
        letter-spacing: 2px;
        border-left: 6px solid var(--primary-color);
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
        display: flex;
        align-items: center;
    }

    .service-selection {
        display: grid !important;
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)) !important;
        gap: 1.5rem !important;
        margin-bottom: 3rem !important;
        width: 100% !important;
    }

    .service-option {
        background: var(--white);
        border: 3px solid transparent;
        padding: 2.5rem 1.5rem;
        border-radius: 18px;
        cursor: pointer;
        transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        text-align: center;
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.06);
        position: relative;
        overflow: hidden;
    }

    /* Category Tones */
    .category-hairdressing {
        background: #fdf8ff;
        /* Soft Purple */
        color: #6a1b9a;
    }

    .category-hairdressing:hover {
        background: #f3e5f5;
        border-color: #ce93d8;
    }

    .category-waxing {
        background: #f0f7ff;
        /* Soft Blue */
        color: #1565c0;
    }

    .category-waxing:hover {
        background: #e3f2fd;
        border-color: #90caf9;
    }

    .category-hair-coloring {
        background: #fffafa;
        /* Soft Rose */
        color: #c62828;
    }

    .category-hair-coloring:hover {
        background: #ffebee;
        border-color: #ef9a9a;
    }

    .service-option:hover {
        transform: translateY(-8px);
        box-shadow: 0 18px 35px rgba(0, 0, 0, 0.1);
    }

    .service-option.selected {
        border-color: var(--primary-color);
        background-color: var(--primary-color) !important;
        color: white !important;
        transform: scale(1.03);
        z-index: 10;
    }

    .service-option span {
        font-size: 1rem;
        color: inherit;
        opacity: 0.9;
        margin-top: 15px;
        font-weight: 800;
        background: rgba(255, 255, 255, 0.6);
        padding: 6px 16px;
        border-radius: 20px;
    }

    .service-option.selected span {
        background: rgba(255, 255, 255, 0.2);
        color: white;
    }
}

/* --- Salon Experience Showcase --- */
.salon-experience {
    padding: 100px 5%;
    background: #fff;
    text-align: center;
}

.salon-showcase-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 300px));
    justify-content: center;
    gap: 30px;
    margin-top: 50px;
}

.salon-frame {
    position: relative;
    padding: 15px;
    background: #fff;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    border: 1px solid #eee;
    transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    overflow: hidden;
}

.salon-frame:nth-child(even) {
    transform: rotate(2deg);
}

.salon-frame:nth-child(odd) {
    transform: rotate(-2deg);
}

.salon-frame:hover {
    transform: rotate(0) scale(1.05);
    z-index: 10;
}

.salon-frame img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    display: block;
}

.salon-frame-placeholder {
    height: 350px;
    background: #f5f5f5;
    border-radius: 4px;
}

/* --- Categorized Gallery --- */
.gallery {
    padding: 100px 5%;
    background: #fdf7ff;
}

.gallery-filters {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 50px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 10px 25px;
    border: 2px solid var(--primary-light);
    background: transparent;
    color: var(--primary-dark);
    border-radius: 50px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.filter-btn.active,
.filter-btn:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

.gallery-category-section {
    margin-bottom: 80px;
}

.gallery-category-section h3 {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    color: var(--primary-dark);
    margin-bottom: 30px;
    text-align: center;
    position: relative;
    padding-bottom: 15px;
}

.gallery-category-section h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--accent-color);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 300px));
    justify-content: center;
    gap: 25px;
}

.gallery-item {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    aspect-ratio: 1;
    cursor: pointer;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(138, 43, 226, 0.7), transparent);
    opacity: 0;
    display: flex;
    align-items: flex-end;
    padding: 25px;
    transition: opacity 0.4s ease;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-overlay span {
    color: white;
    font-weight: 600;
    font-size: 1.2rem;
    transform: translateY(20px);
    transition: transform 0.4s ease;
}

.gallery-item:hover .gallery-overlay span {
    transform: translateY(0);
}

.loading-gallery {
    text-align: center;
    padding: 100px 0;
    color: var(--primary-dark);
    font-size: 1.2rem;
}

/* ==========================================================================
   Image Ribbon Section (Auto-scrolling)
   ========================================================================== */
.image-ribbon-section {
    padding: 4rem 0;
    background-color: var(--white);
    overflow: hidden;
    position: relative;
    border-top: 1px solid rgba(106, 27, 154, 0.1);
}

.ribbon-container {
    display: flex;
    overflow: hidden;
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.ribbon-track {
    display: flex;
    width: max-content;
    animation: scrollRibbon 80s linear infinite;
}

.ribbon-track:hover {
    animation-play-state: paused;
}

.ribbon-item {
    flex: 0 0 280px;
    height: 350px;
    margin: 0 15px;
    overflow: hidden;
    border-radius: 20px;
    cursor: pointer;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.ribbon-item:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 15px 35px rgba(106, 27, 154, 0.25);
}

.ribbon-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.ribbon-item:hover img {
    transform: scale(1.1);
}

@keyframes scrollRibbon {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* --- Lightbox Modal --- */
.lightbox-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background-color: rgba(10, 5, 20, 0.95);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.lightbox-modal.active {
    display: flex;
    opacity: 1;
    pointer-events: auto;
}

.lightbox-content {
    max-width: 90%;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 12px;
    box-shadow: 0 0 50px rgba(156, 39, 176, 0.3);
    transform: scale(0.8);
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.lightbox-modal.active .lightbox-content {
    transform: scale(1);
}

#lightbox-caption {
    margin-top: 20px;
    color: white;
    font-family: var(--font-heading);
    font-size: 1.5rem;
    text-align: center;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.lightbox-close {
    position: absolute;
    top: 30px;
    right: 40px;
    color: white;
    font-size: 50px;
    font-weight: 300;
    cursor: pointer;
    transition: 0.3s;
    z-index: 10001;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
}

.lightbox-close:hover {
    background: var(--primary-light);
    transform: rotate(90deg);
}