/* ===========================
   HUST.CSS — Huazhong University of Science and Technology
   Warna: Forest Teal #007A6E + Gold #C9A84C
   Tema: Teknologi, Alam, "University in the Forest"
   =========================== */

@import url('https://fonts.googleapis.com/css2?family=Rajdhani:wght@400;500;600;700&family=Open+Sans:ital,wght@0,300..800;1,300..800&display=swap');

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

:root {
    --teal:        #007A6E;
    --teal-mid:    #00a896;
    --teal-light:  rgba(0, 122, 110, 0.35);
    --gold:        #C9A84C;
    --gold-light:  rgba(201, 168, 76, 0.35);
    --forest:      #0a1f1c;
    --leaf:        #a8e6cf;
    --cream:       #f0faf8;
}

body {
    overflow-x: hidden;
    font-family: 'Open Sans', sans-serif;
    background: var(--forest);
}

/* ===== PARTIKEL DAUN / FOREST ===== */
.particles {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}
.particle {
    position: absolute;
    color: var(--leaf);
    animation: leafDrift linear infinite;
    user-select: none;
}
@keyframes leafDrift {
    0%   { transform: translateY(-10px) translateX(0) rotate(0deg); opacity: 0; }
    10%  { opacity: 0.8; }
    50%  { transform: translateY(50vh) translateX(30px) rotate(180deg); }
    85%  { opacity: 0.6; }
    100% { transform: translateY(105vh) translateX(-20px) 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;
}
.slide1::before, .slide2::before, .slide3::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        160deg,
        rgba(10, 31, 28, 0.7) 0%,
        rgba(0, 122, 110, 0.25) 50%,
        rgba(10, 31, 28, 0.72) 100%
    );
    z-index: 0;
    pointer-events: none;
}
.slide1 > *, .slide2 > *, .slide3 > * {
    position: relative;
    z-index: 1;
}

/* ===== TOMBOL KEMBALI ===== */
.webresmi {
    background: linear-gradient(135deg, var(--teal) 0%, #004d44 100%);
    color: var(--cream);
    border: 1.5px solid var(--gold);
    padding: 11px 28px;
    border-radius: 2px;
    font-weight: 700;
    letter-spacing: 3px;
    font-size: 0.82rem;
    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: 'Rajdhani', sans-serif;
}
.webresmi:hover {
    background: linear-gradient(135deg, var(--gold) 0%, #a8852a 100%);
    color: #0a1f1c;
    box-shadow: 0 0 25px var(--gold-light);
    transform: translateY(-2px);
}

/* ===== HERO BADGE ===== */
.hero-badge {
    display: block;
    margin: 12px auto 0;
    width: fit-content;
    background: rgba(0, 122, 110, 0.15);
    border: 1px solid var(--teal-mid);
    color: var(--leaf);
    font-family: 'Rajdhani', sans-serif;
    font-size: 0.8rem;
    letter-spacing: 4px;
    padding: 5px 22px;
    border-radius: 2px;
    text-transform: uppercase;
    text-align: center;
}

/* ===== JUDUL ===== */
.Judul {
    display: flex;
    margin: 14px auto 0;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-family: 'Rajdhani', sans-serif;
    font-size: clamp(26px, 6vw, 68px);
    font-weight: 700;
    width: 85%;
    color: #ffffff;
    text-shadow: 0 0 40px rgba(0,168,150,0.5), 2px 2px 15px rgba(0,0,0,0.6);
    background: linear-gradient(135deg,
        rgba(0,122,110,0.3) 0%,
        rgba(255,255,255,0.04) 100%
    );
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(0, 168, 150, 0.4);
    border-top: 2px solid var(--teal-mid);
    border-bottom: 2px solid var(--gold);
    box-shadow: 0 20px 45px rgba(0,0,0,0.5), inset 0 1px 0 rgba(255,255,255,0.06);
    padding: 20px 30px;
    transition: all 0.4s ease;
    border-radius: 3px;
    letter-spacing: 6px;
}
.Judul:hover {
    border-color: var(--gold);
    box-shadow: 0 0 60px rgba(0,122,110,0.3), 0 20px 45px rgba(0,0,0,0.5);
    transform: scale(1.005);
}

.Judul-sub {
    display: block;
    text-align: center;
    font-family: 'Rajdhani', sans-serif;
    font-size: clamp(11px, 1.6vw, 15px);
    color: var(--leaf);
    letter-spacing: 4px;
    margin: 8px auto 0;
    opacity: 0.85;
    font-weight: 500;
}

/* ===== 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: 13px;
    background: rgba(0, 122, 110, 0.15);
    backdrop-filter: blur(14px);
    border: 1px solid rgba(0,168,150,0.35);
    border-top: 2px solid var(--teal-mid);
    border-radius: 3px;
    box-shadow: 0 25px 50px rgba(0,0,0,0.55), 0 0 35px rgba(0,122,110,0.15);
    transition: all 0.4s ease;
}
.video-container iframe { border-radius: 3px; display: block; }
.video-container:hover {
    border-color: var(--gold);
    box-shadow: 0 25px 50px rgba(0,0,0,0.55), 0 0 45px rgba(201,168,76,0.2);
    transform: translateY(-4px);
}

/* ===== PENGANTAR ===== */
.pengantar {
    margin-top: 50px;
    margin-right: 50px;
    display: flex;
    align-items: center;
    background: rgba(0, 122, 110, 0.15);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border: 1px solid rgba(0,168,150,0.25);
    border-left: 3px solid var(--teal-mid);
    border-radius: 3px;
    padding: 26px 28px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.3);
    color: var(--cream);
    font-family: 'Open Sans', sans-serif;
    font-size: 1.02rem;
    line-height: 1.9;
    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: 'Rajdhani', sans-serif;
    font-size: clamp(20px, 4vw, 52px);
    font-weight: 700;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 6px;
    text-shadow: 0 0 30px rgba(0,168,150,0.45), 2px 4px 10px rgba(0,0,0,0.5);
    background: rgba(0, 122, 110, 0.18);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(0,168,150,0.35);
    border-top: 3px solid var(--teal-mid);
    border-bottom: 3px solid var(--gold);
    border-radius: 2px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.3), 0 0 60px rgba(0,122,110,0.12);
    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(0, 122, 110, 0.12);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(0,168,150,0.2);
    border-left: 4px solid var(--teal-mid);
    border-radius: 3px;
    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(0, 122, 110, 0.38);
    border-left: 4px solid var(--gold);
    box-shadow: 0 0 30px rgba(0,168,150,0.2), 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;
    font-family: 'Rajdhani', sans-serif;
    letter-spacing: 0.5px;
}

/* ===== STATS SECTION ===== */
.stats-container {
    display: flex;
    justify-content: space-evenly;
    flex-wrap: wrap;
    gap: 25px;
    padding: 0 20px 60px;
}
.stats-card {
    background: rgba(0, 122, 110, 0.18);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0,168,150,0.25);
    border-top: 3px solid var(--teal-mid);
    border-bottom: 3px solid var(--gold);
    padding: 45px 30px;
    width: 300px;
    min-height: 290px;
    border-radius: 3px;
    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(0, 122, 110, 0.4);
    border-color: var(--gold);
    box-shadow: 0 25px 50px rgba(0,0,0,0.4), 0 0 40px rgba(0,168,150,0.2);
}
.stats-number {
    font-family: 'Rajdhani', sans-serif;
    font-size: 3.2rem;
    font-weight: 700;
    color: var(--gold);
    margin-bottom: 12px;
    text-shadow: 0 0 20px rgba(201,168,76,0.5);
    letter-spacing: 2px;
}
.stats-label {
    color: rgba(240, 250, 248, 0.85);
    font-family: 'Open Sans', sans-serif;
    font-size: 0.88rem;
    line-height: 1.5;
}

/* ===== AI POPUP ===== */
.ai-popup {
    position: fixed;
    bottom: 30px;
    right: 30px;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, var(--teal) 0%, #004d44 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-teal 2.5s infinite;
    box-shadow: 0 5px 20px rgba(0,122,110,0.4);
}
.ai-circle {
    width: 34px;
    height: 34px;
    background: var(--gold);
    color: var(--teal);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: 'Rajdhani', sans-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;
}
@keyframes pulse-teal {
    0%   { box-shadow: 0 0 0 0 rgba(0,122,110,0.65), 0 5px 20px rgba(0,122,110,0.4); transform: scale(1); }
    70%  { box-shadow: 0 0 0 14px rgba(0,122,110,0), 0 5px 20px rgba(0,122,110,0.4); transform: scale(1.04); }
    100% { box-shadow: 0 0 0 0 rgba(0,122,110,0), 0 5px 20px rgba(0,122,110,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: #0a1f1c; }

/* ===== 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,31,28,0.72) 0%, rgba(0,122,110,0.28) 50%, rgba(10,31,28,0.75) 100%);
    z-index: 0;
}
.final-container {
    position: relative;
    z-index: 1;
    background: rgba(10, 31, 28, 0.65);
    backdrop-filter: blur(22px);
    border: 1px solid rgba(0,168,150,0.35);
    border-top: 3px solid var(--teal-mid);
    border-bottom: 3px solid var(--gold);
    border-radius: 4px;
    width: 90%;
    max-width: 1200px;
    padding: 48px;
    box-shadow: 0 30px 60px rgba(0,0,0,0.6), 0 0 80px rgba(0,122,110,0.12);
    text-align: center;
}
.final-title {
    font-family: 'Rajdhani', sans-serif;
    font-weight: 700;
    color: #ffffff;
    font-size: clamp(20px, 3.8vw, 42px);
    margin-bottom: 10px;
    text-shadow: 0 0 30px rgba(0,168,150,0.4);
    letter-spacing: 4px;
    text-transform: uppercase;
}
.final-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 2px;
    background: linear-gradient(90deg, var(--teal-mid), 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(0, 122, 110, 0.2);
    border: 1px solid rgba(0,168,150,0.25);
    border-top: 2px solid var(--teal-mid);
    padding: 28px 22px;
    border-radius: 3px;
    color: var(--cream);
    text-align: left;
    transition: 0.35s ease;
}
.final-card:hover {
    background: rgba(0, 122, 110, 0.42);
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.4), 0 0 30px rgba(0,168,150,0.15);
}
.final-card h3 {
    color: var(--gold);
    margin-bottom: 16px;
    font-family: 'Rajdhani', sans-serif;
    font-size: 1rem;
    letter-spacing: 2px;
    border-bottom: 1px solid rgba(0,168,150,0.3);
    padding-bottom: 8px;
    text-transform: uppercase;
}
.final-card p {
    font-size: 0.86rem;
    line-height: 1.75;
    margin-bottom: 3px;
    color: rgba(240,250,248,0.9);
}
.timeline-list {
    list-style: none;
    font-size: 0.86rem;
    line-height: 2;
    color: rgba(240,250,248,0.9);
}
.timeline-list li::before { content: '▸ '; color: var(--teal-mid); }
.link-group { display: flex; flex-direction: column; gap: 12px; }
.btn-final {
    text-decoration: none;
    background: transparent;
    color: var(--teal-mid);
    padding: 10px 14px;
    text-align: center;
    font-weight: 700;
    border-radius: 2px;
    border: 1px solid var(--teal-mid);
    transition: 0.3s;
    font-family: 'Rajdhani', sans-serif;
    font-size: 0.9rem;
    letter-spacing: 1px;
    text-transform: uppercase;
}
.btn-final:hover {
    background: var(--teal-mid);
    color: #fff;
    box-shadow: 0 0 20px rgba(0,168,150,0.35);
}
.mini-footer {
    margin-top: 20px;
    color: rgba(240,250,248,0.35);
    font-size: 0.78rem;
    letter-spacing: 1px;
}

/* ===== SCROLL REVEAL ===== */
.scroll-reveal {
    view-timeline-name: --revealing-image;
    view-timeline-axis: block;
    animation: reveal-scroll linear both;
    animation-timeline: --revealing-image;
    animation-range: entry 10% cover 40%;
}

/* ===== RESPONSIVE MOBILE ===== */
@media (max-width: 900px) {
    .Judul { font-size: 28px !important; width: 93% !important; letter-spacing: 3px; padding: 14px 16px; }
    .Judul-sub { font-size: 10px; letter-spacing: 2px; }
    .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: 20px; 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; }
}