/* styles.css */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Outfit', sans-serif;
}

body, html {
    width: 100%;
    height: 100%;
    overflow: hidden; /* Prevent scrolling so it feels like an app */
    background-color: #000;
}

/* Layer 1: Background Video Container */
.video-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

/* 
  object-fit: cover INI SANGAT PENTING
  Agar video landscape tetap memenuhi layar mobile portrait (vertikal)
  tanpa jadi gepeng, yang terjadi adalah sisi kiri/kanannya akan sedikit terpotong.
*/
#bg-video {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Solusi ampuh landscape -> mobile */
    filter: brightness(1.2); /* Adjust slightly to make colors pop */
}

/* Layer 2: Dark Overlay (supaya UI stand out) */
.dark-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.55); /* Hitam tidak pekat, video tetap terlihat */
    z-index: 2;
}

/* Main UI Container */
.ui-container {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100vh;
    padding: 20px;
    z-index: 3; /* Di atas overlay */
}

/* Glassmorphism Panel: Modern Spiderman Feel */
.glass-panel {
    background: rgba(10, 10, 15, 0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 40px 30px;
    width: 100%;
    max-width: 400px; /* Lebar maksimal konsisten dengan HP */
    text-align: center;
    box-shadow: 0 8px 32px rgba(226, 54, 54, 0.15); /* Cahaya merah soft ala spidey */
    animation: fadeIn 1s ease-out;
}

.profile-header h1 {
    color: #fff;
    font-size: 2rem;
    font-weight: 900;
    letter-spacing: 2px;
    text-transform: uppercase;
    text-shadow: 2px 2px 0px #E23636, -2px -2px 0px #0047AB; /* Spider-man Glitch Effect */
    margin-bottom: 5px;
}

.profile-header p {
    color: #ccc;
    font-size: 0.95rem;
    margin-bottom: 30px;
    font-weight: 400;
}

/* Tombol / Buttons container */
.button-group {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* General Button Styles */
.btn {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 15px 25px;
    border-radius: 12px;
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 700;
    color: #fff;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

.btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.5);
}

.btn:active {
    transform: translateY(2px);
}

/* Opsi Donasi - Spiderman Red */
.btn-primary {
    background: linear-gradient(135deg, #e52d27, #b31217);
}

/* Opsi Discord - Blurple */
.btn-discord {
    background: linear-gradient(135deg, #5865F2, #4752C4);
}

/* Opsi Turnamen FF - Orange / Yellow / Fire */
.btn-info {
    background: linear-gradient(135deg, #ff9900, #ff5500);
}

/* Icon / Emoji Styling */
.btn-icon {
    font-size: 1.3rem;
    filter: drop-shadow(0 0 5px rgba(255,255,255,0.4));
}

/* Watermark styles */
.watermark {
    position: fixed;
    bottom: 15px;
    right: 20px;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 1px;
    z-index: 3;
    pointer-events: none; /* Tidak bisa di-klik sama sekali */
    user-select: none; /* Tidak bisa di-blok/select teks */
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* RESPONSIVE DESIGN (Untuk Layar Sangat Kecil) */
@media screen and (max-width: 380px) {
    .glass-panel {
        padding: 30px 20px;
    }
    .profile-header h1 {
        font-size: 1.6rem;
    }
    .btn {
        font-size: 1rem;
        padding: 12px 20px;
    }
}

/* Custom Alert Modal */
.custom-alert-box {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 1;
    transition: opacity 0.3s ease;
}

.custom-alert-box.hidden {
    display: none;
    opacity: 0;
    pointer-events: none;
}

.alert-content {
    background: #111;
    border: 1px solid #e23636;
    border-radius: 15px;
    padding: 30px;
    text-align: center;
    max-width: 90%;
    width: 350px;
    box-shadow: 0 0 20px rgba(226, 54, 54, 0.4);
    animation: scaleUp 0.3s ease-out;
}

.alert-icon {
    font-size: 3rem;
    display: block;
    margin-bottom: 15px;
}

.alert-content h3 {
    color: #fff;
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.alert-content p {
    color: #ccc;
    font-size: 1rem;
    margin-bottom: 20px;
    line-height: 1.5;
}

.alert-content strong {
    color: #e23636;
}

.btn-close-alert {
    background: #e23636;
    color: #fff;
    border: none;
    padding: 10px 25px;
    font-size: 1rem;
    font-weight: 700;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-close-alert:hover {
    background: #b31217;
}

@keyframes scaleUp {
    from { transform: scale(0.8); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}
