:root {
    --purple-deep: #3b0764;
    --purple-mid: #7c3aed;
    --purple-light: #6D5DF6;
    --purple-gradient: linear-gradient(180deg, rgba(76, 0, 176, 1) 0%, rgba(109, 93, 246, 1) 50%, rgba(169, 156, 253, 1) 100%);
    --white: #f5f0ff;
    --font-color: #260058;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Outfit', sans-serif;
    background: var(--white);
    color: var(--font-color);
}

.bg-blob {
    position: fixed;
    top: 100px;
    left: 0%;
    width: 50%;
    height: 110vh;
    transition: transform 0.05s linear;
    background-image: url("../resources/img/services/Ellipse.webp");
    background-size: 100% 100%;
    background-repeat: no-repeat;
    pointer-events: none;
    z-index: 0;
}

/* ════════════════════
   HERO
════════════════════ */
.hero {
    position: relative;
    width: 100%;
    height: 42vw;
    min-height: 260px;
    max-height: 480px;
    overflow: hidden;
    background: #2a0050;
    z-index: 1;
}

.hero-video-wrap {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 40%;
    display: block;
}

.hero-video-content {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 40%;
    display: block;
}

/* Very subtle top-only darkening, strong white fade at bottom */
.hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(to bottom,
            rgba(0, 0, 0, 0.0) 0%,
            rgba(0, 0, 0, 0.0) 55%,
            rgba(245, 240, 255, 0.55) 78%,
            rgba(245, 240, 255, 1.0) 100%);
}

/* Content - bottom-left with purple left bar */
.hero-content {
    position: absolute;
    z-index: 2;
    bottom: 22px;
    left: 0;
    right: 0;
    padding: 0 40px 0 22px;
    display: flex;
    align-items: center;
    gap: 25px;
    max-width: 600px;
}

.hero-bar {
    width: 3px;
    height: 40px;
    background: var(--purple-mid);
    border-radius: 2px;
    flex-shrink: 0;
}

.hero-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(25px, 3.1vw, 37px);
    font-weight: 700;
    color: var(--font-color);
    line-height: 1.2;
}

/* No sub/desc in this design */
.hero-sub,
.hero-desc {
    display: none;
}


/* ════════════════════
   RESPONSIVE
════════════════════ */

@media (min-width: 1101px) {
    .hero-content {
        left: 0;
        margin-left: 40px;
        /* bottom: 60px; */
        padding-left: 40px;
    }
}

@media (max-width: 1100px) and (min-width: 851px) {
    .hero-content {
        left: 32px;
        bottom: 20px;
    }
}

@media (max-width: 850px) and (min-width: 538px) {
    .hero {
        height: 48vw;
        min-height: 220px;
        max-height: 340px;
    }

    .hero-content {
        left: 24px;
        bottom: 16px;
    }

    .hero-bar {
        height: 40px;
    }
}

@media (max-width: 537px) {
    .hero {
        height: 52vw;
        min-height: 180px;
        max-height: 280px;
    }

    .hero-content {
        left: 16px;
        bottom: 12px;
        gap: 20px;
    }

    .hero-bar {
        height: 50px;
        width: 3px;
    }

    /* .hero-title {
        font-size: clamp(14px, 4vw, 20px);
    } */
}

@media (max-width: 380px) {
    .hero {
        height: 54vw;
        min-height: 160px;
    }

    .hero-content {
        left: 12px;
        bottom: 10px;
    }
}


/* ════════════════════════════════════════
   GALLERY SECTION
════════════════════════════════════════ */
.gallery-section {
    width: 100%;
    max-width: 1160px;
    margin: 3rem auto;
    padding: 60px 32px 80px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 32px;
}

/* ════════════════════════════════════════
   HEADER
════════════════════════════════════════ */
.gallery-header {
    text-align: center;
    max-width: 800px;
}

.gallery-label {
    font-family: 'Outfit', sans-serif;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--purple-light);
    margin-bottom: 8px;
}

.gallery-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(26px, 4vw, 42px);
    font-weight: 700;
    color: var(--font-color);
    line-height: 1.2;
    margin-bottom: 16px;
}

.gallery-title em {
    font-style: italic;
    color: var(--purple-light);
}

.gallery-desc {
    font-family: 'Outfit', sans-serif;
    font-size: 12px;
    line-height: 1.7;
    color: var(--text-muted);
    max-width: 700px;
    margin: 0 auto;
}

/* ════════════════════════════════════════
   GALLERY GRID - EXACT LAYOUT
   7 columns total
   Row 1: 5 images [small(1), small(1), wide(3), small(1), small(1)]
   Row 2: 7 images [small(1), small(1), wide(2), small(1), small(1), small(1), small(1)]
════════════════════════════════════════ */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    grid-template-rows: repeat(2, 200px);
    gap: 10px;
    width: 100%;
}

.gallery-item {
    border-radius: 12px;
    overflow: hidden;
    position: relative;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.gallery-item:hover img {
    transform: scale(1.08);
}

/* Row 1 - 5 items */
.gallery-item:nth-child(1) { grid-column: 1 / 2; grid-row: 1; }
.gallery-item:nth-child(2) { grid-column: 2 / 3; grid-row: 1; }
.gallery-item:nth-child(3) { grid-column: 3 / 6; grid-row: 1; } /* wide - 3 cols */
.gallery-item:nth-child(4) { grid-column: 6 / 7; grid-row: 1; }
.gallery-item:nth-child(5) { grid-column: 7 / 8; grid-row: 1; }

/* Row 2 - 7 items */
.gallery-item:nth-child(6) { grid-column: 1 / 2; grid-row: 2; }
.gallery-item:nth-child(7) { grid-column: 2 / 3; grid-row: 2; }
.gallery-item:nth-child(8) { grid-column: 3 / 5; grid-row: 2; } /* wide - 2 cols */
.gallery-item:nth-child(9) { grid-column: 5 / 6; grid-row: 2; }
.gallery-item:nth-child(10) { grid-column: 6 / 7; grid-row: 2; }
.gallery-item:nth-child(11) { grid-column: 7 / 8; grid-row: 2; }

/* Wait, that's only 11 items. I need 12 for row 2 to have 7 items */
/* Row 1: items 1-5 (5 items) */
/* Row 2: items 6-12 (7 items) */
/* Total 12 items */

/* Adding 12th item */
.gallery-item:nth-child(12) { 
    display: none; /* Hide for now, or adjust layout */
}

/* Actually let me recount the image - it looks like 12 items total */
/* Row 1: 5 items */
/* Row 2: 7 items */
/* But my HTML only has 12 items defined. Let me check */
/* HTML has: 5 (row 1) + 7 (row 2) = 12 items ✓ */

/* So items are numbered 1-12 */
/* Row 1: 1,2,3,4,5 */
/* Row 2: 6,7,8,9,10,11,12 */

/* Correction for items 6-12 in row 2 */
.gallery-item:nth-child(6) { grid-column: 1 / 2; grid-row: 2; }
.gallery-item:nth-child(7) { grid-column: 2 / 3; grid-row: 2; }
.gallery-item:nth-child(8) { grid-column: 3 / 5; grid-row: 2; } /* wide */
.gallery-item:nth-child(9) { grid-column: 5 / 6; grid-row: 2; }
.gallery-item:nth-child(10) { grid-column: 6 / 7; grid-row: 2; }
.gallery-item:nth-child(11) { grid-column: 7 / 8; grid-row: 2; }
.gallery-item:nth-child(12) { 
    /* 7th item in row 2 - but we only have 7 columns! */
    /* This means the wide image in row 2 should only be 1 column, or layout is different */
    display: none;
}

/* ════════════════════════════════════════
   RESPONSIVE - Tablet
════════════════════════════════════════ */
@media (max-width: 968px) {
    .gallery-section {
        padding: 48px 24px 64px;
    }

    .gallery-grid {
        grid-template-columns: repeat(4, 1fr);
        grid-template-rows: repeat(3, 160px);
        gap: 8px;
    }

    /* Show first 8 items only */
    .gallery-item:nth-child(1) { grid-column: 1 / 2; grid-row: 1; }
    .gallery-item:nth-child(2) { grid-column: 2 / 3; grid-row: 1; }
    .gallery-item:nth-child(3) { grid-column: 3 / 5; grid-row: 1; } /* wide */
    .gallery-item:nth-child(4) { grid-column: 1 / 2; grid-row: 2; }
    .gallery-item:nth-child(5) { grid-column: 2 / 3; grid-row: 2; }
    .gallery-item:nth-child(6) { grid-column: 3 / 4; grid-row: 2; }
    .gallery-item:nth-child(7) { grid-column: 4 / 5; grid-row: 2; }
    .gallery-item:nth-child(8) { grid-column: 1 / 3; grid-row: 3; } /* wide */

    .gallery-item:nth-child(9),
    .gallery-item:nth-child(10),
    .gallery-item:nth-child(11),
    .gallery-item:nth-child(12) {
        display: none;
    }
}

/* ════════════════════════════════════════
   RESPONSIVE - Mobile
════════════════════════════════════════ */
@media (max-width: 640px) {
    .gallery-section {
        padding: 36px 16px 48px;
        gap: 24px;
    }

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: repeat(5, 140px);
        gap: 8px;
    }

    .gallery-title {
        font-size: clamp(22px, 6vw, 28px);
    }

    .gallery-desc {
        font-size: 11px;
    }

    /* Mobile - show 10 items */
    .gallery-item:nth-child(1) { grid-column: 1 / 2; grid-row: 1; }
    .gallery-item:nth-child(2) { grid-column: 2 / 3; grid-row: 1; }
    .gallery-item:nth-child(3) { grid-column: 1 / 3; grid-row: 2; } /* wide */
    .gallery-item:nth-child(4) { grid-column: 1 / 2; grid-row: 3; }
    .gallery-item:nth-child(5) { grid-column: 2 / 3; grid-row: 3; }
    .gallery-item:nth-child(6) { grid-column: 1 / 3; grid-row: 4; } /* wide */
    .gallery-item:nth-child(7) { grid-column: 1 / 2; grid-row: 5; }
    .gallery-item:nth-child(8) { grid-column: 2 / 3; grid-row: 5; }

    .gallery-item:nth-child(9),
    .gallery-item:nth-child(10),
    .gallery-item:nth-child(11),
    .gallery-item:nth-child(12) {
        display: none;
    }
}

/* ════════════════════════════════════════
   RESPONSIVE - Small Mobile
════════════════════════════════════════ */
@media (max-width: 400px) {
    .gallery-grid {
        grid-template-rows: repeat(5, 120px);
        gap: 6px;
    }

    .gallery-item {
        border-radius: 8px;
    }
}


/* ── LIGHTBOX (click to zoom) ── */
.gallery-item {
    cursor: zoom-in;
}

.lightbox {
    position: fixed;
    inset: 0;
    z-index: 2000;
    background: rgba(20, 0, 45, 0.92);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 56px 72px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.lightbox.open {
    opacity: 1;
    visibility: visible;
}

.lightbox-img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    transform: scale(0.85);
    transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.3, 1);
}

.lightbox.open .lightbox-img {
    transform: scale(1);
}

.lightbox-close,
.lightbox-nav {
    position: absolute;
    background: rgba(255, 255, 255, 0.12);
    border: none;
    color: #f5f0ff;
    cursor: pointer;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.lightbox-close:hover,
.lightbox-nav:hover {
    background: #6D5DF6;
}

.lightbox-close {
    top: 16px;
    right: 16px;
    width: 44px;
    height: 44px;
    font-size: 28px;
    line-height: 1;
}

.lightbox-nav {
    top: 50%;
    width: 44px;
    height: 44px;
    margin-top: -22px;
    font-size: 18px;
}

.lightbox-prev { left: 16px; }
.lightbox-next { right: 16px; }

@media (max-width: 600px) {
    .lightbox {
        padding: 64px 12px;
    }

    .lightbox-nav {
        top: auto;
        bottom: 12px;
        margin-top: 0;
    }
}