/* =========================================================
   DEBDIPA'S HEALING MANTRA - GALLERY PAGE CSS
   Automatic Full-Width Horizontal Carousels & Milestones
   ========================================================= */

:root {
    --bg: #F3EBDD;
    --deep: #263F35;
    --green: #536B55;
    --gold: #c5a880;
    --gold-dark: #9b7842;
    --ivory: #FAF6F0;
    --text: #263F35;
    --muted: #5e6b63;
    --shadow: 0 10px 30px rgba(38, 63, 53, 0.08);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'DM Sans', Arial, sans-serif;
    background-color: #dfdbd3;
    background-image: url("assets/page-background.png");
    background-size: cover;
    background-position: top center;
    background-attachment: fixed;
    color: var(--text);
    min-height: 100vh;
    padding-top: 85px;
    /* Offset for fixed top navbar */
    overflow-x: hidden;
}

/* =========================================================
   TOP NAVIGATION BAR (GLASSMORPHISM)
   ========================================================= */
.top-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(243, 235, 221, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.65);
    z-index: 1000;
    padding: 12px 0;
    box-shadow: 0 8px 30px rgba(38, 63, 53, 0.08);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 40px;
}

.nav-logo {
    display: flex;
    align-items: center;
}

.nav-logo img {
    height: 45px;
    width: auto;
    object-fit: contain;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 45px;
    margin: 0;
    padding: 0;
}

.nav-links li a {
    font-family: 'Tenor Sans', sans-serif;
    font-size: 1.05rem;
    letter-spacing: 1px;
    color: var(--deep);
    transition: all 0.3s ease;
    position: relative;
    text-transform: uppercase;
    text-decoration: none;
}

.nav-links li a:hover {
    color: var(--green);
}

.nav-links li a.active {
    color: var(--deep);
    font-weight: bold;
}

.nav-links li a.active::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--deep);
    border-radius: 2px;
}

.nav-icons {
    display: flex;
    gap: 20px;
    align-items: center;
}

.icon-btn {
    color: var(--deep);
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.icon-btn:hover {
    color: var(--green);
}

/* =========================================================
   GALLERY MAIN CONTAINER
   ========================================================= */
.gallery-container {
    max-width: 100%;
    margin: 0 auto;
    padding: 20px 0 80px;
    overflow-x: hidden;
}

/* =========================================================
   MEET OUR FOUNDER (HERO SECTION)
   ========================================================= */
.founder-hero {
    text-align: center;
    margin-bottom: 50px;
    padding: 0 20px;
}

.founder-heading-main {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: clamp(34px, 4.5vw, 48px);
    font-weight: 500;
    color: #011804;
    text-shadow: 0 2px 10px rgba(38, 63, 53, 0.25);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.founder-heading-main em {
    font-family: 'Great Vibes', cursive;
    font-size: clamp(44px, 5.5vw, 62px);
    color: #43624d;
    font-style: normal;
    font-weight: 400;
    text-shadow: none;
}

.founder-image-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 0 auto;
}

.founder-image-box img {
    max-width: 360px;
    width: 100%;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 15px 25px rgba(38, 63, 53, 0.18));
}

.founder-pill {
    background: rgba(255, 255, 255, 0.90);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(83, 107, 85, 0.35);
    border-radius: 30px;
    padding: 7px 28px;
    color: var(--deep);
    font-family: 'Tenor Sans', sans-serif;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.5px;
    margin-top: -18px;
    position: relative;
    z-index: 5;
    box-shadow: 0 6px 18px rgba(38, 63, 53, 0.12);
}

/* =========================================================
   BIO SECTIONS (ACHIEVEMENT & MISSION)
   ========================================================= */
.bio-section {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 35px;
    align-items: center;
    max-width: 860px;
    margin: 50px auto;
    padding: 0 24px;
}

.bio-image-col {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.bio-image-col img {
    max-width: 230px;
    width: 100%;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 10px 20px rgba(38, 63, 53, 0.15));
}

.bio-image-col .founder-pill {
    padding: 5px 22px;
    font-size: 13.5px;
    margin-top: -12px;
}

.bio-text-col {
    display: flex;
    flex-direction: column;
}

.bio-script-title {
    font-family: 'Great Vibes', cursive;
    font-size: clamp(38px, 4vw, 48px);
    color: #43624d;
    font-weight: 400;
    margin-bottom: 8px;
    line-height: 1.1;
}

.bio-text-col p {
    font-family: 'DM Sans', sans-serif;
    font-size: 14.5px;
    line-height: 1.65;
    color: var(--deep);
    text-align: justify;
    margin: 0;
}

/* =========================================================
   MILESTONE TIMELINE & FULL-WIDTH AUTOMATIC CAROUSELS
   ========================================================= */
.milestone-block {
    margin: 55px 0;
    text-align: center;
    width: 100%;
}

.milestone-title {
    font-family: 'DM Sans', sans-serif;
    font-size: 15px;
    font-weight: 700;
    color: var(--deep);
    line-height: 1.5;
    max-width: 820px;
    margin: 0 auto 20px;
    padding: 0 24px;
    letter-spacing: 0.2px;
}

/* Full screen-width carousel strip */
.carousel-strip-container {
    width: 100%;
    overflow: hidden;
    padding: 12px 0;
    position: relative;
    mask-image: linear-gradient(to right, transparent, black 4%, black 96%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 4%, black 96%, transparent);
}

.carousel-strip-container.static-strip {
    mask-image: none;
    -webkit-mask-image: none;
    overflow: visible;
}

.carousel-track {
    display: flex;
    gap: 16px;
    width: max-content;
    animation: marqueeScroll 32s linear infinite;
}

.carousel-track.no-marquee {
    animation: none;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
}

.carousel-track.reverse {
    animation: marqueeScrollReverse 32s linear infinite;
}

.carousel-strip-container:hover .carousel-track {
    animation-play-state: paused;
}

@keyframes marqueeScroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

@keyframes marqueeScrollReverse {
    0% {
        transform: translateX(-50%);
    }

    100% {
        transform: translateX(0);
    }
}

.carousel-item {
    position: relative;
    width: 260px;
    height: 175px;
    flex-shrink: 0;
    border-radius: 14px;
    overflow: hidden;
    background: #ffffff;
    border: 1px solid rgba(83, 107, 85, 0.25);
    box-shadow: 0 6px 18px rgba(38, 63, 53, 0.10);
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s ease, border-color 0.35s ease;
    cursor: pointer;
}

.carousel-item:hover {
    transform: translateY(-5px) scale(1.03);
    border-color: var(--gold);
    box-shadow: 0 12px 28px rgba(38, 63, 53, 0.20);
}

.carousel-item.gold-border {
    border: 2px solid var(--gold);
    box-shadow: 0 6px 20px rgba(197, 168, 128, 0.35);
}

.carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.carousel-item:hover img {
    transform: scale(1.08);
}

/* Video badge overlay in carousel */
.carousel-video-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
}

.carousel-item:hover .carousel-video-overlay {
    background: rgba(0, 0, 0, 0.15);
}

.carousel-play-circle {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(38, 63, 53, 0.85);
    border: 2px solid var(--gold);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.35);
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.carousel-item:hover .carousel-play-circle {
    transform: scale(1.12);
    background: var(--gold);
    color: #ffffff;
}

/* =========================================================
   LIGHTBOX & VIDEO MODAL
   ========================================================= */
.gallery-lightbox {
    position: fixed;
    inset: 0;
    z-index: 3000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.gallery-lightbox.active {
    display: flex;
}

.lightbox-overlay-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(25, 61, 50, 0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    z-index: 1;
}

.lightbox-content {
    position: relative;
    max-width: 900px;
    width: 100%;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    animation: modalScaleIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalScaleIn {
    from {
        opacity: 0;
        transform: scale(0.92);
    }

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

.lightbox-close {
    position: absolute;
    top: -45px;
    right: 0;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #ffffff;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease, background 0.2s ease;
}

.lightbox-close:hover {
    transform: scale(1.15) rotate(90deg);
    background: rgba(255, 255, 255, 0.3);
}

.lightbox-media-container {
    width: 100%;
    max-height: 75vh;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    overflow: hidden;
    background: #000000;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.lightbox-img {
    max-width: 100%;
    max-height: 75vh;
    object-fit: contain;
    display: block;
}

.lightbox-video-iframe {
    width: 100%;
    aspect-ratio: 16 / 9;
    min-height: 460px;
    border: none;
}

.lightbox-video-player {
    width: 100%;
    max-height: 75vh;
    outline: none;
}

.lightbox-caption-bar {
    width: 100%;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 12px 18px;
    margin-top: 12px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #ffffff;
    text-align: left;
}

.lightbox-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 18px;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 3px;
}

.lightbox-desc {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.4;
    margin: 0;
}

/* =========================================================
   RESPONSIVE DESIGN
   ========================================================= */
@media (max-width: 992px) {
    .nav-container {
        padding: 0 20px;
    }

    .carousel-item {
        width: 220px;
        height: 150px;
    }

    .lightbox-video-iframe {
        min-height: 340px;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .bio-section {
        grid-template-columns: 1fr;
        gap: 20px;
        text-align: center;
    }

    .bio-text-col p {
        text-align: center;
    }

    .carousel-item {
        width: 180px;
        height: 125px;
    }

    .lightbox-video-iframe {
        min-height: 240px;
    }
}

@media (max-width: 480px) {
    .founder-heading-main {
        font-size: 28px;
    }

    .founder-heading-main em {
        font-size: 38px;
    }

    .milestone-title {
        font-size: 13.5px;
    }
}

/* ========================================
   UNIVERSAL MOBILE NAVIGATION DRAWER & BUTTON
======================================== */
.mobile-menu-btn {
    display: none;
    background: rgba(255, 255, 255, 0.4);
    border: 1px solid rgba(38, 63, 53, 0.2);
    border-radius: 8px;
    width: 38px;
    height: 38px;
    padding: 9px 8px;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    z-index: 105;
    transition: background 0.2s ease, border-color 0.2s ease;
    box-sizing: border-box;
}

@media (max-width: 992px) {
    .nav-links {
        display: none !important;
    }
    .mobile-menu-btn {
        display: flex !important;
    }
}

.mobile-menu-btn:hover {
    background: rgba(38, 63, 53, 0.08);
    border-color: #536B55;
}

.mobile-menu-btn .bar {
    width: 100%;
    height: 2px;
    background-color: #263F35;
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.mobile-menu-btn.active .bar-1 {
    transform: translateY(7px) rotate(45deg);
}

.mobile-menu-btn.active .bar-2 {
    opacity: 0;
}

.mobile-menu-btn.active .bar-3 {
    transform: translateY(-7px) rotate(-45deg);
}

/* Backdrop */
.mobile-nav-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(18, 32, 26, 0.65);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 9998;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.mobile-nav-backdrop.active {
    opacity: 1;
    pointer-events: auto;
}

/* Drawer Container */
.mobile-nav-drawer {
    position: fixed;
    top: 0;
    left: 0;
    width: min(320px, 86vw);
    height: 100vh;
    height: 100dvh;
    background: #FCF9F0;
    background-image: linear-gradient(180deg, #FCF9F0 0%, #F7F2E5 100%);
    box-shadow: 10px 0 35px rgba(18, 32, 26, 0.25);
    z-index: 9999;
    transform: translateX(-100%);
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    border-right: 1px solid rgba(201, 168, 92, 0.25);
}

.mobile-nav-drawer.active {
    transform: translateX(0);
}

.drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 20px;
    border-bottom: 1px solid rgba(38, 63, 53, 0.1);
    background: rgba(255, 255, 255, 0.5);
}

.drawer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.drawer-logo img {
    height: 38px;
    width: auto;
    object-fit: contain;
}

.drawer-logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.15;
}

.drawer-logo-text strong {
    font-family: 'Marcellus', Georgia, serif;
    font-size: 16px;
    color: #263F35;
    letter-spacing: 0.5px;
}

.drawer-logo-text span {
    font-family: 'Tenor Sans', sans-serif;
    font-size: 11px;
    color: #536B55;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.drawer-close-btn {
    background: transparent;
    border: 1px solid rgba(38, 63, 53, 0.15);
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    color: #263F35;
    cursor: pointer;
    transition: all 0.2s;
}

.drawer-close-btn:hover {
    background: rgba(38, 63, 53, 0.1);
    transform: rotate(90deg);
}

.drawer-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 22px;
    flex: 1;
}

.drawer-nav-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.drawer-nav-list li a {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 14px;
    border-radius: 12px;
    color: #263F35;
    font-family: 'DM Sans', sans-serif;
    font-size: 15px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
    position: relative;
}

.drawer-nav-list li a .nav-icon {
    font-size: 18px;
    width: 24px;
    text-align: center;
}

.drawer-nav-list li a:hover {
    background: rgba(83, 107, 85, 0.1);
    color: #263F35;
    transform: translateX(4px);
}

.drawer-nav-list li a.active {
    background: #263F35;
    color: #FCF9F0;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(38, 63, 53, 0.15);
}

.drawer-cart-link {
    position: relative;
}

.drawer-badge {
    margin-left: auto;
    position: static !important;
    display: inline-flex !important;
    background: #C9A85C !important;
    color: #263F35 !important;
    font-weight: 700 !important;
}

.drawer-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: auto;
    padding-top: 15px;
    border-top: 1px solid rgba(38, 63, 53, 0.1);
}

.drawer-action-btn {
    display: block;
    text-align: center;
    padding: 12px 16px;
    border-radius: 25px;
    font-family: 'DM Sans', sans-serif;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.25s ease;
}

.drawer-action-btn.primary {
    background: #263F35;
    color: #FCF9F0;
    box-shadow: 0 4px 14px rgba(38, 63, 53, 0.2);
}

.drawer-action-btn.secondary {
    background: rgba(201, 168, 92, 0.15);
    color: #263F35;
    border: 1px solid rgba(201, 168, 92, 0.4);
}

.drawer-footer {
    text-align: center;
    padding-top: 10px;
    color: #6B7C6E;
    font-size: 12px;
}

.drawer-footer p {
    margin: 0 0 4px;
    font-weight: 500;
}

.drawer-footer small {
    opacity: 0.8;
    font-size: 11px;
}