/* 1. Reset Dasar & Import Font Estetik (Poppins) */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
    scroll-behavior: smooth; /* Bikin scroll anchor jadi mulus */
}

/* 2. Body: Memasang Gambar Merapi sebagai Latar Belakang */
body {
    width: 100%;
    /* GANTI 'merapi.jpg' dengan nama file gambarmu jika berbeda */
    background-image: url('merapi.jpg'); 
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: white;
    position: relative;
    
    /* PERBAIKAN SCROLL: Matikan horizontal scroll, nyalakan vertical scroll */
    overflow-x: hidden; 
    overflow-y: auto; 
}

/* Overlay gelap agar background tidak terlalu terang dan teks terbaca */
.overlay {
    position: fixed; /* Ubah ke fixed agar overlay menutupi seluruh halaman saat di-scroll */
    top: 0; left: 0; width: 100%; height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

/* 3. Navbar: Efek Kaca (Glassmorphism) Default */
nav {
    position: fixed;
    top: 0; left: 0; width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 80px;
    z-index: 9999; /* Pastikan selalu di paling depan */
    transition: all 0.3s ease-in-out; /* Transisi halus saat scroll */
    
    /* Tampilan awal (di paling atas) transparan halus */
    background: rgba(255, 255, 255, 0.05); 
    backdrop-filter: blur(5px); 
    -webkit-backdrop-filter: blur(5px); 
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

/* CLASS BARU: Ditambahkan oleh JS saat layar di-scroll ke bawah */
.nav-scrolled {
    background: rgba(11, 17, 32, 0.85); /* Warna gelap agar kontras saat menimpa teks */
    backdrop-filter: blur(15px); 
    -webkit-backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}

.logo h2 {
    font-weight: 700;
    letter-spacing: 1px;
}

.menu-items ul {
    list-style: none;
    display: flex;
    gap: 35px;
}

.menu-items li a {
    font-size: 0.9rem;
    font-weight: 400;
    color: #D1D5DB;
    cursor: pointer;
    transition: 0.3s;
    position: relative;
    text-decoration: none; /* Hilangkan garis bawah link default */
}

/* Efek garis bawah saat menu disorot */
.menu-items li a:hover {
    color: white;
}

.menu-items li a::after {
    content: '';
    position: absolute;
    width: 0; height: 2px;
    bottom: -5px; left: 0;
    background-color: #06B6D4;
    transition: 0.3s;
}

.menu-items li a:hover::after {
    width: 100%;
}

.btn-signup {
    padding: 8px 25px;
    background-color: transparent;
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 5px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: 0.3s;
}

.btn-signup:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: white;
}

/* 4. Hero Section (Konten Tengah) */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center; 
    align-items: center; 
    text-align: center;
    padding: 150px 20px 80px 20px;
    z-index: 5;
}

.hero-content h1 {
    font-size: 4rem; 
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 25px;
    text-transform: uppercase;
}

.hero-content p {
    font-size: 1.2rem;
    color: #E5E7EB;
    max-width: 650px;
    margin: 0 auto 50px auto;
    line-height: 1.6;
    font-weight: 300;
}

/* Bagian Tombol CTA */
.cta-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.cta-section span {
    font-size: 0.8rem;
    color: #9CA3AF;
    letter-spacing: 2px;
}

.btn-map {
    padding: 15px 35px;
    background: rgba(6, 182, 212, 0.1); 
    color: white;
    border: 2px solid #06B6D4; 
    border-radius: 5px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s;
    box-shadow: 0 0 15px rgba(6, 182, 212, 0.4); 
}

.btn-map:hover {
    background: #06B6D4; 
    box-shadow: 0 0 25px rgba(6, 182, 212, 0.8); 
}

/* 5. Feature Cards (Bawah Hero) */
.feature-cards {
    display: flex;
    gap: 30px;
    z-index: 6;
    margin-top: 80px;
    flex-wrap: wrap;
    justify-content: center;
}

.card {
    width: 280px;
    padding: 25px;
    text-align: left;
    background: rgba(255, 255, 255, 0.03); 
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    transition: 0.3s;
}

.card:hover {
    transform: translateY(-5px); 
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(6, 182, 212, 0.5); /* Tambahan aksen warna saat hover */
}

.card .icon { font-size: 2rem; display: block; margin-bottom: 20px; }
.card h3 { font-size: 1.2rem; font-weight: 600; color: white; margin-bottom: 5px; }
.card p { font-size: 0.9rem; color: #9CA3AF; font-weight: 300; }

/* 6. Section Placeholder */
.section-placeholder {
    position: relative;
    z-index: 5;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.9);
    border-top: 1px solid rgba(255,255,255,0.05);
    padding-top: 80px;
}

/* =========================================
   ABOUT PAGE STYLES
   Tema: Dark Mode, Glassmorphism, Cyan Accent
========================================= */

.about-section {
    background-color: rgba(11, 17, 32, 0.95); 
    color: #ffffff;
    font-family: 'Poppins', sans-serif;
    padding: 100px 20px; /* Samakan padding atas-bawah dengan features */
    min-height: 100vh;
    display: flex;
    justify-content: center;
    position: relative;
    z-index: 5;
}

.about-container {
    max-width: 1200px; /* Samakan max-width dengan features-container */
    width: 100%;
}

/* Header & Narasi Utama */
.about-header {
    text-align: center;
    margin-bottom: 60px;
}

.about-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 24px;
    color: #00bcd4; /* Ubah jadi Cyan cerah seperti judul Features */
    letter-spacing: 2px;
}

/* Teks paragraf panjang di bawah judul */
.about-narrative {
    font-size: 1.1rem;
    line-height: 1.7;
    color: #9ca3af; /* Abu-abu lembut tapi jelas, sama dengan sub-header features */
    max-width: 800px;
    margin: 0 auto;
}

.about-narrative p {
    margin-bottom: 20px;
}

.about-narrative strong {
    color: #00bcd4; /* Aksen link/teks tebal pakai cyan */
}

/* Sub-judul "MENGAPA SISTEM INI BERBEDA?" */
.features-title {
    text-align: center;
    font-size: 1.25rem;
    letter-spacing: 2px;
    color: #00bcd4; /* Ubah jadi Cyan cerah agar langsung kontras membelah halaman */
    margin-top: 50px;
    margin-bottom: 40px;
    font-weight: 600;
}

.about-features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

/* Kartu Kotak Versi About (Samakan persis dengan .feature-card-item) */
.feature-card {
    background: rgba(255, 255, 255, 0.05); /* Naik dari 0.03 ke 0.05 agar opacity pas */
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 40px 25px;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 188, 212, 0.2); /* Efek glow cyan saat hover */
    border-color: #00bcd4;
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 20px;
}

/* Judul di dalam kotak (Sinergi Radar, dll) */
.feature-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: #ffffff; /* Putih bersih */
}

/* Deskripsi di dalam kotak */
.feature-card p {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #d1d5db; /* Abu-abu terang kontras tinggi, sama dengan isi kartu features */
}

/* Footer / Catatan Akademik */
.about-footer {
    text-align: center;
    padding-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    max-width: 700px;
    margin: 40px auto 0 auto;
}

.about-footer h4 {
    font-size: 1.1rem;
    color: #ffffff;
    margin-bottom: 10px;
}

.about-footer p {
    font-size: 0.9rem;
    color: #9ca3af;
    line-height: 1.6;
}

/* Responsif untuk Mobile */
@media (max-width: 768px) {
    .about-title { font-size: 2rem; }
    .about-narrative { font-size: 1rem; }
    .feature-card { padding: 30px 20px; }
}

/* =========================================================
   7. FEATURES SECTION (KEUNGGULAN TEKNOLOGI)
   ========================================================= */
.features-section {
    position: relative;
    z-index: 5;
    padding: 100px 20px;
    background-color: #111827;
    color: #ffffff;
}

.features-container {
    max-width: 1200px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 2.5rem;
    color: #00bcd4;
    letter-spacing: 2px;
    margin-bottom: 15px;
}

.section-header p {
    font-size: 1.1rem;
    color: #9ca3af;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 30px;
}

.feature-card-item {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 40px 25px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.feature-card-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 188, 212, 0.2); /* Diperkuat sedikit glow-nya */
    border-color: #00bcd4;
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 20px;
}

.feature-card-item h3 {
    font-size: 1.25rem;
    color: #ffffff;
    margin-bottom: 15px;
    font-weight: 600;
}

.feature-card-item p {
    font-size: 0.95rem;
    color: #d1d5db;
    line-height: 1.6;
}

/* =========================================
   8. RISK MODEL SECTION (ARSITEKTUR MODEL)
   ========================================= */
.risk-model-section {
    position: relative;
    z-index: 5;
    padding: 100px 20px;
    background-color: rgba(11, 17, 32, 0.95);
    color: #ffffff;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.risk-container {
    max-width: 1200px;
    margin: 0 auto;
}

.risk-header {
    text-align: center;
    margin-bottom: 50px;
}

.risk-title {
    font-size: 2.2rem;
    font-weight: 800;
    color: #00bcd4; /* Cyan terang sesuai gambar */
    letter-spacing: 2px;
    margin-bottom: 15px;
    text-transform: uppercase;
    text-align: center;
}

.risk-description {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #9ca3af;
    text-align: center;
    white-space: nowrap;  /* Memaksa teks tetap 1 baris di desktop */
}

/* 📱 Responsif: Di HP otomatis kembali normal agar tidak jebol ke kanan */
@media (max-width: 768px) {
    .risk-title {
        font-size: 1.8rem;
    }
    .risk-description {
        white-space: normal; /* Di layar kecil, teks otomatis membungkus/turun bawah */
        padding: 0 20px;
    }
}

.model-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: start;
}

/* Kolom Kiri: Deskripsi Algoritma */
.algo-badge {
    display: inline-block;
    background: rgba(0, 188, 212, 0.15);
    color: #00bcd4;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 15px;
    border: 1px solid rgba(0, 188, 212, 0.3);
}

.model-description h3 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    line-height: 1.3;
}

.model-description p {
    color: #d1d5db;
    line-height: 1.7;
    margin-bottom: 15px;
    font-weight: 300;
}

.metrics-box {
    background: rgba(255, 255, 255, 0.03);
    border: 1px dashed rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    padding: 25px;
    margin-top: 30px;
}

.metrics-box h4 {
    margin-bottom: 20px;
    color: #e5e7eb;
    text-align: center;
}

.metric-stats {
    display: flex;
    justify-content: space-around;
    margin-bottom: 20px;
}

.stat-item {
    text-align: center;
}

.stat-value {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: #ffffff;
}

.stat-value.highlight-cyan {
    color: #00bcd4;
    text-shadow: 0 0 10px rgba(0, 188, 212, 0.3); /* Tambahan efek nyala pada angka 84% */
}

.stat-label {
    font-size: 0.85rem;
    color: #9ca3af;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.metric-note {
    font-size: 0.8rem !important;
    color: #6b7280 !important;
    font-style: italic;
    text-align: center;
    margin-bottom: 0 !important;
}

/* Kolom Kanan: Parameter List */
.model-parameters h3 {
    font-size: 1.5rem;
    margin-bottom: 25px;
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 10px;
}

.param-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.param-item {
    display: flex;
    gap: 20px;
    background: rgba(0, 0, 0, 0.2);
    padding: 20px;
    border-radius: 8px;
    border-left: 4px solid #00bcd4;
    transition: transform 0.3s;
}

.param-item:hover {
    transform: translateX(5px);
    background: rgba(255, 255, 255, 0.05);
}

.param-icon {
    font-size: 2rem;
}

.param-info h5 {
    font-size: 1.1rem;
    color: #ffffff;
    margin-bottom: 10px;
}

.param-info ul {
    list-style-type: none;
    padding-left: 0;
}

.param-info li {
    color: #d1d5db;
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 5px;
    position: relative;
    padding-left: 15px;
}

.param-info li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: #00bcd4;
}

/* =========================================
   RESPONSIVE & FULL-WIDTH SITE FOOTER
========================================= */
.main-footer {
    background-color: #0b0f19; /* Warna latar belakang gelap solid */
    width: 100%;               /* Memaksa footer memenuhi lebar layar */
    margin: 0;                 /* Menghapus margin bawaan */
    padding: 60px 0 40px 0;    /* Jarak atas bawah dalam footer */
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    position: relative;
    z-index: 10;
}

.footer-container {
    max-width: 1200px;         /* Batas lebar konten teks di dalam */
    margin: 0 auto;            /* Membuat konten teks tetap di tengah */
    padding: 0 24px;           /* Jarak aman agar teks tidak menyentuh layar di HP */
    text-align: center;
}

.footer-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 18px;
    letter-spacing: 0.5px;
}

.footer-description {
    font-size: 0.95rem;
    line-height: 1.8;
    color: #9ca3af;
    max-width: 850px;
    margin: 0 auto 35px auto;
}

/* Tampilan Barisan Nama Tim */
.footer-team {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap; /* Mengizinkan pembungkusan baris jika layar menyempit */
}

.footer-team .team-member {
    font-size: 0.95rem;
    font-weight: 500;
    color: #ffffff;
    letter-spacing: 0.5px;
    transition: color 0.3s ease;
}

.footer-team .team-member:hover {
    color: #00d4ff; /* Efek menyala cyan saat kursor mendekat */
}

.footer-team .team-divider {
    color: #00d4ff;
    font-weight: 300;
    opacity: 0.6;
}

/* 📱 RESPONSIVE: Pengaturan Khusus Layar Tablet & HP */
@media (max-width: 768px) {
    .main-footer {
        padding: 40px 0 30px 0;
    }
    
    .footer-description {
        font-size: 0.88rem;
        line-height: 1.6;
    }
    
    /* Di HP, singkirkan garis '|' dan susun nama berjejer ke bawah agar rapi */
    .footer-team {
        flex-direction: column; 
        gap: 12px;
    }
    
    .footer-team .team-divider {
        display: none; /* Menyembunyikan pembatas pipa di layar kecil */
    }
    
    .footer-team .team-member {
        font-size: 0.9rem;
    }
}

/* =========================================
   9. RESPONSIVE DESIGN (HP & TABLET)
   ========================================= */
@media (max-width: 900px) {
    nav {
        padding: 15px 30px; /* Kurangi padding navbar di HP */
    }
    
    .menu-items ul {
        gap: 15px;
        display: none; /* Sembunyikan menu di mobile (bisa pakai hamburger menu nanti) */
    }
    
    .hero-content h1 {
        font-size: 2.5rem; /* Perkecil teks utama */
    }
    
    .model-content {
        grid-template-columns: 1fr; /* Tumpuk kolom kiri & kanan di HP */
        gap: 30px;
    }
    
    .metric-stats {
        flex-direction: column;
        gap: 20px;
    }
}