/* ===========================
   NJU.CSS — Nanjing University
   Warna: Imperial Purple #4B2D8F + Gold #C9A84C
   Tema: Elegan, Historis, Klasik-Modern
   =========================== */

@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;700;900&display=swap');

html { scroll-behavior: smooth; }
* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    --purple:     #4B2D8F;
    --purple-mid: #6B42C8;
    --purple-light: rgba(75, 45, 143, 0.35);
    --gold:       #C9A84C;
    --gold-light: rgba(201, 168, 76, 0.4);
    --cream:      #f5f0e8;
}

body {
    overflow-x: hidden;
    font-family: 'Open Sans', sans-serif;
    background: #0a0714;
}

/* ===== PARTIKEL MENGAMBANG ===== */
.particles {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}
.particle {
    position: absolute;
    color: var(--gold);
    font-family: 'Cinzel', serif;
    animation: floatUp linear infinite;
    user-select: none;
}
@keyframes floatUp {
    0%   { transform: translateY(0) rotate(0deg); opacity: 0; }
    10%  { opacity: 1; }
    90%  { opacity: 1; }
    100% { transform: translateY(-100vh) rotate(360deg); opacity: 0; }
}

/* ===== SLIDES BACKGROUND ===== */
.slide1, .slide2, .slide3 {
    position: relative;
    display: block;
    background-image: url("peking.jpg");
    background-repeat: no-repeat;
    background-attachment: fixed;
    background-position: center;
    background-size: cover;
    width: 100%;
    min-height: 100vh;
    overflow: hidden;
    z-index: 1;
}

/* Overlay ungu lembut di atas background */
.slide1::before, .slide2::before, .slide3::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(10, 7, 20, 0.55) 0%,
        rgba(75, 45, 143, 0.25) 50%,
        rgba(10, 7, 20, 0.6) 100%
    );
    z-index: 0;
    pointer-events: none;
}
.slide1 > *, .slide2 > *, .slide3 > * {
    position: relative;
    z-index: 1;
}

/* ===== TOMBOL KEMBALI ===== */
.webresmi {
    background: linear-gradient(135deg, var(--purple) 0%, #2a1a5e 100%);
    color: var(--cream);
    border: 1.5px solid var(--gold);
    padding: 11px 26px;
    border-radius: 2px;
    font-weight: 700;
    letter-spacing: 2px;
    font-size: 0.85rem;
    box-shadow: 4px 4px 0px rgba(201,168,76,0.4), inset 0 1px 0 rgba(255,255,255,0.1);
    display: flex;
    margin: 18px auto;
    width: fit-content;
    text-decoration: none;
    text-transform: uppercase;
    transition: all 0.3s ease;
    font-family: 'Open Sans', sans-serif;
}
.webresmi:hover {
    background: linear-gradient(135deg, var(--gold) 0%, #a8852a 100%);
    color: #1a0a3e;
    box-shadow: 0 0 20px var(--gold-light);
    transform: translateY(-2px);
}

/* ===== HERO BADGE ===== */
.hero-badge {
    display: block;
    margin: 10px auto 0;
    width: fit-content;
    background: rgba(201, 168, 76, 0.15);
    border: 1px solid var(--gold);
    color: var(--gold);
    font-family: 'Cinzel', serif;
    font-size: 0.8rem;
    letter-spacing: 5px;
    padding: 5px 20px;
    border-radius: 20px;
    text-transform: uppercase;
    text-align: center;
}

/* ===== JUDUL ===== */
.Judul {
    display: flex;
    margin: 12px auto 0;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-family: 'Cinzel', serif;
    font-size: clamp(28px, 7vw, 68px);
    font-weight: 900;
    width: 85%;
    color: #ffffff;
    text-shadow: 0 0 40px rgba(201,168,76,0.5), 2px 2px 15px rgba(0,0,0,0.5);
    background: linear-gradient(135deg,
        rgba(75,45,143,0.3) 0%,
        rgba(255,255,255,0.05) 100%
    );
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border: 1px solid rgba(201, 168, 76, 0.5);
    border-top: 2px solid var(--gold);
    box-shadow: 0 20px 40px rgba(0,0,0,0.4), inset 0 1px 0 rgba(255,255,255,0.1);
    padding: 18px 30px;
    transition: all 0.4s ease;
    border-radius: 4px;
    letter-spacing: 4px;
}
.Judul:hover {
    border-color: var(--gold);
    box-shadow: 0 0 50px rgba(201,168,76,0.3), 0 20px 40px rgba(0,0,0,0.4);
    transform: scale(1.005);
}

/* Sub-judul aksara China */
.Judul-sub {
    display: block;
    text-align: center;
    font-family: 'Cinzel', serif;
    font-size: clamp(12px, 2vw, 16px);
    color: var(--gold);
    letter-spacing: 6px;
    margin: 8px auto 0;
    opacity: 0.85;
}

/* ===== CONTAINER FLEX ===== */
.container {
    display: flex;
    column-gap: 40px;
    padding: 50px 50px 60px;
}
section { display: block; border: none; margin: 0; padding: 0; }

/* ===== VIDEO CONTAINER ===== */
.video-container {
    display: flex;
    position: relative;
    margin-top: 50px;
    margin-left: 50px;
    width: fit-content;
    padding: 12px;
    background: rgba(75, 45, 143, 0.15);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(201, 168, 76, 0.4);
    border-top: 2px solid var(--gold);
    border-radius: 4px;
    box-shadow: 0 25px 50px rgba(0,0,0,0.5), 0 0 30px rgba(75,45,143,0.3);
    transition: all 0.4s ease;
}
.video-container iframe { border-radius: 4px; display: block; }
.video-container:hover {
    border-color: var(--gold);
    box-shadow: 0 25px 50px rgba(0,0,0,0.5), 0 0 40px rgba(201,168,76,0.25);
    transform: translateY(-4px);
}

/* ===== PENGANTAR ===== */
.pengantar {
    margin-top: 50px;
    margin-right: 50px;
    display: flex;
    align-items: center;
    background: rgba(75, 45, 143, 0.18);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border: 1px solid rgba(201, 168, 76, 0.3);
    border-left: 3px solid var(--gold);
    border-radius: 4px;
    padding: 25px 28px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.3);
    color: var(--cream);
    font-family: 'Open Sans', sans-serif;
    font-size: 1.05rem;
    line-height: 1.9;
    letter-spacing: 0.2px;
    text-align: justify;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.6);
}

/* ===== HEADING SECTION ===== */
.dokumen, .stats-title {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 55px auto;
    width: fit-content;
    padding: 18px 55px;
    font-family: 'Cinzel', serif;
    font-size: clamp(22px, 4.5vw, 52px);
    font-weight: 700;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 6px;
    text-shadow: 0 0 30px rgba(201,168,76,0.4), 2px 4px 10px rgba(0,0,0,0.5);
    background: rgba(75, 45, 143, 0.2);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(201, 168, 76, 0.4);
    border-top: 3px solid var(--gold);
    border-bottom: 3px solid var(--gold);
    border-radius: 2px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.3), 0 0 60px rgba(75,45,143,0.2);
    text-align: center;
}

/* ===== BOX WRAPPER ===== */
.box {
    display: flex;
    justify-content: center;
    align-items: stretch;
    flex-wrap: wrap;
    gap: 1.5rem;
    width: 92%;
    margin: 20px auto 40px;
}

/* ===== BOX ITEMS ===== */
.box1, .box2, .box3, .box4, .box5,
.box6, .box7, .box8, .box9, .box10 {
    background: rgba(75, 45, 143, 0.15);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(201, 168, 76, 0.2);
    border-left: 4px solid var(--gold);
    border-radius: 4px;
    padding: 22px 24px;
    width: 100%;
    max-width: 860px;
    color: var(--cream);
    font-family: 'Open Sans', sans-serif;
    font-size: 0.97rem;
    line-height: 1.75;
    transition: all 0.35s ease;
    cursor: default;
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}
.box1:hover, .box2:hover, .box3:hover, .box4:hover, .box5:hover,
.box6:hover, .box7:hover, .box8:hover, .box9:hover, .box10:hover {
    background: rgba(75, 45, 143, 0.45);
    border-left: 4px solid #fff;
    box-shadow: 0 0 30px rgba(201,168,76,0.25), 0 8px 30px rgba(0,0,0,0.3);
    transform: translateX(8px) scale(1.01);
}
.box1 strong, .box2 strong, .box3 strong,
.box4 strong, .box5 strong, .box6 strong,
.box7 strong, .box8 strong, .box9 strong,
.box10 strong {
    color: var(--gold);
    display: block;
    margin-bottom: 6px;
    font-size: 1rem;
}

/* ===== STATS SECTION ===== */
.stats-container {
    display: flex;
    justify-content: space-evenly;
    flex-wrap: wrap;
    gap: 25px;
    padding: 0 20px 60px;
}
.stats-card {
    background: rgba(75, 45, 143, 0.2);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(201, 168, 76, 0.25);
    border-top: 3px solid var(--gold);
    padding: 45px 30px;
    width: 300px;
    min-height: 300px;
    border-radius: 4px;
    transition: all 0.4s ease;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}
.stats-card:hover {
    transform: translateY(-12px);
    background: rgba(75, 45, 143, 0.45);
    border-color: var(--gold);
    box-shadow: 0 25px 50px rgba(0,0,0,0.4), 0 0 40px rgba(201,168,76,0.2);
}
.stats-number {
    font-family: 'Cinzel', serif;
    font-size: 3.2rem;
    font-weight: 900;
    color: var(--gold);
    margin-bottom: 12px;
    text-shadow: 0 0 20px rgba(201,168,76,0.5);
}
.stats-label {
    color: rgba(245, 240, 232, 0.85);
    font-family: 'Open Sans', sans-serif;
    font-size: 0.88rem;
    line-height: 1.5;
    font-weight: 400;
}

/* ===== AI POPUP ===== */
.ai-popup {
    position: fixed;
    bottom: 30px;
    right: 30px;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, var(--purple) 0%, #2a1a5e 100%);
    border: 1.5px solid var(--gold);
    padding: 10px 20px;
    border-radius: 50px;
    text-decoration: none;
    z-index: 10000;
    transition: all 0.3s ease;
    animation: pulse-purple 2.5s infinite;
    box-shadow: 0 5px 20px rgba(75,45,143,0.5);
}
.ai-circle {
    width: 34px;
    height: 34px;
    background: var(--gold);
    color: var(--purple);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: 'Cinzel', serif;
    font-weight: 700;
    font-size: 13px;
    margin-right: 10px;
}
.ai-label {
    color: #ffffff;
    font-family: 'Open Sans', sans-serif;
    font-weight: 700;
    font-size: 14px;
    letter-spacing: 0.5px;
}
@keyframes pulse-purple {
    0%   { box-shadow: 0 0 0 0 rgba(201,168,76,0.6), 0 5px 20px rgba(75,45,143,0.5); transform: scale(1); }
    70%  { box-shadow: 0 0 0 14px rgba(201,168,76,0), 0 5px 20px rgba(75,45,143,0.5); transform: scale(1.04); }
    100% { box-shadow: 0 0 0 0 rgba(201,168,76,0), 0 5px 20px rgba(75,45,143,0.5); transform: scale(1); }
}
.ai-popup:hover {
    animation: none;
    background: linear-gradient(135deg, var(--gold) 0%, #a8852a 100%);
    transform: translateY(-5px) scale(1.08);
    box-shadow: 0 12px 25px rgba(0,0,0,0.4);
}
.ai-popup:hover .ai-circle { background: #fff; color: var(--gold); }
.ai-popup:hover .ai-label  { color: #1a0a3e; }

/* ===== SLIDE 4: FINAL ===== */
.slide4 {
    display: flex;
    justify-content: center;
    align-items: center;
    background-image: url("peking.jpg");
    background-attachment: fixed;
    background-size: cover;
    background-position: center;
    min-height: 100vh;
    padding: 60px 20px;
    position: relative;
}
.slide4::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(10,7,20,0.6) 0%, rgba(75,45,143,0.3) 50%, rgba(10,7,20,0.65) 100%);
    z-index: 0;
}
.final-container {
    position: relative;
    z-index: 1;
    background: rgba(20, 10, 50, 0.6);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(201,168,76,0.4);
    border-top: 3px solid var(--gold);
    border-bottom: 3px solid var(--gold);
    border-radius: 4px;
    width: 90%;
    max-width: 1200px;
    padding: 45px;
    box-shadow: 0 30px 60px rgba(0,0,0,0.6), 0 0 80px rgba(75,45,143,0.25);
    text-align: center;
}
.final-title {
    font-family: 'Cinzel', serif;
    font-weight: 900;
    color: #ffffff;
    font-size: clamp(20px, 4vw, 40px);
    margin-bottom: 10px;
    text-shadow: 0 0 30px rgba(201,168,76,0.4);
    letter-spacing: 3px;
}
.final-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 2px;
    background: var(--gold);
    margin: 14px auto 35px;
    border-radius: 2px;
}
.final-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    margin-bottom: 40px;
}
.final-card {
    background: rgba(75, 45, 143, 0.25);
    border: 1px solid rgba(201,168,76,0.25);
    border-top: 2px solid var(--gold);
    padding: 28px 22px;
    border-radius: 4px;
    color: var(--cream);
    text-align: left;
    transition: 0.35s ease;
}
.final-card:hover {
    background: rgba(75, 45, 143, 0.5);
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.4), 0 0 30px rgba(201,168,76,0.15);
}
.final-card h3 {
    color: var(--gold);
    margin-bottom: 16px;
    font-family: 'Cinzel', serif;
    font-size: 0.95rem;
    letter-spacing: 1.5px;
    border-bottom: 1px solid rgba(201,168,76,0.3);
    padding-bottom: 8px;
    text-transform: uppercase;
}
.final-card p {
    font-size: 0.86rem;
    line-height: 1.75;
    margin-bottom: 3px;
    color: rgba(245,240,232,0.9);
}
.timeline-list {
    list-style: none;
    font-size: 0.86rem;
    line-height: 2;
    color: rgba(245,240,232,0.9);
}
.timeline-list li::before {
    content: '▸ ';
    color: var(--gold);
}
.link-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.btn-final {
    text-decoration: none;
    background: transparent;
    color: var(--gold);
    padding: 10px 14px;
    text-align: center;
    font-weight: 700;
    border-radius: 2px;
    border: 1px solid var(--gold);
    transition: 0.3s;
    font-family: 'Open Sans', sans-serif;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
}
.btn-final:hover {
    background: var(--gold);
    color: #1a0a3e;
    box-shadow: 0 0 20px rgba(201,168,76,0.4);
}
.mini-footer {
    margin-top: 20px;
    color: rgba(245, 240, 232, 0.4);
    font-size: 0.78rem;
    letter-spacing: 1px;
}

/* ===== RESPONSIVE MOBILE ===== */
@media (max-width: 900px) {
    .Judul {
        font-size: 32px !important;
        width: 93% !important;
        letter-spacing: 2px;
        padding: 14px 16px;
    }
    .Judul-sub { font-size: 11px; letter-spacing: 3px; }
    .container {
        flex-direction: column !important;
        align-items: center !important;
        gap: 18px !important;
        padding: 10px 12px;
    }
    .video-container {
        width: 100% !important;
        margin-left: 0 !important;
        margin-top: 10px;
    }
    .video-container iframe { height: 230px !important; width: 100% !important; }
    .pengantar {
        width: 100% !important;
        margin: 0 !important;
        padding: 18px !important;
        font-size: 1rem !important;
        text-align: left;
    }
    .dokumen, .stats-title {
        width: 90%;
        padding: 14px 20px;
        font-size: 24px;
        letter-spacing: 3px;
    }
    .stats-card { width: 90%; min-height: auto; padding: 30px 20px; }
    .final-grid { grid-template-columns: 1fr; }
    .final-container { padding: 22px; width: 96%; }
    .final-card { text-align: left; }
}