:root {
    /* Light Mode Colors */
    --bg-primary: #f8f9fa;
    --bg-secondary: #ffffff;
    --text-primary: #1a1a1a;
    --text-secondary: #555555;
    --accent-red: #d32f2f;
    --accent-gold: #fbc02d;
    --accent-black: #212121;
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(255, 255, 255, 0.3);
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    
    /* Badge Colors for High Contrast in Light Mode */
    --badge-red-text: #d32f2f;
    --badge-gold-text: #b8860b;
    --badge-blue-text: #0077b6;
    --badge-green-text: #1b5e20;
    --badge-orange-text: #e65100;
    
    /* Subtle Card Colors */
    --card-bg-subtle: rgba(0, 0, 0, 0.03);
    --card-hover-subtle: rgba(0, 0, 0, 0.06);
}

[data-theme="dark"] {
    /* Dark Mode Colors (Premium Dark) */
    --bg-primary: #0f0f12;
    --bg-secondary: #1a1a20;
    --text-primary: #e5e5e5;
    --text-secondary: #aaaaaa;
    --accent-red: #ff3333;
    --accent-gold: #ffd700;
    --accent-black: #000000;
    --glass-bg: rgba(26, 26, 32, 0.7);
    --glass-border: rgba(255, 255, 255, 0.1);
    --shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.5), 0 4px 6px -2px rgba(0, 0, 0, 0.2);
    
    /* Badge Colors for Dark Mode */
    --badge-red-text: #ff5252;
    --badge-gold-text: #ffd700;
    --badge-blue-text: #64c8ff;
    --badge-green-text: #96ff96;
    --badge-orange-text: #ff9632;
    
    /* Subtle Card Colors */
    --card-bg-subtle: rgba(255, 255, 255, 0.04);
    --card-hover-subtle: rgba(255, 255, 255, 0.08);
}

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

body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-family: 'Outfit', 'Inter', sans-serif;
    transition: var(--transition);
    overflow-x: hidden;
}

/* Premium Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', serif; /* Font klasik untuk kesan budaya */
    font-weight: 700;
    line-height: 1.2;
    color: var(--text-primary);
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition);
}

/* Glassmorphism Effect */
.glass {
    background: var(--glass-bg);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
    background: var(--accent-red);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--accent-gold);
}

/* Micro-animations */
.hover-scale {
    transition: var(--transition);
}
.hover-scale:hover {
    transform: scale(1.03);
}

/* Marawa Gradient Text */
.text-marawa {
    background: linear-gradient(45deg, var(--accent-red), var(--accent-gold));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: bold;
}

/* Button Premium */
.btn-premium {
    padding: 12px 24px;
    border-radius: 30px;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1px;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-marawa {
    background: linear-gradient(45deg, var(--accent-red), var(--accent-gold));
    color: white;
    box-shadow: 0 4px 15px rgba(211, 47, 47, 0.3);
}

.btn-marawa:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(211, 47, 47, 0.5);
}

/* Media Queries for Responsiveness */
@media (max-width: 768px) {
    /* Global Typography & Spacing */
    h1 {
        font-size: 2.5rem !important;
    }
    h2 {
        font-size: 2rem !important;
    }
    h3 {
        font-size: 1.5rem !important;
    }
    
    section {
        padding: 60px 20px !important;
    }

    /* Navbar */
    nav.glass {
        padding: 15px 20px !important;
    }
    
    #mobile-menu-btn {
        display: block !important;
    }
    
    nav.glass .nav-links {
        display: none !important;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: #1a1a20 !important; /* Warna gelap agar kontras */
        flex-direction: column;
        gap: 15px;
        padding: 20px;
        border-bottom: 1px solid var(--glass-border);
        box-shadow: var(--shadow);
    }
    
    nav.glass .nav-links a,
    nav.glass .nav-links button {
        color: #e5e5e5 !important; /* Warna teks terang */
        width: 100%;
        text-align: center;
        padding: 10px 0;
    }
    
    nav.glass .nav-links.active {
        display: flex !important;
    }
    
    /* Hero Section */
    #hero {
        padding: 0 20px !important;
        text-align: center !important;
        align-items: center !important;
    }
    
    #hero h1 {
        font-size: 3rem !important;
    }
    
    #hero p {
        font-size: 1rem !important;
    }
    
    #hero div[style*="justify-content: flex-start"] {
        justify-content: center !important;
        flex-wrap: wrap;
    }
    
    /* About Section */
    #about {
        padding: 60px 20px !important;
    }
    
    #about h2 {
        font-size: 2rem !important;
    }
    
    #about div[style*="display: flex"] {
        flex-direction: column !important;
        text-align: center;
    }
}

/* Custom Pagination Styling */
.pagination {
    display: flex;
    list-style: none !important;
    padding: 0;
    gap: 8px;
    justify-content: center;
    margin-top: 30px;
    flex-wrap: wrap;
}

.pagination .page-item {
    display: inline-block;
}

.pagination .page-link {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 15px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.2s;
}

.pagination .page-item.active .page-link {
    background: linear-gradient(45deg, var(--accent-red), var(--accent-gold)) !important;
    color: white !important;
    border: none;
}

.pagination .page-link:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--accent-gold);
    transform: translateY(-2px);
}

.pagination .page-item.disabled .page-link {
    opacity: 0.5;
    cursor: not-allowed;
    background: rgba(255, 255, 255, 0.02);
}
