/* ============================================================
   GALLERY.CSS — Yash Infotech Gallery Page
   ============================================================ */

/* ── Variables (mirrors index.aspx) ── */
:root {
    --red: #e63946;
    --red-dark: #c1121f;
    --navy: #0d1b2a;
    --navy-mid: #1b2a3b;
    --navy-light: #1e3a5f;
    --gold: #f4a261;
    --gray-bg: #f4f6f9;
    --text: #1a1a2e;
    --muted: #6c757d;
    --shadow: 0 4px 20px rgba(0,0,0,0.08);
    --shadow-lg: 0 12px 35px rgba(0,0,0,0.15);
    --radius: 12px;
}

/* ── Base ── */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html, body {
    font-family: 'Poppins', 'Segoe UI', Arial, sans-serif;
    background: #ffffff;
    color: var(--text);
    min-height: 100vh;
    overflow-x: hidden;
}

/* ============================================================
   PAGE FADE-IN ANIMATION
   ============================================================ */
@keyframes pageFadeIn {
    from {
        opacity: 0;
        transform: translateY(12px);
    }

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

body {
    animation: pageFadeIn 0.55s ease forwards;
}


/* ============================================================
   STICKY NAVBAR (mirrors index + gallery active state)
   ============================================================ */
#citp-navbar {
    background: #fff;
    box-shadow: 0 2px 16px rgba(0,0,0,0.08);
    position: sticky;
    top: 0;
    z-index: 1050;
}

    #citp-navbar .navbar-inner {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 10px 24px;
        max-width: 1200px;
        margin: 0 auto;
    }

.citp-brand {
    display: flex;
    align-items: center;
    gap: 14px;
    text-decoration: none;
}

.nav-logo {
    height: 40px;
    width: auto;
    max-width: 40px;
    object-fit: contain;
    display: block;
    border-radius: 6px;
}

.nav-brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.nav-brand-name {
    font-size: 22px;
    font-weight: 800;
    letter-spacing: 0.5px;
    color: #1d3557;
}

    .nav-brand-name span {
        color: #c1121f;
    }

.nav-brand-tagline {
    font-size: 11px;
    letter-spacing: 2px;
    color: #8a97b0;
    font-weight: 500;
    text-transform: uppercase;
}

#citp-navlinks {
    display: flex;
    align-items: center;
    gap: 4px;
    list-style: none;
}

    #citp-navlinks li a {
        font-size: 14px;
        font-weight: 500;
        color: var(--text);
        text-decoration: none;
        padding: 8px 16px;
        border-radius: 6px;
        position: relative;
        transition: all 0.25s;
        display: inline-block;
    }

        #citp-navlinks li a::after {
            content: '';
            position: absolute;
            bottom: 2px;
            left: 16px;
            right: 16px;
            height: 2px;
            background: var(--red);
            transform: scaleX(0);
            transition: transform 0.25s;
        }

        #citp-navlinks li a:hover {
            color: var(--red);
        }

            #citp-navlinks li a:hover::after,
            #citp-navlinks li a.active::after {
                transform: scaleX(1);
            }

.citp-apply-btn {
    background: var(--red);
    color: #fff;
    border: none;
    padding: 10px 22px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.3s;
    box-shadow: 0 4px 14px rgba(230,57,70,0.35);
}

    .citp-apply-btn:hover {
        background: var(--red-dark);
        color: #fff;
        transform: translateY(-2px);
    }

/* Mobile toggle */
#citp-toggle {
    display: none;
    background: none;
    border: 1.5px solid #ddd;
    border-radius: 6px;
    padding: 6px 10px;
    cursor: pointer;
    flex-direction: column;
    gap: 4px;
}

    #citp-toggle span {
        display: block;
        width: 20px;
        height: 2px;
        background: var(--navy);
    }

@media (max-width: 768px) {
    #citp-toggle {
        display: flex;
    }

    #citp-navlinks {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 70px;
        left: 0;
        right: 0;
        background: #fff;
        padding: 16px;
        box-shadow: 0 8px 24px rgba(0,0,0,0.12);
        z-index: 999;
    }

        #citp-navlinks.open {
            display: flex;
        }
}

/* ============================================================
   GALLERY HERO SECTION — PARALLAX / STICKY BACKGROUND
   ============================================================ */

/* ── Section wrapper ── */
.gallery-hero {
    position: relative;
    min-height: 88vh; /* tall, dramatic hero */
    display: flex;
    align-items: center;
    justify-content: center;
    /* overflow: hidden is intentionally removed —
       it breaks background-attachment: fixed in all browsers */
    /* Real image + dark overlay stacked in one declaration */
    background-image: linear-gradient( to bottom, rgba(0, 0, 0, 0.55) 0%, rgba(10, 18, 32, 0.72) 100% ), url('https://images.unsplash.com/photo-1606857521015-7f9fcf423740?q=80&w=870&auto=format&fit=crop&ixlib=rb-4.1.0&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D');
    /* ← STICKY / PARALLAX — image stays fixed while page scrolls */
    background-attachment: fixed;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
}

    /* Red radial accent — brand colour glow */
    .gallery-hero::before {
        content: '';
        position: absolute;
        inset: 0;
        background: radial-gradient( ellipse at 15% 60%, rgba(230, 57, 70, 0.20) 0%, transparent 60% );
        z-index: 1;
        pointer-events: none;
    }

    /* Subtle dot-grid texture for depth */
    .gallery-hero::after {
        content: '';
        position: absolute;
        inset: 0;
        background-image: radial-gradient(rgba(255,255,255,0.07) 1px, transparent 1px);
        background-size: 28px 28px;
        z-index: 1;
        pointer-events: none;
    }

/* ── Content wrapper ── */
.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 100px 24px 90px;
    width: 100%;
    max-width: 860px;
    margin: 0 auto;
}

/* ── Shared fade-up keyframe ── */
@keyframes heroFadeUp {
    from {
        opacity: 0;
        transform: translateY(28px);
    }

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

/* ── Badge pill ── */
.gallery-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(230, 57, 70, 0.18);
    border: 1px solid rgba(230, 57, 70, 0.45);
    color: #ff8f98;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    padding: 7px 22px;
    border-radius: 30px;
    margin-bottom: 24px;
    animation: heroFadeUp 0.65s ease 0.10s both;
}

/* ── Main heading ── */
.gallery-hero-title {
    font-size: clamp(2.6rem, 6vw, 4.2rem);
    font-weight: 800;
    color: #ffffff;
    line-height: 1.10;
    margin-bottom: 12px;
    text-shadow: 0 4px 28px rgba(0, 0, 0, 0.60);
    animation: heroFadeUp 0.65s ease 0.20s both;
}

    .gallery-hero-title span {
        color: var(--red);
    }

/* ── Subtitle ── */
.gallery-hero-subtitle {
    font-size: 17px;
    color: rgba(255, 255, 255, 0.68);
    font-weight: 300;
    letter-spacing: 1px;
    text-transform: uppercase;
    animation: heroFadeUp 0.65s ease 0.30s both;
    margin-bottom: 0;
}

/* ── Quote block ── */
.hero-quote {
    position: relative;
    margin: 36px auto 36px;
    max-width: 640px;
    padding: 28px 36px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.13);
    border-left: 4px solid var(--red);
    border-radius: 12px;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    animation: heroFadeUp 0.70s ease 0.42s both;
}

.hero-quote-icon {
    font-size: 36px;
    color: var(--red);
    opacity: 0.70;
    display: block;
    margin-bottom: 10px;
    line-height: 1;
}

.hero-quote-text {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.88);
    font-weight: 400;
    font-style: italic;
    line-height: 1.75;
    margin: 0 0 14px 0;
    letter-spacing: 0.2px;
}

.hero-quote-author {
    display: block;
    font-size: 12.5px;
    font-weight: 600;
    letter-spacing: 1.8px;
    text-transform: uppercase;
    color: var(--red);
}

/* ── Breadcrumb trail ── */
.gallery-hero-breadcrumb {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.40);
    animation: heroFadeUp 0.65s ease 0.55s both;
}

    .gallery-hero-breadcrumb a {
        color: rgba(255, 255, 255, 0.58);
        text-decoration: none;
        transition: color 0.2s;
    }

        .gallery-hero-breadcrumb a:hover {
            color: var(--red);
        }

    .gallery-hero-breadcrumb .sep {
        font-size: 10px;
        color: rgba(255, 255, 255, 0.22);
    }

    .gallery-hero-breadcrumb .current {
        color: var(--red);
        font-weight: 600;
    }

/* ── Mobile: disable fixed attachment (iOS Safari bug fix) ── */
@media (max-width: 768px) {
    .gallery-hero {
        background-attachment: scroll;
        min-height: 70vh;
    }

    .hero-content {
        padding: 70px 20px 60px;
    }

    .hero-quote {
        padding: 22px 22px;
        margin: 28px auto 28px;
    }

    .hero-quote-text {
        font-size: 14.5px;
    }
}

/* ============================================================
   GALLERY MAIN SECTION
   ============================================================ */
#gallery-section {
    background: var(--gray-bg);
    padding: 70px 0 90px;
}

.gallery-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* section label */
.gallery-section-label {
    text-align: center;
    margin-bottom: 48px;
}

.gallery-section-tag {
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--red);
    margin-bottom: 8px;
}

.gallery-section-title {
    font-size: clamp(1.6rem, 3vw, 2.1rem);
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 10px;
}

.gallery-section-line {
    width: 50px;
    height: 4px;
    background: linear-gradient(90deg, var(--red), #ff6b6b);
    border-radius: 3px;
    margin: 0 auto;
}

/* ── Image Grid ── */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

@media (max-width: 900px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 18px;
    }
}

@media (max-width: 560px) {
    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
}

/* ── Card ── */
@keyframes cardFadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

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

.gallery-card {
    position: relative;
    border-radius: 14px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 4px 18px rgba(0,0,0,0.08);
    cursor: pointer;
    transition: transform 0.35s cubic-bezier(.25,.46,.45,.94), box-shadow 0.35s ease;
    animation: cardFadeIn 0.5s ease both;
}

    /* stagger the card animations */
    .gallery-card:nth-child(1) {
        animation-delay: 0.05s;
    }

    .gallery-card:nth-child(2) {
        animation-delay: 0.10s;
    }

    .gallery-card:nth-child(3) {
        animation-delay: 0.15s;
    }

    .gallery-card:nth-child(4) {
        animation-delay: 0.20s;
    }

    .gallery-card:nth-child(5) {
        animation-delay: 0.25s;
    }

    .gallery-card:nth-child(6) {
        animation-delay: 0.30s;
    }

    .gallery-card:nth-child(7) {
        animation-delay: 0.35s;
    }

    .gallery-card:nth-child(8) {
        animation-delay: 0.40s;
    }

    .gallery-card:hover {
        transform: translateY(-6px) scale(1.01);
        box-shadow: 0 18px 50px rgba(0,0,0,0.16);
    }

    /* image itself */
    .gallery-card img {
        display: block;
        width: 100%;
        aspect-ratio: 4 / 3;
        object-fit: cover;
        transition: transform 0.45s cubic-bezier(.25,.46,.45,.94);
    }

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

/* overlay */
.gallery-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient( to top, rgba(13,27,42,0.82) 0%, rgba(13,27,42,0.20) 50%, transparent 100% );
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding-bottom: 22px;
    opacity: 0;
    transition: opacity 0.35s ease;
}

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

.gallery-card-overlay-text {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.5px;
    background: rgba(230,57,70,0.88);
    padding: 9px 22px;
    border-radius: 30px;
    box-shadow: 0 4px 16px rgba(230,57,70,0.45);
    transform: translateY(8px);
    transition: transform 0.35s ease;
}

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

/* card number badge */
.gallery-card-num {
    position: absolute;
    top: 12px;
    left: 12px;
    background: rgba(13,27,42,0.65);
    color: rgba(255,255,255,0.75);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
    padding: 4px 10px;
    border-radius: 20px;
    backdrop-filter: blur(4px);
}

/* ============================================================
   LIGHTBOX MODAL
   ============================================================ */
#galleryModal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9999;
    align-items: center;
    justify-content: center;
}

    #galleryModal.active {
        display: flex;
    }

/* backdrop blur */
.gmodal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(5, 10, 20, 0.82);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    animation: backdropIn 0.3s ease;
}

@keyframes backdropIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* modal box */
.gmodal-box {
    position: relative;
    z-index: 1;
    max-width: 88vw;
    max-height: 88vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    animation: modalIn 0.35s cubic-bezier(.25,.46,.45,.94);
}

@keyframes modalIn {
    from {
        opacity: 0;
        transform: scale(0.88);
    }

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

.gmodal-img-wrap {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 24px 80px rgba(0,0,0,0.6);
    max-width: 88vw;
    max-height: 78vh;
    line-height: 0;
}

    .gmodal-img-wrap img {
        display: block;
        max-width: 88vw;
        max-height: 78vh;
        object-fit: contain;
        border-radius: 16px;
    }

/* close button */
.gmodal-close {
    position: absolute;
    top: -18px;
    right: -18px;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--red);
    color: #fff;
    border: none;
    font-size: 20px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(230,57,70,0.5);
    transition: background 0.2s, transform 0.2s;
    line-height: 1;
}

    .gmodal-close:hover {
        background: var(--red-dark);
        transform: scale(1.1) rotate(90deg);
    }

/* nav arrows */
.gmodal-nav {
    display: flex;
    gap: 14px;
    margin-top: 18px;
}

.gmodal-nav-btn {
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.18);
    color: #fff;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, transform 0.2s;
    backdrop-filter: blur(4px);
}

    .gmodal-nav-btn:hover {
        background: rgba(230,57,70,0.75);
        transform: scale(1.08);
    }

/* counter */
.gmodal-counter {
    color: rgba(255,255,255,0.55);
    font-size: 13px;
    font-weight: 500;
    margin-top: 10px;
    letter-spacing: 1px;
}

/* ============================================================
   CONTACT SECTION (mirrors index)
   ============================================================ */
#citp-contact {
    background: var(--navy-light);
    padding: 80px 0;
}

.citp-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.contact-heading-wrap {
    text-align: center;
    margin-bottom: 42px;
}

    .contact-heading-wrap h2 {
        font-size: clamp(1.7rem, 3vw, 2.2rem);
        font-weight: 700;
        color: #fff;
        margin-bottom: 8px;
    }

    .contact-heading-wrap p {
        color: rgba(255,255,255,0.55);
        font-size: 15px;
    }

.contact-accent-line {
    width: 48px;
    height: 4px;
    background: linear-gradient(90deg, var(--red), #ff6b6b);
    border-radius: 3px;
    margin: 14px auto 0;
}

.contact-cols {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

@media (max-width: 768px) {
    .contact-cols {
        grid-template-columns: 1fr;
        gap: 18px;
    }
}

.contact-col {
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.10);
    border-radius: 14px;
    padding: 28px 24px;
    display: flex;
    gap: 16px;
    align-items: flex-start;
    transition: background 0.25s, transform 0.25s;
}

    .contact-col:hover {
        background: rgba(255,255,255,0.10);
        transform: translateY(-3px);
    }

.contact-col-icon {
    width: 48px;
    height: 48px;
    min-width: 48px;
    border-radius: 12px;
    background: rgba(230,57,70,0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: var(--red);
}

.contact-col-label {
    display: block;
    font-size: 10.5px;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: rgba(255,255,255,0.40);
    margin-bottom: 6px;
}

.contact-col-value {
    font-size: 13.5px;
    color: rgba(255,255,255,0.80);
    line-height: 1.65;
    font-weight: 500;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

    .contact-col-value a {
        color: rgba(255,255,255,0.80);
        text-decoration: none;
        transition: color 0.2s;
    }

        .contact-col-value a:hover {
            color: var(--red);
        }

/* ============================================================
   FOOTER (mirrors index)
   ============================================================ */
#citp-footer {
    background: #131e36;
    border-top: 1px solid rgba(255,255,255,0.07);
    padding: 22px 0;
    text-align: center;
}

    #citp-footer p {
        color: rgba(255,255,255,0.35);
        font-size: 12.5px;
        margin: 2px 0;
    }

    #citp-footer a {
        color: rgba(255,255,255,0.55);
        text-decoration: none;
        transition: color 0.2s;
    }

        #citp-footer a:hover {
            color: var(--red);
        }

/* ============================================================
   SCROLL FADE-UP UTILITY (same as index)
   ============================================================ */
.fade-up {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity 0.55s ease, transform 0.55s ease;
}

    .fade-up.visible {
        opacity: 1;
        transform: translateY(0);
    }
