/* --- Variable dan Reset Dasar --- */
:root {
    --primary-color: #ffffff;
    --secondary-color: #2a2a2a;
    --accent-color: #00aaff;
    --background-color: #121212;
    --shadow-color: rgba(0, 0, 0, 0.7);
    --genshin-gold: #e4c585;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--background-color);
    color: var(--primary-color);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    overflow: hidden; /* Sembunyikan scrollbar saat loading */
}

/* --- Loading Screen (Tema Varesa/Genshin) --- */
#loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--background-color);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.7s ease, visibility 0.7s ease;
}

.spinner {
    width: 60px;
    height: 60px;
    border: 5px solid var(--secondary-color);
    border-top-color: var(--genshin-gold);
    border-radius: 50%;
    animation: spin 1.2s cubic-bezier(0.5, 0, 0.5, 1) infinite;
}

.loading-text {
    margin-top: 20px;
    color: var(--genshin-gold);
    font-size: 1.2em;
    letter-spacing: 2px;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* --- Main Profile Card --- */
.card-container {
    position: relative;
    width: 340px;
    background: var(--secondary-color);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 35px var(--shadow-color);
    opacity: 0;
    animation: fadeInCard 1s ease-in-out forwards;
    animation-delay: 0.5s;
}

@keyframes fadeInCard {
    from {
        transform: translateY(50px) scale(0.9);
        opacity: 0;
    }
    to {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
}

#bg-video {
    position: absolute;
    top: 50%;
    left: 50%;
    width: auto;
    height: auto;
    min-width: 100%;
    min-height: 100%;
    transform: translate(-50%, -50%);
    z-index: 1;
    filter: brightness(0.3) blur(2px);
}

.profile-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 30px;
    text-align: center;
}

.profile-image {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--accent-color);
    margin-bottom: 20px;
    box-shadow: 0 5px 25px rgba(0, 170, 255, 0.4);
    transition: transform 0.4s ease;
}

.profile-image:hover {
    transform: scale(1.08) rotate(5deg);
}

.profile-content h1 {
    font-size: 1.8em;
    font-weight: 700;
    margin-bottom: 5px;
}

.profile-content p {
    font-size: 1em;
    font-weight: 300;
    margin-bottom: 25px;
    opacity: 0.8;
}

.buttons-group {
    display: flex;
    flex-direction: column;
    gap: 15px;
    width: 100%;
}

.btn {
    background-color: var(--accent-color);
    color: var(--primary-color);
    border: none;
    padding: 12px 20px;
    border-radius: 50px;
    font-size: 1em;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-decoration: none;
}

.btn.secondary {
    background-color: transparent;
    border: 2px solid var(--accent-color);
}

.btn:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 170, 255, 0.3);
}

.btn.secondary:hover {
    background-color: var(--accent-color);
}

/* --- Modals (Pop-ups) --- */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

.modal.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    position: relative;
    background: var(--secondary-color);
    padding: 30px;
    border-radius: 15px;
    width: 90%;
    max-width: 400px;
    text-align: center;
    transform: scale(0.7);
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.modal.active .modal-content {
    transform: scale(1);
}

.close-btn {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 2em;
    color: #aaa;
    cursor: pointer;
    transition: color 0.3s ease;
}

.close-btn:hover {
    color: var(--primary-color);
}

.modal-content h2 {
    margin-bottom: 20px;
    color: var(--accent-color);
}

.modal-content .social-links, .pricelist {
    list-style: none;
    padding: 0;
    margin-bottom: 20px;
}

.pricelist li {
    margin-bottom: 12px;
    font-size: 1.1em;
}

.pricelist span {
    font-weight: bold;
    color: var(--genshin-gold);
}

.social-links a {
    display: block;
    background: #3c3c3c;
    color: var(--primary-color);
    padding: 12px;
    margin-bottom: 10px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.social-links a:hover {
    background-color: var(--accent-color);
    transform: scale(1.05);
}

.modal-info {
    font-size: 1.1em;
    margin-bottom: 20px;
    line-height: 1.6;
}

.modal-info a {
    color: var(--accent-color);
    text-decoration: none;
    font-weight: bold;
}

/* --- Footer --- */
.footer {
    position: fixed;
    bottom: 10px;
    right: 15px;
    font-size: 0.8em;
    color: var(--primary-color);
    opacity: 0.5;
    z-index: 3;
}
