:root {
    --primary-color: #0d6efd;
    --dark-bg: rgba(0, 0, 0, 0.8);
    --transparent-bg: rgba(255, 255, 255, 0.1);
    --blur: blur(10px);
}



/* Styling untuk tema dark transparent dan background video */

/* Video Background */
.video-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1; /* Di bawah konten utama */
}

.video-background video {
    width: 100vw;
    height: 100vh;
    object-fit: cover;
}

/* Overlay gelap untuk memastikan teks tetap terbaca */
.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6); /* Lebih gelap */
    z-index: 2;
}

/* Override Body untuk z-index, memastikan konten di atas video */
body {
    position: relative;
    z-index: 3; /* Konten utama harus lebih tinggi dari video (z-index: 1) dan overlay (z-index: 2) */
    min-height: 100vh;
    padding-top: 56px; /* Sesuai tinggi navbar fixed */
}
/* Efek Backdrop Blur untuk elemen transparan (Navbar, Card, dll.) */
.backdrop-blur {
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.backdrop-blur-sm {
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

/* Text Shadow untuk keterbacaan di atas video background */
.text-shadow {
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

/* Sesuaikan warna di tema dark */
.card {
    background-color: rgba(33, 37, 41, 0.7) !important; /* Contoh dark transparent */
}

/* Pastikan section lain juga menggunakan z-index yang benar */
#deploy, #tutorial, #about, #donate {
    position: relative;
    z-index: 3; /* Pastikan konten utama selalu di atas overlay video (z-index: 2) */
}
/* Animated Background Pattern */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="white" opacity="0.1"/><circle cx="75" cy="75" r="2" fill="white" opacity="0.05"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>') repeat;
    opacity: 0.3;
    z-index: -1;
    animation: float 20s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(180deg); }
}

.hero {
    background: rgba(0, 0, 0, 0.4);
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: inherit;
    z-index: -1;
}

.backdrop-blur {
    backdrop-filter: var(--blur);
    -webkit-backdrop-filter: var(--blur);
}

.card {
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.1);
}

.navbar {
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.form-control {
    background: rgba(255, 255, 255, 0.1) !important;
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
    color: #fff !important;
}

.form-control:focus {
    border-color: var(--primary-color) !important;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25) !important;
    background: rgba(255, 255, 255, 0.15) !important;
    color: #fff !important;
}

.form-control::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), #0b5ed7);
    border: none;
    transition: all 0.3s ease;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(13, 110, 253, 0.4);
    background: linear-gradient(135deg, #0b5ed7, var(--primary-color));
}

.progress {
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

.progress-bar {
    background: linear-gradient(90deg, var(--primary-color), #0b5ed7);
}

.alert {
    border-radius: 8px;
    border: none;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

#htmlPreview {
    background: #000;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.text-muted {
    color: rgba(255, 255, 255, 0.7) !important;
}

/* Dark/Light Mode Support */
[data-bs-theme="light"] {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    color: #212529;
}

[data-bs-theme="light"] .card {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(0, 0, 0, 0.1);
}

[data-bs-theme="light"] .form-control {
    background: rgba(255, 255, 255, 0.9) !important;
    border: 1px solid rgba(0, 0, 0, 0.2) !important;
    color: #212529 !important;
}

[data-bs-theme="light"] .navbar {
    background: rgba(255, 255, 255, 0.95) !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1) !important;
    color: #212529 !important;
}

[data-bs-theme="light"] .navbar .nav-link {
    color: #212529 !important;
}

[data-bs-theme="light"] .hero {
    background: rgba(255, 255, 255, 0.1);
    color: #212529;
}

[data-bs-theme="light"] .text-muted {
    color: rgba(33, 37, 41, 0.7) !important;
}

/* Responsive */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5rem;
    }
    .card {
        margin: 0 1rem;
        padding: 1.5rem;
    }
    #htmlPreview {
        height: 200px;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 2rem;
    }
    .btn-lg {
        padding: 0.75rem 1.5rem;
        font-size: 1rem;
    }
}