/* For WebKit browsers (Chrome, Safari, Opera) */
.element::-webkit-scrollbar {
    display: none;
}

/* For Firefox */
.element {
    scrollbar-width: none;
}

/* For Internet Explorer and Edge */
.element {
    -ms-overflow-style: none;
}

/* --- Reset Dasar & Font --- */
body, h1, h2, h3, p, ul, li, form, label, input, textarea, button {
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
    box-sizing: border-box; 
}
body {
    line-height: 1.6;
}
html, body {
    overflow-x: hidden;
}

/* --- Container Konten --- */
.container {
    width: 100%;
    max-width: 1200px; /* Lebar maksimum konten */
    margin: 0 auto;
    padding: 0 1rem; /* Spasi di layar kecil */
    text-align: center;
}

/* --- Navigasi --- */
header {background: #063970;
    color: white;
    padding: 1rem;
    position: sticky;
    top: 0;
    z-index: 100;
    position: relative;
}
nav {
    display: flex;
    justify-content: space-between;
    align-items: center; /* Diperbaiki dari 'center' */
    max-width: 1200px;
    margin: 0 auto;
}
.logo {
    font-size: 1.5rem;
    font-weight: bold;
}
.desktop-menu {
    list-style: none;
    display: flex;
}
.desktop-menu li {
    margin-left: 1.5rem;
}
.desktop-menu li a {
    color: white;
    text-decoration: none;
    font-weight: bold;
}
.desktop-menu li a:hover {
    text-decoration: underline;
}

/* --- Section (Full-Width) --- */
section {
    padding: 4rem 0; /* Padding atas/bawah */
}
section h2 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
}
.description-text {
    margin: 0 auto;
    text-align: justify;
    line-height: 1.8;
}

/* --- Latar Belakang Section --- */
#tentang, #proyek {
    background: #ffffff; /* Putih */
}
#produk, #clients, #kontak {
    background: #fff; /* Sesuai file Anda */
}


/* --- GAYA HERO SLIDER (PERBAIKAN FADE) --- */
#hero-slider {
    width: 100%;
    height: 90vh; 
    margin: 0;
    padding: 0;
}
.parallax-bg {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%; /* (DIUBAH) dari 130% menjadi 100% */
    height: 100%;
    background-size: cover;
    background-position: center;
}
.heroSwiper .swiper-slide {
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    text-align: center;
    padding: 0 2rem;
}
.heroSwiper .slide-content {
    position: relative;
    z-index: 2;
    background: transparent;
    padding: 2rem 3rem;
    border-radius: 10px;

    /* (BARU) Animasi fade-in untuk konten */
    animation: fadeInContent 1s ease-out 0.5s;
    animation-fill-mode: forwards;
    opacity: 0;
}

/* (BARU) Keyframe untuk animasi konten */
@keyframes fadeInContent {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* (BARU) Sembunyikan konten slide yang tidak aktif */
.heroSwiper .swiper-slide:not(.swiper-slide-active) .slide-content {
    opacity: 0;
    animation: none;
}

.heroSwiper .slide-content h1 {
    font-size: 3rem;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
    margin-bottom: 1rem;
}
.heroSwiper .slide-content p {
    font-size: 1.2rem;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
    margin-bottom: 2rem;
}
.cta-button {
    display: inline-block;
    background: #ff6600;
    color: white;
    padding: 0.8rem 1.5rem;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    margin-top: 1rem;
}
.cta-button:hover { background: #cc5200; }
.heroSwiper .swiper-button-next,
.heroSwiper .swiper-button-prev {
    color: white;
    --swiper-navigation-size: 30px;
}
/* --- AKHIR HERO SLIDER --- */


/* --- GAYA TENTANG KAMI --- */
.about-wrapper {
    display: flex;
    align-items: center;
    gap: 2rem;
    text-align: left;
}
.about-image {
    flex: 1;
    min-width: 300px; /* Ini OK karena .about-wrapper akan stack di mobile */
}
.about-image img {
    width: 100%;
}
.about-image img:hover {
    transform: scale(1.1); 
	transition: transform 0.3s ease-in-out;
}

.about-text {
    flex: 1;
}


/* --- GAYA GRID PRODUK (BERSIH & DIPERBAIKI) --- */
.product-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
}
.product-link {
    text-decoration: none;
    color: inherit;
    flex-basis: calc(25% - 1rem); /* 4 kolom */
    /* min-width: 250px; (DIHAPUS) - Penyebab overflow */
}
.product-item {
    border-radius: 5px;
    padding: 1rem;
    width: 100%; 
    background: white;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    margin: 0;
    transition: box-shadow 0.3s ease;
    height: 100%; 
}
.product-item:hover {
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}
.product-item .image-container {
    overflow: hidden; 
    border-radius: 5px;
}
.product-item img {
    max-width: 100%;
    height: 220px; /* Tinggi gambar produk */
    object-fit: cover;
    border-radius: 5px;
    transition: transform 0.3s ease; 
}
.product-item:hover img {
    transform: scale(1.1); 
}
.product-item h3 {
    margin-top: 1rem;
    font-size: 1.1rem;
}
/* --- AKHIR GRID PRODUK --- */


/* --- GAYA GALERI PROYEK (4 KOLOM & DIPERBAIKI) --- */
#proyek .gallery-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
}
#proyek .gallery-item {
    flex-basis: calc(25% - 1.5rem); /* 4 kolom */
    /* min-width: 250px; (DIHAPUS) - Penyebab overflow */
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    padding: 0.5rem;
    background: #fff;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
#proyek .gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}
#proyek .gallery-item img {
    max-width: 100%;
    height: 200px; 
    object-fit: cover; 
    display: block;
    cursor: pointer; 
}

/* --- GAYA SLIDER KLIEN --- */
#clients .swiper-slide {
    text-align: center;
    background: none;
    width: auto; 
}
#clients .swiper-slide img {
    max-height: 90px; 
    width: auto;
    filter: grayscale(100%);
    opacity: 0.7;
    transition: filter 0.3s, opacity 0.3s;
}
#clients .swiper-slide:hover img {
    filter: grayscale(0%);
    opacity: 1;
}

/* --- GAYA FORMULIR KONTAK --- */
.contact-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    margin-top: 2rem;
    text-align: left;
}
.contact-info {
    flex: 1;
    min-width: 300px; /* Ini OK karena .contact-wrapper akan stack di mobile */
}
.contact-info h3, #contact-form h3 {
    margin-bottom: 1rem;
    font-size: 1.5rem;
    color: #063970;
}
.contact-info p {
    margin-bottom: 0.5rem;
}
.contact-info p strong {
    color: #333;
}
.maps-container {
    margin-top: 1.5rem;
    border-radius: 8px;
    overflow: hidden;
}

#kontak form {
    flex: 1;
    min-width: 300px; /* Ini OK karena .contact-wrapper akan stack di mobile */
    background: #ffffff;
    padding: 2rem;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}
.form-group { margin-bottom: 1rem; }
.form-group label { display: block; margin-bottom: 0.5rem; font-weight: bold; }
.form-group input, .form-group textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ccc;
    border-radius: 5px;
}
.form-group textarea { min-height: 150px; }
.submit-button {
    display: inline-block;
    background: #063970;
    color: white;
    padding: 0.8rem 1.5rem;
    border: none;
    border-radius: 5px;
    font-weight: bold;
    cursor: pointer;
    font-size: 1rem;
    width: 100%;
}
.submit-button:hover { background: #003366; }

/* --- GAYA TOMBOL WHATSAPP --- */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 40px;
    right: 40px;
    background-color: #25D366;
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 2px 2px 3px #999;
    z-index: 100;
}
.whatsapp-float svg { width: 35px; height: 35px; margin-top: 12px; fill: white; }

/* --- Footer --- */
footer {
    background: #333;
    color: white;
    text-align: center;
    padding: 2rem 1rem;
}


/* === GAYA NAVIGASI RESPONSIVE === */
.burger-menu-icon {
    display: none; 
    background: none;
    border: none;
    cursor: pointer;
}
.mobile-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #063970;
    padding-bottom: 1rem;
    z-index: 1200;
}
.mobile-menu ul { list-style: none; padding: 0; width: 100%; text-align: center; }
.mobile-menu ul li a {
    display: block;
    padding: 1rem;
    color: white;
    text-decoration: none;
    font-size: 1.2rem;
    font-weight: bold;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.mobile-menu ul li a:hover { background: #003366; }
.mobile-menu.active { display: block; }


/* === MEDIA QUERY (PERBAIKAN 320px) === */
@media (max-width: 992px) {
    .desktop-menu { display: none; }
    .burger-menu-icon { display: block; }
    header.active { position: sticky; top: 0; z-index: 1000; }
    
    .contact-wrapper {
        flex-direction: column; /* Stacking */
    }
    /* (BARU) Hapus min-width agar tidak overflow */
    .contact-info, #kontak form {
        min-width: 0;
    }

    /* Galeri di tablet (2 kolom) */
    #proyek .gallery-item {
        flex-basis: calc(50% - 1rem); /* 2 kolom */
    }

    /* Produk di tablet (2 kolom) */
    .product-link {
        flex-basis: calc(50% - 0.5rem); /* 2 kolom */
    }

    .about-wrapper {
        flex-direction: column;
    }
    /* (BARU) Hapus min-width agar tidak overflow */
    .about-image {
        min-width: 0;
    }
}

/* Media query untuk HP (termasuk 320, 360, 414px) */
@media (max-width: 480px) {
    /* Banner diperpendek */
    #hero-slider {
        height: 65vh; 
    }
    
    /* (BARU) Kurangi padding banner di HP */
    .heroSwiper .slide-content {
        padding: 1.5rem 1rem;
    }

    .heroSwiper .slide-content h1 { font-size: 2rem; }
    .heroSwiper .slide-content p { font-size: 1rem; }
    section h2 { font-size: 1.8rem; }
    
     /* Galeri menjadi 2 kolom di HP */
     #proyek .gallery-item {
        flex-basis: calc(50% - 1rem); 
        min-width: 0; /* Hapus min-width agar tidak overflow */
    }
    
    /* Produk menjadi 2 kolom di HP */
    .product-link {
        flex-basis: calc(50% - 0.5rem);
        min-width: 0; /* Hapus min-width agar tidak overflow */
    }
    
    .whatsapp-float {
        width: 50px;
        height: 50px;
        bottom: 20px;
        right: 20px;
    }
    .whatsapp-float svg {
        width: 28px;
        height: 28px;
        margin-top: 11px;
    }
}
/* FIX OVERFLOW GLOBAL */
html, body {
    overflow-x: hidden !important;
    max-width: 100%;
}
*, *::before, *::after {
    box-sizing: border-box;
}
img, iframe {
    max-width: 100% !important;
    height: auto;
    display: block;
}
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 16px;
    overflow-x: hidden;
}
.maps-container iframe {
    width: 100% !important;
}
#hero-slider, .swiper, .swiper-slide, .parallax-bg {
    max-width: 100vw !important;
    overflow: hidden !important;
}

/* Social icons positioning */
.social-icons { display: flex; gap: 0.6rem; align-items: center; margin-left: auto; }
.social-icon { width: 36px; height: 36px; display: inline-flex; align-items: center; justify-content: center; border-radius: 6px; background: transparent; transition: transform 0.25s ease, background 0.25s ease; color: white; }
.social-icon svg { width: 18px; height: 18px; fill: white; transition: transform 0.25s ease; }
.social-icon:hover { transform: scale(1.12); opacity: 0.9; }

@media (max-width:480px){
    .social-icons { display: none; }
}

/* Contact layout tweaks */
.contact-wrapper { align-items: stretch; }
.maps-container { min-height: 420px; height: auto; }
.maps-container iframe { height: 100% !important; min-height: 420px; max-height: 700px; }
#kontak form { min-height: 420px; }

.heroSwiper .slide-content { background: transparent !important; box-shadow: none !important; }

/* Services section */
#services { padding: 2.5rem 0; }
.services-grid { display: flex; gap: 1rem; flex-wrap: wrap; justify-content: center; }
.service-item { flex: 1 1 calc(25% - 1rem); background: #fff; padding: 1.2rem; border-radius: 8px; box-shadow: 0 2px 8px rgba(0,0,0,0.06); text-align: center; transition: transform 0.25s ease, box-shadow 0.25s ease; }
.service-item:hover { transform: scale(1.05); box-shadow: 0 8px 20px rgba(0,0,0,0.08); }
.service-icon { font-size: 32px; margin-bottom: 0.6rem; display: inline-block; }

@media (max-width: 992px) {
    .service-item { flex: 1 1 calc(50% - 1rem); }
}
@media (max-width: 480px) {
    .service-item { flex: 1 1 100%; }
}

#produk { background: #f5f6f7; }
#kontak { background: #f5f6f7; }

/* Remove internal scrollbars inside sections */
section, section * { scrollbar-width: none !important; -ms-overflow-style: none !important; }
section *::-webkit-scrollbar { display: none !important; }
