/* ==========================================================================
   RENDER VS REALITY DEDICATED STYLESHEET
   Swastika Design & Constructions
   ========================================================================== */

:root {
    --navbar-height: 80px;
}

/* --- Hero Banner: Absolute 100vh Fit (Zero Peeking) --- */
.render-hero {
    position: relative;
    width: 100%;
    height: 100dvh;
    min-height: 100dvh;
    box-sizing: border-box;
    padding-top: var(--navbar-height);
    padding-bottom: 24px;
    padding-left: 20px;
    padding-right: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle at 50% 30%, #1a1e24 0%, #0b0d10 100%);
    overflow: hidden;
    border-bottom: 1px solid rgba(166, 124, 50, 0.25);
}

.hero-particles-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.render-hero-container {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 860px;
    margin: 0 auto;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.render-hero-content {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.render-hero-content .section-tag {
    letter-spacing: 0.14em;
    font-size: clamp(0.72rem, 1vw, 0.82rem);
    margin-bottom: 6px;
    color: #c49b5d;
}

.render-hero-content h1 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2.2rem, 4vw, 3.5rem);
    color: #ffffff;
    margin: 0 0 clamp(6px, 1.2vh, 12px);
    line-height: 1.15;
    letter-spacing: -0.01em;
}

.render-hero-lead {
    font-size: clamp(0.86rem, 1.2vw, 1.02rem);
    line-height: 1.55;
    color: #b8bec9;
    font-weight: 300;
    max-width: 680px;
    margin: 0 auto clamp(12px, 2vh, 20px);
}

/* --- Stats Row --- */
.render-stats-row {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: clamp(14px, 2.5vw, 36px);
    padding: clamp(8px, 1.1vh, 12px) clamp(18px, 3vw, 36px);
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(166, 124, 50, 0.35);
    border-radius: 60px;
    backdrop-filter: blur(10px);
    margin-bottom: clamp(14px, 2.4vh, 24px);
}

.render-stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stat-number {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.15rem, 1.8vw, 1.6rem);
    font-weight: 700;
    color: #c49b5d;
    line-height: 1.1;
}

.stat-text {
    font-size: clamp(0.64rem, 0.85vw, 0.72rem);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #a0a6b0;
    margin-top: 2px;
}

.render-stat-divider {
    width: 1px;
    height: 24px;
    background: rgba(255, 255, 255, 0.12);
}

/* ==========================================================================
   VERTICAL 3-TIER PILLARS (ONE BELOW THE OTHER IN DESKTOP & TABLET)
   ========================================================================== */
.hero-vertical-pillars {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: clamp(8px, 1.3vh, 12px);
    width: 100%;
    max-width: 620px;
}

.pillar-card {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 16px;
    padding: clamp(8px, 1.1vh, 12px) 20px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(166, 124, 50, 0.25);
    border-left: 3px solid #c49b5d;
    border-radius: 8px;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    text-align: left;
}

.pillar-card:hover {
    background: rgba(166, 124, 50, 0.1);
    border-color: rgba(166, 124, 50, 0.6);
    border-left: 3px solid #e1c38d;
    transform: translateX(4px);
}

.pillar-icon {
    width: 34px;
    height: 34px;
    min-width: 34px;
    border-radius: 50%;
    background: rgba(166, 124, 50, 0.15);
    border: 1px solid rgba(166, 124, 50, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #c49b5d;
    font-size: 0.85rem;
    transition: transform 0.25s ease;
}

.pillar-card:hover .pillar-icon {
    transform: scale(1.1);
    background: #c49b5d;
    color: #0b0d10;
}

.pillar-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.pillar-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(0.92rem, 1.1vw, 1.04rem);
    font-weight: 600;
    color: #ffffff;
    letter-spacing: 0.02em;
    line-height: 1.2;
}

.pillar-sub {
    font-size: clamp(0.72rem, 0.85vw, 0.78rem);
    color: #9ea5b1;
    font-weight: 300;
    line-height: 1.35;
    margin-top: 2px;
}

/* ==========================================================================
   GALLERY SECTION (Positioned exactly below the 100vh fold)
   ========================================================================== */
.render-gallery-section {
    position: relative;
    z-index: 5;
    padding: 80px 0 110px;
    background: #0d0f13;
}

/* --- Category Filter Tabs --- */
.filter-tabs-wrapper {
    display: flex;
    justify-content: center;
    margin-bottom: 45px;
    position: sticky;
    top: 80px;
    z-index: 10;
}

.filter-tabs {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 8px;
    background: rgba(18, 22, 28, 0.92);
    padding: 6px 10px;
    border-radius: 50px;
    border: 1px solid rgba(166, 124, 50, 0.25);
    backdrop-filter: blur(14px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
}

.tab-btn {
    border: none;
    outline: none;
    background: transparent;
    color: #b0b7c3;
    font-size: 0.88rem;
    font-weight: 500;
    padding: 8px 18px;
    border-radius: 40px;
    cursor: pointer;
    transition: all 0.25s ease;
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.tab-btn:hover {
    color: #ffffff;
}

.tab-btn.active {
    background: linear-gradient(135deg, #c49b5d 0%, #a67c32 100%);
    color: #ffffff;
    box-shadow: 0 4px 14px rgba(166, 124, 50, 0.35);
}

/* --- 4 Columns 9:16 Matrix --- */
.rr-gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.rr-card {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    background: #15181e;
    border: 1px solid rgba(255, 255, 255, 0.07);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.35);
    transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1), 
                box-shadow 0.3s ease, 
                opacity 0.25s ease;
    cursor: pointer;
}

.rr-card:hover {
    transform: translateY(-6px);
    border-color: rgba(166, 124, 50, 0.6);
    box-shadow: 0 16px 36px rgba(166, 124, 50, 0.22);
}

.rr-image-container {
    position: relative;
    width: 100%;
    aspect-ratio: 9 / 16;
    overflow: hidden;
}

.rr-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.rr-card:hover .rr-image-container img {
    transform: scale(1.05);
}

/* --- Single Clean Caption Overlay --- */
.rr-card-overlay {
    position: absolute;
    inset: 0;
    /* background: linear-gradient(
        to top,
        rgba(9, 11, 14, 0.94) 0%,
        rgba(9, 11, 14, 0.3) 35%,
        transparent 65%
    ); */
    display: flex;
    align-items: flex-end;
    justify-content: flex-start;
    padding: 22px 18px;
    transition: background 0.3s ease;
}

.rr-card:hover .rr-card-overlay {
    background: linear-gradient(
        to top,
        rgba(9, 11, 14, 0.98) 0%,
        rgba(9, 11, 14, 0.45) 45%,
        transparent 75%
    );
}

.rr-card-overlay h4 {
    font-family: 'Playfair Display', serif;
    font-size: 1.1rem;
    color: #ffffff;
    margin: 0;
    line-height: 1.3;
    letter-spacing: 0.01em;
}

/* --- Lightbox Modal --- */
.rr-lightbox {
    position: fixed;
    inset: 0;
    background: rgba(5, 7, 10, 0.94);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
    backdrop-filter: blur(12px);
}

.rr-lightbox.active {
    opacity: 1;
    pointer-events: auto;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 24px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ffffff;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.lightbox-close:hover {
    background: #c49b5d;
    border-color: #c49b5d;
    transform: rotate(90deg);
}

.lightbox-content {
    max-width: 90vw;
    max-height: 92vh;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.lightbox-content img {
    max-height: 78vh;
    aspect-ratio: 9 / 16;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.85);
    border: 1px solid rgba(166, 124, 50, 0.3);
}

.lightbox-meta {
    margin-top: 14px;
    text-align: center;
}

.lightbox-meta h3 {
    font-family: 'Playfair Display', serif;
    color: #ffffff;
    font-size: 1.25rem;
    margin: 0;
}

/* ==========================================================================
   RESPONSIVE BREAKPOINTS
   ========================================================================== */

/* Tablets / Medium Desktops (3 columns) */
@media (max-width: 1100px) {
    .rr-gallery-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }
}

/* Tablets (2 columns) */
@media (max-width: 768px) {
    .render-stats-row {
        gap: 16px;
        padding: 8px 18px;
        margin-bottom: 16px;
    }

    .hero-vertical-pillars {
        max-width: 92%;
        gap: 8px;
    }

    .pillar-card {
        padding: 8px 14px;
        gap: 12px;
    }

    .pillar-icon {
        width: 30px;
        height: 30px;
        min-width: 30px;
        font-size: 0.78rem;
    }

    .filter-tabs {
        justify-content: center;
    }

    .tab-btn {
        font-size: 0.82rem;
        padding: 6px 14px;
    }

    .rr-gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
}

/* Mobile Phones (1 column) */
@media (max-width: 480px) {
    .render-stats-row {
        gap: 10px;
        padding: 6px 12px;
        margin-bottom: 12px;
    }

    .stat-number {
        font-size: 1.05rem;
    }

    .stat-text {
        font-size: 0.6rem;
    }

    .hero-vertical-pillars {
        /* max-width: 100%; */
        gap: 22px;
    }

    .pillar-card {
        padding: 6px 10px;
        gap: 10px;
    }

    .pillar-title {
        font-size: 0.82rem;
    }

    .pillar-sub {
        font-size: 0.65rem;
    }

    .filter-tabs-wrapper {
        top: 65px;
    }

    .filter-tabs {
        width: 100%;
        border-radius: 14px;
        padding: 4px;
        gap: 4px;
    }

    .tab-btn {
        flex: 1 1 30%;
        justify-content: center;
        padding: 6px 8px;
        font-size: 0.72rem;
    }

    .rr-gallery-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }
}