/* --- Global Styles --- */
:root {
    --red-primary: #d32f2f;
    --red-hover: #b71c1c;
    --dark-blue: #0a192f;
    --text-dark: #333;
    --text-light: #777;
    --white: #ffffff;
    --bg-light: #f9f9f9;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--white);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* --- Navbar --- */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 5%;
    background: var(--white);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.navbar-left { display: flex; align-items: center; gap: 10px; }
.navbar-logo { height: 45px; border-radius: 5px; }
.logo { font-weight: 800; font-size: 1.2rem; color: var(--dark-blue); letter-spacing: 1px; }

.nav-links { display: flex; gap: 25px; align-items: center; }
.nav-links a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    font-size: 0.95rem;
    transition: var(--transition);
}
.nav-links a:hover, .nav-links a.active { color: var(--red-primary); }

.btn-nav {
    background: var(--red-primary);
    color: var(--white) !important;
    padding: 8px 20px;
    border-radius: 5px;
}

/* --- Hero Section --- */
.hero {
    padding: 80px 0; /* Ukuran sedang */
    background: linear-gradient(to right, #ffffff, #84df8b);
    overflow: hidden;
    display: flex;
    align-items: center;
}

.hero-inner {
    display: flex;
    align-items: stretch; /* Membuat tinggi hero-left dan hero-right sejajar */
    gap: 40px;
    width: 100%;
    max-width: 1200px; /* Sesuaikan dengan container Anda */
    margin: 0 auto;
}

/* Bagian Teks */
.hero-left { 
    flex: 1.2;
    display: flex;
    flex-direction: column;
    justify-content: center; /* Teks tetap di tengah secara vertikal */
}

.hero-logo {
    /* Ukuran sedang biasanya berkisar antara 150px - 180px */
    max-width: 120px; 
    height: auto;
    margin-bottom: 25px; /* Memberi jarak lebih lega ke judul (h1) */
    display: block;
    object-fit: contain;
    
    /* Opsional: Tambahkan sedikit filter jika logo ingin terlihat lebih tajam */
    filter: drop-shadow(0px 4px 6px rgba(0,0,0,0.05));
}

/* Penyesuaian untuk Mobile */
@media (max-width: 768px) {
    .hero-logo {
        max-width: 130px; /* Sedikit lebih kecil di HP agar tidak memakan ruang */
        margin-left: auto;
        margin-right: auto; /* Agar logo tetap di tengah jika teks di-center */
    }
}

.hero-left h1 { 
    font-size: 2.8rem; 
    line-height: 1.2; 
    margin-bottom: 20px; 
    color: var(--dark-blue); 
}
.text-red { color: var(--red-primary); }
.lead { font-size: 1.1rem; color: var(--text-light); margin-bottom: 30px; max-width: 500px; }

.hero-btns { display: flex; gap: 15px; }
.btn {
    padding: 12px 30px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    display: inline-block;
}
.btn-red { background: var(--red-primary); color: var(--white); }
.btn-red:hover { background: var(--red-hover); transform: translateY(-3px); }
.btn-outline { border: 2px solid var(--red-primary); color: var(--red-primary); }
.btn-outline:hover { background: var(--red-primary); color: var(--white); }

.hero-right { 
    flex: 0.8; /* Video dibuat sedikit lebih kecil dari kolom teks */
    display: flex;
    align-items: stretch;
}
.video-container {
    width: 100%;
    max-width: 450px; /* Batasin lebar maksimal video biar nggak kebesaran */
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}
.hero-video { 
    width: 100%; 
    height: 100%; 
    object-fit: cover; /* Ini kuncinya! Video bakal memenuhi container tanpa gepeng */

}

@media (max-width: 768px) {
    .hero {
        padding: 60px 20px;
    }

    .hero-inner {
        flex-direction: column; /* Teks di atas, video di bawah */
        text-align: center;
        align-items: center;
    }

    .hero-left {
        order: 1; /* Teks muncul pertama */
        align-items: center;
    }

    .hero-right {
        order: 2; /* Video muncul di bawah tombol */
        width: 100%;
        justify-content: center;
    }

    .video-container {
        max-width: 100%;
        height: 350px; /* Batasi tinggi di mobile agar tidak terlalu panjang */
        aspect-ratio: 16 / 9; /* Kembali ke aspect ratio standar di mobile jika perlu */
    }

    .hero-btns {
        justify-content: center;
        margin-bottom: 40px; /* Jarak antara tombol dan video di bawahnya */
    }
    
    .hero-left h1 {
        font-size: 2rem;
    }
}

/* --- Section Styling --- */
.section-padding { padding: 80px 0; background: linear-gradient(to right, #ffffff, #84df8b);}
.section-header { text-align: center; margin-bottom: 50px; }
.section-header h2 { font-size: 2.2rem; color: var(--dark-blue); margin-bottom: 10px; }
.underline { width: 60px; height: 4px; background: var(--red-primary); margin: 0 auto; }

/* --- Tentang --- */
.tentang-box {
    display: flex;
    align-items: center;
    gap: 40px;
    background: var(--bg-light);
    padding: 40px;
    border-radius: 20px;
    flex-wrap: wrap;
}
.img-wrapper { flex: 1; min-width: 300px; }
.foto-tentang { width: 100%; border-radius: 15px; }
.text-tentang { flex: 1.5; min-width: 300px; }
.text-tentang p { margin-bottom: 15px; font-size: 1.05rem; }

/* --- Layanan Cards --- */
.layanan-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); /* Ukuran lebih pas untuk 3 kolom */
    gap: 30px;
}

.card {
    background: var(--white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: var(--transition);
    text-decoration: none;
    color: inherit;
    border: 1px solid #eee;
    
    /* Tambahan Kunci: */
    display: flex;
    flex-direction: column;
    height: 100%; /* Pastikan semua kartu di satu baris tingginya sama */
}

.card:hover { 
    transform: translateY(-10px); 
    box-shadow: 0 15px 30px rgba(0,0,0,0.1); 
}

.card-img { 
    position: relative; 
    height: 200px; 
    overflow: hidden; 
    flex-shrink: 0; /* Gambar tidak akan gepeng */
}

.card-img img { 
    width: 100%; 
    height: 100%; 
    object-fit: cover; 
    transition: var(--transition); 
}

.card-text { 
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1; /* Mengambil sisa ruang agar tombol terdorong ke bawah */
}

.card-title { 
    font-size: 1.2rem; 
    margin-bottom: 10px; 
    color: var(--dark-blue); 
    font-weight: 700;
}

.card-desc { 
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 25px; /* Jarak aman sebelum tombol */
    flex-grow: 1;        /* Mendorong tombol tetap di dasar kartu */
}

/* Tombol Aksi */
.btn-detail {
    display: block;
    background: #ff4747;
    color: white !important;
    padding: 12px 20px;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 700;
    text-align: center;
    text-decoration: none;
    margin-top: auto; /* Memastikan nempel di bawah meskipun teks pendek */
    transition: var(--transition);
    border: none;
}

.btn-detail:hover {
    background: var(--red-hover);
    transform: translateY(-2px);
}

/* --- Footer --- */
.footer { background: var(--dark-blue); color: var(--white); padding: 50px 0 20px; text-align: center; }
.footer-socials { display: flex; justify-content: center; gap: 20px; margin: 20px 0; }
.footer-icon { height: 30px; filter: brightness(0) invert(1); transition: var(--transition); }
.footer-icon:hover { transform: scale(1.2); }
.copyright { font-size: 0.8rem; opacity: 0.6; margin-top: 30px; border-top: 1px solid rgba(255,255,255,0.1); padding-top: 20px; }

/* --- Mobile Nav --- */
.burger { display: none; font-size: 2rem; cursor: pointer; }
.mobile-nav {
    position: fixed; top: 0; right: -100%; width: 250px; height: 100vh;
    background: var(--white); z-index: 2000; display: flex; flex-direction: column;
    padding: 50px 20px; gap: 20px; transition: 0.4s ease; box-shadow: -5px 0 15px rgba(0,0,0,0.1);
}
.mobile-nav.active { right: 0; }
.mobile-close { font-size: 2.5rem; align-self: flex-end; cursor: pointer; }
.mobile-nav a { text-decoration: none; color: var(--dark-blue); font-size: 1.2rem; font-weight: 600; }

@media (max-width: 768px) {
    .nav-links { display: none; }
    .burger { display: block; }
    .hero-left h1 { font-size: 2.2rem; }
}