@charset "utf-8";
/* CSS Document */

:root {
    --primary: #2c3e50;
    --secondary: #3498db;
    --accent: #27ae60;
    --white: #ffffff;
    --text: #333333;
    --light: #f4f7f6;
}

* { 
    margin: 0; 
    padding: 0; 
    box-sizing: border-box; 
    font-family: 'Segoe UI', sans-serif; 
}

body { 
    background-color: var(--white); 
    color: var(--text); 
    scroll-behavior: smooth; 
}

/* NAVBAR STRUCTURE */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 8%;
    background: var(--white);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.logo { 
    font-size: 1.8rem; 
    font-weight: bold; 
    color: var(--primary); 
}

/* MAIN NAVIGATION LINKS */
.nav-links {
    list-style: none;
    display: flex;
    align-items: center;
    padding: 0;
    margin: 0;
    gap: 30px; /* PEMBAIKAN: Memberi jarak standard antara elemen menu utama */
}

.nav-links li {
    display: inline-block;
}

.nav-links li a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: color 0.2s ease-in-out;
}

.nav-links li a:hover {
    color: var(--secondary);
}

/* DROPDOWN LOGIC & PAKSI PACKING */
.nav-links li.dropdown {
    position: relative;
}

/* Mengatasi masalah 'deadzone group gap' supaya sub-menu tidak tertutup mengejut */
.nav-links li.dropdown::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    height: 15px;
    display: none;
}

.nav-links li.dropdown:hover::after {
    display: block;
}

.nav-links .dropdown-content {
    display: none;
    position: absolute;
    top: calc(100% + 10px); /* PEMBAIKAN: Jarak terapung yang lebih kemas di bawah navbar */
    left: 50%;
    transform: translateX(-50%); /* PEMBAIKAN: Kotak keluar seimbang di tengah-tengah (center-aligned) */
    background-color: var(--white);
    min-width: 200px;
    box-shadow: 0px 8px 24px rgba(0,0,0,0.12);
    z-index: 9999;
    list-style: none;
    padding: 8px 0;
    margin: 0;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

.nav-links .dropdown-content li {
    display: block;
    width: 100%;
}

.nav-links .dropdown-content li a {
    color: #2d3748 !important;
    padding: 12px 20px;
    text-decoration: none;
    display: block;
    font-size: 0.95rem;
    font-weight: normal;
    text-align: left;
    transition: background 0.2s ease, color 0.2s ease;
}

.nav-links .dropdown-content li a:hover {
    background-color: var(--light);
    color: var(--secondary) !important; /* MENGUTAMAKAN: Selaras dengan tema warna sekunder anda */
}

.nav-links li.dropdown:hover .dropdown-content {
    display: block;
}

/* BUTTON LOGIN NAV */
.btn-login-nav {
    background: var(--primary);
    color: white !important;
    padding: 10px 25px;
    border-radius: 50px;
    transition: background 0.2s ease-in-out !important;
}

.btn-login-nav:hover {
    background: var(--secondary);
    color: white !important;
}

/* HERO SECTION */
.hero {
    display: flex;
    align-items: center;
    padding: 80px 8%;
    background: linear-gradient(135deg, #f4f7f6 0%, #e9eeee 100%);
    min-height: 80vh;
}

.hero-content { 
    flex: 1; 
}

.hero-content h1 { 
    font-size: 3.5rem; 
    color: var(--primary); 
    line-height: 1.2; 
    margin-bottom: 20px; 
}

.hero-content p { 
    font-size: 1.1rem; 
    color: #666666; 
    margin-bottom: 30px; 
    max-width: 500px; 
}

.hero-buttons { 
    display: flex; 
    gap: 15px; 
}

.btn-primary { 
    background: var(--secondary); 
    color: white; 
    padding: 15px 30px; 
    border: none; 
    border-radius: 5px; 
    cursor: pointer; 
    font-size: 1rem; 
    font-weight: bold; 
    transition: background 0.2s;
}

.btn-primary:hover {
    background: #2980b9;
}

.btn-secondary { 
    background: transparent; 
    border: 2px solid var(--secondary); 
    color: var(--secondary); 
    padding: 15px 30px; 
    border-radius: 5px; 
    cursor: pointer; 
    font-weight: bold; 
    transition: all 0.2s;
}

.btn-secondary:hover {
    background: var(--secondary);
    color: white;
}

/* FEATURES SECTION */
.features { 
    padding: 100px 8%; 
}

.section-title { 
    text-align: center; 
    margin-bottom: 60px; 
    color: var(--primary);
}

.features-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); 
    gap: 30px; 
}

.feature-card {
    text-align: center;
    padding: 40px;
    background: var(--light);
    border-radius: 15px;
    transition: 0.3s ease;
}

.feature-card:hover { 
    transform: translateY(-10px); 
    box-shadow: 0 10px 20px rgba(0,0,0,0.05); 
}

.feature-card i { 
    font-size: 3rem; 
    color: var(--secondary); 
    margin-bottom: 20px; 
}

/* LOGIN MODAL OVERLAY */
.login-overlay {
    display: none;
    position: fixed;
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%;
    background: rgba(44, 62, 80, 0.9);
    justify-content: center; 
    align-items: center;
    z-index: 2000;
}

.login-box {
    background: white;
    padding: 40px;
    border-radius: 15px;
    width: 400px;
    position: relative;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

.close-login { 
    position: absolute; 
    top: 15px; 
    right: 20px; 
    font-size: 25px; 
    cursor: pointer; 
    color: #999999; 
    transition: color 0.2s;
}

.close-login:hover {
    color: #333333;
}

.login-header { 
    text-align: center; 
    margin-bottom: 30px; 
}

.login-header i { 
    font-size: 3rem; 
    color: var(--primary); 
    margin-bottom: 10px; 
}

.input-group { 
    margin-bottom: 20px; 
}

.input-group label { 
    display: block; 
    margin-bottom: 8px; 
    font-weight: bold; 
    color: var(--primary);
}

.input-group input { 
    width: 100%; 
    padding: 12px; 
    border: 1px solid #dddddd; 
    border-radius: 8px; 
    font-size: 1rem;
}

.input-group input:focus {
    outline: none;
    border-color: var(--secondary);
}

.btn-submit-login { 
    width: 100%; 
    padding: 12px; 
    background: var(--secondary); 
    color: white; 
    border: none; 
    border-radius: 8px; 
    font-weight: bold; 
    cursor: pointer; 
    font-size: 1rem; 
    transition: background 0.2s;
}

.btn-submit-login:hover {
    background: #2980b9;
}

.forgot-pass { 
    display: block; 
    text-align: center; 
    margin-top: 15px; 
    color: #888888; 
    text-decoration: none; 
    font-size: 0.9rem; 
}

.forgot-pass:hover {
    color: var(--secondary);
}

/* FOOTER LANDING */
.landing-footer { 
    text-align: center; 
    padding: 40px; 
    background: var(--primary); 
    color: white; 
}