/* --- General & Root Variables --- */
:root {
    --primary-color: #009CDE; /* Electric Blue untuk CTA dan efek hover */
    --secondary-color: #0A2540; /* Deep Navy Blue untuk judul section dan background gelap */
    --light-bg-color: #E8ECEF; /* Light Silver untuk latar belakang pemisah section */
    --text-color: #4A4A4A; /* Charcoal Grey untuk teks umum dan navigasi */
    --white-color: #FFFFFF;
    --font-family: 'Poppins', sans-serif;
    --container-width: 1190px;
    --border-radius: 8px;
}

/* --- Reset & Basic Styles --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--white-color);
}

main {
    position: relative;
    overflow-x: clip; /* Mencegah horizontal scrollbar dari efek glow */
}

/* Membuat garis batas vertikal di kiri dan kanan area konten utama */
main::before,
main::after {
    content: '';
    position: absolute;
    top: 100vh; /* Mulai dari bawah Hero Banner */
    bottom: 0;
    width: 1px; /* Lebar garis diperhalus */
    background-color: #cccccc; /* Warna abu-abu untuk garis */
    z-index: 5;
}

main::before {
    /* Posisi garis kiri di tepi container */
    left: calc((100% - var(--container-width)) / 2);
    box-shadow: -5px 0 15px 2px rgba(150, 150, 150, 0.5); /* Glow abu-abu ke arah luar (kiri) */
}

main::after {
    /* Posisi garis kanan di tepi container */
    right: calc((100% - var(--container-width)) / 2);
    box-shadow: 5px 0 15px 2px rgba(150, 150, 150, 0.5); /* Glow abu-abu ke arah luar (kanan) */
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px; /* Jarak 10px di batas tepi kiri dan kanan */
}

.section-padding {
    padding-top: 50px;
    padding-bottom: 50px;
}

.section-title {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    text-align: center;
    font-size: 1.4rem; /* Dibuat kecil */
    margin: 0 auto 30px auto;
    color: var(--secondary-color);
    font-weight: 700;
    background-color: var(--white-color);
    padding: 10px 25px;
    border: 1px solid rgba(0, 156, 222, 0.4); /* Outline tipis */
    box-shadow: 0 0 15px rgba(0, 156, 222, 0.3); /* Glow shadow biru */
    border-radius: 8px; /* Berbentuk kotak simple */
    width: fit-content;
}

.section-title i {
    color: var(--primary-color);
}

.bg-light {
    background-color: var(--light-bg-color);
}

.bg-dark {
    background-color: var(--secondary-color);
    color: var(--white-color);
}

/* --- Scroll Animation --- */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.animate-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}


/* --- Navbar --- */
.navbar {
    background-color: var(--white-color);
    padding: 15px 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: top 0.3s;
}

.nav-toggle {
    display: none; /* Sembunyikan di desktop */
    background: transparent;
    border: 0;
    color: var(--secondary-color);
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 1001; /* Pastikan di atas elemen lain */
}

.nav-toggle.is-active {
    color: var(--primary-color);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    text-decoration: none;
    color: var(--secondary-color);
}

.logo span {
    color: var(--primary-color);
}

.nav-menu ul {
    list-style: none;
    display: flex;
    align-items: center;
}

.nav-menu ul li {
    margin-left: 30px;
}

.navbar nav ul li a {
    text-decoration: none;
    color: var(--text-color); /* Teks menu menggunakan Charcoal Grey */
    font-weight: 600;
    transition: color 0.3s ease;
}

.nav-menu ul li a:hover {
    color: var(--primary-color);
}

.cta-button-nav {
    background-color: #25D366; /* Warna hijau WhatsApp */
    color: var(--white-color) !important;
    padding: 8px 20px;
    border-radius: var(--border-radius);
    transition: background-color 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px; /* Jarak antara ikon dan teks */
}

.cta-button-nav:hover {
    background-color: #1EBE57; /* Warna hijau lebih gelap saat hover */
    color: var(--white-color) !important;
}

/* --- Hero Section --- */
#hero {
    height: 100vh;
    position: relative; /* Diperlukan untuk pseudo-element */
    overflow: hidden; /* Menyembunyikan bagian gambar yang keluar saat zoom */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white-color);
    background: linear-gradient(rgba(13, 27, 42, 0.7), rgba(13, 27, 42, 0.7)); /* Hanya gradien */
}


.hero-content {
    max-width: 1000px; /* Diperlebar agar teks panjang terlihat elegan */
    padding: 0 20px;
}

.hero-content h1 {
    font-size: 2.8rem; /* Dikecilkan sedikit untuk teks panjang */
    line-height: 1.3;
    font-weight: 700;
    margin-bottom: 20px;
    animation: fadeInUp 0.8s ease-out 0.5s;
    animation-fill-mode: backwards;
}

.hero-content h1 span {
    color: var(--primary-color);
}

.hero-content p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 30px;
    animation: fadeInUp 0.8s ease-out 0.8s;
    animation-fill-mode: backwards;
}

.cta-button {
    background-color: var(--primary-color);
    color: var(--white-color);
    padding: 15px 35px;
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: var(--border-radius);
    transition: transform 0.3s ease, background-color 0.3s ease;
    display: inline-block;
    animation: fadeInUp 0.8s ease-out 1.1s;
    animation-fill-mode: backwards;
}

.cta-button:hover {
    background-color: #007BB5; /* Efek hover yang sedikit lebih gelap dari Electric Blue */
    transform: translateY(-3px);
}

/* --- About Us Section --- */
#about {
    background-color: var(--light-bg-color);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.about-card {
    background-color: var(--white-color);
    border-radius: var(--border-radius);
    box-shadow: 0 4px 20px rgba(0,0,0,0.07);
    margin-bottom: 20px; /* Jarak antar card dikurangi */
    overflow: hidden;
    border-left: 5px solid var(--primary-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.about-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
    border-left-color: var(--secondary-color);
}

.about-card-header {
    padding: 12px 10px; /* Padding atas-bawah dikurangi */
    background-color: var(--light-bg-color); /* Ubah kode warna di sini */
    border-bottom: 1px solid #e8ecef;
}

.about-card-header h3 {
    /* Override .about-text h3 */
    margin: 0;
    font-size: 1.5rem;
    color: var(--secondary-color);
}

/* Gaya khusus untuk header card Tentang Kami 2 & 3 agar gelap dan teks terang/kecil */
.about-text .about-card-header {
    background-color: var(--secondary-color);
    border-bottom: none;
}
.about-text .about-card-header h3 {
    font-size: 1.1rem;
    color: var(--white-color);
    font-weight: 700;
}

.about-card-body {
    padding: 5px 5px; /* Padding atas-bawah dikurangi */
}

.about-card-body p {
    margin-bottom: 0; /* Override .about-text p */
}

.about-text h3 {
    font-size: 1.8rem;
    color: var(--secondary-color);
    margin-bottom: 5px;
    margin-top: 5px;
}

.about-text p {
    font-size: 1rem;
    line-height: 1.8;
    margin-bottom: 10px;
    color: var(--text-color);
    
}

.about-text .bullet-list-primary {
    padding-left: 20px;
    margin-bottom: 20px;
    color: var(--text-color);
    line-height: 1.8;
    list-style-type: disc; /* Memastikan bullet point selalu muncul */
}

.about-text .bullet-list-primary li {
    margin-bottom: 8px;
}

.about-text .bullet-list-primary li::marker {
    color: var(--primary-color); /* Mengubah warna bullet point menjadi biru */
}

.btn-more-about {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: 15px;
    padding: 10px 20px;
    background-color: var(--primary-color);
    color: var(--white-color);
    text-decoration: none;
    border-radius: var(--border-radius);
    font-weight: 600;
    transition: background-color 0.3s ease;
}
.btn-more-about:hover {
    background-color: #007BB5; /* Efek hover yang sedikit lebih gelap dari Electric Blue */
}
.about-button-centerer {
    display: flex;
    justify-content: center; 
    margin-top: 5px; 

}
.about-gallery {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    /* margin-top: 30px; */ /* Dihapus agar sejajar dengan card di kiri */
}

.about-gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: var(--border-radius);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

/* --- Pengaturan Posisi Gambar Galeri --- */
/* Gambar 1 (Kiri, Tinggi Penuh menampung 3 baris) */
.about-gallery-item:nth-child(1) {
    grid-column: 1;
    grid-row: 1 / span 3;
    height: 100%;
}

/* Gambar 2, 3, 4 (Kanan, Menumpuk 1 kolom) */
.about-gallery-item:nth-child(n+2) {
    grid-column: 2;
    height: 100%;
    aspect-ratio: 16 / 10; /* Memberikan proporsi ukuran yang konsisten untuk sisi kanan */
}

.about-gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.about-gallery-item:hover img {
    transform: scale(1.1);
}

/* --- Our Team Section --- */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    justify-items: center;
}

.team-member {
    text-align: center;
    background-color: var(--white-color);
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.team-member:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
}

.team-member img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 20px;
    border: 4px solid var(--light-bg-color);
}

.team-member h3 {
    font-size: 1.4rem;
    color: var(--secondary-color);
    margin-bottom: 5px;
}

.team-member p {
    color: var(--primary-color);
    font-weight: 600;
}

/* --- Animasi Ken Burns --- */
@keyframes kenburns-zoom-out {
    0% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
    }
}

/* --- Services Section --- */
#services {
    position: relative;
    z-index: 10; /* Memastikan background gambar section ini berada di atas garis vertikal batas tepi */
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    align-items: start; /* Mencegah item lain ikut memanjang saat satu card terbuka */
}

.service-card {
    background: var(--white-color);
    padding: 30px;
    text-align: left;
    border-radius: var(--border-radius);
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    border: 1px solid rgba(0, 156, 222, 0.2); /* Outline biru soft tipis */
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    cursor: pointer;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
    border-color: var(--primary-color);
}

.service-header {
    display: flex;
    align-items: center;
    gap: 15px;
}

.service-card i {
    font-size: 2.5rem;
    color: var(--primary-color);
}

.service-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0;
    color: var(--secondary-color);
}

.service-description {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.5s ease, margin-top 0.5s ease, opacity 0.5s ease;
}

.service-card:hover .service-description {
    max-height: 500px; /* Nilai cukup besar untuk menampung teks deskripsi panjang */
    margin-top: 15px;
    opacity: 1;
}

/* --- Specialization Section --- */
.specialization-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    text-align: center;
}

.spec-item {
    position: relative;
    padding: 20px;
}

.spec-item img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    margin-bottom: 15px;
    border-radius: 4px;
    background-color: #eee; /* Warna placeholder saat gambar loading */
}

.spec-item h4 {
    font-size: 1.2rem;
    color: var(--secondary-color);
    margin-bottom: 5px;
}

.spec-count {
    display: inline-block;
    margin-bottom: 15px;
    background-color: var(--primary-color);
    color: var(--white-color);
    padding: 5px 12px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 600;
}

/* --- Produk Section --- */
.produk-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.produk-card {
    background-color: var(--white-color);
    border-radius: var(--border-radius);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    text-align: center;
    border: 1px solid rgba(0, 156, 222, 0.4); /* Garis batas biru tipis */
    box-shadow: 0 0 15px rgba(0, 156, 222, 0.2); /* Efek glow biru */
}

.produk-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 25px rgba(0, 156, 222, 0.4); /* Glow membesar saat di-hover */
    border-color: var(--primary-color);
}

.produk-card img {
    width: 100%;
    height: auto;
    aspect-ratio: 600 / 400; /* Mempertahankan proporsi 600x400px */
    object-fit: cover;
    transition: transform 0.4s ease; /* Menambahkan transisi untuk efek zoom */
}

.produk-card h3 {
    font-size: 0.95rem; /* Huruf judul diperkecil */
    color: var(--white-color);
    background-color: #061626; /* Background biru yang lebih gelap */
    padding: 12px 10px;
    margin: 0;
    font-weight: 600;
}

/* Efek zoom pada gambar produk saat card di-hover */
.produk-card:hover img {
    transform: scale(1.1);
}

/* --- Clients Section --- */
.clients-logo-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 40px;
    opacity: 0.7;
}

.clients-logo-grid img {
    height: 50px;
    width: auto;
    max-width: 150px;
    filter: grayscale(100%);
    transition: filter 0.3s ease;
}

.clients-logo-grid img:hover {
    filter: grayscale(0%);
}

/* --- News Section --- */
.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.news-card {
    background-color: var(--white-color);
    border-radius: var(--border-radius);
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.news-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
}

.news-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.news-card-image {
    width: 100%;
    aspect-ratio: 16 / 10;
    overflow: hidden;
}

.news-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.news-card-content {
    padding: 20px;
}

.news-card-date {
    font-size: 0.8rem;
    color: #777;
    margin-bottom: 10px;
    display: block;
}

.news-card-content h3 {
    font-size: 1.2rem;
    color: var(--secondary-color);
    margin-bottom: 10px;
}

.read-more {
    color: var(--primary-color);
    font-weight: 600;
    margin-top: 15px;
    display: inline-block;
}

/* --- Footer / Contact --- */
footer {
    padding: 60px 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    padding-bottom: 50px;
}

.footer-col .footer-logo {
    font-size: 2rem;
    margin-bottom: 15px;
    display: inline-block;
}

.footer-col .footer-about {
    font-size: 0.9rem;
    opacity: 0.8;
    line-height: 1.7;
}

.footer-col h4 {
    font-size: 1.2rem;
    margin-bottom: 20px;
    color: var(--white-color);
}

.footer-col p {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 10px;
    opacity: 0.8;
}

.footer-col p i {
    margin-top: 4px; /* Memberi sedikit margin atas pada ikon */
}

.location-link {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--white-color);
    opacity: 0.8;
    transition: opacity 0.3s ease, color 0.3s ease;
    width: 100%; /* Memastikan link mengisi paragraf */
}

.location-link:hover {
    opacity: 1;
    color: var(--primary-color);
}

.footer-images {
    display: flex;
    gap: 15px;
    align-items: center;
}

.footer-images img {
    width: 25%; /* Setiap gambar mengambil 25% dari container */
    max-width: 150px; /* Batas ukuran maksimum gambar */
    object-fit: contain;
    height: auto; /* Biarkan tinggi menyesuaikan secara otomatis */
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    color: var(--white-color);
    background-color: rgba(255, 255, 255, 0.1);
    width: 40px;
    height: 40px;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    text-decoration: none;
    font-size: 1.1rem;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.social-links a:hover {
    background-color: var(--primary-color);
    color: var(--white-color);
}

.cta-button-whatsapp-fixed {
    display: none; /* Sembunyikan secara default di desktop */
    position: fixed;
    bottom: 30px;
    left: 30px; /* Posisikan di kiri bawah */
    z-index: 999;
    background-color: #25D366;
    color: var(--white-color);
    width: 55px; /* Ukuran tombol */
    height: 55px;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem; /* Ukuran ikon WhatsApp */
    font-weight: 600;
    text-decoration: none;
    border-radius: 50px;
    transition: transform 0.3s ease, background-color 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.cta-button-whatsapp-fixed:hover {
    background-color: #1EBE57;
    transform: scale(1.1);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 20px 0;
    text-align: center;
    font-size: 0.9rem;
    opacity: 0.7;
}

/* --- Back to Top Button --- */
#backToTopBtn {
    display: none; /* Sembunyikan secara default */
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 999;
    background-color: var(--primary-color);
    color: var(--white-color);
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    font-size: 1.2rem;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    transition: opacity 0.3s ease-in-out, transform 0.3s ease-in-out;
    opacity: 0;
    transform: translateY(20px);
}

#backToTopBtn.show {
    display: flex; /* Tampilkan saat kelas 'show' ditambahkan */
    align-items: center;
    justify-content: center;
    opacity: 1;
    transform: translateY(0);
}

/* --- Responsive Design --- */
/* Sembunyikan garis batas di layar yang lebih kecil agar tidak sempit */
@media (max-width: 1240px) {
    main::before,
    main::after {
        display: none;
    }
}

@media (max-width: 768px) {
    .nav-toggle {
        display: block; /* Tampilkan tombol hamburger di mobile */
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%; /* Mulai dari luar layar */
        width: 70%;
        height: 100vh;
        background-color: var(--secondary-color);
        paddingmu
        padding-top: 80px;
        transition: right 0.3s ease;
    }

    .nav-menu.is-active {
        right: 0;
    }

    .nav-menu ul {
        flex-direction: column;
        align-items: center;
    }

    .nav-menu ul li {
        margin: 20px 0;
        width: 100%;
        text-align: center;
    }

    .navbar .nav-menu ul li a {
        color: var(--white-color);
        font-size: 1.2rem;
    }
    
    #hero {
        min-height: 80vh; /* Ubah ke min-height agar flex tidak memotong teks ke atas */
        height: auto;
        padding-top: 80px; /* Beri jarak untuk navbar yang fixed */
        padding-bottom: 40px;
    }
    .hero-content h1 {
        font-size: 1.35rem; /* Dikecilkan lagi untuk layar 6 inch kebawah */
        margin-bottom: 10px;
        line-height: 1.4;
    }
    .hero-content p {
        font-size: 0.9rem; /* Dikecilkan sedikit */
        margin-bottom: 15px;
    }
    .hide-on-mobile {
        display: none !important; /* Sembunyikan elemen dengan class ini di mobile */
    }
    .section-title {
        font-size: 1.2rem;
        padding: 8px 16px;
    }
    .about-content {
        grid-template-columns: 1fr;
    }
    .about-gallery {
        grid-template-columns: 1fr; /* Ubah menjadi 1 kolom penuh di mobile */
    }
    .about-gallery-item:nth-child(1),
    .about-gallery-item:nth-child(n+2) {
        grid-column: auto;
        grid-row: auto;
        aspect-ratio: 16 / 10; /* Proporsi seragam untuk semua gambar di mobile */
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr; /* Kembali ke 1 kolom di mobile */
    }

    /* Sembunyikan section tertentu di mobile */
    #about,
    #team,
    #clients {
        display: none;
    }

    /* Ubah grid berita menjadi 1 kolom di mobile */
    .news-grid {
        grid-template-columns: 1fr;
    }

    /* Tampilkan tombol WhatsApp fixed di mobile */
    .cta-button-whatsapp-fixed {
        display: flex;
    }
}
