/* ===========================
   TJU.CSS — Tianjin University
   Warna: Navy #003087 + Steel Blue #1a3a6e + Gold #C9A84C + Ice #e8f0ff
   Tema: Industrial Precision · Engineering Heritage · Modern Strength
   Font: Bebas Neue (display) + Outfit (body) + JetBrains Mono (code/label)
   =========================== */

@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Outfit:wght@300;400;500;600;700&family=JetBrains+Mono:wght@300;400;500&display=swap');

html { scroll-behavior: smooth; }
* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    --navy:         #003087;
    --navy-mid:     #1a3a6e;
    --navy-deep:    #00183f;
    --steel:        #2a4a8a;
    --gold:         #C9A84C;
    --gold-light:   rgba(201, 168, 76, 0.35);
    --gold-dim:     rgba(201, 168, 76, 0.15);
    --ice:          #e8f0ff;
    --ice-dim:      rgba(232, 240, 255, 0.82);
    --cyan:         #4da6ff;
    --cyan-dim:     rgba(77, 166, 255, 0.18);
    --bg:           #000d1f;
    --bg-mid:       #001430;
}

body {
    overflow-x: hidden;
    font-family: 'Outfit', sans-serif;
    background: var(--bg);
    color: var(--ice);
}

/* ===== GRID OVERLAY ===== */
.grid-overlay {
    position: fixed;
    inset: 0;
    background-image:
        linear-gradient(rgba(77,166,255,0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(77,166,255,0.04) 1px, transparent 1px);
    background-size: 60px 60px;
    pointer-events: none;
    z-index: 0;
}

/* ===== PARTICLES ===== */
.particles {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}
.particle {
    position: absolute;
    color: var(--cyan);
    font-family: 'JetBrains Mono', monospace;
    animation: floatP linear infinite;
    user-select: none;
}
@keyframes floatP {
    0%   { transform: translateY(0) rotate(0deg); opacity: 0; }
    8%   { opacity: 1; }
    92%  { opacity: 1; }
    100% { transform: translateY(-70px) rotate(180deg); opacity: 0; }
}

/* ===== SLIDES ===== */
.slide {
    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;
}
.slide::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        155deg,
        rgba(0, 13, 31, 0.92) 0%,
        rgba(0, 48, 135, 0.28) 50%,
        rgba(0, 13, 31, 0.94) 100%
    );
    z-index: 0;
    pointer-events: none;
}
.slide > * { position: relative; z-index: 1; }

/* ===== BACK BUTTON ===== */
.btn-back {
    display: block;
    width: fit-content;
    margin: 18px auto;
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy-deep) 100%);
    color: var(--ice);
    border: 1.5px solid var(--gold);
    padding: 10px 28px;
    font-family: 'JetBrains Mono', monospace;
    font-weight: 500;
    font-size: 0.75rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    text-decoration: none;
    box-shadow: 4px 4px 0 rgba(201, 168, 76, 0.3);
    transition: all 0.3s ease;
    clip-path: polygon(8px 0%, 100% 0%, calc(100% - 8px) 100%, 0% 100%);
}
.btn-back:hover {
    background: linear-gradient(135deg, var(--gold) 0%, #a07830 100%);
    color: var(--navy-deep);
    box-shadow: 0 0 22px var(--gold-light);
    transform: translateY(-2px);
}

/* ===== HERO BADGE ===== */
.hero-badge {
    display: flex;
    align-items: center;
    gap: 14px;
    width: fit-content;
    margin: 10px auto 0;
    background: rgba(0, 48, 135, 0.18);
    border: 1px solid rgba(201, 168, 76, 0.4);
    color: var(--gold);
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.68rem;
    letter-spacing: 3px;
    padding: 5px 22px;
    text-transform: uppercase;
}
.pip {
    width: 6px; height: 6px;
    background: var(--gold);
    border-radius: 50%;
    animation: pipBlink 1.8s ease-in-out infinite;
    flex-shrink: 0;
}
@keyframes pipBlink {
    0%, 100% { opacity: 1; }
    50%       { opacity: 0.1; }
}

/* ===== HERO TITLE ===== */
.hero-title {
    display: block;
    text-align: center;
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(42px, 10vw, 110px);
    font-weight: 400;
    color: #fff;
    line-height: 0.95;
    letter-spacing: 10px;
    text-transform: uppercase;
    margin: 14px auto 0;
    width: 86%;
    padding: 20px 36px;
    text-shadow: 0 0 60px rgba(77,166,255,0.4), 0 0 120px rgba(0,48,135,0.3);
    background: linear-gradient(135deg,
        rgba(0, 48, 135, 0.35) 0%,
        rgba(77, 166, 255, 0.05) 50%,
        rgba(0, 48, 135, 0.35) 100%
    );
    backdrop-filter: blur(22px);
    -webkit-backdrop-filter: blur(22px);
    border: 1px solid rgba(201, 168, 76, 0.3);
    border-top: 2px solid var(--gold);
    border-bottom: 2px solid var(--cyan);
    box-shadow: 0 25px 50px rgba(0,0,0,0.65), 0 0 60px rgba(0,48,135,0.25);
    transition: all 0.4s ease;
    clip-path: polygon(16px 0%, 100% 0%, calc(100% - 16px) 100%, 0% 100%);
}
.hero-title:hover {
    box-shadow: 0 0 70px rgba(77,166,255,0.2), 0 25px 50px rgba(0,0,0,0.65);
    transform: scale(1.003);
}

.hero-sub {
    display: block;
    text-align: center;
    font-family: 'JetBrains Mono', monospace;
    font-size: clamp(9px, 1.3vw, 13px);
    color: var(--gold);
    letter-spacing: 4px;
    margin: 8px auto 0;
    opacity: 0.8;
}

/* ===== HUD BAR ===== */
.hud-bar {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin: 10px auto 0;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.62rem;
    color: rgba(77, 166, 255, 0.45);
    letter-spacing: 2px;
}
.hud-sep { color: rgba(201, 168, 76, 0.3); }

/* ===== HERO LAYOUT ===== */
.hero-layout {
    display: flex;
    column-gap: 40px;
    padding: 40px 50px 60px;
}

/* ===== VIDEO WRAP ===== */
.video-wrap {
    display: flex;
    flex-direction: column;
    margin-top: 40px;
    margin-left: 50px;
    width: fit-content;
    padding: 12px;
    background: rgba(0, 48, 135, 0.2);
    backdrop-filter: blur(14px);
    border: 1px solid rgba(201, 168, 76, 0.28);
    border-top: 2px solid var(--gold);
    border-left: 2px solid var(--cyan);
    box-shadow: 0 25px 50px rgba(0,0,0,0.6), 0 0 40px rgba(0,48,135,0.2);
    transition: all 0.4s ease;
    clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 12px 100%, 0 calc(100% - 12px));
}
.vid-label {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.65rem;
    color: var(--cyan);
    letter-spacing: 2px;
    margin-bottom: 8px;
    opacity: 0.7;
}
.video-wrap iframe { display: block; }
.video-wrap:hover {
    border-color: var(--gold);
    box-shadow: 0 25px 50px rgba(0,0,0,0.6), 0 0 45px rgba(201,168,76,0.2);
    transform: translateY(-4px);
}

/* ===== INTRO CARD ===== */
.intro-card {
    margin-top: 40px;
    margin-right: 50px;
    background: rgba(0, 48, 135, 0.16);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border: 1px solid rgba(77, 166, 255, 0.18);
    border-left: 3px solid var(--gold);
    padding: 26px 28px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.3);
    color: var(--ice-dim);
    font-family: 'Outfit', sans-serif;
    font-size: 1rem;
    line-height: 1.9;
    text-align: justify;
    clip-path: polygon(0 0, 100% 0, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0 100%);
}
.intro-tag {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.66rem;
    color: var(--cyan);
    letter-spacing: 3px;
    margin-bottom: 12px;
    opacity: 0.7;
}
.intro-card strong { color: var(--gold); }

/* ===== SECTION LABELS & TITLES ===== */
.sec-label {
    display: block;
    text-align: center;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.64rem;
    color: var(--cyan);
    letter-spacing: 5px;
    margin: 52px auto 0;
    opacity: 0.5;
}
.sec-title {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 6px auto 6px;
    width: fit-content;
    padding: 14px 48px;
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(22px, 5vw, 58px);
    font-weight: 400;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 7px;
    text-shadow: 0 0 30px rgba(77,166,255,0.35);
    background: rgba(0, 48, 135, 0.22);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(201, 168, 76, 0.28);
    border-top: 2px solid var(--gold);
    border-bottom: 2px solid var(--cyan);
    box-shadow: 0 15px 35px rgba(0,0,0,0.4);
    clip-path: polygon(10px 0%, 100% 0%, calc(100% - 10px) 100%, 0% 100%);
}
.sec-sub {
    display: block;
    text-align: center;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.7rem;
    color: rgba(232, 240, 255, 0.4);
    letter-spacing: 1.5px;
    margin: 6px auto 22px;
}

/* ===== CATEGORY HEADER ===== */
.cat-header {
    display: flex;
    align-items: center;
    padding: 10px 22px;
    margin-bottom: 12px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 3px;
    color: var(--cyan);
    background: rgba(0, 48, 135, 0.14);
    border-left: 3px solid var(--cyan);
    border-bottom: 1px solid rgba(77, 166, 255, 0.2);
    text-transform: uppercase;
}

/* ===== CARDS COLUMN ===== */
.cards-col {
    display: flex;
    flex-direction: column;
    gap: 0.82rem;
}
.info-card {
    background: rgba(0, 48, 135, 0.12);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(77, 166, 255, 0.14);
    border-left: 3px solid var(--navy-mid);
    padding: 16px 22px;
    color: var(--ice-dim);
    font-family: 'Outfit', sans-serif;
    font-size: 0.93rem;
    line-height: 1.75;
    transition: all 0.3s ease;
    cursor: default;
    clip-path: polygon(0 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%);
}
.info-card:hover {
    background: rgba(0, 48, 135, 0.38);
    border-left: 3px solid var(--cyan);
    box-shadow: 0 0 25px rgba(77,166,255,0.12), 0 6px 25px rgba(0,0,0,0.3);
    transform: translateX(8px);
}
.info-card.accent-en {
    border-left: 3px solid var(--gold);
}
.info-card.accent-en:hover {
    border-left: 3px solid var(--gold);
    box-shadow: 0 0 25px rgba(201,168,76,0.15), 0 6px 25px rgba(0,0,0,0.3);
}
.info-card.highlight-card {
    border-left: 3px solid var(--gold);
    background: rgba(201, 168, 76, 0.07);
    border-top: 1px solid rgba(201, 168, 76, 0.3);
}
.info-card strong {
    display: block;
    color: var(--gold);
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    font-size: 0.96rem;
    margin-bottom: 5px;
    letter-spacing: 0.3px;
}
.info-card span {
    font-size: 0.87rem;
    color: rgba(232, 240, 255, 0.68);
}
.info-card em { color: rgba(77, 166, 255, 0.8); font-style: italic; }

.note-text {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.7rem;
    color: rgba(232, 240, 255, 0.35);
    letter-spacing: 0.5px;
    padding: 8px 4px;
    border-top: 1px solid rgba(77, 166, 255, 0.1);
    margin-top: 8px;
}

/* ===== STATS ===== */
.stats-row {
    display: flex;
    justify-content: space-evenly;
    flex-wrap: wrap;
    gap: 22px;
    padding: 0 20px 30px;
}
.stat-card {
    background: rgba(0, 48, 135, 0.22);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(201, 168, 76, 0.22);
    border-top: 2px solid var(--gold);
    border-bottom: 2px solid var(--cyan);
    padding: 38px 25px;
    width: 260px;
    min-height: 245px;
    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);
    clip-path: polygon(8px 0%, 100% 0%, calc(100% - 8px) 100%, 0% 100%);
}
.stat-card:hover {
    transform: translateY(-12px);
    background: rgba(0, 48, 135, 0.45);
    box-shadow: 0 25px 50px rgba(0,0,0,0.45), 0 0 40px rgba(201,168,76,0.18);
}
.stat-num {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 3.4rem;
    font-weight: 400;
    color: var(--gold);
    margin-bottom: 12px;
    text-shadow: 0 0 22px rgba(201,168,76,0.55);
    letter-spacing: 3px;
}
.stat-lbl {
    color: rgba(232, 240, 255, 0.75);
    font-family: 'Outfit', sans-serif;
    font-size: 0.84rem;
    line-height: 1.5;
}

/* ===== FEES GRID ===== */
.fees-grid {
    display: flex;
    justify-content: space-evenly;
    flex-wrap: wrap;
    gap: 20px;
    width: 92%;
    margin: 0 auto 50px;
}
.fees-box {
    background: rgba(0, 48, 135, 0.14);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(77, 166, 255, 0.18);
    border-top: 2px solid var(--cyan);
    padding: 24px;
    flex: 1;
    min-width: 260px;
    max-width: 380px;
    color: var(--ice-dim);
    font-family: 'Outfit', sans-serif;
    font-size: 0.88rem;
    line-height: 1.9;
    clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 10px 100%, 0 calc(100% - 10px));
}
.fees-box p { margin-bottom: 8px; }
.fees-box strong { color: var(--gold); }
.fees-box em { color: rgba(232, 240, 255, 0.45); font-size: 0.82rem; }
.box-title {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.7rem;
    color: var(--cyan);
    letter-spacing: 3px;
    margin-bottom: 14px;
    border-bottom: 1px solid rgba(77, 166, 255, 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(--navy) 0%, var(--navy-deep) 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: popPulse 2.5s infinite;
    box-shadow: 0 5px 20px rgba(0,48,135,0.5);
}
.ai-dot {
    width: 34px; height: 34px;
    background: var(--gold);
    color: var(--navy-deep);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: 'Bebas Neue', sans-serif;
    font-weight: 400;
    font-size: 13px;
    letter-spacing: 1px;
    margin-right: 10px;
}
.ai-text {
    color: #fff;
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    font-size: 14px;
}
@keyframes popPulse {
    0%   { box-shadow: 0 0 0 0 rgba(201,168,76,0.55), 0 5px 20px rgba(0,48,135,0.5); transform: scale(1); }
    70%  { box-shadow: 0 0 0 14px rgba(201,168,76,0), 0 5px 20px rgba(0,48,135,0.5); transform: scale(1.04); }
    100% { box-shadow: 0 0 0 0 rgba(201,168,76,0), 0 5px 20px rgba(0,48,135,0.5); transform: scale(1); }
}
.ai-popup:hover {
    animation: none;
    background: linear-gradient(135deg, var(--gold) 0%, #a07830 100%);
    transform: translateY(-5px) scale(1.07);
    box-shadow: 0 12px 25px rgba(0,0,0,0.4);
}
.ai-popup:hover .ai-dot { background: #fff; color: var(--gold); }
.ai-popup:hover .ai-text { color: var(--navy-deep); }

/* ===== FINAL SLIDE ===== */
.slide4 {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 60px 20px;
}
.final-wrap {
    position: relative;
    z-index: 1;
    background: rgba(0, 13, 31, 0.72);
    backdrop-filter: blur(22px);
    border: 1px solid rgba(201, 168, 76, 0.28);
    border-top: 2px solid var(--gold);
    border-bottom: 2px solid var(--cyan);
    width: 90%;
    max-width: 1200px;
    padding: 48px;
    box-shadow: 0 30px 60px rgba(0,0,0,0.7), 0 0 80px rgba(0,48,135,0.2);
    text-align: center;
    clip-path: polygon(14px 0%, 100% 0%, calc(100% - 14px) 100%, 0% 100%);
}
.final-chinese {
    font-family: 'Outfit', sans-serif;
    font-size: 2.2rem;
    color: var(--cyan);
    opacity: 0.1;
    letter-spacing: 10px;
    margin-bottom: -16px;
    font-weight: 700;
}
.final-title {
    font-family: 'Bebas Neue', sans-serif;
    font-weight: 400;
    color: #fff;
    font-size: clamp(22px, 4.5vw, 50px);
    margin-bottom: 6px;
    text-shadow: 0 0 30px rgba(77,166,255,0.35);
    letter-spacing: 6px;
    text-transform: uppercase;
}
.final-title::after {
    content: '';
    display: block;
    width: 90px;
    height: 2px;
    background: linear-gradient(90deg, var(--gold), var(--cyan));
    margin: 14px auto 30px;
}
.final-sub {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
    color: var(--gold);
    opacity: 0.6;
    letter-spacing: 2px;
    margin-bottom: 0;
}
.final-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
    margin-bottom: 32px;
}
.final-card {
    background: rgba(0, 48, 135, 0.2);
    border: 1px solid rgba(77, 166, 255, 0.18);
    border-top: 2px solid var(--cyan);
    padding: 26px 20px;
    color: var(--ice-dim);
    text-align: left;
    transition: 0.35s ease;
    clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 8px, 100% 100%, 8px 100%, 0 calc(100% - 8px));
}
.final-card:hover {
    background: rgba(0, 48, 135, 0.45);
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.5), 0 0 30px rgba(77,166,255,0.12);
}
.final-card h3 {
    color: var(--gold);
    margin-bottom: 14px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 2px;
    border-bottom: 1px solid rgba(77, 166, 255, 0.2);
    padding-bottom: 8px;
    text-transform: uppercase;
}
.final-card p {
    font-size: 0.84rem;
    line-height: 1.78;
    margin-bottom: 3px;
    color: rgba(232, 240, 255, 0.85);
}
.final-card strong { color: var(--gold); }
.final-card em { color: rgba(232, 240, 255, 0.45); font-size: 0.8rem; font-style: italic; }
.tl-list {
    list-style: none;
    font-size: 0.83rem;
    line-height: 2;
    color: rgba(232, 240, 255, 0.85);
}
.tl-list li::before { content: '▸ '; color: var(--cyan); }
.link-col { display: flex; flex-direction: column; gap: 11px; }
.btn-link {
    text-decoration: none;
    background: transparent;
    color: var(--cyan);
    padding: 9px 14px;
    text-align: center;
    font-weight: 500;
    border: 1px solid rgba(77, 166, 255, 0.4);
    transition: 0.3s;
    font-family: 'Outfit', sans-serif;
    font-size: 0.84rem;
    display: block;
    clip-path: polygon(5px 0%, 100% 0%, calc(100% - 5px) 100%, 0% 100%);
}
.btn-link:hover {
    background: var(--cyan);
    color: var(--bg);
    border-color: var(--cyan);
    box-shadow: 0 0 18px rgba(77,166,255,0.35);
}
.mini-footer {
    margin-top: 22px;
    color: rgba(232, 240, 255, 0.25);
    font-size: 0.72rem;
    letter-spacing: 0.5px;
    font-family: 'JetBrains Mono', monospace;
    line-height: 1.8;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
    .hero-title {
        font-size: 36px !important;
        width: 94% !important;
        letter-spacing: 4px;
        padding: 14px 16px;
        clip-path: none;
    }
    .hero-sub { font-size: 9px; letter-spacing: 2px; }
    .hud-bar { display: none; }
    .hero-badge { font-size: 0.56rem; letter-spacing: 1.5px; padding: 5px 12px; }
    .hero-layout {
        flex-direction: column !important;
        align-items: center !important;
        gap: 18px !important;
        padding: 12px;
    }
    .video-wrap {
        width: 100% !important;
        margin-left: 0 !important;
        margin-top: 10px;
        clip-path: none;
    }
    .video-wrap iframe { height: 230px !important; width: 100% !important; }
    .intro-card {
        width: 100% !important;
        margin: 0 !important;
        padding: 18px !important;
        font-size: 0.93rem !important;
        text-align: left;
        clip-path: none;
    }
    .sec-title {
        width: 92%;
        padding: 12px 18px;
        font-size: 20px;
        letter-spacing: 3px;
        clip-path: none;
    }
    .stat-card { width: 90%; min-height: auto; padding: 28px 20px; clip-path: none; }
    .fees-grid { flex-direction: column; width: 95%; }
    .fees-box { max-width: 100%; clip-path: none; }
    .final-grid { grid-template-columns: 1fr; }
    .final-wrap { padding: 22px; width: 96%; clip-path: none; }
    .final-card { clip-path: none; }
    .info-card { clip-path: none; }
    .btn-back { clip-path: none; font-size: 0.68rem; letter-spacing: 2px; }
}