﻿:root {
    --red: #e94b4b;
    --aqua: #a6e8ea;
    --cream: #fffbe6;
    --black: #222;
    --white: #fff;
    --light-gray: #e8e8e8;
    --dark-gray: #f0f0f0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Montserrat', Arial, sans-serif;
    background: linear-gradient(135deg, var(--light-gray) 0%, #f5f5f5 100%);
    color: var(--black);
    margin: 0;
    padding: 0;
}

/* --- Navigation --- */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg, var(--black) 0%, #1a1a1a 100%);
    padding: 32px 40px 16px 40px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.logo {
    font-size: 2rem;
    font-weight: bold;
    letter-spacing: 0.5px;
    color: var(--aqua);
    text-shadow: 2px 2px var(--red);
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 24px;
}

.nav-link {
    text-decoration: none;
    color: var(--white);
    font-size: 1.1rem;
    padding-bottom: 2px;
    border-bottom: 2px solid transparent;
    transition: all 0.3s ease;
    font-weight: 500;
}

    .nav-link:hover,
    .nav-link.active {
        border-bottom: 2px solid var(--red);
        color: var(--aqua);
    }

.book-btn {
    background: linear-gradient(135deg, var(--red) 0%, #c73e3e 100%);
    color: var(--white);
    border: none;
    border-radius: 24px;
    padding: 12px 28px;
    font-size: 1rem;
    text-decoration: none;
    margin-left: 16px;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(233, 75, 75, 0.3);
    cursor: pointer;
}

    .book-btn:hover {
        background: linear-gradient(135deg, var(--aqua) 0%, #8fdbde 100%);
        color: var(--black);
        transform: translateY(-2px);
        box-shadow: 0 8px 25px rgba(166, 232, 234, 0.4);
    }

/* --- Gallery Container --- */
.gallery-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 80px 40px;
}

.gallery-header {
    text-align: center;
    margin-bottom: 100px;
}

    .gallery-header h1 {
        font-size: 3.5rem;
        font-weight: 800;
        color: var(--red);
        margin: 0 0 16px 0;
        letter-spacing: -1px;
    }

    .gallery-header p {
        font-size: 1.3rem;
        color: #888;
        margin: 0;
        font-weight: 300;
    }

/* --- Before/After Section --- */
.before-after-section {
    margin-bottom: 120px;
}

    .before-after-section h2 {
        font-size: 2.5rem;
        font-weight: 800;
        color: var(--red);
        text-align: center;
        margin-bottom: 16px;
        letter-spacing: -0.5px;
    }

.section-subtitle {
    text-align: center;
    font-size: 1.15rem;
    color: #888;
    margin-bottom: 60px;
    font-weight: 300;
}

.before-after-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(480px, 1fr));
    gap: 48px;
    margin-bottom: 80px;
}

/* --- Before/After Comparison --- */
.before-after-comparison {
    display: flex;
    flex-direction: column;
    align-items: center;
    animation: fadeInUp 0.6s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.comparison-pair {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    width: 100%;
    margin-bottom: 24px;
}

.comparison-item {
    position: relative;
    overflow: hidden;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
    background: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 280px;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    border: 2px solid rgba(255, 255, 255, 0.5);
}

    .comparison-item:hover {
        transform: translateY(-8px);
        box-shadow: 0 16px 48px rgba(233, 75, 75, 0.15);
        border-color: var(--red);
    }

.comparison-image {
    display: block;
    width: 100%;
    height: auto;
    object-fit: contain;
    padding: 12px;
    max-height: 340px;
}

.comparison-label {
    position: absolute;
    top: 16px;
    left: 16px;
    font-weight: 700;
    font-size: 0.75rem;
    color: var(--white);
    background: linear-gradient(135deg, rgba(34, 34, 34, 0.9) 0%, rgba(20, 20, 20, 0.95) 100%);
    padding: 8px 14px;
    border-radius: 8px;
    margin: 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    letter-spacing: 1.2px;
    z-index: 10;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.transformation-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--red);
    text-align: center;
    margin: 0;
    letter-spacing: 0.5px;
}

/* --- Gallery Grid Section --- */
.gallery-grid-section {
    margin-bottom: 100px;
}

    .gallery-grid-section h2 {
        font-size: 2.5rem;
        font-weight: 800;
        color: var(--red);
        text-align: center;
        margin-bottom: 60px;
        letter-spacing: -0.5px;
    }

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 32px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    background: var(--white);
    height: 300px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

    .gallery-item:hover {
        transform: translateY(-12px);
        box-shadow: 0 20px 50px rgba(233, 75, 75, 0.2);
    }

.gallery-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-item:hover .gallery-image {
    transform: scale(1.12);
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(34, 34, 34, 0.95) 0%, rgba(34, 34, 34, 0.7) 50%, transparent 100%);
    padding: 40px 24px 24px;
    color: var(--white);
    font-size: 1.3rem;
    font-weight: 700;
    transform: translateY(50px);
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.gallery-item:hover .gallery-overlay {
    transform: translateY(0);
}

.gallery-overlay p {
    margin: 0;
    letter-spacing: 0.5px;
}

/* --- CTA Section --- */
.gallery-cta {
    background: linear-gradient(135deg, var(--aqua) 0%, #8fdbde 100%);
    padding: 80px 40px;
    text-align: center;
    border-radius: 20px;
    box-shadow: 0 12px 40px rgba(166, 232, 234, 0.25);
}

    .gallery-cta h2 {
        font-size: 2.5rem;
        font-weight: 800;
        color: var(--black);
        margin: 0 0 16px 0;
        letter-spacing: -0.5px;
    }

    .gallery-cta p {
        font-size: 1.25rem;
        color: rgba(34, 34, 34, 0.8);
        margin: 0 0 40px 0;
        font-weight: 300;
    }

.cta-btn {
    display: inline-block;
    background: linear-gradient(135deg, var(--red) 0%, #c73e3e 100%);
    color: var(--white);
    padding: 18px 48px;
    border-radius: 28px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 8px 24px rgba(233, 75, 75, 0.3);
    letter-spacing: 0.5px;
    cursor: pointer;
    border: none;
}

    .cta-btn:hover {
        background: linear-gradient(135deg, #d94d4d, #b83636);
        transform: translateY(-4px);
        box-shadow: 0 12px 36px rgba(233, 75, 75, 0.4);
    }

/* --- Responsive Design --- */
@media (max-width: 1024px) {
    .gallery-container {
        padding: 60px 30px;
    }

    .gallery-header h1 {
        font-size: 2.8rem;
    }

    .before-after-gallery {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .comparison-item {
        min-height: 260px;
    }
}

@media (max-width: 768px) {
    .gallery-container {
        padding: 40px 20px;
    }

    .gallery-header {
        margin-bottom: 60px;
    }

        .gallery-header h1 {
            font-size: 2.2rem;
        }

        .gallery-header p {
            font-size: 1.1rem;
        }

    .before-after-section h2 {
        font-size: 2rem;
    }

    .section-subtitle {
        margin-bottom: 40px;
    }

    .before-after-gallery {
        gap: 32px;
    }

    .comparison-pair {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .comparison-item {
        min-height: 240px;
    }

    .gallery-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 24px;
    }

    .gallery-item {
        height: 260px;
    }

    .gallery-cta {
        padding: 50px 20px;
    }

        .gallery-cta h2 {
            font-size: 2rem;
        }

        .gallery-cta p {
            font-size: 1.1rem;
        }

    .cta-btn {
        padding: 14px 36px;
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .navbar {
        flex-direction: column;
        padding: 16px 12px;
        gap: 12px;
    }

    .logo {
        font-size: 1.4rem;
    }

    .nav-menu {
        gap: 8px;
        flex-wrap: wrap;
        justify-content: center;
    }

    .nav-link {
        font-size: 0.9rem;
    }

    .book-btn {
        margin-left: 0;
        width: 100%;
        padding: 10px 20px;
        font-size: 0.9rem;
    }

    .gallery-container {
        padding: 30px 16px;
    }

    .gallery-header h1 {
        font-size: 1.8rem;
    }

    .gallery-header p {
        font-size: 1rem;
    }

    .before-after-section h2 {
        font-size: 1.6rem;
    }

    .before-after-gallery {
        gap: 24px;
    }

    .comparison-pair {
        grid-template-columns: 1fr;
    }

    .comparison-item {
        min-height: 200px;
    }

    .comparison-label {
        font-size: 0.7rem;
        padding: 6px 10px;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .gallery-item {
        height: 220px;
    }

    .gallery-cta {
        padding: 40px 16px;
        border-radius: 16px;
    }

        .gallery-cta h2 {
            font-size: 1.6rem;
        }

    .cta-btn {
        padding: 12px 28px;
        font-size: 0.95rem;
    }
}

/* Ensure box-sizing for all elements */
*, *::before, *::after {
    box-sizing: border-box;
}

/* --- Lightbox Modal --- */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

    .lightbox.active {
        display: flex;
        opacity: 1;
    }

.lightbox-content {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    animation: slideIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes slideIn {
    from {
        transform: scale(0.8);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

#lightbox-image {
    display: block;
    max-width: 100%;
    max-height: 85vh;
    object-fit: contain;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.lightbox-close {
    position: absolute;
    top: -40px;
    right: 0;
    background: none;
    border: none;
    color: var(--white);
    font-size: 3rem;
    cursor: pointer;
    padding: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    font-weight: 300;
}

    .lightbox-close:hover {
        color: var(--red);
        transform: scale(1.2);
    }

/* Mobile lightbox adjustments */
@media (max-width: 768px) {
    .lightbox-content {
        max-width: 95vw;
        max-height: 80vh;
    }

    #lightbox-image {
        max-height: 80vh;
    }

    .lightbox-close {
        top: -35px;
        font-size: 2.2rem;
    }
}
