* { font-family: 'DM Sans', sans-serif; }

:root {
    --lara-navy: #07164d;
    --lara-blue: #0d2b83;
    --lara-blue-2: #173da0;
    --lara-red: #e21b23;
    --lara-red-dark: #9f1018;
    --lara-gold: #f8c515;
    --lara-white: #fff;
    --lara-muted: #6b7280;
}

html { scroll-behavior: smooth; }
body { background: #f4f6fb; }

.page { display: none; }
.page.active { display: block; }
.nav-link.active { color: #F4C430; border-bottom: 2px solid #F4C430; }

@keyframes pulse-live { 0%,100% { opacity: 1; transform: scale(1); } 50% { opacity: .45; transform: scale(.82); } }
.live-pulse { animation: pulse-live 1.5s infinite; }

@keyframes fadeUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
.fade-up { animation: fadeUp .7s ease forwards; }

@keyframes countUp { from { opacity: 0; transform: scale(.5); } to { opacity: 1; transform: scale(1); } }
.score-pop { animation: countUp .3s ease; }

/* =============================
   MERDEKA HEADER
   ============================= */
header,
.site-header,
nav {
    background: #07164d !important;
    color: #fff !important;
    position: relative;
    z-index: 100;
}

/* Header inner */
header > div,
.site-header > div,
nav > div {
    background: transparent !important;
}

/* Navigation links */
header a,
.site-header a,
nav a {
    color: #fff !important;
}

header a:hover,
.site-header a:hover,
nav a:hover {
    color: #f8c515 !important;
}

/* Active menu */
.nav-link.active {
    color: #f8c515 !important;
    border-bottom: 3px solid #f8c515 !important;
}

/* Logo */
.nav-logo {
    height: 72px !important;
    width: auto !important;
    max-width: 220px !important;
    object-fit: contain;
}

/* Header height */
header,
.site-header {
    min-height: 98px;
}

/* =============================
   MERDEKA HERO
   ============================= */
.merdeka-hero {
    position: relative;
    min-height: 680px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    isolation: isolate;
    background:
        radial-gradient(circle at 78% 34%, rgba(226,27,35,.52), transparent 24%),
        radial-gradient(circle at 18% 30%, rgba(244,196,48,.16), transparent 24%),
        linear-gradient(115deg, #020c35 0%, #07164d 38%, #101d59 66%, #180d31 100%);
}

.merdeka-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -4;
    background:
        linear-gradient(90deg, rgba(2,8,32,.78), rgba(4,12,48,.38) 45%, rgba(4,7,28,.54)),
        url('../images/merdeka.png') center/cover;
    opacity: .32;
    mix-blend-mode: screen;
}

.hero-noise {
    position: absolute;
    inset: 0;
    z-index: -3;
    opacity: .22;
    background-image: radial-gradient(rgba(255,255,255,.3) .7px, transparent .7px);
    background-size: 5px 5px;
    mask-image: linear-gradient(to bottom, #000, transparent 90%);
}

/* =========================================
   MERDEKA LARA OFFICIAL LOGO
   ========================================= */

.hero-logo-wrap {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 8px;
}

.hero-logo {
    width: auto;
    height: 240px;
    object-fit: contain;
    filter: drop-shadow(0 8px 18px rgba(0,0,0,.45));
}


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

.hero-description {
    max-width: 760px;
    margin: 16px auto 20px;
    color: rgba(255,255,255,.9);
    font-size: 16px;
    line-height: 1.6;
    text-shadow: 0 2px 10px rgba(0,0,0,.5);
}

.hero-description strong {
    color: var(--lara-gold);
}


/* =========================================
   ANJURAN BERSAMA
   ========================================= */

.support-section {
    width: min(1160px, 92%);
    margin: 0 auto 60px;
    position: relative;
    z-index: 10;
}

.support-card {
    background: #fff;
    border-radius: 22px;
    padding: 28px 30px;
    text-align: center;
    box-shadow: 0 15px 40px rgba(7,22,77,.15);
    border-top: 4px solid var(--lara-gold);
}

.support-heading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.support-heading span {
    width: 55px;
    height: 2px;
    background: linear-gradient(
        90deg,
        var(--lara-red),
        var(--lara-gold)
    );
}

.support-heading h2 {
    margin: 0;
    color: var(--lara-navy);
    font-size: 20px;
    font-weight: 900;
}

.support-text {
    margin: 8px auto 20px;
    color: #6b7280;
    font-size: 14px;
}

.support-logos {
    display: block;
    width: min(900px, 100%);
    max-height: 228px;
    object-fit: contain;
    object-position: center;
    margin: 0 auto;
}


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

@media (max-width: 850px) {

    .hero-logo {
        width: 105px;
        height: 110px;
    }

    .hero-meta {
        flex-direction: column;
        gap: 8px;
        border-radius: 20px;
    }

    .hero-meta i {
        display: none;
    }

    .support-logos {
        max-height: 125px;
    }
}


@media (max-width: 640px) {

    .hero-logo {
        width: 90px;
        height: 95px;
    }

    .hero-description {
        font-size: 14px;
    }

    .support-card {
        padding: 22px 15px;
    }

    .support-heading h2 {
        font-size: 16px;
    }

    .support-heading span {
        width: 30px;
    }
}

.hero-glow { position: absolute; border-radius: 50%; filter: blur(35px); z-index: -2; pointer-events: none; }
.hero-glow-left { width: 430px; height: 430px; left: -180px; top: 20px; background: rgba(20,50,170,.42); }
.hero-glow-right { width: 500px; height: 500px; right: -180px; bottom: -170px; background: rgba(226,27,35,.3); }

/* Flag-inspired curved ribbons */
.flag-ribbon {
    position: absolute;
    left: -12%;
    width: 62%;
    height: 105px;
    border-radius: 0 70% 70% 0;
    transform: rotate(-7deg);
    opacity: .9;
    z-index: -1;
    filter: drop-shadow(0 8px 10px rgba(0,0,0,.2));
}
.flag-ribbon::after {
    content: '';
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(to bottom,
        #e21b23 0 22px,
        #fff 22px 44px);
    border-radius: inherit;
}
.flag-ribbon-top { top: 25%; background: #07164d; }
.flag-ribbon-bottom { bottom: 5%; width: 72%; transform: rotate(8deg); opacity: .72; }

/* Fireworks */
.firework { position: absolute; width: 170px; height: 170px; border-radius: 50%; z-index: -1; opacity: .9; }
.firework::before, .firework::after, .firework span::before, .firework span::after {
    content: ''; position: absolute; left: 50%; top: 50%; width: 4px; height: 75px; transform-origin: 50% 0;
    background: linear-gradient(to bottom, rgba(255,255,255,.95), rgba(255,255,255,0));
    box-shadow: 0 0 8px rgba(255,255,255,.8);
}
.firework::before { transform: translate(-50%, -5%) rotate(0deg); }
.firework::after { transform: translate(-50%, -5%) rotate(90deg); }
.firework span::before { transform: translate(-50%, -5%) rotate(45deg); }
.firework span::after { transform: translate(-50%, -5%) rotate(135deg); }
.firework-one { right: 7%; top: 10%; transform: scale(1.15); }
.firework-two { right: 27%; top: 29%; transform: scale(.68); opacity: .55; }
.firework-three { left: 5%; top: 17%; transform: scale(.58); opacity: .5; }

/* Skyline */
.kl-skyline { position: absolute; right: 0; bottom: 0; width: 52%; height: 250px; z-index: -1; opacity: .65; }
.tower { position: absolute; bottom: 0; width: 55px; background: linear-gradient(to right, #06123e, #19275e, #06123e); box-shadow: 0 0 22px rgba(255,255,255,.05); }
.tower::after { content: ''; position: absolute; inset: 12px 9px 0; background: repeating-linear-gradient(to bottom, rgba(255,215,80,.35) 0 3px, transparent 3px 14px); }
.tower-a { right: 3%; height: 125px; }
.tower-b { right: 15%; height: 170px; width: 65px; }
.tower-c { right: 25%; height: 95px; }
.tower-d { right: 34%; height: 140px; width: 42px; }
.petronas { position: absolute; bottom: 0; width: 38px; height: 195px; background: linear-gradient(to right, #d8e3ff, #6379b9 45%, #eaf0ff); border-radius: 17px 17px 4px 4px; box-shadow: 0 0 18px rgba(170,195,255,.25); }
.petronas::before { content: ''; position: absolute; width: 56px; height: 8px; left: -9px; top: 42%; background: #b9c7ec; border-radius: 6px; box-shadow: 0 0 10px rgba(255,255,255,.2); }
.petronas::after { content: ''; position: absolute; width: 3px; height: 35px; left: 50%; top: -35px; background: #dfe7ff; }
.petronas-left { right: 45%; }
.petronas-right { right: 40%; }

.hero-inner { position: relative; z-index: 5; width: min(1120px, 94%); text-align: center; padding: 70px 20px 80px; }
.hero-kicker { display: inline-flex; align-items: center; gap: 14px; color: var(--lara-gold); font-family: Georgia, serif; font-size: clamp(20px, 2.2vw, 31px); font-style: italic; margin-bottom: 8px; text-shadow: 0 2px 10px rgba(0,0,0,.4); }
.mini-flag { font-family: sans-serif; font-style: normal; font-size: 18px; }
.hero-stars { color: var(--lara-gold); letter-spacing: 8px; font-size: 15px; margin: 6px 0 7px; }
.hero-title { margin: 0; display: flex; align-items: baseline; justify-content: center; gap: clamp(10px, 2vw, 24px); font-size: clamp(50px, 8vw, 104px); line-height: .98; font-weight: 950; letter-spacing: -3px; text-shadow: 0 5px 25px rgba(0,0,0,.35); }
.hero-title span { color: #f8f8f8; }
.hero-title strong { color: var(--lara-gold); font-weight: 950; }
.hero-subtitle { margin: 14px 0 22px; font-family: Georgia, serif; font-style: italic; font-size: clamp(22px, 3vw, 34px); color: #f4f5ff; text-shadow: 0 2px 10px rgba(0,0,0,.5); }
.hero-subtitle b { color: var(--lara-gold); }
.hero-subtitle em { color: #ff4c4c; font-style: italic; }
.hero-meta { display: inline-flex; align-items: center; justify-content: center; gap: 18px; padding: 12px 28px; border: 1px solid rgba(248,197,21,.8); border-radius: 40px; background: rgba(4,12,48,.48); backdrop-filter: blur(8px); color: #fff; font-size: 15px; box-shadow: 0 10px 30px rgba(0,0,0,.2); }
.hero-meta b { color: var(--lara-gold); }
.hero-meta i { height: 22px; width: 1px; background: rgba(255,255,255,.45); }

.countdown-wrap { display: flex; justify-content: center; gap: 14px; margin: 16px 0 20px; }
.countdown-card { width: 132px; padding: 11px 12px 12px; border: 1px solid rgba(248,197,21,.45); border-radius: 13px; background: linear-gradient(145deg, rgba(18,45,120,.7), rgba(4,12,48,.82)); box-shadow: inset 0 1px 0 rgba(255,255,255,.08), 0 10px 25px rgba(0,0,0,.18); }
.countdown-card div { font-size: clamp(34px, 4vw, 51px); line-height: 1; font-weight: 900; }
.countdown-card small { display: block; margin-top: 6px; color: var(--lara-gold); font-weight: 800; font-size: 12px; letter-spacing: .5px; }

.hero-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.hero-btn { min-height: 50px; padding: 13px 22px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; gap: 9px; font-weight: 900; font-size: 15px; text-decoration: none; transition: transform .2s, box-shadow .2s, background .2s; }
.hero-btn:hover { transform: translateY(-3px); box-shadow: 0 12px 25px rgba(0,0,0,.24); }
.btn-gold { background: var(--lara-gold); color: #081548; }
.btn-gold:hover { background: #ffd331; }
.btn-red { background: var(--lara-red); color: #fff; }
.btn-red:hover { background: #f12b33; }
.btn-outline { color: #fff; border: 1px solid rgba(255,255,255,.7); background: rgba(4,12,48,.35); backdrop-filter: blur(8px); }
.btn-outline:hover { background: rgba(255,255,255,.12); }
.live-dot { width: 11px; height: 11px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 5px rgba(255,255,255,.14); animation: pulse-live 1.5s infinite; }

/* =============================
   QUICK ACCESS CARDS
   ============================= */
.quick-access { position: relative; z-index: 20; width: min(1160px, 92%); margin: -40px auto 55px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.quick-card { min-height: 118px; display: flex; align-items: center; gap: 17px; padding: 22px; border-radius: 20px; background: #fff; box-shadow: 0 15px 35px rgba(7,22,77,.15); border-bottom: 4px solid transparent; text-decoration: none; transition: transform .2s, box-shadow .2s; }
.quick-card:hover { transform: translateY(-7px); box-shadow: 0 20px 40px rgba(7,22,77,.2); }
.quick-blue { border-bottom-color: #173da0; }
.quick-red { border-bottom-color: var(--lara-red); }
.quick-gold { border-bottom-color: var(--lara-gold); }
.quick-icon { flex: 0 0 58px; width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center; font-size: 29px; background: #eef2ff; }
.quick-red .quick-icon { background: #ffe7e8; }
.quick-gold .quick-icon { background: #fff4c9; }
.quick-card h3 { margin: 0 0 4px; font-size: 15px; font-weight: 900; color: #10235e; }
.quick-red h3 { color: var(--lara-red); }
.quick-card p { margin: 0; font-size: 13px; color: #777; }

/* Malam Gema */
.gema-section { width: min(1160px, 92%); margin: 0 auto 70px; }
.gema-card { position: relative; overflow: hidden; display: flex; align-items: center; gap: 24px; padding: 27px 30px; color: #fff; border-radius: 22px; background: linear-gradient(110deg, #07164d, #102e84 65%, #173d9c); box-shadow: 0 18px 40px rgba(7,22,77,.18); }
.gema-card::after { content: '✦'; position: absolute; right: 32px; top: -18px; font-size: 110px; color: rgba(248,197,21,.08); transform: rotate(15deg); }
.gema-icon { width: 62px; height: 62px; flex: 0 0 62px; display: grid; place-items: center; border-radius: 50%; color: var(--lara-gold); border: 1px solid rgba(248,197,21,.35); background: rgba(255,255,255,.08); font-size: 34px; }
.gema-content { flex: 1; }
.gema-date { color: var(--lara-gold); font-size: 12px; font-weight: 900; letter-spacing: .7px; }
.gema-content h2 { margin: 4px 0 7px; font-size: 25px; font-weight: 900; }
.gema-content p { margin: 0; color: rgba(255,255,255,.72); font-size: 14px; }
.gema-link { position: relative; z-index: 2; white-space: nowrap; color: var(--lara-gold); font-weight: 900; text-decoration: none; }

/* Existing UI helpers */
.glass { background: rgba(255,255,255,.1); backdrop-filter: blur(12px); border: 1px solid rgba(255,255,255,.2); }
.card-hover { transition: transform .2s, box-shadow .2s; }
.card-hover:hover { transform: translateY(-4px); box-shadow: 0 12px 24px rgba(0,0,0,.15); }
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-thumb { background: var(--lara-red); border-radius: 3px; }
.modal-overlay { display:none; position:fixed; inset:0; background:rgba(0,0,0,.6); z-index:9999; align-items:center; justify-content:center; }
.modal-overlay.show { display:flex; }
.tab-btn.active { background:#0D5F2F; color:white; }
.fullscreen-mode { position:fixed!important; inset:0!important; z-index:9998!important; border-radius:0!important; }

@media (max-width: 900px) {
    .merdeka-hero { min-height: 650px; }
    .hero-inner { padding-top: 55px; }
    .quick-access { grid-template-columns: repeat(2, 1fr); }
    .kl-skyline { width: 80%; opacity: .4; }
    .hero-meta { flex-direction: column; gap: 6px; border-radius: 16px; }
    .hero-meta i { display: none; }
}

@media (max-width: 640px) {
    .nav-logo { height: 58px !important; max-width: 185px; }
    .merdeka-hero { min-height: 720px; }
    .hero-inner { padding: 48px 12px 70px; }
    .hero-title { font-size: clamp(43px, 13vw, 70px); gap: 8px; letter-spacing: -2px; flex-wrap: wrap; }
    .hero-kicker { font-size: 18px; }
    .hero-stars { letter-spacing: 4px; }
    .hero-subtitle { font-size: 23px; }
    .hero-meta { width: 100%; box-sizing: border-box; padding: 11px 15px; font-size: 12px; }
    .countdown-wrap { gap: 7px; }
    .countdown-card { width: 72px; padding: 10px 5px; }
    .countdown-card div { font-size: 31px; }
    .countdown-card small { font-size: 9px; }
    .hero-btn { width: 100%; max-width: 320px; }
    .quick-access { grid-template-columns: 1fr; margin-top: -25px; }
    .quick-card { min-height: 90px; }
    .gema-card { flex-direction: column; align-items: flex-start; padding: 24px; }
    .gema-link { margin-top: 4px; }
}
