/* === RESET & GLOBAL STYLE === */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(135deg, #1e3c72, #2a5298);
    color: #fff;
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
}



/* === ANIMATED TITLE === */
h1 {
    font-size: 2.5rem;
    margin: 20px 0;
    text-align: center;
    animation: glow 2s ease-in-out infinite alternate;
    padding: 20px;

}

@keyframes glow {
    from {
        text-shadow: 0 0 10px #ff8c00, 0 0 20px #ff8c00, 0 0 30px #ffa500;
    }

    to {
        text-shadow: 0 0 20px #ff4500, 0 0 30px #ff6347, 0 0 40px #ff0000;
    }
}

/* === PARAGRAPH === */
p {
    max-width: 700px;
    text-align: center;
    margin-bottom: 20px;
    font-size: 1.1rem;
    animation: fadeIn 2s ease forwards;
    opacity: 0;
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

/* === IMAGE STYLE === */
img {
    border-radius: 50%;
    border: 4px solid #fff;
    margin: 20px 0;
    width: 200px;
    height: 200px;
    object-fit: cover;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.5);
    transition: transform 0.5s ease, box-shadow 0.5s ease;
}

img:hover {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 0 30px rgba(255, 215, 0, 0.8);
}

/* === LIST === */
ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    margin: 20px 0;
}

ul li {
    background: rgba(255, 255, 255, 0.1);
    padding: 10px 20px;
    border-radius: 25px;
    transition: transform 0.3s ease, background 0.3s ease;
    cursor: pointer;
}

ul li:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-5px);
}

/* === TABLE === */
table {
    margin-top: 20px;
    border-collapse: collapse;
    width: 90%;
    max-width: 600px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.3);
    animation: slideUp 1s ease forwards;
    opacity: 0;
}

@keyframes slideUp {
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

th, td {
    padding: 15px;
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

th {
    background: rgba(0, 0, 0, 0.2);
    font-weight: bold;
    text-transform: uppercase;
}

tr:hover {
    background: rgba(255, 255, 255, 0.2);
    transition: 0.3s;
}

/* === FOOTER === */
footer {
    margin-top: 20px;
    padding: 15px;
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    width: 100%;
    display: flex;
    /* aktifkan flexbox */
    justify-content: center;
    /* center horizontal */
    align-items: center;
    /* center vertical */
    animation: fadeIn 3s ease forwards;
}



/* === RESPONSIVE === */
@media (max-width: 768px) {
    body {
        justify-content: center;
    }

    h1 {
        font-size: 2rem;
    }

    ul {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }

    table {
        font-size: 0.9rem;
    }

    /* === TABLE RESPONSIVE WRAPPER === */
    .table-container {
        width: 100%;
        overflow-x: auto;
        /* bikin scroll horizontal */
        -webkit-overflow-scrolling: touch;
        justify-content: unset;
        text-align: center;
        margin: 0 auto;
        display: block;
        /* biar halus di iOS */
    }

    .table-container table {
        min-width: 600px;
        margin: 0 auto;
        display: table;
        /* biar tabel tetap proporsional */
    }


    img {
        width: 150px;
        height: 150px;
        position: relative;
        justify-content: center;
        display: block;
        margin-left: auto;
        margin-right: auto;
    }
}

/* === SCROLLBAR STYLING (Webkit browsers: Chrome, Edge, Safari) === */
::-webkit-scrollbar {
    width: 10px;
    /* lebar scrollbar */
}

::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    /* jalur scrollbar */
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #ff8c00, #ff4500);
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(255, 140, 0, 0.7);
    transition: background 0.3s ease, box-shadow 0.3s ease;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #ff6347, #ff0000);
    box-shadow: 0 0 15px rgba(255, 69, 0, 0.9);
}

/* === Firefox support === */
* {
    scrollbar-width: thin;
    /* tipis */
    scrollbar-color: #ff6f00 rgba(255, 255, 255, 0.1);
}

/* === VIDEO BACKGROUND === */
.video-container {
    position: relative;
    width: 100%;
    /* lebar penuh layar */
    height: 300px;
    /* tinggi area video (bisa disesuaikan) */
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    /* biar video tidak keluar area */
    margin: 20px 0;
}

.video-container video {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    /* penuh kiri-kanan */
    height: 100%;
    /* penuh area container */
    object-fit: cover;
    /* biar tidak gepeng */
    transform: translate(-50%, -50%);
    opacity: 0.5;
    /* transparan supaya foto jelas */
}

.profile-foto {
    position: relative;
    border-radius: 50%;
    border: 4px solid #fff;
    width: 200px;
    height: 200px;
    z-index: 2;
    /* pastikan di atas video */
    object-fit: cover;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.5);
}


/* === INTRO VIDEO === */
.intro-video-container {
    margin: 30px 0;
    padding: 20px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.3);
    text-align: center;
    max-width: 700px;
    width: 90%;
}

.intro-video-container h2 {
    margin-bottom: 15px;
    font-size: 1.5rem;
    color: #ffd700;
    animation: fadeIn 2s ease forwards;
}

.intro-video-container iframe {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.5);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.intro-video-container iframe:hover {
    transform: scale(1.02);
    box-shadow: 0 0 25px rgba(255, 215, 0, 0.8);
}


/* === FORM === */
.form-container {
    margin: 30px 0;
    padding: 20px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.3);
    display: flex;
    flex-direction: column;
    gap: 15px;
    max-width: 400px;
}

.form-container input,
.form-container button {
    padding: 10px;
    border: none;
    border-radius: 8px;
    outline: none;
}

.form-container input {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
}

.form-container button {
    background: linear-gradient(135deg, #ff8c00, #ff4500);
    color: #fff;
    cursor: pointer;
    font-weight: bold;
    transition: 0.3s;
}

.form-container button:hover {
    transform: translateY(-3px);
    box-shadow: 0 0 10px rgba(255, 140, 0, 0.7);
}

/* === WELCOME MESSAGE === */
.welcome-msg {
    margin: 15px 0;
    font-size: 1.2rem;
    font-weight: bold;
    color: #ffd700;
    text-align: center;
}

/* === GEO BOX === */
.geo-box {
    margin: 20px;
    padding: 15px;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 10px;
    text-align: center;
}

/* === MAP SECTION === */
.map-container {
    margin: 30px 0;
    padding: 20px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.3);
    text-align: center;
    max-width: 800px;
    width: 90%;
}

.map-container h2 {
    margin-bottom: 15px;
    font-size: 1.5rem;
    color: #ffd700;
    animation: fadeIn 2s ease forwards;
}

.map-responsive {
    position: relative;
    padding-bottom: 56.25%;
    /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
    border-radius: 15px;
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.5);
}

.map-responsive iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 15px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    -webkit-transition: transform 0.3s ease, box-shadow 0.3s ease;
    -moz-transition: transform 0.3s ease, box-shadow 0.3s ease;
    -ms-transition: transform 0.3s ease, box-shadow 0.3s ease;
    -o-transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.map-responsive iframe:hover {
    transform: scale(1.02);
    box-shadow: 0 0 25px rgba(255, 215, 0, 0.8);
}

/* === VIDEO RESPONSIVE === */
.video-responsive {
    position: relative;
    width: 100%;
    max-width: 700px;
    margin: 0 auto;
    padding-bottom: 56.25%;
    /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
    border-radius: 10px;
    background: #000;
}

#player {
    position: absolute;
    top: 0;
    left: 0;
    width: 100% !important;
    height: 100% !important;
    border-radius: 10px;
    background: #000;
    max-width: 100%;
    max-height: 100%;
}

/* === PERBAIKAN KHUSUS UNTUK VIDEO YOUTUBE DI MOBILE === */
@media (max-width: 600px) {
    .intro-video-container {
        width: 100%;
        max-width: 100%;
        padding: 10px;
        margin: 15px 0;
        border-radius: 0;
        background: transparent;
        box-shadow: none;
    }

    .video-responsive {
        width: 100% !important;
        max-width: 100% !important;
        padding-bottom: 56.25%;
        /* 16:9 aspect ratio */
        border-radius: 8px;
        overflow: hidden;
        position: relative;
        left: 0;
        transform: none;
        margin: 0 auto;
    }

    #player {
        width: 100% !important;
        height: 100% !important;
        left: 0 !important;
        top: 0 !important;
        border-radius: 8px;
        max-width: 100%;
        position: absolute;
    }

    /* Pastikan body tidak memiliki overflow tersembunyi yang mempengaruhi video */
    body {
        overflow-x: hidden;
        width: 100%;
    }

    /* Perbaikan tambahan untuk konten lainnya */
    .intro-video-container h2 {
        font-size: 1.2rem;
        padding: 0 10px;
    }
}