/* =========================================
   VARIABLES - DEFAULT (LIGHT MODE)
   ========================================= */
:root {
    --bg-light: #ffffff;
    --bg-lighter: #f8fafc;
    --cyan: #0891b2;
    --blue: #2563eb;
    --text-main: #1e293b;
    --text-muted: #64748b;
    --card-bg: #ffffff;
    --border-light: #e2e8f0;
    --navbar-bg: rgba(255, 255, 255, 0.95);
    --overlay-start: rgba(255, 255, 255, 0.7);
    --overlay-end: rgba(255, 255, 255, 0.98);
}

/* =========================================
   VARIABLES - DARK MODE OVERRIDES
   ========================================= */
body.dark-mode {
    --bg-light: #0f172a;
    --bg-lighter: #020617;
    --cyan: #06b6d4;
    --blue: #3b82f6;
    --text-main: #e2e8f0;
    --text-muted: #94a3b8;
    --card-bg: rgba(30, 41, 59, 0.7);
    --border-light: rgba(6, 182, 212, 0.2);
    --navbar-bg: rgba(2, 6, 23, 0.95);
    --overlay-start: rgba(2, 6, 23, 0.4);
    --overlay-end: rgba(2, 6, 23, 0.95);
}

/* =========================================
   BASE STYLES
   ========================================= */
* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Rajdhani', sans-serif; }
body { background-color: var(--bg-lighter); color: var(--text-main); line-height: 1.6; padding-top: 80px; transition: background 0.3s, color 0.3s; }
h1, h2, h3, h4 { font-family: 'Orbitron', sans-serif; }

/* =========================================
   NAVBAR & CONTROLS
   ========================================= */
.navbar {
    display: flex; justify-content: space-between; align-items: center; padding: 1rem 5%;
    background: var(--navbar-bg); backdrop-filter: blur(10px); position: fixed;
    width: 100%; top: 0; z-index: 1000; border-bottom: 1px solid var(--border-light);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05); transition: background 0.3s;
}
.logo-container { display: flex; align-items: center; gap: 10px; }
.logo-text { color: var(--blue); font-size: 1.5rem; letter-spacing: 2px; }
.nav-links { list-style: none; display: flex; gap: 2rem; }
.nav-links a { color: var(--text-main); text-decoration: none; font-weight: 600; transition: color 0.3s; }
.nav-links a:hover { color: var(--blue); }
.logo-img {height: 40px;}

/* Kontainer Tombol Kanan Atas */
.nav-right-container { display: flex; align-items: center; gap: 1.5rem; }
.nav-controls { display: flex; align-items: center; gap: 0.75rem; }

/* Style Selector Bahasa */
.nav-select {
    background: var(--card-bg); color: var(--text-main);
    border: 1px solid var(--border-light); padding: 0.4rem 0.6rem;
    border-radius: 6px; cursor: pointer; font-weight: 600; outline: none;
}

/* Style Tombol Mode */
.btn-theme {
    background: var(--card-bg); border: 1px solid var(--border-light);
    font-size: 1.2rem; padding: 0.3rem 0.6rem; border-radius: 6px;
    cursor: pointer; transition: transform 0.2s;
}
.btn-theme:hover { transform: scale(1.1); }

/* =========================================
   BUTTONS
   ========================================= */
.btn-primary { background: linear-gradient(90deg, var(--blue), var(--cyan)); color: white; padding: 0.6rem 1.5rem; border: none; border-radius: 4px; text-decoration: none; font-weight: bold; cursor: pointer; display: inline-block; }
.btn-secondary { background: transparent; color: var(--blue); border: 2px solid var(--blue); padding: 0.6rem 1.5rem; border-radius: 4px; text-decoration: none; font-weight: bold; display: inline-block; }
.btn-outline { display: inline-block; margin-top: 1rem; padding: 0.5rem 1rem; border: 1px solid var(--text-muted); color: var(--text-main); text-decoration: none; border-radius: 4px; }
.full-width { display: block; width: 100%; }

/* =========================================
   HERO & SECTIONS
   ========================================= */
   /* HERO SECTION - Modified to use background image */
.hero { height: 100vh; display: flex; align-items: center; justify-content: center; text-align: center; padding: 0 5%; position: relative; background-image: url('images/image_1.png'); background-size: cover; background-position: center top; margin-top: -80px; }
.tech-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: radial-gradient(circle at center, var(--overlay-start) 0%, var(--overlay-end) 100%); z-index: 1; transition: background 0.3s; }
.hero-content { max-width: 800px; z-index: 2; }
.glow-text { font-size: 3rem; background: linear-gradient(to right, var(--cyan), var(--blue)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; margin-bottom: 1rem; }

.section { padding: 5rem 5%; }
.dark-bg { background-color: var(--bg-lighter); }
.gradient-bg { background: linear-gradient(135deg, var(--bg-light), #f1f5f9); border-top: 1px solid var(--border-light); border-bottom: 1px solid var(--border-light); }
.container { max-width: 1200px; margin: 0 auto; }
.section-title { text-align: center; font-size: 2.5rem; color: var(--blue); margin-bottom: 3rem; }

/* GRIDS & CARDS */
.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.card {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,0.05);
    transition: transform 0.3s;
}

.card:hover {
    transform: translateY(-5px);
    border-color: rgba(6, 182, 212, 0.5);
}

.card h3 {
    color: var(--blue);
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

/* EVENT CARD */
.event-card {
    background: var(--card-bg);
    border: 1px solid var(--cyan);
    padding: 2rem;
    border-radius: 12px;
    max-width: 800px;
    margin: 0 auto;
}

.event-status {
    display: inline-block;
    background: rgba(16, 185, 129, 0.2);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.event-title {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}

.event-desc {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.event-details p {
    margin-bottom: 0.5rem;
}


/* PRICING */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.pricing-card {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 8px;
    text-align: center;
    border: 1px solid rgba(255,255,255,0.1);
}

.pricing-card.featured {
    border: 2px solid var(--cyan);
    transform: scale(1.05);
    box-shadow: 0 0 20px rgba(6, 182, 212, 0.2);
}

.pricing-card h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.pricing-card .duration {
    color: var(--cyan);
    font-weight: bold;
    margin-bottom: 1.5rem;
}

.pricing-card ul {
    list-style: none;
    margin-bottom: 2rem;
    text-align: left;
}

.pricing-card ul li {
    margin-bottom: 0.8rem;
    padding-left: 1.5rem;
    position: relative;
}

.pricing-card ul li::before {
    content: '✓';
    color: var(--cyan);
    position: absolute;
    left: 0;
}

/* =========================================
   DYNAMIC LANGUAGE TOGGLE SYSTEM
   ========================================= */
body.lang-en .lang-id { display: none !important; }
body:not(.lang-en) .lang-en { display: none !important; }

/* FOOTER */
footer {
    background: var(--bg-light);
    padding: 3rem 5% 1rem;
    text-align: center;
    
}

.footer-content h3 {
    color: var(--cyan);
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.footer-bottom {
    margin-top: 2rem;
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* =========================================
   RESPONSIVE MENU (MOBILE HAMBURGER)
   ========================================= */
.nav-left-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
}

.btn-hamburger {
    display: none; /* Default sembunyi di Desktop */
    background: transparent;
    border: none;
    color: var(--text-main);
    font-size: 1.8rem;
    cursor: pointer;
    padding: 4px;
    outline: none;
    transition: transform 0.2s;
}

/* KETIKA LAYAR DI BAWAH 768px (HANDPHONE & TABLET) */
@media (max-width: 768px) {
    .btn-hamburger {
        display: block; /* Tombol Muncul di HP */
    }

    .nav-links {
        display: none; /* Sembunyikan daftar menu bawaan */
        flex-direction: column;
        position: absolute;
        top: 100%; /* Turun tepat di bawah batas navbar */
        left: 0;
        width: 100%;
        background: var(--navbar-bg);
        backdrop-filter: blur(10px);
        gap: 0 !important;
        padding: 0;
        border-bottom: 2px solid var(--border-light);
        box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
    }

    /* Kelas aktif saat tombol diklik */
    .nav-links.active {
        display: flex; 
    }

    .nav-links li {
        width: 100%;
        text-align: center;
    }

    .nav-links a {
        display: block;
        padding: 1.2rem;
        border-top: 1px solid var(--border-light);
        font-size: 1.1rem;
    }

    /* Penyesuaian Ruang Navbar Kanan agar tidak sesak di HP */
    .logo-text { font-size: 1.2rem; }
    .nav-right-container { gap: 0.6rem; }
    .nav-select { padding: 0.3rem 0.4rem; font-size: 0.85rem; }
    .btn-theme { font-size: 1rem; padding: 0.2rem 0.4rem; }
    .btn-primary { padding: 0.4rem 0.8rem; font-size: 0.85rem; }
}