/* --- Variables & Global Reset --- */
:root {
    --primary-color: #333333; 
    --accent-color: #5DADE2;  /* Biru Muda */
    --light-gray: #f4f4f4;
    --text-color: #444;
    --white: #ffffff;
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Open Sans', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: var(--font-body); color: var(--text-color); line-height: 1.6; overflow-x: hidden; }
a { text-decoration: none; color: inherit; transition: 0.3s; }
ul { list-style: none; }
img { max-width: 100%; display: block; }
.container { width: 90%; max-width: 1200px; margin: 0 auto; padding: 0 15px; }
.section-padding { padding: 80px 0; }
.section-gray { background-color: var(--light-gray); }

/* Updated Section Title */
.section-title {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 20px;
    position: relative;
    display: inline-block;
}
.center-title { margin: 0 auto 30px auto; }
.section-title::after {
    content: ''; display: block; width: 60px; height: 4px;
    background: var(--accent-color); margin-top: 10px;
}
.center-title::after { margin: 10px auto 0 auto; }
.text-center { text-align: center; }
.section-header-link:hover .section-title,
.section-title-link:hover h2 { color: var(--accent-color); cursor: pointer; }

/* --- Header / Navigation --- */
header {
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: fixed; width: 100%; top: 0; z-index: 1000;
    height: 90px; display: flex; align-items: center;
}
.nav-container { display: flex; justify-content: space-between; align-items: center; }
.main-logo { width: 200px; max-height: 80px; object-fit: contain; }
.nav-menu ul { display: flex; }
.nav-menu ul li { margin-left: 30px; }
.nav-menu ul li a { font-weight: 600; color: var(--primary-color); font-size: 0.9rem; text-transform: uppercase; }
.nav-menu ul li a:hover { color: var(--accent-color); }
.menu-toggle { display: none; cursor: pointer; }
.bar { display: block; width: 25px; height: 3px; margin: 5px auto; background-color: var(--primary-color); transition: 0.3s; }

/* --- Hero Slider (Zoom In Slow Animation) --- */
.hero-slider {
    position: relative;
    height: 100vh;
    overflow: hidden;
    background: #000;
}

.slide {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    opacity: 0;
    background-size: cover;
    background-position: center;
    /* Menghapus fixed attachment untuk parallax slider agar zoom animation lancar */
    display: flex; justify-content: center; align-items: center; text-align: center;
    transition: opacity 1.5s ease-in-out;
}

/* Keyframes untuk efek Zoom In Slow */
@keyframes zoomSlow {
    0% { transform: scale(1); }
    100% { transform: scale(1.1); }
}

.slide.active {
    opacity: 1;
    /* Menjalankan animasi zoom selama 10 detik */
    animation: zoomSlow 10s linear forwards;
}

.hero-content {
    background: transparent;
    padding: 20px;
    color: var(--white);
    max-width: 900px;
    z-index: 2;
}

.hero-content h1 {
    font-family: var(--font-heading); font-size: 3.5rem; margin-bottom: 10px;
    text-transform: uppercase; letter-spacing: 2px;
    text-shadow: 3px 3px 6px rgba(0,0,0,0.8); 
}
.hero-content p { font-size: 1.5rem; font-weight: 600; text-shadow: 2px 2px 4px rgba(0,0,0,0.8); }

.arrow {
    position: absolute; top: 50%; transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.2); color: white; border: none; padding: 15px;
    cursor: pointer; font-size: 20px; z-index: 10; transition: 0.3s;
}
.arrow:hover { background: var(--accent-color); }
.prev { left: 20px; }
.next { right: 20px; }

/* --- About Section & Hover Image --- */
.about-wrapper { display: flex; align-items: center; gap: 50px; }
.about-img { flex: 1; overflow: hidden; border-radius: 5px; }
.about-img img {
    border-radius: 5px; box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    transition: transform 0.5s ease, filter 0.5s ease;
}
.about-img:hover img { transform: scale(1.05); filter: brightness(1.1); }
.about-text { flex: 1; }
.about-text h2 { font-family: var(--font-heading); font-size: 2rem; margin-bottom: 20px; color: var(--primary-color); }

/* Universal Button Style (Dipakai untuk About & Gallery Load More) */
.btn {
    display: inline-block; padding: 12px 30px;
    background-color: var(--accent-color); /* Warna Biru Muda */
    color: var(--white);
    font-weight: 600; border-radius: 30px; margin-top: 10px;
    border: 2px solid var(--accent-color);
}
.btn:hover { background-color: var(--primary-color); border-color: var(--primary-color); }

/* --- Services Section Parallax --- */
.parallax-service {
    background-image: url('img/background.jpeg');
    background-attachment: fixed; background-position: center; background-repeat: no-repeat;
    background-size: cover; position: relative; color: var(--primary-color);
}
.overlay-service {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(255, 255, 255, 0.85); z-index: 1;
}
.position-relative { position: relative; z-index: 2; }
.services-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; margin-top: 40px; }
.service-card {
    background: rgba(255, 255, 255, 0.9); padding: 30px; text-align: center; border-radius: 5px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05); transition: transform 0.4s ease;
}
.service-card:hover { transform: scale(1.05); box-shadow: 0 10px 25px rgba(0,0,0,0.1); }
.service-card i { font-size: 3rem; color: var(--accent-color); margin-bottom: 20px; }
.service-card h3 { font-family: var(--font-heading); margin-bottom: 15px; font-size: 1.2rem; }

/* --- Products Section --- */
.products-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 40px; }
.product-card { background: var(--white); border: 1px solid #eee; overflow: hidden; display: block; }
.product-img-box { overflow: hidden; height: 250px; }
.product-img-box img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.product-card:hover .product-img-box img { transform: scale(1.1); }
.product-info { padding: 15px; text-align: center; background: var(--white); }
.product-info h3 { font-size: 1rem; color: var(--primary-color); transition: color 0.3s ease; }

/* HOVER EFFECT PRODUCT TEXT -> LIGHT BLUE */
.product-card:hover .product-info h3 {
    color: var(--accent-color);
}

/* --- Gallery Section --- */
.gallery-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 15px; margin-top: 30px; }
.gallery-item { overflow: hidden; height: 200px; cursor: pointer; border-radius: 5px; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.gallery-item:hover img { transform: scale(1.1); }

/* Lightbox */
.lightbox { display: none; position: fixed; z-index: 2000; left: 0; top: 0; width: 100%; height: 100%; background-color: rgba(0,0,0,0.9); justify-content: center; align-items: center; }
.lightbox-content { max-width: 90%; max-height: 80vh; animation: zoomSimple 0.3s; }
@keyframes zoomSimple { from {transform:scale(0)} to {transform:scale(1)} }
.close-btn { position: absolute; top: 20px; right: 30px; color: #fff; font-size: 40px; cursor: pointer; }

/* --- Contact Section --- */
.contact-wrapper { display: flex; gap: 40px; }
.contact-info { flex: 1; }
.contact-map { flex: 1; }
.info-list { margin-top: 20px; }
.info-list li { display: flex; align-items: center; margin-bottom: 20px; font-size: 1rem; }
.info-list li i { width: 30px; color: var(--accent-color); font-size: 1.2rem; margin-right: 15px; }
.info-list a { color: var(--text-color); }
.info-list a:hover { color: var(--accent-color); }
.wa-link { color: #25D366; font-weight: 700; }
.social-media { margin-top: 30px; }
.insta-btn { display: inline-flex; align-items: center; margin-top: 10px; background: linear-gradient(45deg, #f09433 0%,#e6683c 25%,#dc2743 50%,#cc2366 75%,#bc1888 100%); color: white; padding: 10px 20px; border-radius: 5px; font-weight: 600; }
.insta-btn i { margin-right: 10px; font-size: 1.2rem; }

/* --- Footer --- */
footer {
    background-color: var(--accent-color);
    color: var(--white);
    text-align: center; padding: 30px 0; font-size: 0.9rem; font-weight: 600;
}

/* --- Responsive --- */
@media (max-width: 1024px) {
    .services-grid, .products-grid, .gallery-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 768px) {
    header { height: 80px; }
    .main-logo { width: 150px; }
    .menu-toggle { display: block; }
    .nav-menu { position: fixed; left: -100%; top: 80px; gap: 0; flex-direction: column; background-color: var(--white); width: 100%; text-align: center; transition: 0.3s; padding: 20px 0; box-shadow: 0 5px 5px rgba(0,0,0,0.1); }
    .nav-menu.active { left: 0; }
    .nav-menu ul { flex-direction: column; }
    .nav-menu ul li { margin: 15px 0; }
    .about-wrapper, .contact-wrapper { flex-direction: column; }
    .services-grid, .products-grid, .gallery-grid { grid-template-columns: repeat(2, 1fr); }
    .hero-content h1 { font-size: 2rem; }
}
@media (max-width: 480px) {
    .services-grid, .products-grid, .gallery-grid { grid-template-columns: 1fr; }
    .hero-content h1 { font-size: 1.5rem; }
	
    .hero-slider {
    position: relative;
    height: 75vh;
    overflow: hidden;
    background: #000;}
}

/* Tata Letak Desktop */
.product-main-layout {
    display: flex;
    flex-direction: row-reverse; /* Video di kanan, Teks di kiri */
    gap: 40px;
    align-items: flex-start;
}

.detail-content {
    flex: 1;
}

/* Mengatur Video agar tetap Portrait dan Kecil */
.detail-video-box {
    flex: 0 0 250px; /* Lebar video dikunci pada 250px */
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.video-container {
    width: 100%;
    background: #000;
    line-height: 0;
}

.video-container video {
    width: 100%;
    height: auto;
    display: block;
    aspect-ratio: 9 / 16; /* Memaksa nisbah portrait */
    object-fit: cover;
}

.video-caption {
    text-align: center;
    font-size: 0.8rem;
    padding: 10px;
    margin: 0;
    color: #666;
    background: #f9f9f9;
}

/* Tata Letak Mobile */
@media (max-width: 992px) {
    .product-main-layout {
        flex-direction: column; /* Menumpuk secara vertikal */
        align-items: center;
    }

    .detail-video-box {
        flex: 0 0 auto;
        width: 100%;
        max-width: 250px; /* Tetap kecil di mobile */
        margin-bottom: 30px;
        order: -1; /* Video naik ke posisi paling atas */
    }

    .detail-content {
        width: 100%;
        order: 2;
    }
}