:root {
    --bg-color: #030308;
    --text-primary: #ffffff;
    --text-secondary: #94a3b8;
    --glow-1: rgba(139, 92, 246, 0.25);  /* Ungu Gemini */
    --glow-2: rgba(59, 130, 246, 0.25);  /* Biru Gemini */
    --glow-3: rgba(236, 72, 153, 0.15);  /* Pink Akses */
    --cyan: #4fafce;
}

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    position: relative;
}

/* efek menyala-nyala bergerak di background ala Gemini */
.gemini-aurora {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    z-index: -1;
    overflow: hidden;
    filter: blur(100px);
    opacity: 0.8;
}
.blob {
    position: absolute;
    border-radius: 50%;
    mix-blend-mode: screen;
    animation: moveAurora 20s infinite alternate;
}
.blob-1 { top: -10%; left: -10%; width: 600px; height: 600px; background: var(--glow-1); animation-duration: 25s; }
.blob-2 { bottom: -10%; right: -10%; width: 700px; height: 700px; background: var(--glow-2); animation-duration: 30s; }
.blob-3 { top: 40%; left: 50%; width: 500px; height: 500px; background: var(--glow-3); animation-duration: 20s; }

@keyframes moveAurora {
    0% { transform: translate(0px, 0px) scale(1); }
    50% { transform: translate(100px, 80px) scale(1.2); }
    100% { transform: translate(-50px, -40px) scale(0.9); }
}

.container { width: 90%; max-width: 1200px; margin: auto; position: relative; z-index: 1; }

.site-header {
    position: sticky;
    top: 0;
    z-index: 10000;
    margin-bottom: 40px;
    background: linear-gradient(135deg, rgba(15, 12, 32, 0.96), rgba(3, 8, 20, 0.94));
    border-bottom: 1px solid rgba(103, 232, 249, 0.14);
    box-shadow: 0 12px 38px rgba(0, 0, 0, 0.48), inset 0 -1px 0 rgba(255, 255, 255, 0.035);
    backdrop-filter: blur(28px) saturate(150%);
    -webkit-backdrop-filter: blur(28px) saturate(150%);
}

/* Glassmorphism premium dengan border glow menyala tipis */
.glass-box {
    background: rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 24px;
    padding: 40px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.glass-box:hover {
    transform: translateY(-5px);
    border-color: rgba(59, 130, 246, 0.4);
    box-shadow: 0 0 30px rgba(59, 130, 246, 0.2), inset 0 0 15px rgba(255, 255, 255, 0.02);
}

.glow-text {
    background: linear-gradient(135deg, #ffffff 30%, #a5b4fc 70%, var(--cyan));
    -webkit-background-clip: text;
    background-clip: text; /* <-- Pasangan standar resmi */
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 40px rgba(165, 180, 252, 0.3);
}

.btn {
    display: inline-block;
    padding: 14px 32px;
    color: #fff;
    text-decoration: none;
    border-radius: 50px;
    background: linear-gradient(90deg, #4fafce, #06b6d4);
    font-weight: 600;
    letter-spacing: 0.5px;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(79, 70, 229, 0.4);
    transition: all 0.3s ease;
}
.btn:hover {
    transform: scale(1.03);
    box-shadow: 0 0 30px rgba(6, 182, 212, 0.7);
}

/* Grid & Utilities */
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; margin-top: 40px; }
.grid-6 { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 20px; margin-top: 40px; }

/* Card Pricing Spesifik */
.price-card { text-align: left; position: relative; overflow: hidden; }
.price-card::before {
    content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 4px;
    background: linear-gradient(90deg, #4fafce, var(--cyan));
}
.price { font-size: 1.8rem; font-weight: 700; color: #4fafce; margin: 15px 0; }

/* Tech Stack Logo Wrapper */
.tech-item {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    padding: 25px; background: rgba(255,255,255,0.01); border-radius: 16px;
    border: 1px solid rgba(255,255,255,0.03); transition: 0.3s;
}
.tech-item:hover {
    background: rgba(255,255,255,0.05);
    border-color: rgba(79, 70, 229, 0.3);
    transform: scale(1.08);
}
.tech-item img { width: 50px; height: 50px; object-fit: contain; }
.tech-item span { font-size: 0.9rem; color: var(--text-primary); font-weight: 600; }

/* =========================================
   PENGATURAN FLOATING WHATSAPP (TEMA BIRU GEMINI)
   ========================================= */
.floating-wa-container { 
    position: fixed; 
    bottom: 30px; 
    right: 30px; 
    z-index: 1000; 
}

.wa-toggle {
    width: 60px; 
    height: 60px; 
    border-radius: 50%;
    /* Diubah dari hijau menjadi Gradasi Biru/Cyan Menyala */
    background: linear-gradient(135deg, #4fafce, #06b6d4);
    display: flex; 
    justify-content: center; 
    align-items: center;
    cursor: pointer; 
    border: 0;
    padding: 0;
    box-shadow: 0 0 15px rgba(79, 70, 229, 0.4); 
    transition: 0.3s;
}

.wa-toggle:hover { 
    transform: scale(1.1); 
    box-shadow: 0 0 25px rgba(79, 70, 229, 0.8); 
}

/* Mengatur Ukuran & Warna Putih Icon WhatsApp SVG */
.wa-toggle svg {
    width: 28px;
    height: 28px;
    fill: #ffffff;
}

.wa-menu {
    position: absolute; 
    bottom: 80px; 
    right: 0;
    width: 250px; 
    display: none; 
    flex-direction: column; 
    gap: 15px;
}

.wa-menu.active { 
    display: flex; 
}

.wa-item { 
    display: flex; 
    align-items: center; 
    gap: 12px; 
    text-decoration: none; 
    color: white; 
    background: rgba(5,5,15,0.85); 
    backdrop-filter: blur(10px); 
    -webkit-backdrop-filter: blur(10px);
    padding: 12px; 
    border-radius: 12px; 
    border: 1px solid rgba(255, 255, 255, 0.1); 
    transition: 0.3s; 
}

.wa-item:hover { 
    /* Border berubah menjadi Biru Cyan saat di-hover */
    border-color: #4fafce; 
    background: rgba(255,255,255,0.05); 
}

.wa-item img { 
    width: 45px !important; 
    height: 45px !important; 
    border-radius: 50%; 
    /* Border foto diubah dari hijau menjadi Biru Cyan */
    border: 2px solid #4fafce; 
    object-fit: cover; 
}

/* =========================================
   ANIMASI SCROLL (MUNCUL PERLAHAN)
   ========================================= */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* =========================================
   PERBAIKAN KANVAS PARTIKEL BINTANG
   ========================================= */
#particle-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -2; /* Berada paling belakang, di bawah aurora dan konten */
    pointer-events: none; /* Agar tidak menghalangi saat teks/tombol diklik */
}

/* =========================================
   PERBAIKAN FORM INPUT & JARAK LOGIKA
   ========================================= */
.form-group {
    margin-bottom: 20px;
    text-align: left;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-secondary);
    font-size: 0.95rem;
    font-weight: 500;
}

.form-control {
    width: 100%;
    padding: 14px 18px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: #ffffff;
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-sizing: border-box;
    color-scheme: dark;
}

.form-control:focus {
    outline: none;
    border-color: #4fafce;
    box-shadow: 0 0 15px rgba(79, 70, 229, 0.2), inset 0 0 10px rgba(79, 70, 229, 0.05);
    background: rgba(255, 255, 255, 0.06);
}

/* Container khusus halaman logika agar lebih lega */
.logic-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px; /* Jarak antar kotak yang sangat lega */
    max-width: 800px;
    margin: 0 auto 80px auto;
}

/* =========================================
   PERBAIKAN INPUT NUMBER & DROPDOWN (SELECT)
   ========================================= */
/* Menghilangkan panah (spinner) pada input type number untuk Chrome, Safari, Edge, Opera */
input[type=number]::-webkit-inner-spin-button, 
input[type=number]::-webkit-outer-spin-button { 
    -webkit-appearance: none; 
    appearance: none; /* <-- Penambahan standar properti untuk menghilangkan eror linter */
    margin: 0; 
}

/* Menghilangkan panah (spinner) pada input type number untuk Firefox */
input[type=number] {
    -moz-appearance: textfield;
    appearance: textfield; /* <-- Penambahan standar properti untuk menghilangkan eror linter */
}

/* Kustomisasi Dropdown (Select) agar futuristik */
select.form-control {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    /* Mengubah tanda kutip tunggal menjadi %27 agar 100% valid URI data di semua linter VS Code */
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 24 24%27 fill=%27none%27 stroke=%27%234fafce%27 stroke-width=%272%27 stroke-linecap=%27round%27 stroke-linejoin=%27round%27%3e%3cpolyline points=%276 9 12 15 18 9%27%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 18px center;
    background-size: 16px;
    cursor: pointer;
}

/* Warna background pilihan dropdown agar tidak putih kaku */
select.form-control option {
    background-color: #05050f;
    color: #ffffff;
    padding: 10px;
}

/* =========================================
   TERMINAL CODE EDITOR & TYPEWRITER
   ========================================= */
.code-showcase { max-width: 800px; margin: 0 auto; text-align: left; }
.code-tabs { display: flex; gap: 15px; margin-bottom: 20px; justify-content: center; }
.code-tab { 
    background: rgba(255,255,255,0.02); border: 1px solid rgba(79, 70, 229, 0.2); 
    color: #94a3b8; padding: 10px 24px; border-radius: 30px; cursor: pointer; 
    transition: all 0.3s ease; font-family: inherit; font-size: 0.95rem; font-weight: 500;
}
.code-tab.active { 
    background: rgba(79, 70, 229, 0.1); color: #4fafce; border-color: #4fafce; 
    box-shadow: 0 0 15px rgba(79, 70, 229, 0.3); 
}
.code-tab:hover:not(.active) { background: rgba(255,255,255,0.05); color: #fff; }

.code-window { 
    background: #05050f; border-radius: 16px; padding: 25px; 
    border: 1px solid rgba(255,255,255,0.08); 
    box-shadow: 0 20px 40px rgba(0,0,0,0.6), inset 0 0 20px rgba(79, 70, 229, 0.05); 
}
.mac-dots { display: flex; gap: 8px; margin-bottom: 20px; }
.mac-dot { width: 12px; height: 12px; border-radius: 50%; }
.mac-dot.red { background: #ff5f56; box-shadow: 0 0 10px #ff5f56; } 
.mac-dot.yellow { background: #ffbd2e; box-shadow: 0 0 10px #ffbd2e; } 
.mac-dot.green { background: #27c93f; box-shadow: 0 0 10px #27c93f; }

.code-content { 
    font-family: 'Courier New', Courier, monospace; 
    color: #a5b4fc; font-size: 1rem; line-height: 1.6; 
    white-space: pre-wrap; min-height: 180px; 
}
.cursor-blink { 
    display: inline-block; width: 10px; height: 1.2em; 
    background-color: #4fafce; vertical-align: middle; 
    animation: blink 1s step-end infinite; margin-left: 5px; box-shadow: 0 0 8px #4fafce;
}
@keyframes blink { 50% { opacity: 0; } }

/* Styling dasar menu navbar agar rapi berbentuk kapsul saat di-hover / aktif */
.nav-link {
    color: #94a3b8;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    padding: 8px 18px;
    border-radius: 30px; /* Bentuk Pill / Kapsul */
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.nav-link:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.05);
}

/* Menu yang sedang terbuka (Active Pill Tab) */
.nav-link.active {
    color: #00f2fe; /* Warna Biru Cyan khas bitter.tech */
    background: rgba(0, 242, 254, 0.1);
    border-color: rgba(0, 242, 254, 0.3);
    box-shadow: 0 0 15px rgba(0, 242, 254, 0.2);
    font-weight: 600;
}

.language-switcher {
    display: flex;
    align-items: center;
    gap: 3px;
    padding: 4px;
    border: 1px solid rgba(0, 242, 254, 0.22);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.045);
    box-shadow: inset 0 0 12px rgba(0, 0, 0, 0.35);
    font-size: 0.85rem;
    font-weight: 700;
}

.language-link {
    color: #94a3b8;
    text-decoration: none;
    padding: 7px 12px;
    border-radius: 999px;
    line-height: 1;
    transition: color 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
}

.language-link:hover:not(.active) {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.07);
}

.language-link.active {
    color: #031018;
    background: linear-gradient(135deg, #67e8f9, #4fafce);
    box-shadow: 0 0 16px rgba(0, 242, 254, 0.35);
}

/* Kalender Flatpickr dan dropdown kustom dipakai hanya pada halaman pengujian. */
.flatpickr-calendar {
    background: rgba(5, 5, 15, 0.96) !important;
    border: 1px solid rgba(0, 242, 254, 0.35) !important;
    border-radius: 16px !important;
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.6), 0 0 25px rgba(0, 242, 254, 0.12) !important;
}

.flatpickr-day,
.flatpickr-weekday,
.flatpickr-current-month input.cur-year,
.flatpickr-monthDropdown-months {
    color: #ffffff !important;
}

.flatpickr-monthDropdown-months,
.flatpickr-monthDropdown-months option {
    background: #05050f !important;
}

.flatpickr-day.selected {
    color: #031018 !important;
    background: linear-gradient(135deg, #67e8f9, #4fafce) !important;
    border-color: #4fafce !important;
    border-radius: 8px !important;
    font-weight: 700;
}

.flatpickr-day:hover {
    color: #ffffff !important;
    background: rgba(79, 172, 206, 0.2) !important;
    border-color: rgba(79, 172, 206, 0.35) !important;
    border-radius: 8px !important;
}

.flatpickr-calendar.arrowTop::before,
.flatpickr-calendar.arrowTop::after { border-bottom-color: rgba(79, 172, 206, 0.65) !important; }
.flatpickr-calendar.arrowBottom::before,
.flatpickr-calendar.arrowBottom::after { border-top-color: rgba(79, 172, 206, 0.65) !important; }
span.flatpickr-weekday { color: #4fafce !important; }

.custom-select-wrapper { position: relative; width: 100%; user-select: none; }
.custom-select-display {
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    text-align: left;
}
.custom-select-display::after {
    content: '';
    width: 9px;
    height: 9px;
    margin-left: 16px;
    border-right: 2px solid #4fafce;
    border-bottom: 2px solid #4fafce;
    transform: rotate(45deg);
    transition: transform 0.25s ease;
}
.custom-select-wrapper.open .custom-select-display::after { transform: rotate(-135deg); }
.custom-select-options {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    z-index: 999;
    display: grid;
    padding: 6px;
    background: rgba(5, 5, 15, 0.98);
    border: 1px solid rgba(0, 242, 254, 0.28);
    border-radius: 14px;
    box-shadow: 0 16px 35px rgba(0, 0, 0, 0.58);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-8px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
}
.custom-select-wrapper.open .custom-select-options {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
}
.custom-option {
    width: 100%;
    padding: 12px 14px;
    color: #94a3b8;
    background: transparent;
    border: 0;
    border-radius: 9px;
    font: inherit;
    text-align: left;
    cursor: pointer;
}
.custom-option:hover,
.custom-option:focus-visible { color: #ffffff; background: rgba(79, 172, 206, 0.15); }
.custom-option.selected { color: #00f2fe; background: rgba(0, 242, 254, 0.08); font-weight: 700; }

.logic-result {
    margin-top: 20px;
    padding: 20px;
    background: rgba(0, 242, 254, 0.04);
    border-left: 4px solid #00f2fe;
    border-radius: 8px;
}

.hamburger {
    background: transparent;
    border: 0;
    padding: 4px;
}

:focus-visible {
    outline: 2px solid #00f2fe;
    outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        scroll-behavior: auto !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
