/* ===========================
   TONGJI.CSS — Tongji University
   同济大学
   Warna: Steel Blue #1B3A6B + Amber #E8A020 + Concrete #C8D0D8
   Tema: Engineering · Architecture · Urban · Industrial Precision
   Font: Barlow Condensed (display) + Source Serif 4 (body) + JetBrains Mono (label)
   =========================== */

@import url('https://fonts.googleapis.com/css2?family=Barlow+Condensed:ital,wght@0,300;0,400;0,600;0,700;0,900;1,600;1,700&family=Source+Serif+4:ital,wght@0,300;0,400;0,600;1,300;1,400&family=JetBrains+Mono:wght@300;400;500&display=swap');

html { scroll-behavior: smooth; }
* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    --steel:        #1B3A6B;
    --steel-mid:    #2A5298;
    --steel-light:  #3D6FBF;
    --steel-deep:   #0E1F3D;
    --amber:        #E8A020;
    --amber-light:  rgba(232, 160, 32, 0.35);
    --amber-dim:    rgba(232, 160, 32, 0.12);
    --concrete:     #C8D0D8;
    --concrete-dim: rgba(200, 208, 216, 0.15);
    --white:        #F4F7FA;
    --bg:           #060C16;
}

body {
    overflow-x: hidden;
    font-family: 'Source Serif 4', Georgia, serif;
    background: var(--bg);
    color: var(--white);
}

/* ===== GRID BLUEPRINT OVERLAY ===== */
.blueprint-grid {
    position: fixed;
    inset: 0;
    background-image:
        linear-gradient(rgba(42, 82, 152, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(42, 82, 152, 0.04) 1px, transparent 1px);
    background-size: 40px 40px;
    pointer-events: none;
    z-index: 9999;
}

/* ===== FLOATING PARTICLES ===== */
.particles {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}
.particle {
    position: absolute;
    color: var(--amber);
    font-family: 'Barlow Condensed', sans-serif;
    animation: floatTJ linear infinite;
    user-select: none;
}
@keyframes floatTJ {
    0%   { transform: translateY(0) rotate(0deg); opacity: 0; }
    8%   { opacity: 1; }
    92%  { opacity: 1; }
    100% { transform: translateY(-70px) rotate(120deg); opacity: 0; }
}

/* ===== STRUCTURAL CORNER MARKS ===== */
.struct-corner {
    position: fixed;
    width: 45px;
    height: 45px;
    z-index: 1000;
    pointer-events: none;
    opacity: 0.3;
}
.sc-tl { top: 14px; left: 14px; border-top: 2px solid var(--amber); border-left: 2px solid var(--amber); }
.sc-tr { top: 14px; right: 14px; border-top: 2px solid var(--amber); border-right: 2px solid var(--amber); }
.sc-bl { bottom: 14px; left: 14px; border-bottom: 2px solid var(--amber); border-left: 2px solid var(--amber); }
.sc-br { bottom: 14px; right: 14px; border-bottom: 2px solid var(--amber); border-right: 2px solid var(--amber); }

/* ===== 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(
        155deg,
        rgba(6, 12, 22, 0.93) 0%,
        rgba(27, 58, 107, 0.32) 50%,
        rgba(6, 12, 22, 0.95) 100%
    );
    z-index: 0;
    pointer-events: none;
}
.slide1 > *, .slide2 > *, .slide3 > * {
    position: relative;
    z-index: 1;
}

/* ===== TOMBOL KEMBALI ===== */
.webresmi {
    background: linear-gradient(135deg, var(--steel) 0%, var(--steel-deep) 100%);
    color: var(--concrete);
    border: 1.5px solid var(--amber);
    padding: 11px 28px;
    border-radius: 2px;
    font-weight: 600;
    letter-spacing: 3px;
    font-size: 0.75rem;
    font-family: 'Barlow Condensed', sans-serif;
    box-shadow: 3px 3px 0 rgba(232,160,32,0.3);
    display: flex;
    margin: 16px auto;
    width: fit-content;
    text-decoration: none;
    text-transform: uppercase;
    transition: all 0.3s ease;
}
.webresmi:hover {
    background: linear-gradient(135deg, var(--amber) 0%, #b87c10 100%);
    color: var(--steel-deep);
    box-shadow: 0 0 22px var(--amber-light);
    transform: translateY(-2px);
}

/* ===== HERO BADGE ===== */
.hero-badge {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 10px auto 0;
    width: fit-content;
    background: rgba(27, 58, 107, 0.15);
    border: 1px solid rgba(232, 160, 32, 0.3);
    color: var(--amber);
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.66rem;
    letter-spacing: 3px;
    padding: 5px 20px;
    text-transform: uppercase;
}
.badge-dot {
    width: 5px;
    height: 5px;
    background: var(--amber);
    border-radius: 50%;
    animation: blinkTJ 1.8s ease-in-out infinite;
    flex-shrink: 0;
}
@keyframes blinkTJ {
    0%, 100% { opacity: 1; }
    50%       { opacity: 0.1; }
}

/* ===== JUDUL ===== */
.Judul {
    display: flex;
    margin: 12px auto 0;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-family: 'Barlow Condensed', sans-serif;
    font-size: clamp(28px, 6.5vw, 72px);
    font-weight: 900;
    width: 88%;
    color: #ffffff;
    text-shadow:
        0 0 50px rgba(232, 160, 32, 0.5),
        0 0 100px rgba(27, 58, 107, 0.4),
        2px 2px 15px rgba(0,0,0,0.7);
    background: linear-gradient(135deg,
        rgba(27, 58, 107, 0.4) 0%,
        rgba(232, 160, 32, 0.05) 50%,
        rgba(27, 58, 107, 0.4) 100%
    );
    backdrop-filter: blur(22px);
    -webkit-backdrop-filter: blur(22px);
    border: 1px solid rgba(232, 160, 32, 0.25);
    border-top: 3px solid var(--amber);
    border-bottom: 3px solid var(--steel-mid);
    box-shadow: 0 25px 55px rgba(0,0,0,0.65), 0 0 60px rgba(27,58,107,0.25);
    padding: 18px 36px;
    transition: all 0.4s ease;
    letter-spacing: 6px;
}
.Judul:hover {
    box-shadow: 0 0 80px rgba(232,160,32,0.25), 0 25px 55px rgba(0,0,0,0.65);
    transform: scale(1.003);
}
.Judul-sub {
    display: block;
    text-align: center;
    font-family: 'JetBrains Mono', monospace;
    font-size: clamp(9px, 1.3vw, 13px);
    color: var(--amber);
    letter-spacing: 4px;
    margin: 8px auto 0;
    opacity: 0.75;
}

/* ===== CONTAINER FLEX ===== */
.container {
    display: flex;
    column-gap: 40px;
    padding: 40px 50px 55px;
}
section { display: block; border: none; margin: 0; padding: 0; }

/* ===== VIDEO CONTAINER ===== */
.video-container {
    display: flex;
    flex-direction: column;
    position: relative;
    margin-top: 40px;
    margin-left: 50px;
    width: fit-content;
    padding: 12px;
    background: rgba(27, 58, 107, 0.2);
    backdrop-filter: blur(14px);
    border: 1px solid rgba(232, 160, 32, 0.2);
    border-top: 3px solid var(--amber);
    border-left: 2px solid var(--steel-mid);
    box-shadow: 0 25px 50px rgba(0,0,0,0.6), 0 0 35px rgba(27,58,107,0.15);
    transition: all 0.4s ease;
}
.vid-label {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.66rem;
    color: var(--amber);
    letter-spacing: 2px;
    margin-bottom: 8px;
    opacity: 0.7;
}
.video-container iframe { display: block; }
.video-container:hover {
    border-color: var(--amber);
    box-shadow: 0 25px 50px rgba(0,0,0,0.6), 0 0 45px rgba(232,160,32,0.2);
    transform: translateY(-4px);
}

/* ===== PENGANTAR ===== */
.pengantar {
    margin-top: 40px;
    margin-right: 50px;
    background: rgba(27, 58, 107, 0.15);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border: 1px solid rgba(232, 160, 32, 0.16);
    border-left: 4px solid var(--amber);
    padding: 26px 28px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.3);
    color: var(--white);
    font-family: 'Source Serif 4', serif;
    font-size: 1rem;
    line-height: 1.95;
    text-align: justify;
}
.pengantar-tag {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.65rem;
    color: var(--amber);
    letter-spacing: 3px;
    margin-bottom: 12px;
    opacity: 0.7;
}
.pengantar strong { color: var(--amber); }

/* ===== SECTION HEADING ===== */
.dokumen, .stats-title {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    margin: 55px auto;
    width: fit-content;
    padding: 16px 50px;
    font-family: 'Barlow Condensed', sans-serif;
    font-size: clamp(20px, 4vw, 48px);
    font-weight: 700;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 5px;
    text-shadow: 0 0 30px rgba(232,160,32,0.4);
    background: rgba(27, 58, 107, 0.22);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(232, 160, 32, 0.25);
    border-top: 3px solid var(--amber);
    border-bottom: 3px solid var(--steel-mid);
    box-shadow: 0 15px 35px rgba(0,0,0,0.4);
    text-align: center;
}
.sec-num {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.6em;
    color: var(--amber);
    opacity: 0.65;
    font-weight: 400;
    letter-spacing: 2px;
}

/* ===== COLLEGE LABEL ===== */
.college-label {
    display: flex;
    align-items: center;
    width: 90%;
    margin: 0 auto 16px;
    padding: 10px 24px;
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 3px;
    color: var(--amber);
    background: rgba(27, 58, 107, 0.12);
    border-left: 4px solid var(--amber);
    border-bottom: 1px solid rgba(232, 160, 32, 0.18);
    text-transform: uppercase;
}

/* ===== BOX WRAPPER ===== */
.box {
    display: flex;
    justify-content: center;
    align-items: stretch;
    flex-wrap: wrap;
    gap: 1.1rem;
    width: 92%;
    margin: 0 auto 20px;
}

/* ===== BOX ITEMS ===== */
.box1, .box2, .box3, .box4, .box5,
.box6, .box7, .box8, .box9, .box10 {
    background: rgba(27, 58, 107, 0.12);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(232, 160, 32, 0.12);
    border-left: 3px solid var(--steel-mid);
    padding: 17px 22px;
    width: 100%;
    max-width: 860px;
    color: var(--white);
    font-family: 'Source Serif 4', serif;
    font-size: 0.94rem;
    line-height: 1.8;
    transition: all 0.3s ease;
    cursor: default;
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}
.box2, .box4, .box6, .box8, .box10 {
    border-left: 3px solid var(--amber);
}
.box1:hover, .box2:hover, .box3:hover, .box4:hover, .box5:hover,
.box6:hover, .box7:hover, .box8:hover, .box9:hover, .box10:hover {
    background: rgba(27, 58, 107, 0.42);
    border-left-color: var(--amber);
    box-shadow: 0 0 25px rgba(232,160,32,0.12), 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(--amber);
    display: block;
    margin-bottom: 5px;
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 700;
    font-size: 1.05rem;
    letter-spacing: 1px;
}
.box1 em, .box2 em, .box3 em,
.box4 em, .box5 em, .box6 em,
.box7 em, .box8 em, .box9 em,
.box10 em {
    color: rgba(232, 160, 32, 0.7);
    font-size: 0.88rem;
}

/* ===== ENGLISH HIGHLIGHT BOX ===== */
.english-box {
    background: rgba(232, 160, 32, 0.07);
    border: 1px solid rgba(232, 160, 32, 0.25);
    border-left: 4px solid var(--amber);
    border-top: 2px solid var(--amber);
    padding: 20px 24px;
    width: 92%;
    margin: 0 auto 20px;
    color: var(--white);
    font-family: 'Source Serif 4', serif;
    font-size: 0.94rem;
    line-height: 1.85;
}
.english-box strong { color: var(--amber); }
.english-box .eng-tag {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.65rem;
    color: var(--amber);
    letter-spacing: 3px;
    margin-bottom: 10px;
    display: block;
    opacity: 0.75;
}

/* ===== STATS SECTION ===== */
.stats-container {
    display: flex;
    justify-content: space-evenly;
    flex-wrap: wrap;
    gap: 22px;
    padding: 0 20px 30px;
}
.stats-card {
    background: rgba(27, 58, 107, 0.2);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(232, 160, 32, 0.2);
    border-top: 3px solid var(--amber);
    border-bottom: 3px solid var(--steel-mid);
    padding: 38px 25px;
    width: 270px;
    min-height: 255px;
    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(27, 58, 107, 0.48);
    box-shadow: 0 25px 50px rgba(0,0,0,0.4), 0 0 40px rgba(232,160,32,0.15);
}
.stats-number {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 3rem;
    font-weight: 900;
    color: var(--amber);
    margin-bottom: 12px;
    text-shadow: 0 0 25px rgba(232,160,32,0.5);
    letter-spacing: 3px;
}
.stats-label {
    color: rgba(244, 247, 250, 0.82);
    font-family: 'Source Serif 4', serif;
    font-size: 0.84rem;
    line-height: 1.55;
}

/* ===== FEES GRID ===== */
.fees-grid {
    display: flex;
    justify-content: space-evenly;
    flex-wrap: wrap;
    gap: 20px;
    width: 92%;
    margin: 0 auto 50px;
}
.fees-card {
    background: rgba(27, 58, 107, 0.14);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(232, 160, 32, 0.16);
    border-top: 2px solid rgba(232, 160, 32, 0.4);
    padding: 24px;
    flex: 1;
    min-width: 250px;
    max-width: 380px;
    color: var(--white);
    font-family: 'Source Serif 4', serif;
    font-size: 0.88rem;
    line-height: 1.9;
}
.fees-card p { margin-bottom: 4px; }
.fees-card strong { color: var(--amber); }
.fees-label {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.68rem;
    color: var(--amber);
    letter-spacing: 3px;
    margin-bottom: 14px;
    border-bottom: 1px solid rgba(232, 160, 32, 0.2);
    padding-bottom: 8px;
}

/* ===== AI POPUP ===== */
.ai-popup {
    position: fixed;
    bottom: 30px;
    right: 30px;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, var(--steel) 0%, var(--steel-deep) 100%);
    border: 1.5px solid var(--amber);
    padding: 10px 20px;
    border-radius: 2px;
    text-decoration: none;
    z-index: 10000;
    transition: all 0.3s ease;
    animation: pulse-tj 2.5s infinite;
    box-shadow: 0 5px 20px rgba(27,58,107,0.5);
}
.ai-circle {
    width: 34px;
    height: 34px;
    background: var(--amber);
    color: var(--steel-deep);
    border-radius: 2px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 900;
    font-size: 13px;
    margin-right: 10px;
}
.ai-label {
    color: #ffffff;
    font-family: 'Source Serif 4', serif;
    font-weight: 600;
    font-size: 14px;
}
@keyframes pulse-tj {
    0%   { box-shadow: 0 0 0 0 rgba(232,160,32,0.55), 0 5px 20px rgba(27,58,107,0.5); transform: scale(1); }
    70%  { box-shadow: 0 0 0 14px rgba(232,160,32,0), 0 5px 20px rgba(27,58,107,0.5); transform: scale(1.04); }
    100% { box-shadow: 0 0 0 0 rgba(232,160,32,0), 0 5px 20px rgba(27,58,107,0.5); transform: scale(1); }
}
.ai-popup:hover {
    animation: none;
    background: linear-gradient(135deg, var(--amber) 0%, #b87c10 100%);
    transform: translateY(-5px) scale(1.06);
    box-shadow: 0 12px 25px rgba(0,0,0,0.4);
}
.ai-popup:hover .ai-circle { background: #fff; color: var(--amber); }
.ai-popup:hover .ai-label { color: var(--steel-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(155deg, rgba(6,12,22,0.93) 0%, rgba(27,58,107,0.32) 50%, rgba(6,12,22,0.95) 100%);
    z-index: 0;
}
.final-container {
    position: relative;
    z-index: 1;
    background: rgba(6, 12, 22, 0.72);
    backdrop-filter: blur(22px);
    border: 1px solid rgba(232, 160, 32, 0.22);
    border-top: 3px solid var(--amber);
    border-bottom: 3px solid var(--steel-mid);
    width: 90%;
    max-width: 1200px;
    padding: 48px;
    box-shadow: 0 30px 60px rgba(0,0,0,0.7), 0 0 80px rgba(27,58,107,0.18);
    text-align: center;
}
.final-overline {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 2rem;
    color: var(--amber);
    opacity: 0.08;
    letter-spacing: 10px;
    margin-bottom: -14px;
    font-weight: 900;
}
.final-title {
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 900;
    color: #ffffff;
    font-size: clamp(22px, 3.8vw, 42px);
    margin-bottom: 6px;
    text-shadow: 0 0 30px rgba(232,160,32,0.4);
    letter-spacing: 4px;
    text-transform: uppercase;
}
.final-title::after {
    content: '';
    display: block;
    width: 100px;
    height: 3px;
    background: linear-gradient(90deg, var(--amber), var(--steel-mid));
    margin: 14px auto 35px;
}
.final-sub {
    font-family: 'Source Serif 4', serif;
    font-style: italic;
    font-size: 0.88rem;
    color: var(--amber);
    opacity: 0.7;
    margin-bottom: 0;
    letter-spacing: 1px;
}
.final-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
    margin-bottom: 30px;
}
.final-card {
    background: rgba(27, 58, 107, 0.22);
    border: 1px solid rgba(232, 160, 32, 0.18);
    border-top: 2px solid var(--amber);
    padding: 26px 20px;
    color: var(--white);
    text-align: left;
    transition: 0.35s ease;
}
.final-card:hover {
    background: rgba(27, 58, 107, 0.48);
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.5), 0 0 30px rgba(232,160,32,0.1);
}
.final-card h3 {
    color: var(--amber);
    margin-bottom: 14px;
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 0.92rem;
    letter-spacing: 2px;
    border-bottom: 1px solid rgba(232, 160, 32, 0.2);
    padding-bottom: 8px;
    text-transform: uppercase;
}
.final-card p {
    font-size: 0.84rem;
    line-height: 1.78;
    margin-bottom: 3px;
    color: rgba(244,247,250,0.88);
    font-family: 'Source Serif 4', serif;
}
.final-card strong { color: var(--amber); }
.timeline-list {
    list-style: none;
    font-size: 0.83rem;
    line-height: 2;
    color: rgba(244,247,250,0.88);
    font-family: 'Source Serif 4', serif;
}
.timeline-list li::before { content: '▸ '; color: var(--amber); }
.link-group { display: flex; flex-direction: column; gap: 11px; }
.btn-final {
    text-decoration: none;
    background: transparent;
    color: var(--amber);
    padding: 9px 14px;
    text-align: center;
    font-weight: 600;
    border: 1px solid var(--amber);
    transition: 0.3s;
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 0.9rem;
    letter-spacing: 1px;
    display: block;
    text-transform: uppercase;
}
.btn-final:hover {
    background: var(--amber);
    color: var(--steel-deep);
    box-shadow: 0 0 20px rgba(232,160,32,0.4);
}
.mini-footer {
    margin-top: 22px;
    color: rgba(244,247,250,0.3);
    font-size: 0.74rem;
    letter-spacing: 0.5px;
    font-family: 'JetBrains Mono', monospace;
    line-height: 1.8;
}

/* ===== RESPONSIVE MOBILE ===== */
@media (max-width: 900px) {
    .Judul { font-size: 28px !important; width: 94% !important; letter-spacing: 3px; padding: 14px 16px; }
    .Judul-sub { font-size: 9px; letter-spacing: 2px; }
    .hero-badge { font-size: 0.56rem; letter-spacing: 1.5px; padding: 5px 12px; }
    .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.95rem !important; text-align: left; }
    .dokumen, .stats-title { width: 92%; padding: 12px 18px; font-size: 18px; letter-spacing: 2px; }
    .stats-card { width: 90%; min-height: auto; padding: 28px 20px; }
    .fees-grid { flex-direction: column; width: 95%; }
    .fees-card { max-width: 100%; }
    .final-grid { grid-template-columns: 1fr; }
    .final-container { padding: 22px; width: 96%; }
    .struct-corner { display: none; }
    .english-box { width: 95%; }
    .college-label { font-size: 0.7rem; letter-spacing: 2px; }
}