:root {
    --navy: #002b5c;
    --sky: #0084ff;
    --accent: #f39c12;
    --bg-light: #eef2f7;
    --white: #ffffff;
}

* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Segoe UI', Arial, sans-serif; }
html { scroll-behavior: smooth; }
body { background-color: var(--bg-light); color: #333; line-height: 1.6; }

/* --- NAVIGATION --- */
nav {
    /* Menambahkan background image */
    background: linear-gradient(rgba(0, 43, 92, 0.8), rgba(0, 43, 92, 0.8)), 
                url(img/hero1.jpg); /* Ganti dengan nama file gambar Anda */
    background-size: cover;
    background-position: center;
    display: flex; justify-content: space-between; align-items: center;
    position: sticky; top: 0; z-index: 1000;
	padding: 0% 5%;
}
.logo-link { display: flex; align-items: center; text-decoration: none; }
.logo-img { height: 100px; margin-right: 20px; }
.logo-text { display: flex; flex-wrap: wrap; flex-direction: row; align-items: center; line-height: 1; gap: 5px; }
.logo-main { color: var(--white); font-weight: 900; font-size: 1.3rem; letter-spacing: 0.5px; }
.logo-sub { color: var(--sky); font-size: 1.3rem; font-weight: 900; letter-spacing: 0.5px; }
.logo-main, .logo-sub {
    white-space: nowrap; }/* Mencegah kata terputus di tengah (misal: VARIE-GATED) */

.nav-links { list-style: none; display: flex; gap: 20px; }
.nav-links a { color: white; text-decoration: none; font-size: 14px; font-weight: 500; }
.nav-links a:hover { color: var(--accent); }

.menu-toggle { display: none; color: white; font-size: 24px; cursor: pointer; }

/* --- HERO --- */
/* --- HERO SECTION --- */



.hero-container {
    width: 100%;
    max-width: 1200px;
    z-index: 2;
}

/* --- HERO SECTION UTAMA --- */

.hero {
    position: relative;
    min-height: 50vh; /* Tinggi sedikit ditambah agar lebih lega */
	max-height: 550px; /* Batas maksimal tinggi agar tidak terlalu besar di layar besar */
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding-left: 5%; 
    padding-right: 5%;
    background: linear-gradient(to right, rgba(0, 26, 77, 0.95) 30%, rgba(0, 0, 0, 0.3) 100%), 
                url(img/hero1.jpg);
    background-size: cover;
    background-position: center;
    color: white;
    overflow: hidden;
}

/* --- KONTAINER PEMBUNGKUS --- */
.hero-container {
    width: 100%;
    max-width: 1200px; /* Batas maksimal agar teks tidak terlalu lebar ke kanan */
    margin-left: 0;    /* MENGHAPUS margin: auto yang bikin teks ke tengah */
    margin-right: auto;
    padding: 0;        /* Menghilangkan padding internal agar tidak menjorok */
    text-align: left;  /* Memastikan semua teks di dalamnya rata kiri */
    z-index: 2;
}

.hero-content h1 {
    font-size: clamp(2.5rem, 5vw, 3.8rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 15px;
    letter-spacing: -1.5px;
    text-shadow: 3px 3px 10px rgba(0, 0, 0, 0.7);
}

.hero-subtitle {
    display: inline-block;
    font-size: 1.2rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 25px;
    border-bottom: 4px solid var(--sky); /* Menggunakan variabel sky Anda */
    padding-bottom: 5px;
}

.hero-details ul li {
    font-size: 1.1rem;
    margin-bottom: 8px;
    font-weight: 700;
}

/* Memperbaiki gambar di Layanan Videotron Indoor/Outdoor */
.box-body img {
    width: 140px;      /* Ukuran tetap agar tidak kebesaran */
    height: 90px;
    object-fit: cover; /* Gambar dipotong rapi, tidak penyet */
    border-radius: 6px;
    flex-shrink: 0;    /* Mencegah gambar menyusut */
}

/* Memperbaiki gambar di Jasa Servis Videotron */
.product-image-container {
    flex: 0 0 350px;   /* Batasi lebar gambar servis di desktop */
    max-height: 250px;
}

.product-image-container img {
    width: 200%;
    height: 100%;
    object-fit: contain;
    border-radius: 8px;
}

/* Gambar di Layanan Maintenance (Pengecekan Rutin) */
.box-body img[style*="width:100%"] {
    max-height: 350px; /* Batasi agar gambar panjang tidak memakan satu layar */
    object-fit: contain;
    width: 100%;
    height: 200%;
}

/* Responsif untuk HP */
@media (max-width: 768px) {
    .hero-content h1 { font-size: 1.8rem; text-align: left; }
    .hero { text-align: left; }
    .hero-details ul li { justify-content: left; font-size: 1rem }
    .hero-subtitle { font-size: 1rem; text-align: left;}
    
    .box-body {
        flex-direction: column; /* Gambar di atas, teks di bawah */
        align-items: flex-start;
    }
    .box-body img {
        width: 100%; /* Gambar memenuhi lebar kotak di HP */
        height: 180px;
    }
    .product-image-container {
        flex: 0 0 100%; /* Gambar servis memenuhi lebar layar HP */
        height: 180px;
    }
}

.hero-text h1 { font-size: 2.2rem; margin-bottom: 10px; line-height: 1.2; text-align: left; }
.img-main { width: 400px; border: 4px solid white; border-radius: 8px; }



/* --- UTILITIES --- */
.container { width: 90%; max-width: 1100px; margin: auto; padding-bottom: 40px; }
.section-label { background: var(--navy); color: white; width: fit-content; padding: 8px 30px; margin: 30px auto 15px; border-radius: 5px; font-weight: bold; scroll-margin-top: 100px; }

/* --- CARDS & GRIDS --- */
.grid-5 { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; margin-bottom: 20px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 20px; }
.card-white { background: white; padding: 15px; border-radius: 10px; text-align: center; box-shadow: 0 4px 6px rgba(0,0,0,0.05); }
.card-white i { font-size: 25px; color: var(--navy); margin-bottom: 8px; display: block; }

.box-item { background: white; border-radius: 10px; overflow: hidden; box-shadow: 0 4px 6px rgba(0,0,0,0.05); transition: 0.3s; height: 100%; }
.box-header { background: var(--navy); color: white; padding: 10px 15px; font-weight: bold; }
.box-body { padding: 15px; display: flex; gap: 15px; align-items: center; }

/* Product/Service Detail Card */
.product-detail-card { display: flex; background: white; border-radius: 12px; overflow: hidden; margin-bottom: 20px; padding: 20px; gap: 25px; box-shadow: 0 4px 10px rgba(0,0,0,0.05); }
.product-image-container { flex: 0 0 300px; }
.product-image-container img { width: 100%; border-radius: 8px; object-fit: cover; }
.product-info { flex: 1; }
.mini-spec { width: 100%; border-collapse: collapse; margin-top: 10px; }
.mini-spec td { font-size: 0.9rem; padding: 6px 0; border-bottom: 1px solid #eee; }
.mini-spec td:first-child { font-weight: bold; color: #666; width: 45%; }

/* Buttons */
.soc-btn { text-decoration: none; color: white; padding: 10px 15px; border-radius: 6px; font-size: 13px; font-weight: bold; display: flex; align-items: center; justify-content: center; gap: 8px; transition: 0.3s; }
.social-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }

/* Warna Tombol Sosial Media */
.wa { background: #25d366; }
.maps { background: #ea4335; }
.shopee { background: #ee4d2d; }
.toko { background: #03ac0e; }
.tiktok { background: #000000; }

.soc-btn i { font-size: 16px; }

/* Styling Tambahan Maintenance */
.highlight-card {
    border-bottom: 3px solid var(--accent);
    transition: 0.3s;
}
.highlight-card:hover {
    background: var(--navy);
    color: white;
}
.highlight-card:hover i { color: var(--accent); }

.maintenance-steps {
    display: flex;
    justify-content: space-between;
    gap: 15px;
    margin-top: 20px;
}
.step-item {
    flex: 1;
    background: white;
    padding: 20px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: 15px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}
.step-number {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--accent);
    border-right: 2px solid #eee;
    padding-right: 15px;
}
.step-text { font-size: 0.85rem; line-height: 1.3; }

/* Styling Khusus Gmaps agar Presisi */
.maps-embed {
    height: 300px; /* Tinggi peta di Desktop */
    background: #eee;
}

@media (max-width: 768px) {
    .gmaps-section {
        flex-direction: column !important; /* Di HP Maps pindah ke atas teks */
    }
    
    .maps-embed {
        height: 200px; /* Tinggi peta lebih pendek di HP */
        width: 100% !important;
        flex: none !important;
    }
}

/* --- PORTFOLIO STYLING --- */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3 Kolom di Desktop */
    gap: 20px;
    margin-top: 30px;
}

.portfolio-item {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    transition: 0.3s;
}

.portfolio-item:hover {
    transform: translateY(-5px);
}

.portfolio-tag {
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--sky);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: bold;
    z-index: 2;
}

.portfolio-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
}

.portfolio-info {
    padding: 15px;
}

.portfolio-info h3 {
    font-size: 1rem;
    color: var(--navy);
    margin-bottom: 5px;
}

.portfolio-info p {
    font-size: 0.8rem;
    color: #777;
}

/* Penyesuaian khusus untuk mode Desktop di layar kecil */
@media screen and (min-width: 992px) and (max-width: 1366px) {
    .hero {
        min-height: 400px;
    }
    .hero-content h1 {
        font-size: 2.8rem;
    }
}

/* Responsive Galeri */
@media (max-width: 992px) {
    .portfolio-grid { grid-template-columns: repeat(2, 1fr); } /* 2 Kolom di Tablet */
}

@media (max-width: 768px) {
    .portfolio-grid { grid-template-columns: repeat(2, 1fr); } /* 1 Kolom di HP */
    
}

/* --- MEDIA QUERY 480px (Handphone Kecil) --- */
@media (max-width: 480px) {
    /* Navbar responsif */
    .logo-img { height: 45px; margin-right: 10px; }
    .logo-main { font-size: 0.95rem; }
    .logo-sub { font-size: 0.8rem; }
    .nav-links { gap: 10px; padding: 15px; }
    .nav-links a { font-size: 12px; }
    
    /* Hero Section */
    .hero { min-height: 35vh; padding-left: 10px; padding-right: 10px; }
    .hero-content h1 { font-size: 1.4rem; margin-bottom: 10px; }
    .hero-subtitle { font-size: 0.85rem; padding-bottom: 3px; }
    .hero-details ul li { font-size: 0.85rem; margin-bottom: 6px; }
    
    /* Container & Spacing */
    .container { width: 95%; }
    .section-label { padding: 6px 15px; margin: 20px auto 10px; font-size: 0.85rem; }
    
    /* Grid & Layout */
    .grid-5 { grid-template-columns: repeat(2, 1fr); gap: 8px; }
    .grid-2 { grid-template-columns: 1fr; }
    .social-grid { grid-template-columns: repeat(3, 1fr); gap: 6px; }
    
    /* Cards */
    .card-white { padding: 10px; }
    .card-white i { font-size: 20px; margin-bottom: 5px; }
    .card-white p { font-size: 0.75rem; }
    
    /* Box & Items */
    .box-header { padding: 8px 12px; font-size: 0.9rem; }
    .box-body { padding: 12px; gap: 10px; flex-direction: column; align-items: flex-start; }
    .box-body img { width: 100%; height: 150px; }
    
    /* Product/Service Card */
    .product-detail-card { 
        flex-direction: column; 
        padding: 8px; 
        gap: 10px; 
        margin-bottom: 15px; 
    }
    .product-image-container { 
        flex: 0 0 100%; 
        height: 150px; 
    }
    .product-image-container img { 
        width: 100%; 
        max-width: 150px !important;
        height: auto !important;
        margin: auto !important;
    }
    .product-info { flex: 1; }
    .product-info h2 { font-size: 0.95rem; margin-bottom: 8px; }
    .mini-spec { margin-top: 8px; }
    .mini-spec td { font-size: 0.75rem; padding: 4px 0; }
    
    /* Buttons */
    .soc-btn { padding: 8px 10px; font-size: 11px; }
    .soc-btn i { font-size: 14px; }
    
    /* Maintenance Steps */
    .maintenance-steps { flex-direction: column; gap: 12px; margin-top: 15px; }
    .step-item { padding: 15px; gap: 12px; }
    .step-number { font-size: 1.2rem; padding-right: 12px; }
    .step-text { font-size: 0.75rem; }
    
    /* Portfolio */
    .portfolio-grid { grid-template-columns: repeat(2, 1fr); gap: 15px; }
    .portfolio-item img { height: 180px; }
    .portfolio-tag { top: 10px; left: 10px; font-size: 10px; padding: 3px 8px; }
    .portfolio-info { padding: 12px; }
    .portfolio-info h3 { font-size: 0.9rem; }
    .portfolio-info p { font-size: 0.75rem; }
    
}
   /* --- FIX KHUSUS HALAMAN ABOUT (MAPS) --- */

/* Memastikan kontainer utama Maps bersih dari tumpang tindih */
.gmaps-section {
    display: flex !important;
    flex-direction: row;
    align-items: flex-start;
    gap: 25px;
    width: 100%;
}

/* Memastikan iframe peta memenuhi kontainernya */
.maps-embed iframe {
    width: 100% !important;
    height: 350px !important; /* Tinggi di desktop */
    border-radius: 8px;
    display: block;
}

/* Responsif untuk HP (Samsung A21s, dll) */
@media (max-width: 768px) {
    .gmaps-section {
        flex-direction: column !important; /* Paksa teks turun ke bawah peta */
        padding: 15px !important;
    }

    .maps-embed {
        flex: none !important;
        width: 100% !important;
        height: 250px !important; /* Tinggi peta di HP agar tidak terlalu panjang */
    }

    .maps-embed iframe {
        height: 100% !important;
    }

    .gmaps-section .product-info {
        width: 100% !important;
        padding: 0 !important;
        margin-top: 10px; /* Jarak antara peta dan teks */
    }

    /* Pastikan tombol Chat & Rute berjejer rapi di HP */
    .gmaps-section .product-info div {
        flex-direction: row !important; 
        gap: 8px !important;
    }
    
    .soc-btn {
        font-size: 11px !important; /* Perkecil font tombol sedikit agar muat satu baris */
        padding: 10px 5px !important;
    }
}

/* Responsive HP */
/* --- PERBAIKAN TOTAL RESPONSIVE & RATA KIRI HP --- */
@media (max-width: 768px) {
    /* Navbar & Menu */
    .menu-toggle { display: block; }
    .nav-links { 
        display: none; 
        flex-direction: column; 
        position: absolute; 
        top: 65px; 
        left: 0; 
        width: 100%; 
        background: var(--navy); 
        padding: 20px; 
        z-index: 100; 
    }
    .nav-links.active { display: flex; }
    .logo-img { height: 60px; margin-right: 15px; }

    /* Logo text responsif untuk layar kecil */
    .logo-text { flex-direction: column; align-items: flex-start; gap: 2px; }
    .logo-main { font-size: 1.2rem; }
    .logo-sub { font-size: 0.95rem; }

    /* Hero Section - MEMAKSA RATA KIRI */
    .hero { 
        padding: 60px 5% 40px 5% !important; 
        text-align: left !important;
        align-items: flex-start !important;
        min-height: 35vh;
    }

    .hero-container {
        text-align: left !important;
        margin-left: 0 !important;
    }

    .hero-content {
        display: flex;
        flex-direction: column;
        align-items: flex-start !important; /* Memaksa isi ke kiri */
        text-align: left !important;
        width: 100%;
    }

    .hero-content h1 { 
        font-size: 1.8rem !important; 
        text-align: left !important;
        line-height: 1.2;
        margin-left: 0;
    }

    .hero-subtitle { 
        font-size: 1rem !important; 
        text-align: left !important;
        border-top: none; /* Menghapus border-top agar tidak berantakan */
        padding: 5px 0;
        margin-left: 0 !important;
        display: inline-block;
        border-top: 2px solid var(--accent); border-bottom: 2px solid var(--accent); display: inline-block; padding: 5px 0; margin-bottom: 5px; text-align: left;
    }

    .hero-details ul li { 
        justify-content: flex-start !important; 
        font-size: 0.95rem;
        text-align: left;
        font-weight: 700;
    }

    /* Grid & Layout HP */
    .grid-5, .social-grid { grid-template-columns: repeat(2, 1fr); }
    .grid-2 { grid-template-columns: 1fr; }
    
    .box-body {
        flex-direction: column; 
        align-items: flex-start;
    }
    .box-body img {
        width: 100%; 
        height: 180px;
    }

    /* Maintenance & Portfolio */
    .maintenance-steps { flex-direction: column; }
    .portfolio-grid { grid-template-columns: repeat(2, 1fr); }
    .portfolio-item img { height: 200px; }

    /* Product Card HP */
    .product-detail-card { 
        padding: 10px; 
        gap: 12px; 
        flex-direction: row; 
    }
    .product-image-container { 
        flex: 0 0 110px; 
        height: 110px; 
    }
    .product-info h2 { font-size: 0.95rem; }
    .mini-spec td { font-size: 0.75rem; }
    .soc-btn { font-size: 11px; padding: 8px; }
}