* {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
    min-height: 100%;
    background: #020914;
    color: #fff;
    font-family: 'Segoe UI', Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
}

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    background: #020914;
    overflow-x: hidden;
}

main {
    width: min(900px, 94vw);
    text-align: center;
    padding: 40px 20px 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    z-index: 2; /* Sits cleanly in front of the background particles */
}

.header-group {
    margin-bottom: 25px;
}

.eyebrow {
    color: #3a86ff;
    letter-spacing: .4em;
    font-size: clamp(11px, 1.3vw, 15px);
    font-weight: 800;
    text-transform: uppercase;
    margin-bottom: 8px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.8);
}

h1 {
    font-size: clamp(22px, 3.5vw, 42px);
    letter-spacing: .25em;
    font-weight: 300;
    margin: 0;
    color: #f0f4f8;
    text-shadow: 0 2px 12px rgba(0,0,0,0.7);
}

.brand {
    font-size: clamp(50px, 10vw, 120px);
    font-weight: 900;
    letter-spacing: .05em;
    background: linear-gradient(180deg, #ffffff 30%, #a2b7d4 100%);
    -webkit-background-clip: text;
    color: transparent;
    filter: drop-shadow(0 4px 14px rgba(0,0,0,0.65));
    margin-top: -5px;
}

.message-card {
    background: rgba(3, 20, 43, 0.5); /* More translucent so the photo shows through */
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 25px 30px;
    margin: 0 auto 35px;
    max-width: 680px;
    backdrop-filter: blur(6px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

h2 {
    font-size: clamp(16px, 2.2vw, 24px);
    letter-spacing: 0.15em;
    margin: 0 0 12px 0;
    color: #ffbe0b; /* Vibrant gold from the official coat of arms */
    font-weight: 700;
}

.motivation {
    font-size: clamp(14px, 1.5vw, 17px);
    line-height: 1.6;
    margin: 0;
    color: #d1dbe5;
}

.motivation .highlight {
    color: #fff;
    font-weight: 700;
    letter-spacing: 0.05em;
}

.motivation .callout {
    display: inline-block;
    margin-top: 10px;
    color: #fff;
    font-weight: 700;
    background: rgba(58, 134, 255, 0.15);
    padding: 4px 12px;
    border-radius: 6px;
    border: 1px solid rgba(58, 134, 255, 0.3);
}

.target {
    margin: 0 0 30px;
    color: #a2b7d4;
    letter-spacing: .18em;
    font-size: clamp(11px, 1.4vw, 14px);
    font-weight: 600;
    text-shadow: 0 2px 10px rgba(0,0,0,0.85);
}

.target span {
    color: #a9bdd8;
}

#timer {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 40px;
}

#timer > div {
    background: linear-gradient(135deg, rgba(12, 38, 77, 0.5) 0%, rgba(5, 20, 41, 0.65) 100%);
    -webkit-backdrop-filter: blur(5px);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(58, 134, 255, 0.35);
    border-radius: 20px;
    padding: 25px 10px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.6), inset 0 1px 1px rgba(255,255,255,0.1);
    transition: transform 0.3s ease, border-color 0.3s ease;
}

#timer > div:hover {
    transform: translateY(-5px);
    border-color: rgba(58, 134, 255, 0.6);
}

#timer b {
    display: block;
    font: 700 clamp(36px, 7.5vw, 90px)/0.95 "Courier New", monospace;
    color: #ffffff;
    text-shadow: 0 0 20px rgba(58, 134, 255, 0.6);
}

#timer small {
    display: block;
    margin-top: 15px;
    color: #a2b7d4;
    letter-spacing: .25em;
    font-size: clamp(10px, 1.2vw, 13px);
    font-weight: 700;
}

/* Solid white bottom bar container */
.full-width-footer {
    width: 100%;
    background-color: #ffffff;
    padding: 15px 0;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 -5px 25px rgba(0, 0, 0, 0.15);
    margin-top: auto;
    position: relative;
    z-index: 10;
}

.footer-logo {
    max-width: min(240px, 55vw);
    height: auto;
    display: block;
}

/* --- ANIMATED BG PARTICLES AND TRANSITIONS --- */
#particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 1;
    overflow: hidden;
    pointer-events: none;
}

.particle {
    position: absolute;
    background: rgba(255, 190, 11, 0.25); /* Light gold ambient particles to match the theme */
    border-radius: 50%;
    animation: floatUp 15s linear infinite;
    bottom: -20px;
}

@keyframes floatUp {
    0% {
        transform: translateY(0) scale(1);
        opacity: 0;
    }
    10% {
        opacity: 0.6;
    }
    90% {
        opacity: 0.6;
    }
    100% {
        transform: translateY(-105vh) scale(0.5);
        opacity: 0;
    }
}

/* Smooth micro-pulsing transition effect for countdown updates */
.pop {
    animation: digitPop 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes digitPop {
    0% { transform: scale(0.92); opacity: 0.8; }
    100% { transform: scale(1); opacity: 1; }
}

@media(max-width: 650px) {
    #timer {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    .message-card {
        padding: 20px;
    }
    .target span {
        display: block;
        margin-top: 4px;
    }
    .full-width-footer {
        padding: 10px 0;
    }
}

/* --- TOP NAVIGATION (glassmorphism) --- */
.site-nav {
    width: 100%;
    padding: 18px 16px 0;
    position: relative;
    z-index: 20;
}

.site-nav ul {
    list-style: none;
    margin: 0 auto;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

.site-nav a {
    display: block;
    padding: 11px 24px;
    /* frosted navy glass */
    background: linear-gradient(135deg, rgba(30, 80, 160, 0.38) 0%, rgba(10, 42, 94, 0.28) 100%);
    -webkit-backdrop-filter: blur(14px) saturate(160%);
    backdrop-filter: blur(14px) saturate(160%);
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    font-size: clamp(13px, 1.4vw, 15px);
    letter-spacing: .04em;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-top-color: rgba(255, 255, 255, 0.4); /* light catching the top edge */
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.25);
    transition: background .25s ease, border-color .25s ease, transform .25s ease, box-shadow .25s ease;
}

.site-nav a:hover {
    background: linear-gradient(135deg, rgba(50, 110, 200, 0.5) 0%, rgba(15, 55, 120, 0.4) 100%);
    border-color: rgba(120, 175, 255, 0.6);
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.4), 0 0 18px rgba(58, 134, 255, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.site-nav a:focus-visible {
    outline: 2px solid #ffbe0b;
    outline-offset: 3px;
}

.site-nav a.active {
    border-color: rgba(255, 190, 11, 0.7); /* gold marks the current page */
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35), 0 0 14px rgba(255, 190, 11, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

@media (max-width: 650px) {
    .site-nav ul {
        gap: 8px;
    }
    .site-nav a {
        padding: 10px 16px;
        text-align: center;
    }
}


/* ===== WOW UPGRADE ===== */
.bg, .bg-shade { position: fixed; inset: 0; z-index: 0; pointer-events: none; }
.bg {
    background: #020914 url('bg-tiny.webp') center/cover;
    transform: scale(1.06);
    animation: bgIn 2.2s ease-out both, drift 40s ease-in-out 2.2s infinite alternate;
}
.bg::before { content:""; position:absolute; inset:0; background: url('bg.webp') center/cover; animation: fadeIn 1.2s ease-out both; }
.bg-shade { background: radial-gradient(circle at 50% 45%, rgba(8,41,82,.05) 0%, rgba(3,20,43,.25) 65%, rgba(1,7,16,.55) 100%); }
@keyframes fadeIn { from {opacity:0} to {opacity:1} }
@keyframes bgIn { from { opacity:0; transform: scale(1.18);} to { opacity:1; transform: scale(1.06);} }
@keyframes drift { from { transform: scale(1.06) translate(0,0);} to { transform: scale(1.12) translate(-1.2%,-1%);} }

/* Warm bokeh instead of hard dots */
.particle { background: radial-gradient(circle, rgba(255,200,90,.55), rgba(255,170,40,.12) 70%, transparent); filter: blur(1.5px); }

/* Typography hierarchy: numbers are the hero */
#timer b { font: 400 clamp(54px, 11vw, 132px)/.9 'Bebas Neue', Impact, 'Arial Narrow', sans-serif; letter-spacing: .03em; font-variant-numeric: tabular-nums;
    text-shadow: 0 0 28px rgba(58,134,255,.75), 0 4px 14px rgba(0,0,0,.6); }
.brand { font-family: 'Bebas Neue', Impact, sans-serif; font-weight: 400; letter-spacing: .08em; }
#timer > div { position: relative; overflow: hidden; }
#timer > div::after { content:""; position:absolute; left:0; bottom:0; height:4px; width: calc(var(--p, 1) * 100%);
    background: linear-gradient(90deg,#3a86ff,#ffbe0b); box-shadow: 0 0 12px rgba(255,190,11,.7); transition: width .3s linear; }

/* Digit roll */
.pop { animation: roll .45s cubic-bezier(.2,.9,.3,1.2); }
@keyframes roll { 0% { transform: translateY(-38%) rotateX(70deg); opacity:0; } 100% { transform: none; opacity:1; } }

/* Final 24 hours */
#timer.urgent > div { border-color: rgba(255,190,11,.75); animation: beat 1.2s ease-in-out infinite; }
#timer.urgent b { color:#ffd166; text-shadow: 0 0 30px rgba(255,190,11,.85); }
@keyframes beat { 50% { box-shadow: 0 15px 35px rgba(0,0,0,.6), 0 0 34px rgba(255,190,11,.45); } }

/* Staggered entrance */
.header-group, .message-card, .target, #timer > div, .share { animation: rise .9s cubic-bezier(.2,.8,.2,1) both; }
.header-group { animation-delay: .5s; } .message-card { animation-delay: .8s; } .target { animation-delay: 1.0s; }
#timer > div:nth-child(1){animation-delay:1.15s} #timer > div:nth-child(2){animation-delay:1.3s}
#timer > div:nth-child(3){animation-delay:1.45s} #timer > div:nth-child(4){animation-delay:1.6s} .share { animation-delay: 1.9s; }
@keyframes rise { from { opacity:0; transform: translateY(28px); } to { opacity:1; transform:none; } }
.site-nav { animation: fadeIn 1s ease-out .3s both; }

.share { display:inline-block; margin: 0 auto 10px; padding: 12px 28px; border-radius: 999px; background: #25d366; color:#04230f;
    font-weight: 800; letter-spacing:.06em; text-decoration:none; box-shadow: 0 8px 24px rgba(0,0,0,.45); transition: transform .2s, box-shadow .2s; }
.share:hover { transform: translateY(-3px) scale(1.03); box-shadow: 0 12px 30px rgba(37,211,102,.4); }
.share:focus-visible { outline: 2px solid #ffbe0b; outline-offset: 3px; }

#confetti { position: fixed; inset:0; width:100%; height:100%; z-index: 50; pointer-events:none; }
#timer > div { transition: transform .15s ease-out, border-color .3s; will-change: transform; }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; }
    #particles { display: none; }
}

/* Per-subject exam countdown */
.sr { position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0 0 0 0); }
.exams { width:min(94%,560px); margin: 26px auto 18px; padding: 20px 22px; border-radius: 20px; text-align:left;
    background: rgba(3,20,43,.55); border:1px solid rgba(255,255,255,.14); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
    box-shadow: 0 12px 34px rgba(0,0,0,.45); animation: rise .9s cubic-bezier(.2,.8,.2,1) 1.75s both; }
.exams h2 { margin:0 0 12px; font: 400 clamp(22px,4vw,30px)/1 'Bebas Neue', Impact, sans-serif; letter-spacing:.08em; color:#ffbe0b; }
.exams select { width:100%; padding: 12px 14px; font-size:16px; color:#fff; background:#0b2a54; border:1px solid rgba(255,255,255,.25); border-radius:12px; }
.exams select:focus-visible { outline:2px solid #ffbe0b; outline-offset:2px; }
#papers { list-style:none; margin:14px 0 6px; padding:0; display:grid; gap:8px; }
#papers li { display:grid; grid-template-columns: 1fr auto auto; gap: 14px; align-items:center; padding:11px 14px; border-radius:12px; background: rgba(255,255,255,.07); }
#papers .pn { font-weight:700; } #papers .pd { color:#b9cbe6; font-size:14px; } #papers .pl { color:#ffd166; font-size:18px; min-width:72px; text-align:right; }
#papers li.today { background: rgba(255,190,11,.22); outline:1px solid #ffbe0b; } #papers li.done { opacity:.45; }
.exams .note { margin:8px 0 0; font-size:12px; color:#a9bdd8; }
@media (max-width:480px){ #papers li { grid-template-columns: 1fr auto; } #papers .pd { grid-column:1; grid-row:2; } #papers .pl { grid-row:1 / span 2; grid-column:2; } }

/* Weekly timetable */
.timetable { width: min(96%, 860px); animation-delay: 1.9s; }
.wk-tabs { display:flex; flex-wrap:wrap; gap:8px; margin-bottom:14px; }
.wk-tabs button { padding:8px 14px; border-radius:999px; border:1px solid rgba(255,255,255,.25); background: rgba(255,255,255,.07); color:#fff; font:600 14px inherit; cursor:pointer; }
.wk-tabs button[aria-selected="true"] { background:#ffbe0b; color:#06223f; border-color:#ffbe0b; }
.wk-tabs button:focus-visible { outline:2px solid #ffbe0b; outline-offset:2px; }
.wk-tabs .print { margin-left:auto; background:transparent; }
.tt-wrap { overflow-x:auto; }
.timetable table { width:100%; border-collapse:collapse; font-size:14px; }
.timetable caption { text-align:left; font-weight:700; color:#ffd166; padding:0 0 8px; }
.timetable th { text-align:left; padding:10px 12px; background: rgba(58,134,255,.35); }
.timetable th:first-child { border-radius:10px 0 0 0; } .timetable th:last-child { border-radius:0 10px 0 0; }
.timetable td { padding:10px 12px; vertical-align:top; border-bottom:1px solid rgba(255,255,255,.1); }
.timetable td:nth-child(-n+2) { white-space:nowrap; font-weight:600; }
.timetable td ul { margin:0; padding-left:16px; } .timetable td li { margin:2px 0; }
.timetable tr:nth-child(even) td { background: rgba(255,255,255,.04); }
.timetable tr.off td { color:#8fa6c6; font-style:italic; }
.timetable tr.now td { background: rgba(255,190,11,.2); box-shadow: inset 3px 0 0 #ffbe0b; }
@media print {
    .bg,.bg-shade,#particles,.site-nav,#timer,.share,.target,.message-card,.header-group,.exams:not(.timetable),.wk-tabs,#confetti { display:none !important; }
    body { background:#fff; } .timetable { background:#fff; color:#000; box-shadow:none; border:0; width:100%; }
    .timetable td, .timetable th, .timetable caption, .timetable h2 { color:#000; background:#fff !important; border-bottom:1px solid #999; text-shadow:none; }
}

/* sessions */
#papers li { grid-template-columns: 1fr auto auto auto; }
#papers .pt { background:#ffbe0b; color:#06223f; font-weight:800; font-size:13px; padding:3px 9px; border-radius:999px; }
.timetable th small { display:block; font-weight:600; color:#ffd166; font-size:12px; }
.timetable table { min-width: 620px; } .timetable td.none { color:#6f86a8; }
.timetable td:nth-child(3) { border-left:3px solid rgba(255,190,11,.55); } .timetable td:nth-child(4) { border-left:3px solid rgba(58,134,255,.7); }
@media (max-width:480px){ #papers li { grid-template-columns: 1fr auto auto; } #papers .pd { grid-column:1; grid-row:2; } #papers .pt { grid-column:2; grid-row:1 / span 2; align-self:center; } #papers .pl { grid-column:3; grid-row:1 / span 2; } }
@media print { .timetable table { min-width:0; } }

/* ===== Heading: title leads, 2026 in gold, full name underneath ===== */
h1 {
    font: 400 clamp(60px, 13vw, 150px)/1 'Bebas Neue', Impact, 'Arial Narrow', sans-serif;
    letter-spacing: .08em;
    margin: 0;
    color: #fff;
    text-shadow: 0 3px 16px rgba(0,0,0,.75), 0 0 2px rgba(0,0,0,.5);
}
h1 .yr { color: #ffbe0b; }
.fullname {
    font-size: clamp(11px, 1.5vw, 16px);
    letter-spacing: .22em;
    text-transform: uppercase;
    font-weight: 700;
    color: #dbe8ff;
    margin: 6px 0 10px;
    text-shadow: 0 2px 10px rgba(0,0,0,.85);
}
.brand { font-size: clamp(26px, 5.2vw, 62px); letter-spacing: .14em; margin-top: 0; }

/* ===== Announcement ticker ===== */
.ticker { width: 100%; display: flex; align-items: stretch; margin-top: 16px; position: relative; z-index: 20;
    background: rgba(3,20,43,.62); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
    border-top: 1px solid rgba(255,190,11,.45); border-bottom: 1px solid rgba(255,190,11,.45); box-shadow: 0 6px 20px rgba(0,0,0,.35);
    animation: fadeIn 1s ease-out .5s both; }
.ticker .badge { flex: none; display: flex; align-items: center; padding: 0 16px; background: #ffbe0b; color: #06223f;
    font-weight: 800; font-size: 12px; letter-spacing: .14em; box-shadow: 6px 0 14px rgba(0,0,0,.35); position: relative; z-index: 1; }
.ticker .viewport { overflow: hidden; flex: 1; }
.ticker .track { display: flex; width: max-content; animation: tickerRoll 55s linear infinite; }
.ticker:hover .track, .ticker:focus-within .track { animation-play-state: paused; }
.ticker .grp { display: flex; flex: none; }
.ticker .grp span { padding: 11px 22px; white-space: nowrap; color: #fff; font-size: 15px; }
.ticker .grp .sep { color: #ffbe0b; padding: 11px 14px; }
.ticker b { color: #ffd166; } .ticker em { font-style: normal; }
.ticker .pl-note { color: #ffbe0b; }
@keyframes tickerRoll { to { transform: translateX(-50%); } }
@media (max-width: 650px) { .ticker .badge { padding: 0 10px; font-size: 10px; } .ticker .grp span { font-size: 14px; } }
@media (prefers-reduced-motion: reduce) {
    .ticker .track { width: auto; animation: none !important; }
    .ticker .grp span { white-space: normal; text-align: center; }
    .ticker .g2, .ticker .sep { display: none; }
}
@media print { .ticker { display: none !important; } }
