:root {
    --green-950: #052e16;
    --green-900: #14532d;
    --green-800: #166534;
    --green-700: #15803d;
    --green-600: #16a34a;
    --green-500: #22c55e;
    --yellow: #facc15;
    --yellow-soft: #fef9c3;
    --orange: #f97316;
    --orange-dark: #ea580c;
    --white: #ffffff;
    --black: #111827;
    --gray: #64748b;
    --soft: #f8fafc;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    overflow-x: hidden;
    background: var(--white);
    color: var(--black);
    font-family: Inter, Arial, Helvetica, sans-serif;
    font-size: 16px;
    line-height: 1.7;
}

img {
    max-width: 100%;
}

.section-wrap {
    padding: 94px 0;
}

.section-soft {
    background: linear-gradient(180deg, #f8fafc, #ffffff);
}

.section-green {
    background:
        radial-gradient(circle at 85% 10%, rgba(250, 204, 21, .24), transparent 28%),
        linear-gradient(135deg, var(--green-950), var(--green-800), var(--green-600));
}

.heading {
    color: var(--green-900);
    font-size: clamp(2rem, 4vw, 3.4rem);
    font-weight: 900;
    letter-spacing: -.04em;
    line-height: 1.08;
}

.subheading {
    color: var(--gray);
    font-size: 18px;
}

.nav-shell {
    transition: box-shadow .25s ease, background-color .25s ease;
}

.nav-shell.scrolled {
    box-shadow: 0 14px 34px rgba(15, 23, 42, .12);
}

.hero-shell {
    position: relative;
    min-height: 850px;
    overflow: hidden;
    color: var(--white);
    background:
        radial-gradient(circle at 18% 15%, rgba(250, 204, 21, .28), transparent 30%),
        radial-gradient(circle at 88% 25%, rgba(249, 115, 22, .30), transparent 30%),
        linear-gradient(135deg, var(--green-950), var(--green-800), var(--green-600));
}

.hero-shell::after {
    position: absolute;
    right: -160px;
    bottom: -260px;
    width: 680px;
    height: 680px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .08);
    content: "";
}

.hero-content {
    position: relative;
    z-index: 3;
}

.hero-title {
    max-width: 820px;
    font-size: clamp(3rem, 7vw, 6rem);
    font-weight: 950;
    letter-spacing: -.075em;
    line-height: .98;
}

.hero-image-stage {
    position: relative;
    min-height: 720px;
}

.hero-slide {
    position: absolute;
    inset: 0;
    overflow: hidden;
    border: 6px solid rgba(255, 255, 255, .88);
    border-radius: 38px;
    opacity: 0;
    box-shadow: 0 30px 80px rgba(0, 0, 0, .30);
    transform: scale(.96);
    transition: opacity .9s ease, transform 1.2s ease;
}

.hero-slide.active {
    opacity: 1;
    transform: scale(1);
}

.hero-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    animation: gentleZoom 10s ease-in-out infinite alternate;
}

.hero-caption {
    position: absolute;
    right: 18px;
    bottom: 18px;
    left: 18px;
    padding: 18px;
    border-radius: 18px;
    background: rgba(5, 46, 22, .78);
    backdrop-filter: blur(8px);
}

.hero-dot {
    width: 12px;
    height: 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .45);
    transition: width .25s ease, background-color .25s ease;
}

.hero-dot.active {
    width: 36px;
    background: var(--yellow);
}

.stat-card,
.feature-card,
.story-card,
.group-card,
.youth-card {
    border: 1px solid rgba(226, 232, 240, .9);
    border-radius: 24px;
    background: var(--white);
    box-shadow: 0 16px 42px rgba(15, 23, 42, .08);
    transition: transform .30s ease, box-shadow .30s ease, border-color .30s ease;
}

.stat-card:hover,
.feature-card:hover,
.story-card:hover,
.group-card:hover,
.youth-card:hover {
    border-color: rgba(34, 197, 94, .4);
    box-shadow: 0 24px 62px rgba(15, 23, 42, .14);
    transform: translateY(-8px);
}

.icon-box {
    display: inline-grid;
    width: 62px;
    height: 62px;
    place-items: center;
    border-radius: 20px;
    color: var(--white);
    background: linear-gradient(135deg, var(--green-800), var(--green-500));
    font-size: 25px;
    box-shadow: 0 10px 22px rgba(22, 101, 52, .23);
}

.stat-number {
    color: var(--green-800);
    font-size: 44px;
    font-weight: 950;
    letter-spacing: -.05em;
}

.btn-green,
.btn-orange,
.btn-yellow,
.btn-white {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-height: 48px;
    padding: 12px 20px;
    border-radius: 14px;
    font-size: 16px;
    font-weight: 800;
    text-decoration: none;
    transition: transform .22s ease, box-shadow .22s ease, background-color .22s ease;
}

.btn-green {
    color: white;
    background: var(--green-700);
}

.btn-orange {
    color: white;
    background: var(--orange);
}

.btn-yellow {
    color: var(--green-950);
    background: var(--yellow);
}

.btn-white {
    color: var(--green-900);
    background: white;
}

.btn-green:hover,
.btn-orange:hover,
.btn-yellow:hover,
.btn-white:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 28px rgba(15, 23, 42, .18);
}

.gallery-grid {
    display: grid;
    grid-auto-flow: dense;
    grid-template-columns: repeat(12, 1fr);
    gap: 18px;
}

.gallery-card {
    position: relative;
    grid-column: span 4;
    min-height: 280px;
    overflow: hidden;
    border-radius: 24px;
    box-shadow: 0 20px 45px rgba(15, 23, 42, .16);
    cursor: pointer;
    transition: transform .35s ease, box-shadow .35s ease;
}

.gallery-card:nth-child(1),
.gallery-card:nth-child(5) {
    grid-column: span 6;
    grid-row: span 2;
    min-height: 420px;
}

.gallery-card:nth-child(3),
.gallery-card:nth-child(7) {
    transform: rotate(1.7deg);
}

.gallery-card:nth-child(4),
.gallery-card:nth-child(8) {
    transform: rotate(-1.7deg);
}

.gallery-card:hover {
    z-index: 3;
    box-shadow: 0 28px 62px rgba(15, 23, 42, .24);
    transform: translateY(-9px) rotate(0deg) scale(1.02);
}

.gallery-card img {
    width: 100%;
    height: 100%;
    min-height: inherit;
    object-fit: cover;
    transition: transform .65s ease;
}

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

.gallery-overlay {
    position: absolute;
    inset: auto 0 0;
    padding: 22px;
    color: white;
    background: linear-gradient(transparent, rgba(5, 46, 22, .95));
}

.reveal {
    opacity: 0;
    transform: translateY(34px);
    transition: opacity .8s ease, transform .8s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

.modal-shell {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(2, 6, 23, .91);
}

.modal-shell.open {
    display: flex;
}

.modal-shell img {
    max-width: min(1100px, 94vw);
    max-height: 75vh;
    border-radius: 22px;
    box-shadow: 0 26px 65px rgba(0, 0, 0, .5);
}

.back-top {
    position: fixed;
    right: 22px;
    bottom: 22px;
    z-index: 40;
    display: none;
    width: 54px;
    height: 54px;
    place-items: center;
    border-radius: 999px;
    color: white;
    background: var(--orange);
    box-shadow: 0 18px 38px rgba(249, 115, 22, .36);
}

.back-top.show {
    display: grid;
}

@keyframes gentleZoom {
    from { transform: scale(1); }
    to { transform: scale(1.08); }
}

@media (max-width: 1024px) {
    .hero-shell {
        min-height: auto;
    }

    .hero-image-stage {
        min-height: 560px;
    }

    .gallery-card,
    .gallery-card:nth-child(1),
    .gallery-card:nth-child(5) {
        grid-column: span 6;
        min-height: 290px;
    }
}

@media (max-width: 640px) {
    .section-wrap {
        padding: 68px 0;
    }

    .hero-image-stage {
        min-height: 430px;
    }

    .hero-title {
        font-size: 3.6rem;
    }

    .gallery-card,
    .gallery-card:nth-child(1),
    .gallery-card:nth-child(5) {
        grid-column: span 12;
        min-height: 260px;
    }
}
