/* --- IMPORT FONT --- */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&display=swap');

/* --- VARIABEL WARNA PREMIUM (UPDATED: MA GREEN THEME) --- */
:root {
    --primary-green: #006400; /* Hijau Mahkamah Agung (Darker) */
    --primary-light: #4caf50; /* Hijau Lebih Terang */
    --accent-teal: #66bb6a; /* Hijau Segar (Menggantikan Teal) */
    --bg-color: #f8fbf9;
    --text-dark: #1e293b;
    --text-gray: #64748b;
    --white: #ffffff;
    
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.05), 0 2px 4px -1px rgba(0,0,0,0.03);
    --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.05), 0 4px 6px -2px rgba(0,0,0,0.025);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.05), 0 10px 10px -5px rgba(0, 0, 0, 0.01);
    --shadow-glow: 0 10px 30px -10px rgba(0, 100, 0, 0.3); /* Hijau MA */
    --shadow-colored: 0 20px 40px -5px rgba(0, 100, 0, 0.2);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
    scroll-behavior: smooth;
}

/* --- BACKGROUND GRADIENT HIJAU MA + PUTIH --- */
body {
    background-color: #ffffff;
    background-image: 
        /* Gradien Radial Hijau MA di pojok kiri atas */
        radial-gradient(circle at 10% 10%, rgba(0, 100, 0, 0.15) 0%, transparent 50%),
        /* Gradien Radial Hijau MA di pojok kanan bawah */
        radial-gradient(circle at 90% 90%, rgba(0, 100, 0, 0.08) 0%, transparent 50%),
        /* Sentuhan putih di tengah agar bersih */
        radial-gradient(circle at 50% 50%, rgba(255,255,255, 0.8) 0%, transparent 50%);
    color: var(--text-dark);
    display: flex;
    flex-direction: column;
    line-height: 1.6;
    min-height: 100vh;
}

/* --- NAVBAR --- */
header {
    background: rgba(255, 255, 255, 0.9); /* Sedikit transparan */
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(0, 100, 0, 0.1); /* Border halus hijau */
    box-shadow: var(--shadow-sm);
    padding: 1rem 6%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 1000;
}

.logo { 
    font-weight: 800; font-size: 1.8rem; color: var(--primary-green); 
    letter-spacing: -0.5px;
    background: linear-gradient(135deg, var(--primary-green), var(--primary-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

nav ul { display: flex; list-style: none; gap: 10px; align-items: center; }
nav a { 
    text-decoration: none; color: var(--text-dark); font-weight: 500; 
    font-size: 0.95rem; transition: color 0.3s ease; position: relative;
    display: block;
    padding: 10px 0;
}
nav a::after {
    content: ''; position: absolute; width: 0; height: 2px;
    bottom: -4px; left: 0; background-color: var(--primary-green);
    transition: width 0.3s ease;
}
nav a:hover { color: var(--primary-green); }
nav a:hover::after { width: 100%; }

/* --- DROPDOWN --- */
.dropdown { position: relative; }

/* Logika Javascript menggunakan class .active */
.dropdown.active .dropdown-content {
    display: block; 
    animation: fadeInDown 0.1s ease;
}

@keyframes fadeInDown { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: translateY(0); } }

.dropdown-content {
    display: none; 
    position: absolute; 
    top: calc(100% + 10px); 
    left: 0;
    background: rgba(255,255,255,0.98); 
    backdrop-filter: blur(10px);
    min-width: 220px; 
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    border-radius: 12px; 
    padding: 10px 0; 
    z-index: 99999; 
    border: 1px solid rgba(0,0,0,0.05);
}

/* Invisible Bridge */
.dropdown-content::before {
    content: "";
    position: absolute;
    top: -10px; 
    left: 0;
    width: 100%; 
    height: 10px; 
    background: transparent; 
}

.dropdown-content li a {
    padding: 12px 20px; display: block; font-size: 0.9rem; color: #555; text-align: left;
}
.dropdown-content li a:hover {
    background-color: #f1f8f4; color: var(--primary-green); padding-left: 25px; /* Background hijau sangat muda saat hover */
}

/* --- SECTIONS --- */
section { padding: 100px 10%; position: relative; overflow: hidden; } 
h2 { 
    text-align: center; color: var(--primary-green); font-size: 2.5rem; 
    margin-bottom: 15px; font-weight: 700;
}
.section-subtitle { 
    text-align: center; color: var(--text-gray); margin-bottom: 60px; 
    font-size: 1.1rem; max-width: 600px; margin-left: auto; margin-right: auto;
}

/* --- HERO SECTION --- */
.hero-section {
    min-height: 90vh; display: flex; flex-direction: column;
    align-items: center; justify-content: center; text-align: center;
    padding: 50px 20px; position: relative;
}
/* Background glow hero menggunakan Hijau MA */
.hero-section::before {
    content: ''; position: absolute; width: 600px; height: 600px;
    background: radial-gradient(circle, var(--primary-light) 0%, transparent 70%);
    opacity: 0.1; filter: blur(80px); border-radius: 50%; z-index: -1; top: 20%; right: 20%;
}
.hero-section::after {
    content: ''; position: absolute; width: 500px; height: 500px;
    background: radial-gradient(circle, var(--primary-green) 0%, transparent 70%);
    opacity: 0.08; filter: blur(80px); border-radius: 50%; z-index: -1; bottom: -50px; left: -100px;
}

.hero-section h1 { 
    font-size: 3rem; color: var(--primary-green); margin-bottom: -15px; 
    line-height: 1.1; letter-spacing: -1px; font-weight: 800;
}
.hero-section h2 { 
    font-size: 3rem; color: var(--accent-teal); margin-bottom: 30px; 
    font-weight: 600; letter-spacing: 3px;
}
.hero-desc { 
    max-width: 650px; color: var(--text-gray); margin-bottom: 45px; 
    font-size: 1.1rem; line-height: 1.8;
}

.tracking-box {
    background: rgba(255, 255, 255, 0.9); padding: 8px; border-radius: 80px; 
    box-shadow: var(--shadow-xl); border: 1px solid rgba(255,255,255,0.6);
    display: flex; width: 100%; max-width: 600px; transition: transform 0.3s ease;
}
.tracking-box:focus-within { transform: translateY(-3px); box-shadow: var(--shadow-glow); }
.tracking-box input { 
    flex: 1; border: none; outline: none; padding: 20px 35px; font-size: 1.1rem; 
    color: var(--text-dark); background: transparent;
}
.tracking-box button {
    background: linear-gradient(135deg, var(--primary-green), var(--primary-light)); color: white; border: none; 
    padding: 18px 50px; border-radius: 60px; font-weight: 600; font-size: 1rem;
    cursor: pointer; box-shadow: 0 4px 15px rgba(0, 100, 0, 0.3); transition: 0.3s;
}
.tracking-box button:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(0, 100, 0, 0.4); }

/* --- CARDS --- */
.services-container { display: flex; gap: 40px; flex-wrap: wrap; justify-content: center; }
.service-card {
    background: rgba(255, 255, 255, 0.7); padding: 40px 30px; border-radius: 24px; 
    width: 320px; text-align: center; box-shadow: var(--shadow-md);
    border: 1px solid rgba(0,0,0,0.02); transition: all 0.4s ease; position: relative; overflow: hidden;
}
.service-card:hover { transform: translateY(-15px); background: var(--white); box-shadow: var(--shadow-xl); }
.service-card::after {
    content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 4px;
    background: linear-gradient(90deg, var(--primary-green), var(--primary-light));
    transform: scaleX(0); transition: 0.3s; transform-origin: left;
}
.service-card:hover::after { transform: scaleX(1); }

.icon-box {
    width: 80px; height: 80px; border-radius: 22px; margin: 0 auto 25px;
    display: flex; align-items: center; justify-content: center; font-size: 2.2rem; color: white;
    box-shadow: 0 10px 20px -5px rgba(0,0,0,0.2);
}
/* Ikon hijau tema MA */
.icon-green { background: linear-gradient(135deg, #006400, #4caf50); }
.icon-blue { background: linear-gradient(135deg, #1e3a8a, #2563eb); }
.icon-purple { background: linear-gradient(135deg, #6b21a8, #9333ea); }

.service-card h3 { margin-bottom: 12px; color: var(--text-dark); font-size: 1.3rem; }
.service-card p { font-size: 0.95rem; color: var(--text-gray); line-height: 1.7; }

/* --- ALUR --- */
.process-container {
    display: flex; justify-content: space-between; position: relative;
    margin-top: 60px; flex-wrap: wrap; gap: 30px;
}
.process-container::before {
    content: ''; position: absolute; top: 30px; left: 50px; right: 50px;
    height: 3px; background: #e2e8f0; z-index: 0;
}
.step { position: relative; z-index: 1; text-align: center; flex: 1; min-width: 150px; }
.step-circle {
    width: 65px; height: 65px; background: var(--white); border: 4px solid var(--bg-color);
    box-shadow: var(--shadow-md); color: var(--primary-green); border-radius: 50%; margin: 0 auto 20px; 
    display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 1.5rem; transition: 0.3s;
}
.step:hover .step-circle {
    transform: scale(1.1); background: var(--primary-green); color: var(--white);
    box-shadow: 0 0 0 6px rgba(0, 100, 0, 0.1);
}
.step h4 { margin-bottom: 8px; font-size: 1.2rem; color: var(--text-dark); }
.step p { font-size: 0.9rem; color: var(--text-gray); }

/* --- FORM --- */
.apply-section { 
    background: linear-gradient(180deg, #f1f8f4 0%, #ffffff 100%); /* Gradien halus Hijau ke Putih */
    position: relative; 
}
.apply-section::before {
    content: ''; position: absolute; width: 100%; height: 100%;
    background-image: radial-gradient(#006400 0.3px, transparent 0.3px); /* Pola titik hijau MA */
    background-size: 20px 20px; opacity: 0.03; top: 0; left: 0;
    pointer-events: none !important; /* Penting agar form bisa diklik */
}

.form-wrapper { 
    display: flex; gap: 0; align-items: stretch; box-shadow: var(--shadow-xl); 
    border-radius: 30px; overflow: hidden; max-width: 1000px; margin: 0 auto; background: var(--white);
}
.form-left {
    flex: 1; background: linear-gradient(160deg, #006400 0%, #004d00 100%); /* Background Hijau Gelap MA */
    color: white;
    padding: 60px 40px; display: flex; flex-direction: column; justify-content: center;
}
.form-left h3 { font-size: 2rem; margin-bottom: 25px; line-height: 1.3; font-weight: 700; }
.checklist li { margin-bottom: 18px; list-style: none; display: flex; align-items: center; gap: 15px; font-size: 1rem; opacity: 0.9; }
.checklist li i { color: var(--primary-light); font-size: 1.2rem; }

.form-right { flex: 1.5; padding: 60px; background: var(--white); }
.form-group { margin-bottom: 25px; }
.form-group label { display: block; font-size: 0.9rem; margin-bottom: 10px; color: var(--text-dark); font-weight: 600; }
.form-group input, .form-group textarea {
    width: 100%; padding: 15px 20px; border: 2px solid #f1f5f9; border-radius: 12px; 
    outline: none; transition: all 0.3s ease; font-size: 1rem; color: var(--text-dark); background: #f8fafc;
}
.form-group input:focus, .form-group textarea:focus { 
    border-color: var(--primary-green); background: white;
    box-shadow: 0 0 0 4px rgba(0, 100, 0, 0.1);
}
.btn-submit {
    background: linear-gradient(135deg, var(--primary-green), var(--primary-light)); color: white; border: none; padding: 18px; 
    border-radius: 12px; cursor: pointer; font-weight: 700; width: 100%; font-size: 1.1rem; margin-top: 15px; 
    box-shadow: 0 10px 25px -5px rgba(0, 100, 0, 0.4); transition: 0.3s;
}
.btn-submit:hover { transform: translateY(-2px); box-shadow: 0 15px 30px -5px rgba(0, 100, 0, 0.5); }

/* --- KHUSUS MONITORING PAGE --- */
.monitoring-container {
    max-width: 800px; margin: 60px auto; background: var(--white); padding: 60px;
    border-radius: 24px; box-shadow: 0 20px 60px rgba(0,0,0,0.06); text-align: center; 
    border: 1px solid rgba(0,0,0,0.03); position: relative; overflow: hidden;
}
.monitoring-container::before {
    content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 8px;
    background: linear-gradient(90deg, var(--primary-green), var(--primary-light));
}
.monitoring-container h1 {
    font-size: 3.5rem !important; color: var(--primary-green); font-weight: 800;
    margin-bottom: 5px; line-height: 1.1; text-align: center;
}
.monitoring-container h2 {
    font-size: 3.5rem !important; color: var(--accent-teal); font-weight: 300;
    letter-spacing: 2px; text-transform: uppercase; margin-top: 0; text-align: center;
}

/* Responsif */
@media (max-width: 768px) {
    section { padding: 60px 5%; }
    .hero-section h1 { font-size: 2.5rem; }
    .services-container, .process-container { flex-direction: column; }
    .process-container::before { display: none; }
    .form-wrapper { flex-direction: column; border-radius: 20px; }
    .form-left, .form-right { padding: 40px 25px; }
    nav ul { display: none; }
}