@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,300..700;1,9..40,300..700&family=JetBrains+Mono:wght@400;500&family=Playfair+Display:wght@700;800&display=swap');

:root {
    --bg: #ffffff;
    --bg-card: #f8fafc;
    --bg-card-hover: #f1f5f9;
    --surface: #f1f5f9;
    --border: #e2e8f0;
    --border-accent: #cbd5e1;
    --text: #1e293b;
    --text-muted: #475569;
    --text-dim: #94a3b8;
    --accent: #d6336c;
    --accent-glow: rgba(214, 51, 108, 0.08);
    --accent2: #7c3aed;
    --accent3: #059669;
    --accent4: #ea580c;
    --gradient-hero: linear-gradient(135deg, #f8fafc 0%, #eef2ff 40%, #f0f9ff 100%);
    --font-body: Arial, Helvetica, sans-serif;
    --font-display: 'Playfair Display', serif;
    --font-mono: 'JetBrains Mono', monospace;
    --radius: 12px;
    --radius-sm: 8px;
    --shadow: 0 4px 24px rgba(0,0,0,0.06);
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    font-family: var(--font-body);
    background: var(--bg);
    color: var(--text);
    line-height: 1.7;
    font-size: 17.5px;
    -webkit-font-smoothing: antialiased;
}
.container { max-width: 1100px; margin: 0 auto; padding: 0 24px; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ══════════════════ NAVBAR ══════════════════ */
.navbar {
    position: sticky; top: 0; z-index: 100;
    background: rgba(255,255,255,0.92);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border);
    transition: box-shadow 0.3s;
}
.navbar.scrolled { box-shadow: 0 2px 20px rgba(0,0,0,0.06); }
.nav-inner {
    display: flex; align-items: center; justify-content: center;
    height: 60px;
}
.nav-brand { display: none; }
.nav-links { display: flex; gap: 4px; align-items: center; }
.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 17px;
    font-weight: 700;
    padding: 8px 16px;
    border-radius: 6px;
    transition: all 0.15s;
    white-space: nowrap;
}
.nav-links a:hover { color: var(--text); background: var(--accent-glow); text-decoration: none; }
.nav-links a.active { color: var(--accent); background: var(--accent-glow); font-weight: 700; }
.nav-links .nav-join {
    background: var(--accent); color: #fff !important;
    font-weight: 700; padding: 8px 20px; margin-left: 6px;
}
.nav-links .nav-join:hover { opacity: 0.9; background: var(--accent); }
.nav-toggle { display: none; background: none; border: none; font-size: 22px; cursor: pointer; color: var(--text); }

/* ══════════════════ HERO (Home only) ══════════════════ */
.hero {
    padding: 64px 0 56px;
    background: linear-gradient(135deg, #0d1117 0%, #161b26 50%, #1a1025 100%);
    text-align: center;
    border-bottom: 1px solid var(--border);
    position: relative;
    overflow: hidden;
    min-height: 220px;
}
.hero h1 { color: #fff; }
.hero h1 .highlight {
    background: linear-gradient(135deg, #e64980, #ff6b9d);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.hero-sub { font-size: 16.5px; color: rgba(255,255,255,0.6); max-width: 620px; margin: 0 auto 24px; line-height: 1.6; }
.hero::before {
    content: none;
}

/* Floating particles container */
.hero-particles {
    position: absolute; inset: 0; overflow: hidden; pointer-events: none;
}
.hero-particles span {
    position: absolute;
    border-radius: 50%;
    opacity: 0;
    animation: drift linear infinite;
}
@keyframes drift {
    0% { transform: translate(0, 0) scale(0.8); opacity: 0; }
    8% { opacity: 1; }
    50% { transform: translate(40px, -30px) scale(1.2); }
    92% { opacity: 1; }
    100% { transform: translate(-20px, 20px) scale(0.8); opacity: 0; }
}
@keyframes driftAlt {
    0% { transform: translate(0, 0) scale(1); opacity: 0; }
    8% { opacity: 1; }
    50% { transform: translate(-35px, 25px) scale(1.3); }
    92% { opacity: 1; }
    100% { transform: translate(25px, -15px) scale(0.9); opacity: 0; }
}
@keyframes driftSlow {
    0% { transform: translate(0, 0) scale(0.9); opacity: 0; }
    10% { opacity: 1; }
    50% { transform: translate(20px, -40px) scale(1.15); }
    90% { opacity: 1; }
    100% { transform: translate(-15px, 10px) scale(0.9); opacity: 0; }
}
/* Row 1 — small bright dots */
.hero-particles span:nth-child(1)  { width:5px;  height:5px;  top:15%; left:3%;  background:rgba(230,73,128,0.9);  animation: drift 5s 0s infinite; }
.hero-particles span:nth-child(2)  { width:4px;  height:4px;  top:60%; left:7%;  background:rgba(52,211,153,0.85); animation: driftAlt 6s 0.5s infinite; }
.hero-particles span:nth-child(3)  { width:5px;  height:5px;  top:35%; left:12%; background:rgba(99,179,237,0.9);  animation: drift 4.5s 1s infinite; }
.hero-particles span:nth-child(4)  { width:3px;  height:3px;  top:80%; left:16%; background:rgba(255,255,255,0.8);  animation: driftSlow 5.5s 0.2s infinite; }
.hero-particles span:nth-child(5)  { width:6px;  height:6px;  top:25%; left:20%; background:rgba(214,51,108,0.85); animation: driftAlt 5s 1.5s infinite; }
.hero-particles span:nth-child(6)  { width:4px;  height:4px;  top:70%; left:24%; background:rgba(167,139,250,0.85); animation: drift 6.5s 0.8s infinite; }
.hero-particles span:nth-child(7)  { width:5px;  height:5px;  top:45%; left:28%; background:rgba(52,211,153,0.9);  animation: driftSlow 4s 2s infinite; }
.hero-particles span:nth-child(8)  { width:3px;  height:3px;  top:10%; left:33%; background:rgba(255,255,255,0.75); animation: drift 5s 0.3s infinite; }
.hero-particles span:nth-child(9)  { width:6px;  height:6px;  top:55%; left:37%; background:rgba(230,73,128,0.85); animation: driftAlt 5.5s 1.2s infinite; }
.hero-particles span:nth-child(10) { width:4px;  height:4px;  top:85%; left:41%; background:rgba(99,179,237,0.8);  animation: drift 6s 0.6s infinite; }
/* Row 2 — medium glowing orbs */
.hero-particles span:nth-child(11) { width:10px; height:10px; top:30%; left:5%;  background:rgba(214,51,108,0.35); animation: driftSlow 10s 0s infinite; box-shadow:0 0 18px rgba(214,51,108,0.6); }
.hero-particles span:nth-child(12) { width:12px; height:12px; top:50%; left:22%; background:rgba(52,211,153,0.3);  animation: driftAlt 12s 1s infinite; box-shadow:0 0 22px rgba(52,211,153,0.5); }
.hero-particles span:nth-child(13) { width:9px;  height:9px;  top:20%; left:40%; background:rgba(167,139,250,0.3); animation: drift 11s 0.5s infinite; box-shadow:0 0 16px rgba(167,139,250,0.55); }
/* Row 3 — right side small dots */
.hero-particles span:nth-child(14) { width:5px;  height:5px;  top:40%; left:46%; background:rgba(214,51,108,0.9);  animation: drift 4.5s 0.4s infinite; }
.hero-particles span:nth-child(15) { width:4px;  height:4px;  top:75%; left:50%; background:rgba(255,255,255,0.8);  animation: driftAlt 5s 1.8s infinite; }
.hero-particles span:nth-child(16) { width:6px;  height:6px;  top:20%; left:54%; background:rgba(52,211,153,0.85); animation: driftSlow 6s 0.7s infinite; }
.hero-particles span:nth-child(17) { width:3px;  height:3px;  top:65%; left:58%; background:rgba(230,73,128,0.85); animation: drift 5.5s 2.2s infinite; }
.hero-particles span:nth-child(18) { width:5px;  height:5px;  top:35%; left:63%; background:rgba(99,179,237,0.9);  animation: driftAlt 4s 0.9s infinite; }
.hero-particles span:nth-child(19) { width:4px;  height:4px;  top:80%; left:67%; background:rgba(167,139,250,0.85); animation: driftSlow 5s 1.4s infinite; }
.hero-particles span:nth-child(20) { width:6px;  height:6px;  top:15%; left:72%; background:rgba(214,51,108,0.9);  animation: drift 6s 0.1s infinite; }
.hero-particles span:nth-child(21) { width:3px;  height:3px;  top:55%; left:76%; background:rgba(255,255,255,0.75); animation: driftAlt 4.5s 2.5s infinite; }
.hero-particles span:nth-child(22) { width:5px;  height:5px;  top:45%; left:80%; background:rgba(52,211,153,0.9);  animation: drift 5.5s 0.6s infinite; }
.hero-particles span:nth-child(23) { width:4px;  height:4px;  top:70%; left:85%; background:rgba(230,73,128,0.8);  animation: driftSlow 6.5s 1.1s infinite; }
.hero-particles span:nth-child(24) { width:5px;  height:5px;  top:25%; left:89%; background:rgba(99,179,237,0.85); animation: driftAlt 5s 0.3s infinite; }
.hero-particles span:nth-child(25) { width:3px;  height:3px;  top:85%; left:93%; background:rgba(255,255,255,0.7);  animation: drift 4s 1.6s infinite; }
.hero-particles span:nth-child(26) { width:6px;  height:6px;  top:50%; left:97%; background:rgba(167,139,250,0.85); animation: driftSlow 5.5s 0.8s infinite; }
/* Row 4 — large soft glowing orbs right side */
.hero-particles span:nth-child(27) { width:14px; height:14px; top:60%; left:55%; background:rgba(214,51,108,0.2);  animation: driftAlt 13s 0.5s infinite; box-shadow:0 0 25px rgba(214,51,108,0.5); }
.hero-particles span:nth-child(28) { width:11px; height:11px; top:40%; left:75%; background:rgba(52,211,153,0.2);  animation: drift 11s 2s infinite; box-shadow:0 0 20px rgba(52,211,153,0.45); }
.hero-particles span:nth-child(29) { width:13px; height:13px; top:25%; left:90%; background:rgba(167,139,250,0.18); animation: driftSlow 14s 1s infinite; box-shadow:0 0 22px rgba(167,139,250,0.5); }
/* Row 5 — extra tiny sparkles */
.hero-particles span:nth-child(30) { width:2px; height:2px; top:10%; left:45%; background:rgba(255,255,255,0.9); animation: drift 3s 0.1s infinite; }
.hero-particles span:nth-child(31) { width:2px; height:2px; top:90%; left:30%; background:rgba(255,255,255,0.85); animation: driftAlt 3.5s 0.7s infinite; }
.hero-particles span:nth-child(32) { width:2px; height:2px; top:50%; left:10%; background:rgba(255,255,255,0.8); animation: driftSlow 3s 1.3s infinite; }
.hero-particles span:nth-child(33) { width:2px; height:2px; top:30%; left:60%; background:rgba(255,255,255,0.85); animation: drift 3.5s 0.4s infinite; }
.hero-particles span:nth-child(34) { width:2px; height:2px; top:75%; left:88%; background:rgba(255,255,255,0.9); animation: driftAlt 3s 1.9s infinite; }
.hero-particles span:nth-child(35) { width:2px; height:2px; top:5%;  left:70%; background:rgba(255,255,255,0.8); animation: driftSlow 4s 0.2s infinite; }

.hero-content { position: relative; z-index: 2; max-width: 800px; margin: 0 auto; }
.hero h1 {
    font-family: var(--font-body);
    font-size: clamp(1.6rem, 3.5vw, 2.3rem);
    font-weight: 700; line-height: 1.2;
    letter-spacing: -0.01em; margin-bottom: 12px;
}
.hero-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ══════════════════ PAGE HEADER (subpages) ══════════════════ */
.page-header {
    padding: 64px 0 56px;
    background: linear-gradient(135deg, #0d1117 0%, #161b26 50%, #1a1025 100%);
    position: relative; overflow: hidden;
    text-align: center;
    min-height: 180px;
}
.page-header::before {
    content: none;
}
.page-header .container { position: relative; z-index: 2; }
.page-header h1 { color: #fff; }
.page-header .page-label {
    font-family: var(--font-mono); font-size: 13.5px; font-weight: 600;
    text-transform: uppercase; letter-spacing: 0.1em; color: var(--accent); margin-bottom: 8px;
}
.page-header h1 {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4.5vw, 2.8rem);
    font-weight: 700; line-height: 1.2; margin-bottom: 12px;
}
.page-header .page-desc { color: rgba(255,255,255,0.6); font-size: 19px; max-width: 680px; margin: 0 auto; }

/* ══════════════════ BUTTONS ══════════════════ */
.btn {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 12px 28px; border-radius: var(--radius-sm);
    font-size: 16px; font-weight: 600; text-decoration: none;
    transition: all 0.2s; border: none; cursor: pointer;
}
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { filter: brightness(1.1); transform: translateY(-1px); }
.btn-outline { background: transparent; color: var(--text); border: 1px solid var(--border-accent); }
.btn-outline:hover { border-color: var(--accent); color: var(--accent); }
.hero .btn-outline { color: rgba(255,255,255,0.8); border-color: rgba(255,255,255,0.25); }
.hero .btn-outline:hover { color: #fff; border-color: rgba(255,255,255,0.5); }

/* ══════════════════ CONTENT SECTIONS ══════════════════ */
.content { padding: 64px 0 80px; }
.content h2 {
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 3.5vw, 2.4rem);
    font-weight: 700; margin-bottom: 20px; line-height: 1.3;
}
.content h3 { font-size: 21px; font-weight: 700; margin: 28px 0 10px; }
.prose { color: var(--text-muted); font-size: 19px; max-width: 100%; line-height: 1.8; }
.prose + .prose { margin-top: 14px; }
.prose strong { color: var(--text); font-weight: 600; }
.prose em { color: var(--accent2); font-style: italic; }

/* ══════════════════ CARDS ══════════════════ */
.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 20px; margin-top: 28px; }
.card {
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 28px; position: relative;
    overflow: hidden; transition: all 0.25s;
}
.card:hover { border-color: var(--border-accent); background: var(--bg-card-hover); transform: translateY(-2px); box-shadow: var(--shadow); }
.card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; }
.card:nth-child(1)::before { background: linear-gradient(90deg, var(--accent), var(--accent2)); }
.card:nth-child(2)::before { background: linear-gradient(90deg, var(--accent3), var(--accent)); }
.card-tag {
    display: inline-block; font-family: var(--font-mono);
    font-size: 12.5px; font-weight: 600; text-transform: uppercase;
    letter-spacing: 0.08em; padding: 4px 10px; border-radius: 4px; margin-bottom: 14px;
}
.card:nth-child(1) .card-tag { background: var(--accent-glow); color: var(--accent); }
.card:nth-child(2) .card-tag { background: rgba(5,150,105,0.1); color: var(--accent3); }
.card h3 { font-size: 21px; font-weight: 700; margin: 0 0 10px; }
.card p { font-size: 18px; color: var(--text-muted); line-height: 1.7; }
.card-footer { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--border); font-size: 16px; color: var(--text-dim); }
.card-footer strong { color: var(--text-muted); }

/* ══════════════════ STAT GRID ══════════════════ */
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; margin-top: 24px; }
.stat-card {
    background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--radius-sm); padding: 24px; text-align: center;
}
.stat-number {
    font-family: var(--font-display); font-size: 2rem; font-weight: 800;
    background: linear-gradient(135deg, #d6336c, #e64980);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.stat-label { font-size: 17px; color: var(--text-muted); margin-top: 4px; }

/* ══════════════════ DATA TABLES ══════════════════ */
.data-table {
    width: 100%;
    margin-top: 12px;
    border-collapse: collapse;
    font-size: 17px;
}
.data-table thead th {
    text-align: left;
    padding: 12px 16px;
    background: var(--surface);
    border-bottom: 2px solid var(--border);
    font-weight: 700;
    color: var(--text);
    font-size: 16px;
}
.data-table tbody td {
    padding: 10px 16px;
    border-bottom: 1px solid var(--border);
    color: var(--text-muted);
}
.data-table tbody tr:hover {
    background: var(--bg-card-hover);
}

/* ══════════════════ TIMELINE ══════════════════ */
.timeline { margin-top: 28px; position: relative; padding-left: 28px; }
.timeline::before {
    content: ''; position: absolute; left: 6px; top: 8px; bottom: 8px;
    width: 2px; background: var(--border);
}
.tl-item { position: relative; padding-bottom: 24px; }
.tl-item:last-child { padding-bottom: 0; }
.tl-item::before {
    content: ''; position: absolute; left: -24px; top: 8px;
    width: 10px; height: 10px; border-radius: 50%;
    background: var(--bg); border: 2px solid var(--border-accent);
}
.tl-item.done::before { background: var(--accent3); border-color: var(--accent3); }
.tl-item.active::before { background: var(--accent); border-color: var(--accent); box-shadow: 0 0 10px rgba(214,51,108,0.2); }
.tl-date { font-family: var(--font-mono); font-size: 15.5px; color: var(--accent); font-weight: 500; }
.tl-title { font-size: 19px; font-weight: 600; margin-top: 2px; }
.tl-desc { font-size: 17px; color: var(--text-muted); margin-top: 2px; }

/* ══════════════════ METRIC LIST ══════════════════ */
.metric-list { margin-top: 20px; display: flex; flex-direction: column; gap: 12px; }
.metric-item {
    background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--radius-sm); padding: 20px 24px;
    display: flex; align-items: center; gap: 16px;
}
.metric-icon {
    width: 40px; height: 40px; border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    font-size: 18px; flex-shrink: 0;
}
.metric-item:nth-child(1) .metric-icon { background: rgba(214, 51, 108, 0.1); }
.metric-item:nth-child(2) .metric-icon { background: rgba(124,58,237,0.1); }
.metric-item:nth-child(3) .metric-icon { background: rgba(5,150,105,0.1); }
.metric-name { font-weight: 600; font-size: 19px; }
.metric-desc { font-size: 17px; color: var(--text-muted); }

/* ── Ranking steps ── */
.rank-step {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 16px 0;
    border-bottom: 1px solid var(--border);
}
.rank-step:last-child { border-bottom: none; }
.rank-num {
    flex-shrink: 0;
    width: 32px; height: 32px;
    border-radius: 50%;
    background: var(--accent);
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    display: flex; align-items: center; justify-content: center;
}
.rank-step p {
    font-size: 18px;
    color: var(--text-muted);
    line-height: 1.7;
    padding-top: 3px;
}

/* ══════════════════ ORGANIZER LIST ══════════════════ */
.org-institution {
    margin-bottom: 28px;
    padding-bottom: 28px;
    border-bottom: 1px solid var(--border);
}
.org-institution:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}
.org-institution h3 {
    font-size: 19px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 6px;
}
.org-names {
    font-size: 18px;
    color: var(--text-muted);
    line-height: 1.7;
}

/* ── Contact block ── */
.contact-block {
    margin-top: 40px;
    padding: 36px 40px;
    background: var(--accent-glow);
    border: 1px solid var(--accent);
    border-radius: var(--radius);
    border-left: 4px solid var(--accent);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}
.contact-block h3 {
    font-size: 26px;
    font-weight: 800;
    color: var(--accent);
    margin-bottom: 12px;
}
.contact-block p {
    font-size: 17px;
    color: var(--text-muted);
    line-height: 1.8;
}
.contact-block strong {
    color: var(--text);
}

/* ══════════════════ REFERENCES ══════════════════ */
.ref-toggle {
    background: none; border: 1px solid var(--border);
    color: var(--text-muted); font-size: 13px; font-weight: 500;
    padding: 8px 16px; border-radius: 6px; cursor: pointer;
    margin-top: 20px; font-family: var(--font-body); transition: all 0.2s;
}
.ref-toggle:hover { border-color: var(--border-accent); color: var(--text); }
.ref-list {
    max-height: 0; overflow: hidden; transition: max-height 0.4s ease;
    font-size: 16px; color: var(--text-dim); line-height: 1.9;
}
.ref-list.open { max-height: 800px; margin-top: 12px; }

/* ══════════════════ FOOTER ══════════════════ */
.footer {
    padding: 32px 0; border-top: 1px solid var(--border);
    text-align: center; font-size: 15px; color: var(--text-dim);
}
.footer a { color: var(--accent); }

/* ══════════════════ ANIMATIONS ══════════════════ */
.fade-in { opacity: 0; transform: translateY(18px); transition: opacity 0.55s ease, transform 0.55s ease; }
.fade-in.visible { opacity: 1; transform: translateY(0); }
.hero-content { animation: slideUp 0.7s ease both; }
.hero-content img { animation: slideUp 0.5s ease 0.1s both; }
.hero-actions { animation: slideUp 0.5s ease 0.3s both; }
@keyframes slideUp { from { opacity:0; transform:translateY(20px); } to { opacity:1; transform:translateY(0); } }

/* ══════════════════ RESPONSIVE ══════════════════ */
@media (max-width: 768px) {
    .nav-links {
        display: none; position: absolute; top: 60px; left: 0; right: 0;
        background: var(--bg); border-bottom: 1px solid var(--border);
        flex-direction: column; padding: 10px 16px; gap: 2px;
        box-shadow: 0 8px 24px rgba(0,0,0,0.08);
    }
    .nav-links.open { display: flex; }
    .nav-toggle { display: block; }
    .hero { padding: 80px 0 60px; }
    .card-grid { grid-template-columns: 1fr; }
    .org-grid { grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); }
}