/* --- Global Variables & Reset --- */
:root {
    --blue-dark: #0f1c3f;
    --blue-light: #182855;
    --red: #e62525;
    --red-hover: #c41e1e;
    --white: #ffffff;
    --gray-bg: #f4f6f9;
    --gray-card: #e9ecef;
    --text-dark: #222222;
    --text-gray: #555555;
    --green-wa: #25d366;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Montserrat', sans-serif;
}

body {
    background-color: var(--gray-bg);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

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

/* --- Utilities --- */
.text-red { color: var(--red); }
.text-blue { color: var(--blue-dark); }
.text-white { color: var(--white); }
.text-green { color: var(--green-wa); }
.text-light-gray { color: #cccccc; }
.fw-bold { font-weight: 700; }
.mt-20 { margin-top: 20px; }
.mb-15 { margin-bottom: 15px; }

.section-subtitle {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 5px;
}

.section-title {
    font-size: 22px;
    font-weight: 800;
    margin-bottom: 15px;
    line-height: 1.3;
}

.section-title-center {
    text-align: center;
    font-size: 22px;
    font-weight: 800;
    margin-bottom: 30px;
}

.border-bottom-red {
    border-bottom: 3px solid var(--red);
    display: inline-block;
    padding-bottom: 5px;
    margin-bottom: 20px;
}

/* --- Buttons --- */
.btn {
    display: inline-block;
    padding: 10px 20px;
    font-weight: 700;
    font-size: 13px;
    border-radius: 4px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-red { background: var(--red); color: var(--white); border: 2px solid var(--red); }
.btn-red:hover { background: var(--red-hover); transform: translateY(-2px); }

.btn-dark { background: var(--blue-dark); color: var(--white); }
.btn-dark:hover { background: #1a2f63; transform: translateY(-2px); }

.btn-outline { border: 2px solid var(--white); color: var(--white); }
.btn-outline:hover { background: var(--white); color: var(--blue-dark); transform: translateY(-2px); }

/* --- Header / Navbar --- */
header {
    background: var(--white);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 40px;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.logo {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo-img {
    height: 45px;
    width: auto;
    object-fit: contain;
}

.logo-text h1 { font-size: 18px; color: var(--blue-dark); line-height: 1.1; }
.logo-text h2 { font-size: 18px; color: var(--red); line-height: 1.1; }
.logo-text p { font-size: 10px; color: var(--text-gray); margin-top: 2px; }

header nav ul {
    display: flex;
    gap: 25px;
}

header nav ul li a {
    color: var(--text-dark);
    font-size: 13px;
    font-weight: 700;
    transition: color 0.3s;
    padding-bottom: 5px;
}

header nav ul li a:hover,
header nav ul li a.active {
    color: var(--red);
    border-bottom: 2px solid var(--red);
}

.header-contact {
    display: flex;
    align-items: center;
    background: var(--blue-dark);
    color: var(--white);
    padding: 10px 20px;
    border-radius: 5px;
    gap: 10px;
}

.header-contact i { font-size: 20px; color: var(--white); }
.header-contact span { font-size: 12px; }
.header-contact strong { font-size: 16px; }

/* --- Hero Section (Index) --- */
.hero {
    background: var(--blue-dark);
    color: var(--white);
    min-height: 450px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    overflow: hidden;
}

.hero-content {
    flex: 0.68;
    padding: 60px 40px;
    z-index: 2;
}

.hero-content h1 { font-size: 42px; font-weight: 900; line-height: 1.1; margin-bottom: 10px; }
.hero-content h3 { font-size: 20px; font-weight: 400; margin-bottom: 20px; letter-spacing: 1px; }
.hero-content p { font-size: 14px; line-height: 1.6; margin-bottom: 30px; max-width: 90%; color: #ddd; }
.hero-btn-group { display: flex; gap: 15px; }

.hero-image-placeholder {
    /*flex: 1;
    background: #334;
    height: 450px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #556;
    border-left: 5px solid var(--red);*/

    flex: 1.2; /* Diberi ruang sedikit lebih besar agar gambar leluasa */
    height: 450px;
    display: flex;
    align-items: center;
    justify-content: flex-end; /* Memastikan gambar rapat ke kanan */
    /* background: #334; dan border-left dihapus agar tidak ada elemen yang memblokir */
}

.hero-image-placeholder img {
    /*width: 130%;*/

    height: 100%;
    width: 100%;
    object-fit: cover; /* Menyesuaikan gambar secara proporsional */
    object-position: right center; /* Fokus memotong bagian kanan gambar jika layar mengecil */
    
    /* TRIK UTAMA: Membuat sisi kiri gambar memudar menjadi transparan agar menyatu dengan --blue-dark */
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 10%);
    mask-image: linear-gradient(to right, transparent 0%, black 10%);
}

/* --- Page Banner (Tentang Kami) --- */
.page-banner {
    background: var(--blue-dark);
    padding: 50px 0;
    text-align: center;
}
.page-banner h1 { font-size: 32px; font-weight: 800; }

/* --- Main Layouts --- */
.main-wrapper {
    display: flex;
    gap: 30px;
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
}

.left-column { flex: 3.5; display: flex; flex-direction: column; gap: 30px; }
.right-column { flex: 6.5; display: flex; flex-direction: column; gap: 30px; }

.page-content {
    margin-top: 40px;
    margin-bottom: 60px;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

/* --- Cards & General Placeholders --- */
.tentang-kami-card, .testimoni, .produk-kami, .proyek, .hubungi-kami, .profile-section-card {
    background: var(--white);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.tentang-header {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
}

.tentang-desc {
    font-size: 13px;
    color: var(--text-gray);
    line-height: 1.6;
    margin-bottom: 15px;
    text-align: justify;
}

.building-placeholder, .img-placeholder, .map-placeholder {
    background: var(--gray-card);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #888;
    text-align: center;
    border-radius: 6px;
    font-size: 12px;
    font-weight: bold;
}

.building-placeholder {
    height: 220px;
    width: 100%;
    border-bottom: 4px solid #ffcc00;
    margin-top: 20px;
}

/* --- Section: Mengapa Kami --- */
.mengapa-kami {
    background: var(--blue-dark);
    padding: 25px;
    border-radius: 8px;
    color: var(--white);
}

.reasons-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.reason-item {
    background: rgba(255, 255, 255, 0.08);
    padding: 15px;
    border-radius: 6px;
    text-align: center;
}

.reason-item i { font-size: 24px; color: var(--red); margin-bottom: 8px; }
.reason-item p { font-size: 12px; font-weight: 600; }

/* --- Section: Testimoni --- */
.testimoni-container { display: flex; flex-direction: column; gap: 15px; }
.testi-card { background: var(--gray-bg); padding: 20px; border-radius: 6px; }
.testi-card p { font-size: 12px; font-style: italic; color: var(--text-gray); margin: 8px 0; }
.testi-card strong { font-size: 12px; color: var(--blue-dark); }
.stars { color: #ffc107; font-size: 11px; }

/* --- Section: Produk Kami --- */
.product-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

.product-card {
    background: var(--gray-bg);
    padding: 15px;
    border-radius: 6px;
    text-align: center;
    border: 1px solid #eee;
    transition: 0.3s;
}

.product-card:hover { transform: translateY(-5px); box-shadow: 0 5px 15px rgba(0,0,0,0.1); }
.product-card .img-placeholder { height: 80px; width: 100%; margin-bottom: 10px; border: 1px dashed #ccc; background: transparent; }
.product-card p { font-size: 12px; font-weight: 700; color: var(--blue-dark); }
.product-card small { font-size: 10px; font-weight: 400; color: var(--text-gray); }

/* --- Section: Proyek --- */
.proyek-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 15px; }
.proyek-grid .img-placeholder { height: 100px; }
.proyek-text {
    grid-column: span 3;
    display: flex;
    gap: 15px;
    align-items: center;
    background: var(--gray-bg);
    padding: 15px;
    border-radius: 6px;
    font-size: 12px;
    color: var(--text-gray);
}
.proyek-text i { font-size: 24px; color: var(--blue-dark); }

/* --- Section: Hubungi Kami --- */
.contact-info { display: flex; justify-content: space-between; margin-bottom: 20px; gap: 20px; }
.contact-info ul { flex: 1; display: flex; flex-direction: column; gap: 20px; }
.contact-info li { display: flex; gap: 15px; font-size: 12px; color: var(--text-gray); }
.contact-info li i { font-size: 20px; color: var(--blue-dark); background: var(--gray-bg); border-radius: 50%; width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; }
.contact-info strong { color: var(--blue-dark); font-size: 13px; display: block; margin-bottom: 5px; }
.map-placeholder { height: 180px; width: 100%; }

/* --- Profile Page Components (Tentang Kami) --- */
.profile-grid { display: grid; grid-template-columns: 3fr 2fr; gap: 30px; align-items: center; }
.large-placeholder { height: 250px; flex-direction: column; }
.visi-misi-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 25px; }
.visi-card, .misi-card { background: var(--gray-bg); padding: 25px; border-radius: 8px; border-left: 4px solid var(--red); }
.visi-card h4, .misi-card h4 { color: var(--blue-dark); font-size: 16px; margin-bottom: 12px; }
.custom-list li { display: flex; gap: 10px; margin-bottom: 10px; font-size: 13px; color: var(--text-gray); }

.produk-layanan-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-bottom: 20px; }
.produk-layanan-item { background: var(--gray-bg); padding: 20px; border-radius: 6px; text-align: center; }
.produk-layanan-item i { font-size: 28px; margin-bottom: 10px; }
.produk-layanan-item h4 { font-size: 14px; color: var(--blue-dark); margin-bottom: 6px; }
.produk-layanan-item p { font-size: 12px; color: var(--text-gray); }

.solusi-proyek-banner { background: var(--blue-dark); color: var(--white); padding: 20px; border-radius: 6px; display: flex; align-items: center; gap: 15px; font-size: 13px; }
.solusi-proyek-banner i { font-size: 28px; color: var(--red); }

.nilai-cards-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 15px; }
.nilai-box { background: var(--gray-bg); padding: 20px 15px; border-radius: 6px; text-align: center; }
.nilai-icon { width: 45px; height: 45px; background: var(--red); color: var(--white); border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 12px; font-size: 18px; }
.nilai-box h4 { font-size: 14px; color: var(--blue-dark); margin-bottom: 6px; }
.nilai-box p { font-size: 11px; color: var(--text-gray); }

.mengapa-list { display: flex; flex-direction: column; gap: 12px; }
.mengapa-list li { display: flex; gap: 12px; align-items: center; font-size: 14px; font-weight: 600; color: var(--blue-dark); }
.mengapa-list i { background: var(--green-wa); color: var(--white); padding: 5px; border-radius: 50%; font-size: 10px; }

.closing-banner { background: var(--blue-dark); color: var(--white); padding: 40px; border-radius: 8px; text-align: center; }
.closing-banner h3 { font-size: 20px; margin-bottom: 10px; }
.closing-banner p { font-size: 14px; max-width: 800px; margin: 0 auto; color: #ddd; }

/* --- Footer --- */
footer {
    background: var(--blue-dark);
    color: var(--white);
    padding: 40px 0 20px;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.footer-logo { display: flex; align-items: center; gap: 15px; }
.footer-logo-img { 
    height: 45px; 
    width: auto;
    object-fit: contain;
    background-color: #ffffff;
    padding: 4px 8px;
    border-radius: 4px;
}
.footer-logo-text { font-size: 13px; line-height: 1.2; }

.footer-nav { display: flex; gap: 20px; }
.footer-nav a { font-size: 12px; font-weight: 600; color: #ccc; transition: 0.3s; }
.footer-nav a:hover { color: var(--red); }
.copyright { font-size: 11px; color: #888; text-align: center; }

/* --- Animations --- */
.animate-fade-in { animation: fadeIn 0.8s ease-in-out; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.animate-slide-up { opacity: 0; transform: translateY(30px); transition: all 0.8s ease; }
.animate-slide-up.visible { opacity: 1; transform: translateY(0); }

/* --- Responsive Media Queries --- */
@media (max-width: 992px) {
    .hero { flex-direction: column; text-align: center; min-height: auto; }
    .hero-btn-group { justify-content: center; }
    .hero-image-placeholder { width: 100%; height: 300px; border-left: none; border-top: 5px solid var(--red); }
    .main-wrapper { flex-direction: column; gap: 30px; }
    .profile-grid, .visi-misi-grid, .produk-layanan-grid { grid-template-columns: 1fr; }
    .nilai-cards-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    header { flex-direction: column; gap: 15px; padding: 20px; }
    header nav ul { gap: 15px; flex-wrap: wrap; justify-content: center; }
    .header-contact { display: none; }
    .product-grid { grid-template-columns: repeat(2, 1fr); }
    .contact-info { flex-direction: column; }
}

/* --- Penyesuaian Tablet & HP Medium (max-width: 768px) --- */
@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 28px; /* Teks judul lebih proporsional di HP */
    }
    .hero-content h3 {
        font-size: 16px;
    }
    .hero-content p {
        font-size: 13px;
        max-width: 100%;
    }
    
    /* Menyesuaikan grid proyek agar tidak break */
    .proyek-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .proyek-text {
        grid-column: span 2; /* Mengikuti jumlah kolom grid baru */
    }
}

/* --- Penyesuaian HP Layar Kecil (max-width: 576px) --- */
@media (max-width: 576px) {
    header {
        padding: 15px;
    }
    
    header nav ul {
        gap: 10px;
    }
    
    header nav ul li a {
        font-size: 11px; /* Ukuran menu navbar di HP */
    }

    /* Ubah grid produk & nilai perusahaan jadi 1 kolom penuh di HP */
    .product-grid,
    .nilai-cards-grid,
    .reasons-grid,
    .proyek-grid {
        grid-template-columns: 1fr;
    }

    .proyek-text {
        grid-column: span 1;
    }

    .hero-btn-group {
        flex-direction: column; /* Tombol bertumpuk vertikal di HP */
        width: 100%;
    }

    .hero-btn-group .btn {
        text-align: center;
        width: 100%;
    }
}

/* --- Fix iPad Air & Tablet Medium (769px - 991px) --- */
@media (max-width: 991px) {
    .main-wrapper {
        flex-direction: column; /* Ubah layout utama jadi 1 kolom di iPad */
    }
    
    .product-grid {
        grid-template-columns: repeat(2, 1fr); /* 2 kolom agar tidak terlalu sesak */
    }

    .nilai-cards-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* --- Fix Footer & Layar HP (max-width: 576px) --- */
@media (max-width: 576px) {
    /* Perbaikan Footer melimpah di Z Fold 5 & Galaxy A51/71 */
    .footer-content {
        padding: 0 15px;
        text-align: center;
    }

    .footer-nav {
        flex-wrap: wrap; /* Izinkan menu footer turun ke baris baru */
        justify-content: center;
        gap: 12px 18px; /* Jarak antar baris dan kolom menu */
    }

    .footer-nav a {
        font-size: 11px;
    }

    .footer-logo {
        flex-direction: column;
        gap: 8px;
    }

    /* Penyesuaian Grid HP */
    .product-grid,
    .nilai-cards-grid,
    .reasons-grid,
    .proyek-grid,
    .produk-layanan-grid {
        grid-template-columns: 1fr; /* 1 kolom penuh untuk HP */
    }

    .proyek-text {
        grid-column: span 1;
    }
}

/* --- Fix khusus HP Sangat Layar Kecil / Z Fold Folded (max-width: 360px) --- */
@media (max-width: 360px) {
    .logo-text h1, .logo-text h2 {
        font-size: 15px;
    }
    
    .footer-nav {
        flex-direction: column; /* Menu footer jadi list vertikal jika layar super sempit */
        gap: 8px;
    }
}

/* --- Styling Baru: Section Mengapa Memilih Kami --- */
.mengapa-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.5fr; /* Split 2 kolom */
    gap: 30px;
    align-items: center;
    margin-top: 20px;
}

.mengapa-intro {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.mengapa-intro h4 {
    font-size: 18px;
    font-weight: 700;
    line-height: 1.4;
}

.mengapa-badge {
    display: flex;
    align-items: center;
    gap: 15px;
    background: var(--blue-dark);
    color: var(--white);
    padding: 15px 20px;
    border-radius: 8px;
    border-left: 4px solid var(--red);
}

.mengapa-badge i {
    font-size: 28px;
    color: var(--red);
}

.mengapa-badge strong {
    display: block;
    font-size: 13px;
}

.mengapa-badge span {
    font-size: 11px;
    color: #ccc;
}

/* Grid Kartu Kanan */
.mengapa-cards-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.mengapa-card {
    background: var(--white);
    padding: 18px;
    border-radius: 8px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    border: 1px solid #eef0f4;
    transition: all 0.3s ease;
}

.mengapa-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0,0,0,0.08);
    border-color: var(--red);
}

.mengapa-card-full {
    grid-column: span 2; /* Kartu jangkauan Indonesia memenuhi 2 kolom */
}

.mengapa-icon {
    width: 38px;
    height: 38px;
    background: rgba(230, 37, 37, 0.1);
    color: var(--red);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
}

.mengapa-text h5 {
    font-size: 13px;
    color: var(--blue-dark);
    font-weight: 700;
    margin-bottom: 4px;
}

.mengapa-text p {
    font-size: 11px;
    color: var(--text-gray);
    line-height: 1.4;
}

/* --- Penyesuaian Responsif (Media Queries) --- */
@media (max-width: 991px) {
    .mengapa-wrapper {
        grid-template-columns: 1fr; /* Jadi 1 kolom di tablet/HP */
    }
}

@media (max-width: 576px) {
    .mengapa-cards-grid {
        grid-template-columns: 1fr; /* Kartu jadi 1 kolom di HP */
    }
    
    .mengapa-card-full {
        grid-column: span 1;
    }
}

/* Sesuaikan jarak aman agar posisi pas di bawah sticky header */
#produk, #proyek, #kontak {
    scroll-margin-top: 110px; 
}

/* Mengatur kotak pembungkus gambar agar responsif dan posisinya di tengah */
.img-placeholder {
    width: 100%;
    height: 200px; /* Sesuaikan tinggi kotak dengan desain Anda */
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #ffffff00; /* Warna latar opsional jika gambar memiliki area transparan */
}

/* Mengatur ukuran dan perilaku gambar di dalamnya */
.img-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: contain; /* Menjaga proporsi gambar agar menutupi kotak tanpa gepeng */
    display: block;
}

.map-placeholder {
    width: 100%;
    height: 350px; /* Sesuaikan tinggi peta sesuai kebutuhan */
    border-radius: 8px;
    overflow: hidden;
}

.map-placeholder iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* Pengaturan khusus untuk layar di bawah 900px (Tablet/Laptop Kecil) */
@media screen and (max-width: 900px) {
    header {
        /* Mengurangi padding kiri-kanan yang sebelumnya 40px */
        padding: 15px 20px; 
        
        /* Mengizinkan elemen untuk turun ke bawah jika ruang tidak cukup */
        flex-wrap: wrap; 
        justify-content: center;
        gap: 15px;
    }

    /* Memindahkan menu navigasi ke baris baru agar tidak sempit */
    header nav { 
        order: 3; /* Memaksa menu tampil di urutan terbawah dalam header */
        width: 100%;
        display: flex;
        justify-content: center;
        gap: 20px;
        font-size: 14px;
    }

    /* Menyesuaikan ukuran tombol agar lebih proporsional di layar kecil */
    header .btn-contact { /* Ganti .btn-contact dengan class tombol asli Anda */
        padding: 10px 20px;
        font-size: 14px;
    }
}