/* Pastikan ini ada di paling atas */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&display=swap');

:root {
    --primary-color: #005A9C; /* Biru korporat */
    --secondary-color: #007BFF; /* Biru lebih cerah untuk aksen */
    --background-light: #f8f9fa;
    --background-white: #ffffff;
    --text-dark: #212529;
    --text-light: #6c757d;
    --border-color: #dee2e6;
    --box-shadow: 0 4px 25px rgba(0, 0, 0, 0.08);
    --breakpoint-md: 768px; /* Contoh breakpoint untuk tablet/mobile */
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
    font-family: 'Poppins', sans-serif;
    color: var(--text-dark);
    background-color: var(--background-white);
    line-height: 1.7;
    overflow-x: hidden; /* Mencegah scroll horizontal yang tidak diinginkan */
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ================== UTILITIES ================== */
.btn {
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-block;
    border: 1px solid transparent;
    text-align: center; /* Menyelaraskan teks di tengah untuk responsif */
}
.btn-primary {
    background-color: var(--primary-color);
    color: #fff;
}
.btn-primary:hover {
    background-color: #004578;
}
.btn-secondary {
    background-color: transparent;
    color: var(--primary-color);
    border-color: var(--primary-color);
}
.btn-secondary:hover {
    background-color: var(--primary-color);
    color: #fff;
}
.btn-full { width: 100%; }

/* ================== HEADER & NAVIGASI ================== */
.main-header {
    background: var(--background-white);
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}
.main-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}
.logo {
    font-size: 1.4rem; /* Sedikit lebih besar */
    font-weight: 700;
    color: var(--text-dark);
    text-decoration: none;
    flex-shrink: 0; /* Mencegah logo mengecil pada mobile */
}
.nav-links {
    display: flex;
    list-style: none;
    gap: 30px;
    margin: 0; /* Pastikan margin 0 */
}
.nav-links a {
    text-decoration: none;
    color: var(--text-light);
    font-weight: 500;
    transition: color 0.3s ease;
    padding: 5px 0; /* Untuk area klik yang lebih besar */
}
.nav-links a:hover {
    color: var(--primary-color);
}
.client-login-btn {
    margin-left: 20px; /* Jarak antara nav-links dan tombol */
    flex-shrink: 0;
}

/* Menu Toggle untuk Mobile */
.menu-toggle {
    display: none; /* Sembunyikan di desktop */
    background: none;
    border: none;
    font-size: 1.8rem;
    color: var(--text-dark);
    cursor: pointer;
    z-index: 1001; /* Pastikan di atas nav-links saat aktif */
}

/* ================== SECTIONS ================== */
section { padding: 80px 0; }
.section-header { text-align: center; margin-bottom: 50px; }
.section-header h2 { font-size: 2.5rem; font-weight: 600; margin-bottom: 15px; line-height: 1.2; } /* Sedikit lebih tinggi */
.section-header p { font-size: 1.1rem; color: var(--text-light); max-width: 700px; margin: 0 auto; } /* Max-width lebih besar */

.hero-section {
    background-color: var(--background-light);
    text-align: center;
    padding: 100px 0 120px; /* Padding bawah lebih besar */
}
.hero-section h1 { 
    font-size: 3.5rem; /* Lebih besar */
    font-weight: 700; 
    max-width: 900px; /* Lebih lebar */
    margin: 0 auto 25px; 
    line-height: 1.2;
}
.hero-section .subtitle { 
    font-size: 1.3rem; /* Lebih besar */
    max-width: 800px; 
    margin: 0 auto 40px; 
    color: var(--text-light); 
}

.services-section {
    background-color: var(--background-white);
}
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}
.service-card {
    background: var(--background-white);
    padding: 35px; /* Sedikit lebih besar */
    border-radius: 12px;
    border: 1px solid var(--border-color);
    text-align: center;
    transition: all 0.3s ease;
    display: flex; /* Untuk layout ikon/teks lebih baik */
    flex-direction: column;
    justify-content: center;
    align-items: center;
}
.service-card:hover {
    transform: translateY(-8px); /* Efek hover lebih kentara */
    box-shadow: var(--box-shadow);
}
.service-icon { 
    font-size: 3.5rem; /* Lebih besar */
    margin-bottom: 25px; 
    color: var(--primary-color); /* Warna ikon */
}
.service-card h3 { 
    margin-bottom: 15px; 
    font-size: 1.5rem; /* Lebih besar */
    font-weight: 600;
}
.service-card p { 
    color: var(--text-light); 
    font-size: 1rem;
}

.about-section { 
    background-color: var(--background-light); 
    text-align: center; 
}
.about-content {
    margin-top: 40px;
}
.about-content ul {
    list-style: none;
    padding: 0;
    margin: 30px auto 0;
    max-width: 600px;
    display: grid;
    grid-template-columns: 1fr; /* Satu kolom di mobile */
    gap: 15px;
    text-align: left;
}
.about-content ul li {
    background: var(--background-white);
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    font-size: 1rem;
    font-weight: 500;
    color: var(--primary-color);
}


/* Contact Section */
.contact-section {
    background-color: var(--background-white);
}
.contact-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}
.contact-info-card {
    background: var(--background-light);
    padding: 30px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    text-align: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}
.contact-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}
.contact-info-card h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
}
.contact-info-card p {
    color: var(--text-light);
    margin-bottom: 5px;
}
.contact-form-wrapper {
    max-width: 600px;
    margin: 60px auto 0;
    padding: 40px;
    background: var(--background-light);
    border-radius: 12px;
    box-shadow: var(--box-shadow);
}
.contact-form-wrapper h3 {
    text-align: center;
    margin-bottom: 30px;
    font-size: 1.8rem;
    color: var(--text-dark);
}
.contact-form .form-group {
    margin-bottom: 20px;
}
.contact-form .form-control {
    width: 100%;
    padding: 15px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
}
.contact-form .form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0,90,156,0.15);
}


/* ================== FOOTER ================== */
.main-footer {
    background-color: var(--text-dark);
    color: #fff;
    padding: 60px 0 30px; /* Padding lebih besar */
    text-align: center;
}
.footer-content { margin-bottom: 40px; } /* Margin lebih besar */
.footer-content h3 { margin-bottom: 20px; font-size: 1.8rem; } /* Lebih besar */
.footer-content p { color: rgba(255,255,255,0.8); margin-bottom: 8px; font-size: 1rem; } /* Warna dan ukuran teks */
.social-links {
    margin-top: 20px;
}
.social-icon {
    color: #fff;
    font-size: 1.5rem;
    margin: 0 10px;
    transition: color 0.3s ease;
}
.social-icon:hover {
    color: var(--secondary-color);
}
.footer-bottom p { font-size: 0.9rem; color: rgba(255,255,255,0.6); margin-top: 20px; }

/* ================== HALAMAN LOGIN ADMIN ================== */
.login-page-body {
    background-color: var(--background-light);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}
.login-container { width: 100%; max-width: 450px; padding: 20px; }
.login-card {
    background-color: var(--background-white);
    padding: 40px;
    border-radius: 12px;
    box-shadow: var(--box-shadow);
    border: 1px solid var(--border-color);
}
.login-header { text-align: center; margin-bottom: 35px; }
.logo-link {
    width: 70px; height: 70px; /* Ukuran lebih besar */
    background-color: var(--primary-color); color: #fff;
    display: flex; align-items: center; justify-content: center;
    border-radius: 50%;
    font-size: 2.2rem; font-weight: 700;
    margin: 0 auto 20px;
    text-decoration: none;
}
.login-header h1 { font-size: 2rem; font-weight: 600; color: var(--text-dark); margin: 0; }
.login-header p { color: var(--text-light); font-size: 0.95rem; margin-top: 8px; }
.form-group { margin-bottom: 20px; text-align: left; }
.form-group label { font-size: 0.9rem; font-weight: 500; color: var(--text-dark); margin-bottom: 8px; display: block; }
.form-control { width: 100%; padding: 14px; font-size: 1rem; border: 1px solid var(--border-color); border-radius: 8px; }
.form-control:focus { outline: none; border-color: var(--primary-color); box-shadow: 0 0 0 3px rgba(0,90,156,0.15); }
.login-footer { text-align: center; margin-top: 30px; }
.login-footer p { font-size: 0.85rem; color: var(--text-light); }

/* ================== HALAMAN LOGIN KLIEN ================== */
.page-section {
    padding: 80px 0;
    background-color: var(--background-light);
}
.login-container-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 50vh;
}
/* Menggunakan kembali style dari .login-card */
.login-icon {
    font-size: 3rem;
    margin-bottom: 20px;
    color: var(--primary-color);
}

/* ================== HALAMAN LOGIN ADMIN (RAHASIA) ================== */
.login-icon-secure {
    font-size: 3rem;
    margin-bottom: 20px;
    color: #dc3545; /* Warna merah untuk menandakan akses terbatas */
}

.alert {
    padding: 1rem;
    margin-bottom: 1rem;
    border: 1px solid transparent;
    border-radius: .375rem;
    font-size: 0.95rem;
}

.alert-danger {
    color: #842029;
    background-color: #f8d7da;
    border-color: #f5c2c7;
}
/* Tambahan alert success */
.alert-success {
    color: #0f5132;
    background-color: #d1e7dd;
    border-color: #badbcc;
}
/* Tambahan alert info */
.alert-info {
    color: #055160;
    background-color: #cff4fc;
    border-color: #b6effb;
}


/* ================== RESPONSIVE DESIGN ================== */

/* Medium devices (tablets, 768px and up) */
@media (max-width: 992px) {
    .main-nav {
        flex-wrap: wrap;
        height: auto;
        padding: 15px 0;
    }
    .logo {
        width: 100%;
        text-align: center;
        margin-bottom: 15px;
    }
    .nav-links {
        flex-direction: column;
        width: 100%;
        gap: 10px;
        display: none; /* Sembunyikan secara default pada mobile */
        text-align: center;
        padding-top: 10px;
        border-top: 1px solid var(--border-color);
    }
    .nav-links.active {
        display: flex; /* Tampilkan saat menu-toggle aktif */
    }
    .nav-links li {
        width: 100%;
    }
    .nav-links a {
        display: block;
        padding: 10px 0;
        width: 100%;
    }
    .client-login-btn {
        width: 100%;
        margin-left: 0;
        margin-top: 15px;
        display: none; /* Sembunyikan secara default pada mobile */
    }
    .client-login-btn.active {
        display: inline-block; /* Tampilkan saat menu-toggle aktif */
    }
    .menu-toggle {
        display: block; /* Tampilkan tombol hamburger */
        position: absolute;
        right: 20px;
        top: 20px;
    }

    .hero-section h1 { font-size: 2.5rem; }
    .hero-section .subtitle { font-size: 1.1rem; }
    .section-header h2 { font-size: 2rem; }
    .section-header p { font-size: 1rem; }

    .service-card { padding: 25px; }
    .service-icon { font-size: 3rem; }
    .service-card h3 { font-size: 1.3rem; }

    .contact-info-card { padding: 25px; }
    .contact-form-wrapper { padding: 30px; }
}

/* Small devices (phones, 576px and down) */
@media (max-width: 576px) {
    .container { padding: 0 15px; }
    section { padding: 60px 0; }
    .section-header { margin-bottom: 30px; }
    .section-header h2 { font-size: 1.8rem; }
    .section-header p { font-size: 0.95rem; }

    .hero-section { padding: 80px 0 100px; }
    .hero-section h1 { font-size: 2rem; margin-bottom: 15px; }
    .hero-section .subtitle { font-size: 1rem; margin-bottom: 25px; }
    .btn { padding: 10px 20px; font-size: 0.9rem; }

    .services-grid { grid-template-columns: 1fr; } /* Satu kolom di ponsel */
    .service-card { padding: 20px; }
    .service-icon { font-size: 2.5rem; margin-bottom: 15px; }
    .service-card h3 { font-size: 1.2rem; }

    .about-content ul li { padding: 15px; font-size: 0.95rem; }

    .contact-info-grid { grid-template-columns: 1fr; } /* Satu kolom di ponsel */
    .contact-info-card { padding: 20px; }
    .contact-icon { font-size: 2rem; }
    .contact-info-card h3 { font-size: 1.2rem; }

    .main-footer { padding: 40px 0 20px; }
    .footer-content h3 { font-size: 1.5rem; }
    .footer-content p { font-size: 0.9rem; }
    .social-icon { font-size: 1.3rem; }
    .footer-bottom p { font-size: 0.8rem; }

    /* Login Page specific */
    .login-card { padding: 30px; }
    .login-header h1 { font-size: 1.5rem; }
    .logo-link { width: 50px; height: 50px; font-size: 1.8rem; }
}