/* =========================================
   BASE & TYPOGRAPHY
   ========================================= */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

* { 
    margin: 0; 
    padding: 0; 
    box-sizing: border-box; 
    font-family: 'Inter', 'Segoe UI', sans-serif; /* Font yang lebih modern */
}

body {
    background-image: url('background.jpeg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: #f8f9fa;
    line-height: 1.7; /* Jarak antar baris lebih lega */
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Overlay Gelap dengan Gradien Halus */
body::before {
    content: ''; 
    position: fixed; 
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.85) 0%, rgba(0, 0, 0, 0.7) 100%); 
    z-index: -1;
}

.container { 
    max-width: 1100px; 
    margin: 0 auto; 
    padding: 0 24px; 
    width: 100%; 
    flex: 1; 
}

/* =========================================
   HEADER & NAVIGATION
   ========================================= */
.header { 
    padding: 20px 0; 
    border-bottom: 1px solid rgba(255, 255, 255, 0.08); 
    margin-bottom: 50px; 
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(12px); /* Efek blur pada navigasi */
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-content { display: flex; justify-content: space-between; align-items: center; }

.logo-link { text-decoration: none; color: inherit; transition: opacity 0.3s; }
.logo-link:hover { opacity: 0.8; }
.logo h1 { font-size: 22px; font-weight: 600; letter-spacing: 1.5px; text-transform: uppercase; }

.nav-list { display: flex; list-style: none; gap: 30px; }
.nav-link { 
    color: #cbd5e1; 
    text-decoration: none; 
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: color 0.3s; 
}
.nav-link:hover { color: #1abc9c; }

/* =========================================
   GLASSMORPHISM CARDS
   ========================================= */
.glass-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    padding: 35px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2); /* Bayangan halus */
    transition: transform 0.4s ease, box-shadow 0.4s ease, border-color 0.4s ease;
}

.glass-card:hover {
    transform: translateY(-5px); /* Efek mengambang saat di-hover */
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    border-color: rgba(255, 255, 255, 0.2);
}

/* =========================================
   BUTTONS (MODERN PILL DESIGN)
   ========================================= */
.view-btn { 
    display: inline-block; 
    margin-top: 20px; 
    padding: 10px 28px; 
    background: rgba(26, 188, 156, 0.1); 
    border: 1px solid rgba(26, 188, 156, 0.4);
    border-radius: 30px;
    color: #1abc9c; 
    text-decoration: none; 
    font-weight: 600; 
    font-size: 13px;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: all 0.3s ease; 
}

.view-btn:hover { 
    background: #1abc9c; 
    color: #ffffff;
    box-shadow: 0 0 15px rgba(26, 188, 156, 0.4); /* Efek menyala */
    transform: translateY(-2px);
}

/* =========================================
   PAGE SPECIFIC LAYOUTS
   ========================================= */

/* Landing Page */
.hero-title { font-size: 52px; font-weight: 700; text-align: center; margin-bottom: 50px; line-height: 1.15; }
.projects-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }
.card-title { font-size: 24px; font-weight: 600; margin-bottom: 15px; }
.card-title[style*="f39c12"], .card-title.orange { color: #f1c40f !important; }
.card-title[style*="3498db"], .card-title.blue { color: #3498db !important; }

/* All Projects Page (Vertical) */
.page-title { font-size: 40px; font-weight: 700; margin-bottom: 10px; }
.projects-list { display: flex; flex-direction: column; gap: 30px; max-width: 850px; }

/* About Page */
.about-grid { display: grid; gap: 30px; }
.about-title { color: #3498db; font-size: 22px; font-weight: 600; margin-bottom: 15px; }

/* Contact Page */
.contact-form { display: flex; flex-direction: column; gap: 20px; }
.contact-form input, .contact-form textarea {
    width: 100%; padding: 16px; border-radius: 12px; border: 1px solid rgba(255,255,255,0.2);
    background: rgba(0, 0, 0, 0.4); color: #fff; font-size: 15px; transition: border-color 0.3s;
}
.contact-form input:focus, .contact-form textarea:focus {
    outline: none; border-color: #1abc9c; background: rgba(0, 0, 0, 0.6);
}
.contact-form textarea { resize: vertical; min-height: 150px; }
.submit-btn {
    background: #1abc9c; color: white; padding: 16px; border: none;
    border-radius: 12px; cursor: pointer; font-weight: 600; font-size: 15px;
    text-transform: uppercase; letter-spacing: 1px; transition: 0.3s;
}
.submit-btn:hover { background: #16a085; transform: translateY(-2px); }

/* =========================================
   PROJECT DETAILS PAGE (NSSS & MEDC)
   ========================================= */
.project-header { margin-bottom: 40px; border-left: 4px solid #1abc9c; padding-left: 20px; }
.project-header h1 { font-size: 38px; font-weight: 700; line-height: 1.2; margin-bottom: 8px; }
.project-header p { font-size: 15px; color: #94a3b8; font-weight: 500; letter-spacing: 0.5px; }

.analysis-grid { 
    display: grid; 
    grid-template-columns: 2fr 1fr; 
    gap: 30px; 
    margin-bottom: 30px; 
    align-items: start; /* Mengembalikan grid agar tidak saling tarik-menarik tinggi */
}

/* Kotak pembungkus grafik */
.charts-placeholder {
    display: flex; 
    flex-direction: row; /* Mengembalikan grafik bawah menjadi menyamping */
    gap: 20px; 
    background: rgba(0,0,0,0.2); 
    border-radius: 20px;
    padding: 20px; 
    border: 1px solid rgba(255,255,255,0.05); 
    height: auto;
    align-items: center; 
    justify-content: center;
    min-width: 0;
}

.project-chart {
    flex: 1; 
    width: 100%; 
    max-width: 48%; /* Berbagi tempat 50:50 untuk grafik bawah */
    height: auto; 
    object-fit: contain; 
    border-radius: 12px;
    background-color: transparent; 
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3); 
    transition: transform 0.4s ease;
}

.project-chart:hover { 
    transform: scale(1.02); 
}

/* =========================================
   PENGATURAN GRAFIK KHUSUS ATAS (Untuk yang Vertikal)
   ========================================= */
.analysis-grid .charts-placeholder {
    flex-direction: column; /* Khusus kotak di sebelah metrik, jadikan atas-bawah */
    gap: 30px;
    padding: 30px;
    justify-content: flex-start;
}

.analysis-grid .project-chart {
    max-width: 100%; /* Membiarkan gambar atas membentang penuh 100% lebar kotak */
}

/* Kotak Metrik (Major Assumption, dll) */
.side-metrics { display: flex; flex-direction: column; gap: 20px; }
.metric-box { 
    padding: 25px; border-radius: 20px; background: rgba(255, 255, 255, 0.03); 
    border: 1px solid rgba(255, 255, 255, 0.08); backdrop-filter: blur(10px);
}
.metric-box h4 { font-size: 16px; font-weight: 600; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 12px; }
.metric-box ul { padding-left: 20px; font-size: 14px; color: #cbd5e1; }
.metric-box li { margin-bottom: 6px; }

/* Teks dalam Brief Analysis */
.glass-card h4 { font-size: 20px; font-weight: 600; margin-bottom: 15px; }
.glass-card p { font-size: 15px; color: #e2e8f0; margin-bottom: 15px; text-align: justify; }

/* =========================================
   FOOTER
   ========================================= */
.footer { 
    padding: 30px 0; margin-top: 60px; border-top: 1px solid rgba(255,255,255,0.08); 
    text-align: center; color: #64748b; font-size: 14px;
}
.footer-links a { color: #94a3b8; text-decoration: none; margin: 0 15px; transition: color 0.3s; }
.footer-links a:hover { color: #1abc9c; }

/* =========================================
   MOBILE RESPONSIVENESS (Penyempurnaan Layar HP)
   ========================================= */
@media (max-width: 768px) {
    /* 1. Header & Navigasi (Lebih Rapat) */
    .header { padding: 15px 0; margin-bottom: 25px; }
    .header-content { flex-direction: column; gap: 12px; }
    .nav-list { gap: 15px; flex-wrap: wrap; justify-content: center; }
    .nav-link { font-size: 13px; }

    /* 2. Ukuran Judul (Disesuaikan agar pas) */
    .hero-title { font-size: 30px; margin-bottom: 25px; }
    .section-title { font-size: 24px; margin-bottom: 25px; }
    .card-title, .project-title { font-size: 20px; margin-bottom: 10px; }
    
    /* Memaksa Judul Kotak lebih proporsional */
    .glass-card h3, .glass-card h4 { 
        font-size: 19px !important; 
        margin-bottom: 15px !important; 
    }

    /* 3. Ukuran Teks Paragraf (KUNCI: Dibesarkan agar mudah dibaca) */
    p, .project-description, .glass-card p, .metric-box ul { 
        font-size: 15px !important; /* Memaksa teks membesar */
        line-height: 1.6 !important; /* Jarak antar baris yang ideal di HP */
    }

    /* 4. Mengurangi Ruang Kosong / Gap (KUNCI: Membuat tampilan padat) */
    .container { padding: 0 15px; }
    .projects-grid { gap: 20px; } /* Jarak antar kotak proyek diperkecil */
    .analysis-grid { grid-template-columns: 1fr; gap: 20px; margin-bottom: 20px; }
    
    /* Memaksa padding dan margin dalam kotak agar lebih rapat */
    .glass-card { 
        padding: 20px !important; 
        margin-bottom: 20px !important; 
        margin-top: 25px !important; /* Menimpa margin-top 50px yang renggang di HTML */
    }
    .metric-box { padding: 20px; margin-bottom: 15px; }
    
    /* 5. Penyempurnaan Gambar Grafik di HP */
    .charts-placeholder, 
    .analysis-grid .charts-placeholder {
        flex-direction: column; 
        padding: 15px;
        gap: 15px;
    }
    .project-chart, 
    .analysis-grid .project-chart {
        max-width: 100%; 
    }

    /* 6. Footer (Lebih Rapat ke Atas) */
    .footer { margin-top: 30px; padding: 20px 0; font-size: 13px; }
}