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

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

.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: 70px;
    width: 80%;
    color: #ffffff;
    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 0;
    transition: all 0.4s ease;
    border-radius: 10px;
    font-size: clamp(30px, 8vw, 70px);
}

.Judul:hover {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.7);
    transform: scale(1.01);
}

.webresmi {
    background-color: #660874; /* Ungu Tsinghua */
    color: #e8e0f0;           /* Lavender muda */
    border: 2px solid #a855f7; /* Ungu terang sebagai aksen */
    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;
}

.webresmi:hover {
    color: #ffffff;
    text-shadow: 0 0 10px #a855f7, 0 0 20px #a855f7, 0 0 40px #a855f7;
    transform: scale(1.1);
}

.slide1, .slide2, .slide3, .slide4 {
    display: block;
    background-image: url("peking.jpg"); /* Ganti dengan foto Tsinghua */
    background-repeat: no-repeat;
    background-attachment: fixed;
    background-position: bottom;
    background-size: cover;
    background-position: center;
    width: 100%;               
    min-height: 100vh;
    margin-top: 0px;
    overflow: hidden;
}

.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);
}

.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 {
    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 {
    display: flex;
    column-gap: 50px;
    padding: 60px 50px; 
}

section {
    display: block;
    border: none;
    margin: 0;
    padding: 0;
}

.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 #a855f7; /* Ungu terang */
    border-radius: 10px;
    box-shadow: inset 0 0 0 5px rgba(102, 8, 116, 0.5), /* Ungu Tsinghua */
                0 15px 35px rgba(0, 0, 0, 0.3);
}

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

.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 #a855f7; /* Aksen ungu terang */
    border-radius: 8px;
    padding: 20px;
    width: 100%;
    max-width: 900px;
    color: #e8e0f0; /* Lavender muda */
    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(102, 8, 116, 0.4); /* Ungu Tsinghua transparan */
    border-left: 5px solid #ffffff; 
    box-shadow: 0 0 20px rgba(168, 85, 247, 0.4); /* Glow ungu */
    transform: scale(1.02) translateX(10px);
}

/* Tombol AI Popup */
.ai-popup {
    position: fixed;
    bottom: 30px;
    right: 30px;
    display: flex;
    align-items: center;
    background: rgba(102, 8, 116, 0.95); /* Ungu Tsinghua */
    border: 2px solid #a855f7;
    padding: 10px 18px;
    border-radius: 50px;
    text-decoration: none;
    z-index: 10000;
    transition: all 0.3s ease;
    animation: pulse-ungu 2s infinite;
}

.ai-circle {
    width: 35px;
    height: 35px;
    background: #a855f7;
    color: #660874;
    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-ungu {
    0% {
        box-shadow: 0 0 0 0 rgba(168, 85, 247, 0.7);
        transform: scale(1);
    }
    70% {
        box-shadow: 0 0 0 15px rgba(168, 85, 247, 0);
        transform: scale(1.05);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(168, 85, 247, 0);
        transform: scale(1);
    }
}

.ai-popup:hover {
    animation: none;
    background: #a855f7;
    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: #a855f7;
}

.ai-popup:hover .ai-label {
    color: #660874;
}

/* Stats Section */
.stats-section {
    padding: 80px 5%;
    background: transparent;
    text-align: center;
}

.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 #a855f7;
    border-radius: 10px;
    box-shadow: inset 0 0 0 5px rgba(102, 8, 116, 0.5), 
                0 15px 35px rgba(0, 0, 0, 0.3);
}

.stats-container {
    display: flex;
    justify-content: space-evenly;
    flex-wrap: wrap;
    gap: 25px;
}

.stats-card {
    background: rgba(102, 8, 116, 0.2); /* Ungu transparan */
    backdrop-filter: blur(8px);
    border: 1px solid rgba(168, 85, 247, 0.3);
    border-top: 4px solid #a855f7;
    padding: 40px 25px;
    width: 350px;
    height: 350px;
    border-radius: 15px;
    transition: all 0.4s ease;
}

.stats-card:hover {
    transform: translateY(-15px);
    background: rgba(102, 8, 116, 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: #a855f7; /* Ungu terang */
    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;
}

/* Slide 4 - Final Section */
.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(168, 85, 247, 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(102, 8, 116, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 25px;
    border-radius: 15px;
    color: #e8e0f0;
    text-align: left;
    transition: 0.3s;
}

.final-card:hover {
    background: rgba(102, 8, 116, 0.5);
    transform: translateY(-10px);
}

.final-card h3 {
    color: #a855f7;
    margin-bottom: 15px;
    font-family: sans-serif;
    border-bottom: 1px solid #a855f7;
    padding-bottom: 5px;
}

.timeline-list {
    list-style: none;
    font-size: 0.9rem;
    line-height: 1.8;
}

.link-group {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.btn-final {
    text-decoration: none;
    background: #a855f7;
    color: #660874;
    padding: 10px;
    text-align: center;
    font-weight: bold;
    border-radius: 5px;
    transition: 0.3s;
}

.btn-final:hover {
    background: #ffffff;
    color: #a855f7;
    box-shadow: 0 0 15px #a855f7;
}

.mini-footer {
    margin-top: 20px;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.8rem;
}

.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 HP === */
@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 50px;
        font-family: "Saira Stencil One", sans-serif;
        font-size: 35px;
        color: #ffffff;
        text-transform: uppercase;
        letter-spacing: 3px;
        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 #a855f7;
        border-radius: 10px;
        box-shadow: inset 0 0 0 5px rgba(102, 8, 116, 0.5), 
                    0 15px 35px rgba(0, 0, 0, 0.3);
    }

    .stats-title {
        text-align: center;
        display: flex;
        justify-content: center;
        align-items: center;
        margin: 50px auto;
        width: 90%;
        padding: 10px 20px;
        font-family: "Saira Stencil One", sans-serif;
        font-size: 40px;
        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 #a855f7;
        border-radius: 10px;
        box-shadow: inset 0 0 0 5px rgba(102, 8, 116, 0.5), 
                    0 15px 35px rgba(0, 0, 0, 0.3);
    }

    .stats-card {
        background: rgba(102, 8, 116, 0.2);
        backdrop-filter: blur(8px);
        border: 1px solid rgba(168, 85, 247, 0.3);
        border-top: 4px solid #a855f7;
        padding: 40px 25px;
        width: 350px;
        height: 200px;
        border-radius: 15px;
        transition: all 0.4s ease;
    }

    .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;
    }
}
