/* ===========================
   SYSU.CSS — Sun Yat-sen University
   Warna: Crimson #C8102E + Navy #003DA5 + Gold #C9A84C
   Tema: Klasik-Megah, Bay Area, Elegan Revolusioner
   Font: Playfair Display (display) + Lato (body) + Cormorant Garamond (accent)
   =========================== */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,700;0,900;1,400;1,700&family=Lato:ital,wght@0,300;0,400;0,700;1,300;1,400&family=Cormorant+Garamond:ital,wght@0,300;0,400;0,600;1,300;1,400&display=swap');

html { scroll-behavior: smooth; }
* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    --crimson:      #C8102E;
    --crimson-mid:  #e8203e;
    --crimson-deep: #8a0a1e;
    --navy:         #003DA5;
    --navy-mid:     #0055cc;
    --navy-deep:    #001a4a;
    --gold:         #C9A84C;
    --gold-light:   rgba(201, 168, 76, 0.35);
    --cream:        #fdf6ec;
    --bg:           #0a0510;
}

body {
    overflow-x: hidden;
    font-family: 'Lato', sans-serif;
    background: var(--bg);
    color: var(--cream);
}

/* ===== PARTICLES ===== */
.particles {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}
.particle {
    position: absolute;
    color: var(--gold);
    font-family: 'Playfair Display', serif;
    animation: floatParticle linear infinite;
    user-select: none;
}
@keyframes floatParticle {
    0%   { transform: translateY(0) rotate(0deg); opacity: 0; }
    10%  { opacity: 1; }
    90%  { opacity: 1; }
    100% { transform: translateY(-80px) rotate(180deg); 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;
}
.slide1::before, .slide2::before, .slide3::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        160deg,
        rgba(10, 5, 16, 0.82) 0%,
        rgba(200, 16, 46, 0.18) 35%,
        rgba(0, 61, 165, 0.2) 65%,
        rgba(10, 5, 16, 0.85) 100%
    );
    z-index: 0;
    pointer-events: none;
}
.slide1 > *, .slide2 > *, .slide3 > * {
    position: relative;
    z-index: 1;
}

/* ===== TOMBOL KEMBALI ===== */
.webresmi {
    background: linear-gradient(135deg, var(--crimson-deep) 0%, #1a0008 100%);
    color: var(--cream);
    border: 1.5px solid var(--gold);
    padding: 11px 28px;
    border-radius: 2px;
    font-weight: 700;
    letter-spacing: 2px;
    font-size: 0.82rem;
    font-family: 'Lato', sans-serif;
    box-shadow: 4px 4px 0px rgba(201,168,76,0.35), inset 0 1px 0 rgba(255,255,255,0.08);
    display: flex;
    margin: 18px auto;
    width: fit-content;
    text-decoration: none;
    text-transform: uppercase;
    transition: all 0.3s ease;
}
.webresmi:hover {
    background: linear-gradient(135deg, var(--gold) 0%, #a8852a 100%);
    color: #1a0008;
    box-shadow: 0 0 25px var(--gold-light);
    transform: translateY(-2px);
}

/* ===== HERO BADGE ===== */
.hero-badge {
    display: block;
    margin: 10px auto 0;
    width: fit-content;
    background: rgba(200, 16, 46, 0.12);
    border: 1px solid rgba(200,16,46,0.45);
    color: #ff8899;
    font-family: 'Cormorant Garamond', serif;
    font-size: 0.85rem;
    letter-spacing: 4px;
    padding: 5px 22px;
    border-radius: 2px;
    text-transform: uppercase;
    text-align: center;
    font-style: italic;
}

/* ===== JUDUL ===== */
.Judul {
    display: flex;
    margin: 10px auto 0;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-family: 'Playfair Display', serif;
    font-size: clamp(24px, 5.5vw, 62px);
    font-weight: 900;
    width: 86%;
    color: #ffffff;
    text-shadow:
        0 0 40px rgba(200,16,46,0.5),
        0 0 80px rgba(0,61,165,0.3),
        2px 2px 15px rgba(0,0,0,0.6);
    background: linear-gradient(135deg,
        rgba(200,16,46,0.2) 0%,
        rgba(0,61,165,0.15) 50%,
        rgba(200,16,46,0.2) 100%
    );
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(201,168,76,0.4);
    border-top: 3px solid var(--crimson);
    border-bottom: 3px solid var(--navy);
    box-shadow:
        0 25px 50px rgba(0,0,0,0.55),
        0 0 60px rgba(200,16,46,0.15),
        inset 0 1px 0 rgba(255,255,255,0.06);
    padding: 20px 35px;
    transition: all 0.4s ease;
    letter-spacing: 3px;
    border-radius: 2px;
}
.Judul:hover {
    box-shadow:
        0 0 60px rgba(200,16,46,0.3),
        0 0 60px rgba(0,61,165,0.2),
        0 25px 50px rgba(0,0,0,0.55);
    transform: scale(1.005);
}

.Judul-sub {
    display: block;
    text-align: center;
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(12px, 1.8vw, 17px);
    color: var(--gold);
    letter-spacing: 5px;
    margin: 8px auto 0;
    opacity: 0.85;
    font-style: italic;
}

/* ===== TRICOLOR BAR ===== */
.tricolor-bar {
    display: flex;
    width: 200px;
    height: 3px;
    margin: 10px auto 0;
    border-radius: 2px;
    overflow: hidden;
}
.bar-red  { flex: 1; background: var(--crimson); }
.bar-blue { flex: 1; background: var(--navy); }
.bar-gold { flex: 1; background: var(--gold); }

/* ===== CONTAINER FLEX ===== */
.container {
    display: flex;
    column-gap: 40px;
    padding: 45px 50px 60px;
}
section { display: block; border: none; margin: 0; padding: 0; }

/* ===== VIDEO CONTAINER ===== */
.video-container {
    display: flex;
    position: relative;
    margin-top: 45px;
    margin-left: 50px;
    width: fit-content;
    padding: 13px;
    background: rgba(200, 16, 46, 0.1);
    backdrop-filter: blur(14px);
    border: 1px solid rgba(201,168,76,0.35);
    border-top: 3px solid var(--crimson);
    border-left: 3px solid var(--navy);
    border-radius: 2px;
    box-shadow: 0 25px 50px rgba(0,0,0,0.55), 0 0 35px rgba(200,16,46,0.1);
    transition: all 0.4s ease;
}
.video-container iframe { border-radius: 2px; display: block; }
.video-container:hover {
    border-color: var(--gold);
    box-shadow: 0 25px 50px rgba(0,0,0,0.55), 0 0 40px rgba(201,168,76,0.2);
    transform: translateY(-4px);
}

/* ===== PENGANTAR ===== */
.pengantar {
    margin-top: 45px;
    margin-right: 50px;
    background: rgba(0, 61, 165, 0.12);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border: 1px solid rgba(201,168,76,0.25);
    border-left: 4px solid var(--crimson);
    border-right: 4px solid var(--navy);
    border-radius: 2px;
    padding: 26px 30px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.3);
    color: var(--cream);
    font-family: 'Lato', sans-serif;
    font-size: 1.02rem;
    line-height: 1.95;
    text-align: justify;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.6);
}
.pengantar strong { color: var(--gold); }

/* ===== SECTION HEADING ===== */
.dokumen, .stats-title {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    margin: 50px auto 10px;
    width: fit-content;
    padding: 16px 50px;
    font-family: 'Playfair Display', serif;
    font-size: clamp(20px, 4vw, 48px);
    font-weight: 900;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 4px;
    text-shadow: 0 0 30px rgba(200,16,46,0.4), 2px 4px 10px rgba(0,0,0,0.5);
    background: rgba(200, 16, 46, 0.12);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(201,168,76,0.35);
    border-top: 3px solid var(--crimson);
    border-bottom: 3px solid var(--navy);
    border-radius: 2px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.35), 0 0 50px rgba(200,16,46,0.08);
    text-align: center;
}

/* ===== CAMPUS TAG ===== */
.campus-tag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: 'Lato', sans-serif;
    font-size: 0.6em;
    font-weight: 700;
    letter-spacing: 2px;
    padding: 4px 10px;
    border-radius: 2px;
}
.guangzhou-tag { background: var(--crimson); color: #fff; }
.zhuhai-tag    { background: var(--navy); color: #fff; }
.shenzhen-tag  { background: linear-gradient(135deg, var(--crimson), var(--navy)); color: #fff; }
.doc-tag       { background: var(--gold); color: #1a0008; }

/* ===== CAMPUS DESC ===== */
.campus-desc {
    display: block;
    text-align: center;
    font-family: 'Cormorant Garamond', serif;
    font-style: italic;
    font-size: 1rem;
    color: rgba(253,246,236,0.6);
    letter-spacing: 3px;
    margin: 0 auto 30px;
}

/* ===== BOX WRAPPER ===== */
.box {
    display: flex;
    justify-content: center;
    align-items: stretch;
    flex-wrap: wrap;
    gap: 1.2rem;
    width: 92%;
    margin: 0 auto 20px;
}

/* ===== BOX ITEMS ===== */
.box1, .box2, .box3, .box4, .box5,
.box6, .box7, .box8, .box9, .box10 {
    background: rgba(200, 16, 46, 0.08);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(201,168,76,0.15);
    border-left: 4px solid var(--crimson);
    border-radius: 2px;
    padding: 18px 22px;
    width: 100%;
    max-width: 860px;
    color: var(--cream);
    font-family: 'Lato', sans-serif;
    font-size: 0.95rem;
    line-height: 1.75;
    transition: all 0.3s ease;
    cursor: default;
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}
/* Alternating left border color */
.box2, .box4, .box6, .box8, .box10 {
    border-left: 4px solid var(--navy);
}
.box1:hover, .box3:hover, .box5:hover, .box7:hover, .box9:hover {
    background: rgba(200, 16, 46, 0.3);
    border-left: 4px solid var(--gold);
    box-shadow: 0 0 25px rgba(200,16,46,0.2), 0 8px 30px rgba(0,0,0,0.3);
    transform: translateX(8px) scale(1.005);
}
.box2:hover, .box4:hover, .box6:hover, .box8:hover, .box10:hover {
    background: rgba(0, 61, 165, 0.3);
    border-left: 4px solid var(--gold);
    box-shadow: 0 0 25px rgba(0,61,165,0.2), 0 8px 30px rgba(0,0,0,0.3);
    transform: translateX(8px) scale(1.005);
}
.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: 4px;
    font-size: 0.97rem;
    font-weight: 700;
}

/* ===== STATS SECTION ===== */
.stats-container {
    display: flex;
    justify-content: space-evenly;
    flex-wrap: wrap;
    gap: 22px;
    padding: 0 20px 35px;
}
.stats-card {
    background: rgba(200, 16, 46, 0.12);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(201,168,76,0.2);
    border-top: 3px solid var(--crimson);
    border-bottom: 3px solid var(--navy);
    padding: 42px 28px;
    width: 290px;
    min-height: 280px;
    border-radius: 2px;
    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(200, 16, 46, 0.3);
    box-shadow: 0 25px 50px rgba(0,0,0,0.4), 0 0 40px rgba(200,16,46,0.2);
}
.stats-number {
    font-family: 'Playfair Display', 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(253,246,236,0.82);
    font-family: 'Lato', sans-serif;
    font-size: 0.87rem;
    line-height: 1.5;
}

/* ===== TUITION SECTION ===== */
.tuition-section {
    width: 90%;
    margin: 0 auto 50px;
    background: rgba(0, 61, 165, 0.1);
    border: 1px solid rgba(201,168,76,0.25);
    border-top: 3px solid var(--navy);
    border-radius: 2px;
    padding: 30px 35px;
}
.tuition-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.1rem;
    color: var(--gold);
    letter-spacing: 4px;
    text-transform: uppercase;
    margin-bottom: 22px;
    border-bottom: 1px solid rgba(201,168,76,0.25);
    padding-bottom: 10px;
}
.tuition-grid {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: space-evenly;
    margin-bottom: 16px;
}
.tuition-card {
    background: rgba(200,16,46,0.1);
    border: 1px solid rgba(200,16,46,0.25);
    border-top: 2px solid var(--crimson);
    border-radius: 2px;
    padding: 20px 25px;
    text-align: center;
    flex: 1;
    min-width: 200px;
    transition: all 0.3s ease;
}
.tuition-card:hover {
    background: rgba(200,16,46,0.25);
    transform: translateY(-4px);
}
.highlight-card {
    border-top: 2px solid var(--gold);
    background: rgba(201,168,76,0.08);
}
.tuition-cat {
    font-family: 'Lato', sans-serif;
    font-size: 0.82rem;
    color: rgba(253,246,236,0.75);
    margin-bottom: 10px;
    letter-spacing: 0.5px;
}
.tuition-fee {
    font-family: 'Playfair Display', serif;
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--gold);
}
.tuition-fee span {
    font-size: 0.7rem;
    font-family: 'Lato', sans-serif;
    color: rgba(253,246,236,0.6);
    display: block;
    margin-top: 2px;
}
.tuition-note {
    font-family: 'Lato', sans-serif;
    font-size: 0.82rem;
    color: rgba(253,246,236,0.5);
    text-align: center;
    font-style: italic;
}

/* ===== AI POPUP ===== */
.ai-popup {
    position: fixed;
    bottom: 30px;
    right: 30px;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, var(--crimson-deep) 0%, #1a001a 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-sysu 2.5s infinite;
    box-shadow: 0 5px 20px rgba(200,16,46,0.4);
}
.ai-circle {
    width: 34px;
    height: 34px;
    background: var(--gold);
    color: var(--crimson-deep);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    font-size: 13px;
    margin-right: 10px;
}
.ai-label {
    color: #ffffff;
    font-family: 'Lato', sans-serif;
    font-weight: 700;
    font-size: 14px;
}
@keyframes pulse-sysu {
    0%   { box-shadow: 0 0 0 0 rgba(200,16,46,0.6), 0 5px 20px rgba(200,16,46,0.4); transform: scale(1); }
    70%  { box-shadow: 0 0 0 14px rgba(200,16,46,0), 0 5px 20px rgba(200,16,46,0.4); transform: scale(1.04); }
    100% { box-shadow: 0 0 0 0 rgba(200,16,46,0), 0 5px 20px rgba(200,16,46,0.4); 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: var(--crimson-deep); }

/* ===== 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(160deg,
        rgba(10,5,16,0.85) 0%,
        rgba(200,16,46,0.22) 35%,
        rgba(0,61,165,0.22) 65%,
        rgba(10,5,16,0.88) 100%
    );
    z-index: 0;
}
.final-container {
    position: relative;
    z-index: 1;
    background: rgba(10, 5, 16, 0.65);
    backdrop-filter: blur(22px);
    border: 1px solid rgba(201,168,76,0.35);
    border-top: 3px solid var(--crimson);
    border-bottom: 3px solid var(--navy);
    border-radius: 3px;
    width: 90%;
    max-width: 1200px;
    padding: 48px;
    box-shadow: 0 30px 60px rgba(0,0,0,0.65), 0 0 80px rgba(200,16,46,0.1);
    text-align: center;
}
.final-emblem {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    color: var(--gold);
    opacity: 0.15;
    letter-spacing: 8px;
    margin-bottom: -20px;
    font-weight: 900;
}
.final-title {
    font-family: 'Playfair Display', serif;
    font-weight: 900;
    color: #ffffff;
    font-size: clamp(20px, 3.8vw, 40px);
    margin-bottom: 6px;
    text-shadow: 0 0 30px rgba(200,16,46,0.4);
    letter-spacing: 3px;
    text-transform: uppercase;
}
.final-subtitle {
    font-family: 'Cormorant Garamond', serif;
    font-style: italic;
    font-size: 1rem;
    color: var(--gold);
    opacity: 0.7;
    letter-spacing: 3px;
    margin-bottom: 0;
}
.final-title::after {
    content: '';
    display: block;
    width: 100px;
    height: 3px;
    background: linear-gradient(90deg, var(--crimson), var(--gold), var(--navy));
    margin: 14px auto 35px;
    border-radius: 2px;
}
.final-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
    margin-bottom: 35px;
}
.final-card {
    background: rgba(200, 16, 46, 0.12);
    border: 1px solid rgba(201,168,76,0.2);
    border-top: 2px solid var(--crimson);
    padding: 26px 20px;
    border-radius: 2px;
    color: var(--cream);
    text-align: left;
    transition: 0.35s ease;
}
.final-card:hover {
    background: rgba(200, 16, 46, 0.3);
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.4), 0 0 30px rgba(200,16,46,0.15);
}
.final-card h3 {
    color: var(--gold);
    margin-bottom: 14px;
    font-family: 'Playfair Display', serif;
    font-size: 0.88rem;
    letter-spacing: 1.5px;
    border-bottom: 1px solid rgba(201,168,76,0.25);
    padding-bottom: 8px;
    text-transform: uppercase;
}
.final-card p {
    font-size: 0.85rem;
    line-height: 1.75;
    margin-bottom: 3px;
    color: rgba(253,246,236,0.88);
}
.final-card strong { color: var(--gold); }
.timeline-list {
    list-style: none;
    font-size: 0.84rem;
    line-height: 2;
    color: rgba(253,246,236,0.88);
}
.timeline-list li::before { content: '▸ '; color: var(--crimson-mid); }
.link-group { display: flex; flex-direction: column; gap: 10px; }
.btn-final {
    text-decoration: none;
    background: transparent;
    color: var(--gold);
    padding: 9px 14px;
    text-align: center;
    font-weight: 700;
    border-radius: 2px;
    border: 1px solid var(--gold);
    transition: 0.3s;
    font-family: 'Lato', sans-serif;
    font-size: 0.82rem;
    letter-spacing: 0.5px;
    display: block;
}
.btn-final:hover {
    background: var(--gold);
    color: #1a0008;
    box-shadow: 0 0 20px rgba(201,168,76,0.4);
}
.mini-footer {
    margin-top: 20px;
    color: rgba(253,246,236,0.35);
    font-size: 0.77rem;
    letter-spacing: 0.5px;
    font-family: 'Cormorant Garamond', serif;
    font-style: italic;
    line-height: 1.9;
}

/* ===== RESPONSIVE MOBILE ===== */
@media (max-width: 900px) {
    .Judul {
        font-size: 26px !important;
        width: 94% !important;
        letter-spacing: 1.5px;
        padding: 14px 16px;
    }
    .Judul-sub { font-size: 11px; letter-spacing: 2px; }
    .tricolor-bar { width: 120px; }
    .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: 0.97rem !important;
        text-align: left;
    }
    .dokumen, .stats-title {
        width: 92%;
        padding: 12px 18px;
        font-size: 20px;
        letter-spacing: 2px;
        flex-wrap: wrap;
        gap: 8px;
    }
    .stats-card { width: 90%; min-height: auto; padding: 28px 20px; }
    .tuition-section { width: 95%; padding: 20px; }
    .tuition-grid { flex-direction: column; }
    .tuition-card { min-width: auto; }
    .final-grid { grid-template-columns: 1fr; }
    .final-container { padding: 22px; width: 96%; }
    .campus-desc { font-size: 0.88rem; letter-spacing: 2px; margin-bottom: 16px; }
}