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

:root {
    --red: #d71920;
    --red-dark: #a80f15;
    --ink: #151515;
    --muted: #666;
    --cream: #fffaf7;
    --white: #fff;
    --line: #eadfdb;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Montserrat", sans-serif;
    color: var(--ink);
    background: var(--cream);
    line-height: 1.7;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

.container {
    width: min(1120px, calc(100% - 40px));
    margin: auto;
}

.section {
    padding: 110px 0;
}

/* =========================
   SECTION HEADING
========================= */

.section-label {
    font-size: 12px;
    letter-spacing: 4px;
    font-weight: 800;
    color: var(--red);
    margin-bottom: 15px;
}

.section-heading {
    text-align: center;
    max-width: 760px;
    margin: 0 auto 55px;
}

.section-heading h2 {
    font-family: "Playfair Display", serif;
    font-size: clamp(35px, 5vw, 58px);
    line-height: 1.12;
    margin-bottom: 16px;
}

.section-heading > p:last-child {
    color: var(--muted);
}

.light .section-label {
    color: #fff;
    opacity: 0.75;
}

.light h2 {
    color: #fff;
}

.light > p:last-child {
    color: rgba(255, 255, 255, 0.72);
}

/* =========================
   NAVBAR
========================= */

.navbar {
    height: 76px;
    position: fixed;
    z-index: 1000;
    top: 0;
    left: 0;
    right: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 5%;
    background: linear-gradient(to bottom, var(--red) 0 50%, #fff 50% 100%);
    box-shadow: 0 3px 20px rgba(0, 0, 0, 0.12);
}

.navbar::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    height: 1px;
    background: rgba(0, 0, 0, 0.08);
}

.brand,
.nav-menu {
    position: relative;
    z-index: 1;
}

.brand {
    display: flex;
    align-items: center;
    font-weight: 900;
    letter-spacing: 1px;
    font-size: 30px;
    color: #fff;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
    background: linear-gradient(
        90deg,
        #bf953f,
        #fcf6ba,
        #b38728,
        #fbf5b7,
        #aa771c
    );
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 6px;
}

.nav-menu a {
    font-size: 12px;
    font-weight: 800;
    background: var(--red);
    letter-spacing: 0.7px;
    padding: 8px 13px;
    border-radius: 99px;
    color: #c9c91f;
    transition: 0.3s;
}

.nav-menu a:hover,
.nav-menu a.active {
    background: var(--red);
    color: #fff;
}

.nav-toggle {
    display: none;
    border: 0;
    background: transparent;
    cursor: pointer;
    padding: 8px;
}

.nav-toggle span {
    display: block;
    width: 25px;
    height: 2px;
    background: #222;
    margin: 5px;
}

/* =========================
   HERO
========================= */

.hero {
    min-height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: #111;
}

.hero-media,
.hero-overlay,
.hero-pattern {
    position: absolute;
    inset: 0;
}

.hero-media video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.hero-overlay {
    background: linear-gradient(
        90deg,
        rgba(0, 0, 0, 0.75),
        rgba(0, 0, 0, 0.32),
        rgba(170, 0, 0, 0.15)
    );
}

.hero-pattern {
    opacity: 0.14;
    background-image: radial-gradient(#fff 1px, transparent 1px);
    background-size: 22px 22px;
}

.hero-content {
    position: relative;
    z-index: 2;
    color: #fff;
    width: min(900px, 90%);
    margin: 0 auto;
    padding-top: 60px;
}

.eyebrow {
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 4px;
    margin-bottom: 20px;
    color: #fff;
    opacity: 0.9;
}

.hero h1 {
    font-family: "Playfair Display", serif;
    font-size: clamp(54px, 9vw, 105px);
    line-height: 0.94;
    letter-spacing: -3px;
}

.hero h1 span {
    color: #fff;
    text-shadow: 0 3px 25px rgba(215, 25, 32, 0.5);
}

.hero-text {
    max-width: 650px;
    margin: 28px 0;
    color: rgba(255, 255, 255, 0.8);
    font-size: 16px;
}

.hero-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

/* =========================
   BUTTON
========================= */

.btn {
    display: inline-flex;
    padding: 13px 22px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.5px;
    transition: 0.3s;
}

.btn-primary {
    background: var(--red);
    color: #fff;
}

.btn-primary:hover {
    background: #fff;
    color: var(--red);
    transform: translateY(-3px);
}

.btn-outline {
    border: 1px solid rgba(255, 255, 255, 0.6);
    color: #fff;
}

.btn-outline:hover {
    background: #fff;
    color: #222;
    transform: translateY(-3px);
}

/* =========================
   SCROLL INDICATOR
========================= */

.scroll-indicator {
    position: absolute;
    z-index: 2;
    bottom: 30px;
    left: 5%;
    display: flex;
    gap: 12px;
    align-items: center;
    color: #fff;
    font-size: 9px;
    letter-spacing: 3px;
    font-weight: 700;
    opacity: 0.75;
}

.scroll-indicator i {
    width: 55px;
    height: 1px;
    background: #fff;
    display: block;
    animation: pulseLine 1.5s infinite;
}

@keyframes pulseLine {
    0%,
    100% {
        width: 30px;
        opacity: 0.3;
    }

    50% {
        width: 65px;
        opacity: 1;
    }
}

/* =========================
   INTRO
========================= */

.intro {
    background: #fff;
}

.intro-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.intro-grid > div:last-child p {
    font-size: 18px;
    color: var(--muted);
}

/* =========================
   HISTORY
========================= */

.history {
    background: #f8eee9;
}

.timeline {
    max-width: 850px;
    margin: auto;
    position: relative;
}

.timeline::before {
    content: "";
    position: absolute;
    left: 91px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(var(--red), transparent);
}

.timeline-item {
    display: grid;
    grid-template-columns: 150px 1fr;
    gap: 30px;
    margin-bottom: 35px;
    position: relative;
}

.timeline-year {
    font-size: 12px;
    letter-spacing: 2px;
    font-weight: 900;
    color: var(--red);
    padding-top: 22px;
    text-align: right;
}

.timeline-card {
    background: #fff;
    padding: 25px 28px;
    border-left: 4px solid transparent;
    box-shadow: 0 12px 35px rgba(70, 20, 10, 0.06);
    transition: 0.3s;
}

.timeline-card:hover {
    transform: translateX(7px);
    border-left-color: var(--red);
}

.timeline-card h3 {
    font-size: 20px;
    margin-bottom: 6px;
}

.timeline-card p {
    color: var(--muted);
    font-size: 14px;
}

.name-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 6px 20px;
    margin-top: 10px;
}

.name-list span {
    position: relative;
    padding-left: 15px;
}

.name-list span::before {
    content: "-";
    position: absolute;
    left: 0;
}

/* =========================
   FIGURES
========================= */

.figures {
    background: #171717;
}

.figure-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.figure-card {
    position: relative;
    overflow: hidden;
    min-height: 300px;
    border-radius: 12px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transition: transform 0.3s ease;
}

.figure-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
}

.figure-content {
    position: absolute;
    left: 30px;
    right: 30px;
    bottom: 25px;
    z-index: 2;
}

.figure-number {
    font-size: 11px;
    letter-spacing: 3px;
    color: #fff;
}

.figure-card h3 {
    font-family: "Playfair Display", serif;
    font-size: 27px;
    color: #fff;
    margin: 8px 0 5px;
}

.figure-card p {
    font-size: 13px;
    color: #ddd;
    margin: 0;
}

.figure-card:hover {
    transform: translateY(-9px);
}

/* =========================
   GALERI
========================= */

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 280px;
    gap: 18px;
}

.gallery-box.photo {
    position: relative;
    overflow: hidden;
    background: #666;
    cursor: pointer;
}

.gallery-box.photo img,
.gallery-pemenang-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s ease;
}

.gallery-box.photo:hover img,
.gallery-pemenang-box:hover img {
    transform: scale(1.08);
}

.gallery-overlay,
.gallery-pemenang-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: flex-end;
    padding: 25px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.6), transparent);
    color: #fff;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.gallery-box.photo:hover .gallery-overlay,
.gallery-pemenang-box:hover .gallery-pemenang-overlay {
    opacity: 1;
}

.gallery-overlay span,
.gallery-pemenang-overlay span {
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 1px;
}

/* =========================
   GALERI NAVIGATION
========================= */

.gallery-navigation,
.gallery-pemenang-navigation {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 25px;
    margin-top: 35px;
}

.gallery-btn,
.gallery-pemenang-btn {
    border: none;
    background: var(--red);
    color: #fff;
    padding: 12px 22px;
    font-family: "Montserrat", sans-serif;
    font-size: 12px;
    font-weight: 800;
    cursor: pointer;
    transition: 0.3s;
}

.gallery-btn:hover,
.gallery-pemenang-btn:hover {
    background: var(--red-dark);
    transform: translateY(-2px);
}

.gallery-btn:disabled,
.gallery-pemenang-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
}

#galleryPage,
#galleryPemenangPage {
    min-width: 45px;
    text-align: center;
    font-size: 13px;
    font-weight: 800;
    color: var(--red);
}

/* =========================
   GALERI PEMENANG
========================= */

.gallery-pemenang {
    background: #fff;
}

.gallery-pemenang-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: 250px;
    gap: 18px;
}

.gallery-pemenang-box {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    background: #666;
    cursor: pointer;
}

/* =========================
   FOOTER
========================= */

footer {
    background: #111;
    color: #fff;
}

.footer-inner {
    padding: 50px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-inner strong {
    letter-spacing: 2px;
}

.footer-inner p {
    color: #888;
    font-size: 12px;
    margin-top: 4px;
}

.footer-date {
    font-family: "Playfair Display", serif;
    font-size: 35px;
    color: var(--red);
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid #252525;
    padding: 18px;
    color: #666;
    font-size: 10px;
    letter-spacing: 1px;
}

/* =========================
   TABLET / LAPTOP
========================= */

@media (max-width: 1100px) and (min-width: 901px) {
    .brand {
        font-size: 23px;
    }

    .nav-menu {
        gap: 3px;
    }

    .nav-menu a {
        font-size: 11px;
        padding: 7px 9px;
        letter-spacing: 0.4px;
        white-space: nowrap;
    }
}

/* =========================
   MOBILE / TABLET
========================= */

@media (max-width: 900px) {
    .navbar {
        height: 66px;
        padding: 0 20px;
    }

    .nav-toggle {
        display: block;
        position: relative;
        z-index: 2;
    }

    .nav-menu {
        position: absolute;
        top: 66px;
        left: 0;
        right: 0;
        background: #fff;
        padding: 15px 20px;
        display: none;
        flex-direction: column;
        align-items: stretch;
        box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    }

    .nav-menu.open {
        display: flex;
    }

    .nav-menu a {
        padding: 12px;
    }

    .brand {
        font-size: 16px;
    }

    .intro-grid {
        grid-template-columns: 1fr;
        gap: 35px;
    }

    .intro-grid > div:last-child p {
        font-size: 16px;
    }

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

    .section {
        padding: 80px 0;
    }

    .timeline::before {
        left: 0;
    }

    .timeline-item {
        grid-template-columns: 1fr;
        gap: 5px;
        padding-left: 20px;
    }

    .timeline-year {
        text-align: left;
        padding-top: 0;
    }

    .timeline-card {
        padding: 20px;
    }

    .gallery-grid {
        grid-auto-rows: 160px;
    }

    .footer-inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }

    .footer-date {
        font-size: 28px;
    }
}

/* =========================
   GALERI PEMENANG TABLET
========================= */

@media (max-width: 800px) {
    .gallery-pemenang-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: 200px;
    }
}

/* =========================
   MOBILE
========================= */

@media (max-width: 600px) {
    .gallery-grid,
    .gallery-pemenang-grid {
        grid-template-columns: 1fr;
        grid-auto-rows: 240px;
    }

    .gallery-navigation,
    .gallery-pemenang-navigation {
        gap: 12px;
    }

    .gallery-btn,
    .gallery-pemenang-btn {
        padding: 10px 14px;
        font-size: 11px;
    }
}

/* =========================
   REDUCED MOTION
========================= */

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        animation: none !important;
        transition: none !important;
    }
}
