/* General Setup */
:root {
    --primary-color: #D9232D; /* Red from logos */
    --dark-blue-color: #21376C;
    --dark-color: #212121;
    --light-gray-color: #f4f4f4;
    --white-color: #fff;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    background: var(--white-color);
    color: var(--dark-color);
    overflow-x: hidden; /* Mencegah scroll horizontal */
}

html { 
    scroll-behavior: smooth; 
}

.content-section {
    padding: 80px 7%;
    text-align: center;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 50px;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    width: 60%;
    height: 4px;
    background: var(--primary-color);
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
}

.bg-dark-blue {
    background-color: var(--dark-blue-color);
    color: var(--white-color);
}
.bg-dark-blue .section-title { color: var(--white-color); }
.bg-dark-blue .section-title::after { background: var(--white-color); }
.bg-light-gray { background-color: var(--light-gray-color); }

/* Header & Navigation */
header {
    background: rgba(33, 33, 33, 1.0);
    backdrop-filter: blur(5px);
    padding: 1rem 5%;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.logo img {
    height: 50px;
    width: auto;
    vertical-align: middle;
    transition: height 0.3s ease;
}
.nav-links {
    list-style: none;
    display: flex;
    margin: 0;
    padding: 0;
}
.nav-links li { margin-left: 30px; }
.nav-links a {
    color: var(--white-color);
    text-decoration: none;
    font-weight: 600;
    padding-bottom: 5px;
    position: relative;
    transition: color 0.3s ease;
}
.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    bottom: 0;
    left: 0;
    transition: width 0.3s ease;
}
.nav-links a:hover, .nav-links a.active { color: var(--primary-color); }
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }
.lang-switcher {
    display: flex;
    align-items: center;
}
.lang-switcher button {
    background: none;
    border: 1px solid var(--primary-color);
    color: var(--white-color);
    padding: 5px 10px;
    margin-left: 5px;
    cursor: pointer;
    transition: background 0.3s ease;
}
.lang-switcher button.active, .lang-switcher button:hover {
    background: var(--primary-color);
}

/* PERBAIKAN: Grup untuk tombol kanan di header */
.header-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* Mobile Menu Styles */
.menu-toggle {
    display: none;
    font-size: 1.8rem;
    color: var(--white-color);
    cursor: pointer;
}
.nav-close {
    display: none; 
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    font-size: 2rem;
    color: var(--white-color);
    cursor: pointer;
}


/* Home / Parallax Slider Section */
#home {
    height: 100vh;
    width: 100%;
    position: relative;
    color: var(--white-color);
    overflow: hidden;
}
.slider-container {
    width: 100%; height: 100%;
}
.slide {
    position: absolute;
    width: 100%; height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
}
.slide.active {
    opacity: 1;
}
.slide-background {
    position: absolute;
    width: 100%; height: 100%;
    background-size: cover;
    background-position: center;
    transform: scale(1);
}
.slide.active .slide-background {
    animation: kenburns 40s infinite;
}

@keyframes kenburns {
    from {
        transform: scale(1);
    }
    to {
        transform: scale(1.15);
    }
}

.slide::after {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 1;
}
.slide-content {
    z-index: 2;
    animation: slideUp 1.2s ease-out forwards;
    padding: 20px;
}
.slide-headline {
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--primary-color);
    margin-bottom: 15px;
}
.slide-content i { font-size: 3rem; color: var(--primary-color); margin-bottom: 20px; }
.slide-content h1 { font-size: 3.5rem; margin-bottom: 15px; }
.slide-content p { font-size: 1.2rem; max-width: 650px; margin: 0 auto; }
@keyframes slideUp { from { transform: translateY(50px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
.slider-nav {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
}
.dot {
    cursor: pointer;
    height: 15px; width: 15px;
    margin: 0 5px;
    background-color: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    display: inline-block;
    transition: background-color 0.6s ease;
}
.dot.active, .dot:hover { background-color: var(--primary-color); }

/* About Us Section */
.about-container {
    display: flex;
    align-items: flex-start; 
    gap: 50px;
    text-align: left;
}
.about-image { flex: 1; }
.about-image img { width: 100%; border-radius: 10px; }
.about-text { flex: 1.2; }
.about-text h3 { font-size: 1.6rem; margin-top: 20px; margin-bottom: 10px; color: var(--primary-color); }
.about-text p { margin-bottom: 15px; }
.about-text h3[data-key="aboutSubtitle"] { margin-top: 0; } 




/* =============================== */
/* History Timeline Section */
/* =============================== */
.timeline-container {
    position: relative;
    max-width: 1000px;
    margin: 40px auto 0 auto;
}

/* The central line */
.timeline-container::after {
    content: '';
    position: absolute;
    width: 4px;
    background-color: var(--primary-color);
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -2px;
}

/* Container around content */
.timeline-item {
    padding: 10px 40px;
    position: relative;
    background-color: inherit;
    width: 50%;
}

/* The circles on the timeline */
.timeline-item::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    right: -10px;
    background-color: var(--dark-blue-color); /* Mengubah warna bulatan menjadi biru */
    border: none; /* Menghapus border */
    top: 50%; /* Menempatkan bulatan di tengah secara vertikal */
    transform: translateY(-50%); /* Menyesuaikan posisi agar pas di tengah */
    border-radius: 50%;
    z-index: 1;
}

/* Place the container to the left */
.timeline-item:nth-child(odd) {
    left: 0;
    text-align: right;
}

/* Place the container to the right */
.timeline-item:nth-child(even) {
    left: 50%;
}

/* Fix the circle for items on the right side */
.timeline-item:nth-child(even)::after {
    left: 15px;
}

/* The actual content */
.timeline-content {
    padding: 20px 30px;
    background-color: white;
    position: relative;
    border-radius: 6px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.timeline-content h3 {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-bottom: 10px;
}
.timeline-content p {
    font-size: 0.95rem;
    line-height: 1.5;
}

/* ================================== */
/* Gaya untuk Section Full-Width */
/* ================================== */

/* Wrapper untuk background full-screen */
.full-width-wrapper {
    width: 100%;
    padding: 0;
}

/* Penyesuaian agar padding section tidak berlebihan saat di dalam wrapper */
.full-width-wrapper .content-section {
    padding-top: 80px;
    padding-bottom: 80px;
}
/* ======================================================= */
/* REVISI FINAL: Efek Parallax Stabil untuk Desktop & Mobile */
/* ======================================================= */

/* Terapkan pada semua section yang ingin diberi efek parallax */
#services {
    position: relative;
    z-index: 1;
    color: var(--white-color);
    
    /* Menggunakan gambar background yang berulang */
    background-image: url('img/bannermppc06.jpg'); /* GANTI DENGAN NAMA FILE ANDA */
    background-size: 300px 300px; /* Ukuran repetisi */
    background-repeat: repeat; /* Membuat gambar berulang */
    
    /* Kunci Efek Parallax */
    background-attachment: fixed;
    background-position: center;
}
#contact {
    position: relative; /* Diperlukan untuk posisi overlay */
    background-image: url('img/bannermppc00.jpg');
    background-attachment: fixed; /* Kunci efek parallax di desktop */
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    z-index: 1;
    color: var(--white-color); /* Ubah warna teks default menjadi putih */
}
/* Membuat overlay gelap menggunakan pseudo-element ::before */
#services::before,
#contact::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1; /* Posisikan overlay di belakang konten */
}

/* Atur warna overlay untuk masing-masing section */
#services::before {
    background-color: rgba(33, 55, 108, 0.9); /* Overlay biru tua */
}

#contact::before {
    background-color: rgba(33, 55, 108, 0.9); /* Overlay biru tua */
}

/* Membuat semua teks di dalam section parallax menjadi putih */
#services h2, #services h3, #services p,
#contact h2, #contact h3, #contact p, #contact strong {
    color: var(--white-color);
}

/* Membuat judul section berwarna putih dan garis bawahnya juga putih */
#services .section-title,
#contact .section-title {
    color: var(--white-color);
}

#services .section-title::after,
#contact .section-title::after {
    background-color: var(--white-color);
}

/* Penyesuaian untuk kartu layanan dan form kontak */
#services .service-card {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

#contact .contact-form-wrapper,
#contact .contact-info-wrapper {
    background: transparent;
    border: none;
}

#contact form input, #contact form textarea {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
}

/* PERBAIKAN PENTING: Menonaktifkan parallax di mobile */
@media (max-width: 992px) {
    #services,
    #contact {
        background-attachment: scroll; /* Background akan ikut scroll, BUKAN parallax */
    }
}

/* == Timeline Responsive Adjustments == */
    .timeline-container::after {
        left: 25px;
    }
    .timeline-item {
        width: 100%;
        padding-left: 60px;
        padding-right: 15px;
    }
    .timeline-item:nth-child(odd),
    .timeline-item:nth-child(even) {
        left: 0;
        text-align: left;
    }
    .timeline-item::after {
        left: 15px;
    }


/* =============================================== */
/* Gaya untuk Konten di Dalam Section Pelanggan */
/* =============================================== */

.pelanggan-container {
    display: flex;
    align-items: center;
    gap: 50px;
    text-align: left;
    margin-top: 40px;
}

.pelanggan-image {
    flex: 1;
    min-width: 0;
}

.pelanggan-text {
    flex: 1.2;
    min-width: 0;
}

.pelanggan-image img {
    width: 100%;
    max-width: 300px;
    border-radius: 10px;
    display: block;
    margin: 0 auto;
}

.pelanggan-text p {
    font-size: 1.1rem;
    margin-bottom: 20px;
}

.pelanggan-text ul {
    list-style: none;
    padding-left: 0;
    margin: 20px 0;
}

.pelanggan-text li {
    font-size: 1.1rem;
    padding: 8px 0;
    border-bottom: 1px solid #ddd;
}

.pelanggan-text li:last-child {
    border-bottom: none;
}

/* Membuatnya responsif */
@media(max-width: 992px) {
    .pelanggan-container {
        flex-direction: column;
        gap: 30px;
        text-align: center;
    }
    .pelanggan-text {
        text-align: left;
    }
}


/* Services Section */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    margin-top: 40px;
}
.service-card {
    background: rgba(255,255,255, 0.05);
    border: 1px solid rgba(255,255,255, 0.2);
    padding: 30px 20px;
    border-radius: 10px;
    text-align: center;
    transition: transform 0.3s, background 0.3s;
}
.service-card:hover { transform: translateY(-10px); background: rgba(255,255,255, 0.1); }
.service-card i { font-size: 2.5rem; color: var(--primary-color); margin-bottom: 20px; }
.service-card h3 { margin-bottom: 10px; font-size: 1.2rem; }
.service-card p { font-size: 0.9rem; }

/* Products Section */
.product-category {
    margin-bottom: 50px;
}
.category-title {
    font-size: 1.8rem;
    color: var(--dark-color);
    margin-bottom: 30px;
    text-align: center;
    position: relative;
    display: inline-block;
}
.category-title::after {
    content: '';
    width: 40%;
    height: 3px;
    background: var(--primary-color);
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
}
.genuine-logos {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 40px;
}
.genuine-logos img {
    height: 130px;
    width: auto;
    object-fit: contain;
    filter: grayscale(100%);
    transition: filter 0.3s, height 0.3s ease;
}
.genuine-logos img:hover {
    filter: grayscale(0%);
}
.product-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}
.product-card {
    background: var(--white-color);
    padding: 25px;
    border-radius: 10px;
    text-align: center;
    transition: transform 0.3s;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    word-break: break-word;
}
.product-card:hover { 
    transform: scale(1.05); 
}
.product-card img { 
    height: 200px; 
    width: auto;
    max-width: 100%;
    margin: 0 auto 20px auto; 
    object-fit: contain; 
}
.product-card h3 { color: var(--primary-color); margin-bottom: 10px; font-size: 1.1rem; min-height: 46px; }
.product-card p { font-size: 0.85rem; }


/* Gallery Section */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
}
.gallery-item {
    overflow: hidden;
    border-radius: 8px;
    cursor: pointer;
    aspect-ratio: 1 / 1;
}
.gallery-item img {
    width: 100%; height: 100%;
    display: block;
    object-fit: cover;
    transition: transform 0.4s ease-in-out;
}
.gallery-item:hover img { transform: scale(1.1); }
#lightbox {
    position: fixed; z-index: 2000;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.85);
    display: none; justify-content: center; align-items: center;
    padding: 20px;
}
.lightbox-content { max-width: 90%; max-height: 90%; animation: zoomIn 0.5s ease; }
@keyframes zoomIn { from { transform: scale(0.5); } to { transform: scale(1); } }
.close-lightbox {
    position: absolute; top: 20px; right: 35px;
    color: var(--white-color);
    font-size: 40px; font-weight: bold; cursor: pointer;
}

/* Catalog Section */
#catalog {
    background-color: var(--white-color);
}
.catalog-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
}
.catalog-item {
    overflow: hidden;
    border-radius: 8px;
	padding: 15px;
}
.catalog-item img {
    width: 100%;
    height: 150px;
    display: block;
    object-fit: contain;
    transition: transform 0.3s ease;
}
.catalog-item a:hover img {
    transform: scale(1.1);
}


/* Contact Section */
.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    text-align: left;
    margin-top: 40px;
}
.contact-form-wrapper, .contact-info-wrapper {
    background: rgba(255,255,255, 0.05);
    padding: 30px;
    border-radius: 10px;
    border: 1px solid rgba(255,255,255, 0.2);
}
.contact-container h3 { font-size: 1.5rem; color: var(--white-color); margin-bottom: 20px; }
form input, form textarea {
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    border: 1px solid rgba(255,255,255, 0.3);
    border-radius: 5px;
    background: rgba(255,255,255, 0.1);
    color: var(--white-color);
    font-family: 'Poppins', sans-serif;
}
form input::placeholder, form textarea::placeholder { color: rgba(255,255,255, 0.7); }
.btn-submit {
    width: 100%; padding: 12px;
    background: var(--primary-color);
    color: var(--white-color); border: none;
    border-radius: 5px; cursor: pointer;
    font-size: 1rem; font-weight: 600;
    transition: background-color 0.3s, transform 0.2s;
}
.btn-submit:hover { background: #a71a22; transform: translateY(-2px); }
.contact-info p { 
    margin-bottom: 15px;
    text-align: left;
}
.contact-info i { 
    color: var(--primary-color); 
    margin-right: 15px; 
    font-size: 1.2rem; 
    margin-top: 4px; 
    width: 20px;
    flex-shrink: 0;
}
.map { margin-top: 20px; border-radius: 8px; overflow: hidden; }





/* Footer */
footer {
    background: var(--dark-color);
    color: var(--light-gray-color);
    text-align: center;
    padding: 30px 5%;
}
.social-media { margin-bottom: 15px; }
.social-media a { color: var(--white-color); font-size: 1.5rem; margin: 0 10px; transition: color 0.3s ease; }
.social-media a:hover { color: var(--primary-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.visible { opacity: 1; transform: translateY(0); }


/* Thank You Page */
.thank-you-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background-color: var(--light-gray-color);
    padding: 20px;
}
.thank-you-box {
    background: var(--white-color);
    padding: 50px;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    text-align: center;
    max-width: 500px;
    width: 100%;
}
.thank-you-icon {
    font-size: 5rem;
    color: #28a745;
    margin-bottom: 20px;
}
.btn-back-home {
    display: inline-block;
    background-color: var(--primary-color);
    color: var(--white-color);
    padding: 12px 30px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    transition: background-color 0.3s, transform 0.2s;
}
.btn-back-home:hover {
    background-color: #a71a22;
    transform: translateY(-2px);
}


/* =============================== */
/* Responsive Design */
/* =============================== */
@media(max-width: 992px) {
    .menu-toggle {
        display: block;
    }
    .nav-links {
        position: fixed;
        top: 0;
        right: 0;
        height: 100vh;
        width: 50%; /* PERUBAHAN: Lebar menu mobile */
        background: rgba(20, 20, 20, 0.9);
        backdrop-filter: blur(10px);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 2rem;
        transform: translateX(100%);
        transition: transform 0.5s ease-in-out;
        z-index: 1001;
    }
    .nav-links.nav-active {
        transform: translateX(0);
    }
    .nav-links li {
        margin-left: 0;
    }
    .nav-links a {
        font-size: 1.2rem;
    }
    .nav-close {
        display: block;
    }
    .about-container, .contact-container {
        flex-direction: column;
        grid-template-columns: 1fr;
    }
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .catalog-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    .slide-content h1 { 
        font-size: 2.8rem; 
    }
}

@media(max-width: 768px) {
    .content-section {
        padding: 60px 20px;
    }
    .section-title { font-size: 2rem; }
    .slide-content h1 { font-size: 2.2rem; }
    .slide-content p { font-size: 1rem; padding: 0 10px; }
    .services-grid {
        grid-template-columns: 1fr;
    }
    .product-grid, .gallery-grid, .catalog-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    .logo img { 
        height: 45px; /* PERUBAHAN: Ukuran logo diperbesar */
    }
    .genuine-logos { gap: 15px; }
    .genuine-logos img { height: 120px; }
    .product-card h3 { min-height: initial; }
}

@media (max-width: 600px) {
    .genuine-logos img { 
        height: 120px; 
    }
}

@media (max-width: 560px) {
    .genuine-logos { 
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        align-items: center;
        gap: 15px;
    }
    .genuine-logos img { 
        width: 100%;
        height: auto;
        padding: 10px;
    }
    .product-grid, .gallery-grid, .catalog-grid { 
        grid-template-columns: repeat(2, 1fr); /* PERBAIKAN: Dibuat tetap 2 kolom */
    }
    .product-card {
        padding: 15px;
    }
    .product-card img {
        width: 100%;
        height: auto;
        max-height: 150px;
    }
}