/* =========================================
   PENGATURAN VARIABEL TEMA (LIGHT & DARK)
   ========================================= */

/* LIGHT MODE (Default) - Sangat bersih & Elegan */
:root {
    --bg-base: #f8fafc;
    --text-primary: #1e293b;
    --text-secondary: #475569;
    --accent-color: #008c93; 
    
    /* Blob dimatikan di mode terang agar teks terbaca sempurna */
    --blob-1: rgba(0, 173, 181, 0); 
    --blob-2: rgba(59, 130, 246, 0); 
    
    /* Variabel Glassmorphism Light */
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(255, 255, 255, 0.9);
    --glass-shadow: rgba(0, 0, 0, 0.04);
}

/* DARK MODE Override */
[data-theme="dark"] {
    --bg-base: #0f172a;
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --accent-color: #00adb5; 
    
    /* Blob diaktifkan kembali dengan tipis di mode gelap */
    --blob-1: rgba(0, 173, 181, 0.15);
    --blob-2: rgba(59, 130, 246, 0.15);
    
    /* Variabel Glassmorphism Dark */
    --glass-bg: rgba(15, 23, 42, 0.6);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-shadow: rgba(0, 0, 0, 0.3);
}

/* =========================================
   RESET & TIPOGRAFI DASAR
   ========================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Montserrat', sans-serif;
    font-weight: 400; 
    background-color: var(--bg-base);
    color: var(--text-primary);
    transition: background-color 0.4s ease, color 0.4s ease;
    overflow-x: hidden;
    position: relative;
    min-height: 100vh;
}

h1, h2, h3, .brand-text, .navbar nav ul li a {
    font-family: 'Raleway', sans-serif;
}

/* =========================================
   LATAR BELAKANG & GLASSMORPHISM
   ========================================= */
.bg-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    z-index: -1;
    animation: drift 15s infinite alternate ease-in-out;
    transition: background 0.4s ease;
}

.blob-1 {
    top: -10%;
    left: -5%;
    width: 40vw;
    height: 40vw;
    background: var(--blob-1);
    animation-delay: 0s;
}

.blob-2 {
    bottom: -10%;
    right: -5%;
    width: 35vw;
    height: 35vw;
    background: var(--blob-2);
    animation-delay: -5s;
}

.glass-effect {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    box-shadow: 0 8px 32px var(--glass-shadow);
}

/* =========================================
   NAVIGASI (HEADER)
   ========================================= */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 8%;
    position: sticky;
    top: 0;
    z-index: 100;
    border-radius: 0 0 20px 20px; 
    margin: 0 10px; 
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 12px;
}

.brand-logo {
    max-height: 35px;
    width: auto;
    object-fit: contain;
}

.brand-text {
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--accent-color);
}

.navbar nav ul {
    list-style: none;
    display: flex;
    gap: 35px;
}

.navbar nav ul li a {
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 600;
    font-size: 0.95rem;
    transition: color 0.3s;
}

.navbar nav ul li a:hover,
.navbar nav ul li a.active {
    color: var(--accent-color);
}

.btn-theme {
    color: var(--text-primary);
    padding: 8px 18px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.85rem;
    font-family: 'Montserrat', sans-serif;
    transition: all 0.3s ease;
    background: transparent;
    border: 1px solid var(--glass-border);
}

.btn-theme:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px var(--glass-shadow);
}

/* =========================================
   HERO SECTION (Beranda)
   ========================================= */
.hero-section {
    min-height: calc(100vh - 100px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 40px 8%;
    gap: 60px;
    flex-wrap: wrap; 
}

.hero-text {
    flex: 1;
    min-width: 320px;
    max-width: 600px;
    animation: fadeIn 1.2s cubic-bezier(0.25, 0.8, 0.25, 1) both;
}

.hero-text h1 {
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 25px;
    font-weight: 300; 
}

.hero-text h1 span {
    font-weight: 700;
    color: var(--accent-color);
}

.hero-text p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 35px;
    line-height: 1.8;
}

.cta-buttons a, .cta-buttons button {
    display: inline-block;
    padding: 14px 28px;
    font-size: 0.95rem;
    border-radius: 30px; 
    cursor: pointer;
    font-weight: 500;
    font-family: 'Montserrat', sans-serif;
    text-decoration: none;
    transition: all 0.4s ease;
}

.btn-primary {
    color: var(--text-primary);
    margin-right: 15px;
}

.btn-primary:hover {
    background: var(--accent-color);
    color: #fff;
    transform: translateY(-3px);
    border-color: var(--accent-color);
}

.btn-secondary {
    color: var(--text-primary);
    background: transparent;
    border: 1px solid var(--glass-border);
}

.btn-secondary:hover {
    transform: translateY(-3px);
}

/* =========================================
   KALKULATOR BIRU TUA LEMBUT (Beranda)
   ========================================= */
.hero-calculator {
    flex: 1;
    min-width: 320px;
    display: flex;
    justify-content: flex-end;
    animation: slideUp 1s cubic-bezier(0.25, 0.8, 0.25, 1) 0.2s both;
}

.calc-container {
    padding: 40px;
    border-radius: 24px;
    width: 100%;
    max-width: 450px;
    
    /* Warna Biru Tua Lembut (Navy/Slate) */
    background: linear-gradient(135deg, #2c3e50 0%, #1e2b3c 100%) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15) !important;
}

/* Penyesuaian saat di Dark Mode */
[data-theme="dark"] .calc-container {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4) !important;
}

.floating-anim {
    animation: floating 6s ease-in-out infinite;
}

/* Teks Judul Menjadi Putih */
.calc-container h2 {
    margin-bottom: 10px; 
    text-align: left;
    font-weight: 400;
    color: #ffffff !important;
    font-size: 1.8rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15) !important;
    padding-bottom: 15px;
}

/* Teks Disclaimer Menjadi Abu-abu Terang */
.calc-disclaimer {
    font-size: 0.8rem;
    color: #cbd5e1 !important; 
    font-style: italic;
    margin-bottom: 25px;
    line-height: 1.4;
}

.input-group {
    margin-bottom: 25px;
}

/* Label Menjadi Abu-abu Terang */
.input-group label {
    display: block;
    margin-bottom: 10px;
    font-weight: 500;
    color: #e2e8f0 !important;
    font-size: 0.9rem;
}

/* Kolom Input & Dropdown disesuaikan untuk latar gelap */
.glass-input {
    width: 100%;
    padding: 15px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.1) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    color: #ffffff !important;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.95rem;
    backdrop-filter: blur(10px);
    cursor: pointer;
    transition: all 0.3s;
    appearance: none;
    /* Ikon panah warna cyan terang */
    background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%2300adb5%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.5-12.8z%22%2F%3E%3C%2Fsvg%3E");
    background-repeat: no-repeat;
    background-position: right 15px top 50%;
    background-size: 12px auto;
}

/* Background pilihan dropdown agar terbaca jelas */
.glass-input option {
    background-color: #2c3e50; 
    color: #ffffff;
}

.glass-input:focus {
    outline: none;
    border-color: #00adb5 !important;
}

/* Slider Track */
.glass-slider {
    -webkit-appearance: none;
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.2) !important;
    border-radius: 5px;
    outline: none;
    margin-top: 10px;
}

/* Bulatan Slider */
.glass-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #00adb5;
    cursor: pointer;
    transition: transform 0.3s;
}

.glass-slider::-webkit-slider-thumb:hover {
    transform: scale(1.3);
}

.calc-result {
    margin-top: 35px;
    padding-top: 25px;
    border-top: 1px solid rgba(255, 255, 255, 0.15) !important;
}

.calc-result p {
    font-size: 0.95rem;
    color: #e2e8f0 !important;
}

/* Harga Total - Warna Cyan Terang agar mencolok di atas Biru Tua */
.calc-result h3 {
    font-size: 2.8rem;
    color: #00adb5 !important; 
    font-weight: 600;
    margin-top: 5px;
    letter-spacing: -1px;
}

/* =========================================
   ANIMASI & RESPONSIVITAS
   ========================================= */
@keyframes fadeIn {
    from { opacity: 0; transform: translateX(-30px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(40px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes floating {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-12px); }
    100% { transform: translateY(0px); }
}

@keyframes drift {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(30px, -30px) scale(1.1); }
}

@media (max-width: 900px) {
    .hero-section {
        flex-direction: column;
        justify-content: center;
        text-align: center;
        padding: 40px 5%;
    }
    
    .hero-text h1 {
        font-size: 3rem;
    }
    
    .hero-calculator {
        justify-content: center;
        width: 100%;
    }
    
    .navbar nav ul {
        display: none; 
    }
    
    .floating-anim {
        animation: none; 
    }
}