:root {
    --green-dark: #1a3a2a;
    --green-mid: #2d5a3d;
    --green-light: #4a8c5c;
    --gold: #c8a84b;
    --gold-light: #e8c97a;
    --cream: #f5f0e8;
    --off-white: #faf8f4;
    --text-dark: #1a1a1a;
    --text-mid: #3d3d3d;
    --text-muted: #7a7a6a;
    --border: rgba(200, 168, 75, 0.25);
    --shadow: 0 4px 40px rgba(26, 58, 42, 0.12);
    --radius: 4px;
    --transition: 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Source Sans 3', sans-serif;
    background: var(--off-white);
    color: var(--text-dark);
    line-height: 1.7;
    overflow-x: hidden;
    margin: 0;
}

/* ─── SCROLLBAR ─── */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: var(--cream);
}

::-webkit-scrollbar-thumb {
    background: var(--green-light);
    border-radius: 3px;
}

/* ─── NAV ─── */
nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 6vw;
    height: 64px;
    background: rgba(26, 58, 42, 0.96);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(200, 168, 75, 0.2);
}

.nav-logo {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.05rem;
    letter-spacing: 0.12em;
    color: var(--gold-light);
    line-height: 1.2;
}

.nav-logo span {
    display: block;
    font-size: 0.65rem;
    letter-spacing: 0.25em;
    color: rgba(255, 255, 255, 0.5);
    font-family: 'Source Sans 3', sans-serif;
    font-weight: 300;
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-links a {
    font-size: 0.78rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-weight: 600;
    transition: color var(--transition);
}

.nav-links a:hover {
    color: var(--gold-light);
}

/* ─── HAMBURGER ─── */
.nav-hamburger {
    position: relative;
    display: none;
}

.hamburger-icon {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 26px;
    height: 20px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
}

.hamburger-icon span {
    display: block;
    width: 100%;
    height: 2px;
    background: white;
    border-radius: 2px;
    transition: 0.3s ease;
}

.hamburger-menu {
    position: absolute;
    right: 0;
    top: 48px;
    background: #0f3b2e;
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    flex-direction: column;
    min-width: 140px;
    border-radius: 4px;
    overflow: hidden;

    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: 0.3s ease;
}

.hamburger-menu.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.hamburger-menu a {
    padding: 10px 15px;
    text-decoration: none;
    color: white;
    font-size: 0.85rem;
}

.hamburger-menu a:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* ─── HERO ─── */
.hero {
    min-height: 100vh;
    padding-top: 64px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    background: var(--green-dark);
    position: relative;
    overflow: hidden;
}

/* decorative diagonal */
.hero::after {
    content: '';
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 50%;
    background: linear-gradient(135deg,
            transparent 40%,
            rgba(200, 168, 75, 0.06) 100%);
    pointer-events: none;
}

.hero-emblem {
    width: 320px;
    height: 320px;
    border: 1px solid rgba(200, 168, 75, 0.3);
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 3rem;
    position: relative;
    animation: pulse 4s ease-in-out infinite;
}

.hero-emblem::before {
    content: '';
    position: absolute;
    inset: -12px;
    border-radius: 50%;
    border: 1px dashed rgba(200, 168, 75, 0.15);
    animation: spin 40s linear infinite;
}

.hero-emblem img {
    width: 120px;
    height: auto;
    margin-bottom: 1rem;
    background: transparent;
    box-shadow: none;
    display: block;
}

/* ─── HERO CONTENT ─── */
.hero-left {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 6rem 6vw 4rem;
}

.hero-right {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4rem 4vw;
}

.hero-label {
    font-size: 0.72rem;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--gold);
    font-weight: 600;
    margin-bottom: 1.25rem;
}

.hero h1 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    font-weight: 900;
    line-height: 1.1;
    color: #fff;
    margin-bottom: 1.5rem;
}

.hero h1 em {
    font-style: italic;
    color: var(--gold-light);
}

.hero-sub {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.65);
    max-width: 480px;
    margin-bottom: 2.5rem;
    line-height: 1.8;
}

.hero-meta {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    border-left: 2px solid rgba(200, 168, 75, 0.4);
    padding-left: 1.25rem;
}

.meta-item dt {
    font-size: 0.65rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--gold);
    font-weight: 600;
    margin-bottom: 0.1rem;
}

.meta-item dd {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
}

.emblem-text {
    font-family: 'Playfair Display', serif;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.85);
    font-weight: 700;
    text-align: center;
    line-height: 1.4;
    margin-bottom: 0.3rem;
}

.emblem-sub {
    font-size: 0.68rem;
    letter-spacing: 0.12em;
    color: rgba(200, 168, 75, 0.7);
    text-transform: uppercase;
}

@keyframes pulse {

    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(200, 168, 75, 0.15);
    }

    50% {
        box-shadow: 0 0 0 20px rgba(200, 168, 75, 0);
    }
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

/* ─── SECTION WRAPPER ─── */
.section {
    padding: 7rem 8vw;
}

.section-alt {
    background: var(--cream);
}

.section-dark {
    background: var(--green-dark);
    color: #fff;
}

.section-header {
    margin-bottom: 4rem;
}

.section-tag {
    font-size: 0.7rem;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: var(--green-light);
    font-weight: 600;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.section-dark .section-tag {
    color: var(--gold);
}

.section-tag::before {
    content: '';
    width: 24px;
    height: 1px;
    background: currentColor;
}

.section-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2rem, 3.5vw, 3rem);
    font-weight: 700;
    line-height: 1.15;
    color: var(--green-dark);
}

.section-dark .section-title {
    color: #fff;
}

.section-desc {
    margin-top: 1rem;
    color: var(--text-muted);
    max-width: 540px;
    font-size: 1rem;
}

.section-dark .section-desc {
    color: rgba(255, 255, 255, 0.55);
}

/* ─── ABOUT ─── */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
}

.about-text p {
    color: var(--text-mid);
    margin-bottom: 1.25rem;
    font-size: 1rem;
}

.about-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.stat-card {
    background: var(--green-dark);
    padding: 1.75rem;
    border-radius: var(--radius);
    position: relative;
    overflow: hidden;
}

.stat-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 60px;
    height: 60px;
    background: var(--gold);
    opacity: 0.08;
    border-radius: 50% 0 0 0;
}

.stat-num {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 3.5rem;
    color: var(--gold-light);
    line-height: 1;
    margin-bottom: 0.25rem;
}

.stat-label {
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.6);
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

/* ─── TIMELINE ─── */
.timeline {
    position: relative;
    max-width: 860px;
    margin: 0 auto;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 24px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, var(--gold), var(--green-light), transparent);
}

.timeline-item {
    display: grid;
    grid-template-columns: 64px 1fr;
    gap: 2rem;
    margin-bottom: 3rem;
    animation: fadeUp 0.6s both;
}

.timeline-item:nth-child(1) {
    animation-delay: 0.1s;
}

.timeline-item:nth-child(2) {
    animation-delay: 0.2s;
}

.timeline-item:nth-child(3) {
    animation-delay: 0.3s;
}

.timeline-item:nth-child(4) {
    animation-delay: 0.4s;
}

.timeline-item:nth-child(5) {
    animation-delay: 0.5s;
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: none;
    }
}

.timeline-dot {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--gold);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--green-dark);
    position: relative;
    z-index: 1;
    flex-shrink: 0;
    box-shadow: 0 0 0 6px rgba(200, 168, 75, 0.15);
}

.timeline-content {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem 2rem;
    box-shadow: var(--shadow);
}

.timeline-date {
    font-size: 0.72rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--green-light);
    font-weight: 600;
    margin-bottom: 0.4rem;
}

.timeline-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--green-dark);
}

.timeline-body {
    font-size: 0.92rem;
    color: var(--text-muted);
}

/* ─── OUTPUTS / WORK ─── */
.outputs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.75rem;
}

.output-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2rem;
    box-shadow: var(--shadow);
    transition: transform var(--transition), box-shadow var(--transition);
    position: relative;
    overflow: hidden;
}

.output-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(to right, var(--green-mid), var(--gold));
}

.output-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 50px rgba(26, 58, 42, 0.16);
}

.output-icon {
    font-size: 2.2rem;
    margin-bottom: 1rem;
}

.output-cat {
    font-size: 0.65rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--green-light);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.output-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 0.6rem;
    color: var(--green-dark);
}

.output-desc {
    font-size: 0.88rem;
    color: var(--text-muted);
}

.output-tag {
    display: inline-block;
    margin-top: 1rem;
    font-size: 0.7rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 0.3rem 0.8rem;
    background: var(--cream);
    color: var(--green-mid);
    border-radius: 20px;
    font-weight: 600;
}

/* ─── TEAM ─── */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1.5rem;
}

.team-card {
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(200, 168, 75, 0.2);
    border-radius: var(--radius);
    padding: 2rem 1.5rem;
    text-align: center;
    transition: background var(--transition), transform var(--transition);
}

.team-card:hover {
    background: rgba(255, 255, 255, 0.12);
    transform: translateY(-3px);
}

.team-avatar {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--green-mid), var(--gold));
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Playfair Display', serif;
    font-size: 1.6rem;
    font-weight: 700;
    color: #fff;
    margin: 0 auto 1rem;
}

.team-name {
    font-size: 0.95rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 0.25rem;
}

.team-nim {
    font-size: 0.72rem;
    color: rgba(255, 255, 255, 0.4);
    letter-spacing: 0.08em;
}

/* ─── GALLERY ─── */

.gallery-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    grid-template-rows: 200px 200px;
    gap: 1rem;
}

.gallery-item {
    background: var(--green-mid);
    border-radius: var(--radius);
    overflow: hidden;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    transition: transform var(--transition);
    cursor: pointer;
}

.gallery-item:hover {
    transform: scale(1.02);
}

.gallery-item:first-child {
    grid-row: 1 / 3;
}

.gallery-item .overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(26, 58, 42, 0.8), transparent);
    display: flex;
    align-items: flex-end;
    padding: 1.25rem;
    opacity: 0;
    transition: opacity var(--transition);
}

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

.overlay-text {
    font-size: 0.8rem;
    color: #fff;
    font-weight: 600;
    letter-spacing: 0.05em;
}

/* ─── FOOTER ─── */
footer {
    background: #0f2218;
    color: rgba(255, 255, 255, 0.5);
    padding: 3rem 8vw;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: center;
    border-top: 1px solid rgba(200, 168, 75, 0.15);
}

.footer-brand {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1rem;
    letter-spacing: 0.15em;
    color: var(--gold-light);
    margin-bottom: 0.5rem;
}

.footer-copy {
    font-size: 0.78rem;
}

.footer-right {
    text-align: right;
    font-size: 0.78rem;
}

/* ─── DIVIDER ─── */
.gold-divider {
    width: 48px;
    height: 2px;
    background: linear-gradient(to right, var(--gold), var(--green-light));
    margin: 1.25rem 0 0;
}

/* ─── RESPONSIVE ─── */
@media (max-width: 900px) {
    .nav-links {
        display: none;
    }

    .nav-hamburger {
        display: block;
    }

    .hero {
        grid-template-columns: 1fr;
    }

    .hero-right {
        display: none;
    }

    .hero-left {
        padding: 8rem 6vw 4rem;
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .gallery-grid {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: auto;
    }

    .gallery-item:first-child {
        grid-row: auto;
    }

    footer {
        grid-template-columns: 1fr;
    }

    .footer-right {
        text-align: left;
    }
}

.gallery-wrapper {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    padding: 1rem 0 1.5rem;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
}

.gallery-wrapper::-webkit-scrollbar {
    height: 6px;
}

.gallery-wrapper::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}

.gallery-wrapper::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 10px;
}

.gallery-card {
    flex: 0 0 auto;
    scroll-snap-align: start;
    width: 140px;
    height: 120px;
    border-radius: 16px;
    overflow: hidden;
}

.gallery-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}