@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600;700&display=swap');

:root {
    --primary-blue: #1c3384;
    --secondary-blue: #2a4ac2;
    --text-dark: #2d3748;
    --text-light: #4a5568;
    --white: #ffffff;
    --bg-light: #f8f9fa;
    --shadow-sm: 0 4px 6px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 10px 15px rgba(0, 0, 0, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
    scroll-behavior: smooth;
}

body {
    color: var(--text-dark);
    line-height: 1.6;
    background-color: var(--bg-light);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Header & Navigasi - Glassmorphism Effect */
header {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 15px 20px;
}

/* --- FIX LOGO "GEDE" (Anti Mikroskop) --- */
.logo a {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 50px; /* Tinggi navbar */
    width: 220px; /* Lebar area logo, bisa lu gedein/kecilin angkanya kalo kurang pas */
    overflow: hidden; /* Ini jurus buat motong background putih yang luber */
}

.logo img {
    width: 100%;
    height: 350%; /* Kita tarik gambarnya 3.5x lipat lebih tinggi */
    object-fit: cover; /* Pasin ke area box */
    object-position: center; /* Fokus nyorot ke bagian tengah (teks logonya) */
    transition: transform 0.3s ease;
}

.logo a:hover img {
    transform: scale(1.05); /* Efek zoom dikit pas disentuh mouse */
}

nav ul {
    list-style: none;
    display: flex;
    gap: 25px;
    flex-wrap: wrap;
}

nav ul li a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 600;
    transition: color 0.3s ease;
    font-size: 0.95rem;
    position: relative;
}

nav ul li a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    display: block;
    margin-top: 5px;
    right: 0;
    background: var(--primary-blue);
    transition: width 0.3s ease;
}

nav ul li a:hover {
    color: var(--primary-blue);
}

nav ul li a:hover::after {
    width: 100%;
    left: 0;
    background: var(--primary-blue);
}

/* Tombol Global */
.btn {
    display: inline-block;
    padding: 12px 32px;
    background: linear-gradient(135deg, var(--primary-blue), var(--secondary-blue));
    color: var(--white);
    text-decoration: none;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(28, 51, 132, 0.3);
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(28, 51, 132, 0.4);
}

/* Hero Section (Khusus Beranda) */
#beranda {
    background: linear-gradient(rgba(28, 51, 132, 0.8), rgba(15, 23, 42, 0.9)), url('https://images.unsplash.com/photo-1519494026892-80bbd2d6fd0d?auto=format&fit=crop&q=80') center/cover;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    padding: 0 20px;
    animation: fadeIn 1s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    font-weight: 700;
    line-height: 1.2;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.hero-content p {
    font-size: 1.1rem;
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    color: #e2e8f0;
}

.hero-content .btn {
    margin: 5px;
}

.hero-content .btn:nth-child(2) {
    background: transparent;
    border: 2px solid var(--white);
    box-shadow: none;
}

.hero-content .btn:nth-child(2):hover {
    background: var(--white);
    color: var(--primary-blue);
}

/* Layout Konten Halaman Dalam */
main {
    flex: 1;
    padding: 120px 20px 60px 20px;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

.page-title {
    text-align: center;
    color: var(--primary-blue);
    font-size: 2.5rem;
    margin-bottom: 40px;
    font-weight: 700;
}

.content-box {
    background-color: var(--white);
    padding: 40px;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    font-size: 1.05rem;
    margin-bottom: 30px;
    transition: transform 0.3s ease;
}

/* Grid Sistem & Kartu Profesional dg Gambar */
.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.card {
    background-color: var(--white);
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    cursor: default;
    overflow: hidden; /* Round corners affect image too */
    display: flex;
    flex-direction: column;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-md);
}

.card-image {
    width: 100%;
    height: 180px; 
    object-fit: cover;
    border-bottom: 2px solid var(--secondary-blue); /* Optional accent */
}

.card-body {
    padding: 25px;
    flex-grow: 1;
    text-align: center;
}

.card-body h2, .card-body h3 {
    color: var(--primary-blue);
    margin-bottom: 15px;
    font-size: 1.4rem;
    font-weight: 600;
}

.card-body p {
    color: var(--text-light);
    font-size: 0.95rem;
}

/* Formulir Kontak */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text-dark);
}

.form-group input, .form-group textarea {
    width: 100%;
    padding: 14px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 1rem;
    background-color: var(--bg-light);
    transition: all 0.3s ease;
}

.form-group input:focus, .form-group textarea:focus {
    outline: none;
    border-color: var(--primary-blue);
    background-color: var(--white);
    box-shadow: 0 0 0 3px rgba(28, 51, 132, 0.1);
}

/* Footer */
footer {
    background-color: #0f172a;
    color: #cbd5e1;
    text-align: center;
    padding: 30px 20px;
    margin-top: auto;
    font-size: 0.9rem;
}

/* Tombol WhatsApp Melayang - Animasi Pulse */
.float-wa {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 30px;
    right: 30px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    box-shadow: 0 4px 14px rgba(37, 211, 102, 0.4);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.5); }
    70% { box-shadow: 0 0 0 15px rgba(37, 211, 102, 0); }
    100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

.float-wa:hover {
    transform: scale(1.1);
    animation: none;
}

.float-wa svg {
    width: 35px;
    height: 35px;
    fill: white;
}

/* --- PENGATURAN HAMBURGER MENU Mulus (MOBILE) --- */
.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 6px;
    z-index: 1001; 
}

.menu-toggle .bar {
    width: 28px;
    height: 3px;
    background-color: var(--primary-blue);
    border-radius: 3px;
    transition: all 0.4s ease-in-out;
}

/* Responsif Layar HP */
@media (max-width: 768px) {
    .hero-content h1 { font-size: 2.2rem; }
    
    .menu-toggle { display: flex; }

    nav {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: rgba(255, 255, 255, 0.98);
        box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
        clip-path: polygon(0 0, 100% 0, 100% 0, 0 0); 
        transition: clip-path 0.4s ease-in-out;
    }

    nav.active {
        clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%); 
    }

    nav ul {
        flex-direction: column;
        width: 100%;
        gap: 0;
        padding: 10px 0;
    }

    nav ul li a {
        display: block;
        padding: 15px 25px;
        font-size: 1.1rem;
        border-bottom: 1px solid #f1f5f9;
    }
    
    nav ul li a::after { display: none; }

    .menu-toggle.active .bar:nth-child(1) {
        transform: translateY(9px) rotate(45deg);
    }
    .menu-toggle.active .bar:nth-child(2) {
        opacity: 0;
    }
    .menu-toggle.active .bar:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg);
    }

    .float-wa {
        width: 50px;
        height: 50px;
        bottom: 20px;
        right: 20px;
    }
    .float-wa svg { width: 28px; height: 28px; }
}