/* ===========================
   FUDAN.CSS
   Warna Utama: Navy Blue #003DA5 + Gold #C9A84C
   =========================== */

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

body {
    overflow-x: hidden;
    font-family: sans-serif;
}

/* ===== JUDUL ===== */
.Judul {
    display: flex;
    margin-inline: auto;
    align-items: center;
    justify-content: center;
    margin-top: 50px;
    text-align: center;
    font-family: "Saira Stencil One", sans-serif;
    font-size: clamp(30px, 8vw, 70px);
    width: 80%;
    color: azure;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.3);
    background: linear-gradient(135deg, rgba(255,255,255,0.15) 0%, rgba(255,255,255,0.05) 100%);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    box-shadow: 0 15px 35px 0 rgba(0, 0, 0, 0.3);
    padding: 10px 20px;
    transition: all 0.4s ease;
    border-radius: 10px;
}
.Judul:hover {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.7);
    transform: scale(1.01);
}

/* ===== TOMBOL KEMBALI ===== */
.webresmi {
    background-color: #003DA5; /* Navy Blue Fudan */
    color: #f5f5dc;
    border: 2px solid #C9A84C; /* Gold */
    padding: 12px 24px;
    border-radius: 0px;
    font-weight: bold;
    letter-spacing: 1px;
    box-shadow: 5px 5px 0px #333;
    display: flex;
    margin: 15px auto;
    width: fit-content;
    text-decoration: none;
    transition: all 0.3s ease;
}
.webresmi:hover {
    color: #ffffff;
    text-shadow: 0 0 10px #C9A84C, 0 0 20px #C9A84C, 0 0 40px #C9A84C;
    transform: scale(1.1);
}

/* ===== SLIDES BACKGROUND ===== */
.slide1, .slide2, .slide3 {
    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;
    margin-top: 0px;
    overflow: hidden;
}

/* ===== VIDEO CONTAINER ===== */
.video-container {
    display: flex;
    position: relative;
    margin-top: 60px;
    margin-left: 50px;
    width: fit-content;
    padding: 15px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 15px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    transition: all 0.4s ease;
}
.video-container iframe {
    border-radius: 10px;
    display: block;
}
.video-container:hover {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.7);
    transform: scale(1.01);
}

/* ===== PENGANTAR ===== */
.pengantar {
    margin-top: 60px;
    margin-right: 50px;
    display: flex;
    width: fit-content;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1.5px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: 10px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    color: #f8f9fa;
    font-family: 'Inter', 'Poppins', sans-serif;
    font-size: 1.15rem;
    line-height: 1.8;
    letter-spacing: 0.3px;
    text-align: justify;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

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

/* ===== HEADING DOKUMEN ===== */
.dokumen {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 50px auto;
    width: fit-content;
    padding: 20px 50px;
    font-family: "Saira Stencil One", sans-serif;
    font-size: clamp(40px, 6vw, 80px);
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 5px;
    text-shadow: 2px 4px 10px rgba(0, 0, 0, 0.5);
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 2px solid #C9A84C; /* Gold Fudan */
    border-radius: 10px;
    box-shadow: inset 0 0 0 5px rgba(0, 61, 165, 0.5), /* Navy blue inner */
                0 15px 35px rgba(0, 0, 0, 0.3);
}

/* ===== BOX WRAPPER ===== */
.box {
    display: flex;
    justify-content: space-evenly;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
    width: 95%;
    margin: 20px auto;
}

/* ===== BOX ITEMS ===== */
.box1, .box2, .box3, .box4, .box5,
.box6, .box7, .box8, .box9, .box10 {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-left: 5px solid #C9A84C; /* Gold Fudan */
    border-radius: 8px;
    padding: 20px;
    width: 100%;
    max-width: 900px;
    color: #f5f5dc;
    font-family: 'Open Sans', sans-serif;
    font-size: 1rem;
    line-height: 1.6;
    transition: all 0.3s ease;
    cursor: default;
}
.box1:hover, .box2:hover, .box3:hover, .box4:hover, .box5:hover,
.box6:hover, .box7:hover, .box8:hover, .box9:hover, .box10:hover {
    background: rgba(0, 61, 165, 0.4); /* Navy Fudan hover */
    border-left: 5px solid #ffffff;
    box-shadow: 0 0 20px rgba(201, 168, 76, 0.4); /* Gold glow */
    transform: scale(1.02) translateX(10px);
}

/* ===== STATS SECTION ===== */
.stats-title {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 50px auto;
    width: fit-content;
    padding: 20px 50px;
    font-family: "Saira Stencil One", sans-serif;
    font-size: clamp(40px, 6vw, 80px);
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 5px;
    text-shadow: 2px 4px 10px rgba(0, 0, 0, 0.5);
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 2px solid #C9A84C;
    border-radius: 10px;
    box-shadow: inset 0 0 0 5px rgba(0, 61, 165, 0.5),
                0 15px 35px rgba(0, 0, 0, 0.3);
}
.stats-section {
    padding: 80px 5%;
    background: transparent;
    text-align: center;
}
.stats-container {
    display: flex;
    justify-content: space-evenly;
    flex-wrap: wrap;
    gap: 25px;
}
.stats-card {
    background: rgba(0, 61, 165, 0.2); /* Navy tipis */
    backdrop-filter: blur(8px);
    border: 1px solid rgba(201, 168, 76, 0.3);
    border-top: 4px solid #C9A84C;
    padding: 40px 25px;
    width: 350px;
    height: 350px;
    border-radius: 15px;
    transition: all 0.4s ease;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}
.stats-card:hover {
    transform: translateY(-15px);
    background: rgba(0, 61, 165, 0.4);
    border-color: #ffffff;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}
.stats-number {
    font-family: "Saira Stencil One", sans-serif;
    font-size: 3.5rem;
    color: #C9A84C;
    margin-bottom: 10px;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.5);
}
.stats-label {
    color: #ffffff;
    font-family: sans-serif;
    font-size: 0.95rem;
    line-height: 1.4;
    font-weight: 500;
    text-align: center;
}

/* ===== AI POPUP ===== */
.ai-popup {
    position: fixed;
    bottom: 30px;
    right: 30px;
    display: flex;
    align-items: center;
    background: rgba(0, 61, 165, 0.95); /* Navy Fudan */
    border: 2px solid #C9A84C;
    padding: 10px 18px;
    border-radius: 50px;
    text-decoration: none;
    z-index: 10000;
    transition: all 0.3s ease;
    animation: pulse-gold 2s infinite;
}
.ai-circle {
    width: 35px;
    height: 35px;
    background: #C9A84C;
    color: #003DA5;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: "Saira Stencil One", sans-serif;
    font-weight: bold;
    font-size: 14px;
    margin-right: 12px;
}
.ai-label {
    color: #ffffff;
    font-family: sans-serif;
    font-weight: bold;
    font-size: 15px;
}
@keyframes pulse-gold {
    0%   { box-shadow: 0 0 0 0 rgba(201, 168, 76, 0.7); transform: scale(1); }
    70%  { box-shadow: 0 0 0 15px rgba(201, 168, 76, 0); transform: scale(1.05); }
    100% { box-shadow: 0 0 0 0 rgba(201, 168, 76, 0); transform: scale(1); }
}
.ai-popup:hover {
    animation: none;
    background: #C9A84C;
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.4);
}
.ai-popup:hover .ai-circle {
    background: #ffffff;
    color: #C9A84C;
}
.ai-popup:hover .ai-label {
    color: #003DA5;
}

/* ===== 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: 50px 20px;
}
.final-container {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(15px);
    border: 2px solid rgba(201, 168, 76, 0.5);
    border-radius: 20px;
    width: 90%;
    max-width: 1200px;
    padding: 40px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    text-align: center;
}
.final-title {
    font-family: "Saira Stencil One", sans-serif;
    color: #ffffff;
    font-size: clamp(25px, 5vw, 45px);
    margin-bottom: 40px;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.5);
}
.final-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 40px;
}
.final-card {
    background: rgba(0, 61, 165, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 25px;
    border-radius: 15px;
    color: #f5f5dc;
    text-align: left;
    transition: 0.3s;
}
.final-card:hover {
    background: rgba(0, 61, 165, 0.55);
    transform: translateY(-10px);
}
.final-card h3 {
    color: #C9A84C;
    margin-bottom: 15px;
    font-family: sans-serif;
    border-bottom: 1px solid #C9A84C;
    padding-bottom: 5px;
}
.final-card p {
    font-size: 0.88rem;
    line-height: 1.7;
    margin-bottom: 4px;
}
.timeline-list {
    list-style: none;
    font-size: 0.9rem;
    line-height: 1.9;
}
.link-group {
    display: flex;
    flex-direction: column;
    gap: 15px;
}
.btn-final {
    text-decoration: none;
    background: #C9A84C;
    color: #003DA5;
    padding: 10px;
    text-align: center;
    font-weight: bold;
    border-radius: 5px;
    transition: 0.3s;
}
.btn-final:hover {
    background: #ffffff;
    color: #C9A84C;
    box-shadow: 0 0 15px #C9A84C;
}
.mini-footer {
    margin-top: 20px;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.8rem;
}

/* ===== 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: 40px !important;
        width: 95% !important;
        margin-top: 20px;
    }
    .container {
        flex-direction: column !important;
        align-items: center !important;
        gap: 20px !important;
        margin: 20px auto;
        padding: 10px;
    }
    .video-container, .pengantar {
        width: 100% !important;
        aspect-ratio: 16/9;
        flex: none !important;
        margin-left: 0 !important;
        margin-top: 10px;
    }
    .video-container iframe {
        height: 250px !important;
    }
    .pengantar {
        width: 100% !important;
        padding: 20px !important;
        font-size: 1.2rem !important;
        line-height: 1.6;
        text-align: left;
        border-radius: 15px;
        margin: 0 !important;
    }
    .dokumen {
        display: flex;
        text-align: center;
        justify-content: center;
        align-items: center;
        width: 85%;
        padding: 20px 30px;
        font-size: 35px;
        letter-spacing: 3px;
    }
    .stats-title {
        text-align: center;
        width: 90%;
        padding: 10px 20px;
        font-size: 40px;
        letter-spacing: 5px;
    }
    .stats-card {
        width: 350px;
        height: 200px;
        padding: 30px 20px;
    }
    .final-grid {
        grid-template-columns: 1fr;
    }
    .final-container {
        padding: 20px;
        width: 95%;
    }
    .final-card {
        text-align: center;
    }
    .timeline-list {
        text-align: left;
        display: inline-block;
    }
}