/* ==========================================================================
   1. IMPORT FONT & DESIGN VARIABLES (BIOTANI PREMIUM PALETTE)
   ========================================================================== */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,600;1,400&family=Plus+Jakarta+Sans:wght@400;500;700&display=swap');

:root {
    --bg-tua: #0B130E;          /* Hijau hutan sangat gelap (adem & premium) */
    --hijau-utama: #162A20;     /* Hijau botani pekat untuk latar section */
    --hijau-sedang: #2E5A44;    /* Hijau daun subur untuk aksen & ikon */
    --hijau-muda: #76A083;      /* Hijau sage lembut untuk batas & teks sekunder */
    --aksen-terang: #CCE3D1;    /* Hijau mint pucat / pucuk daun untuk foam efek */
    --teks-terang: #F0F4F1;     /* Putih bersih dengan sedikit tint hijau agar adem */
}

/* ==========================================================================
   2. GLOBAL RESET & BASE STYLES
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Plus Jakarta Sans', sans-serif;
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-tua);
    color: var(--teks-terang);
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.hidden { 
    display: none !important; 
}

/* Typography Global */
.section-title { 
    text-align: center; 
    margin-bottom: 60px; 
}

.section-title h2 { 
    font-family: 'Playfair Display', serif; 
    font-size: 40px; 
    margin-bottom: 15px; 
    color: #fff;
}

.section-title p { 
    color: var(--aksen-terang); 
    font-size: 16px;
}

/* Buttons Base */
.btn {
    padding: 14px 30px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    display: inline-block;
    transition: all 0.3s ease;
}

.btn-primary { background-color: var(--hijau-sedang); color: #fff; }
.btn-primary:hover { background-color: var(--aksen-terang); color: var(--bg-tua); }
.btn-secondary { border: 2px solid var(--aksen-terang); color: var(--aksen-terang); }
.btn-secondary:hover { background-color: var(--aksen-terang); color: var(--bg-tua); }
/* ==========================================================================
   3. NAVBAR COMPONENT (PERMANENT HAMBURGER)
   ========================================================================== */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 8%;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    background: rgba(11, 19, 14, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.4s ease;
}

.navbar .logo {
    font-family: 'Playfair Display', serif;
    font-size: 28px;
    color: var(--teks-terang);
    text-decoration: none;
    font-weight: bold;
}

.navbar .logo span { 
    color: var(--aksen-terang); 
}

/* 1. Ubah nav-links menjadi overlay/sidebar yang tersembunyi secara default */
.nav-links { 
    display: flex; 
    flex-direction: column; /* Berjejer ke bawah */
    justify-content: center;
    align-items: center;
    list-style: none; 
    position: fixed;
    top: 0;
    right: -100%; /* Sembunyi di kanan layar */
    width: 300px; /* Lebar menu sidebar */
    height: 100vh;
    background: rgba(11, 19, 14, 0.98); /* Background gelap solid/blur */
    backdrop-filter: blur(15px);
    transition: right 0.4s ease-in-out;
    z-index: 999;
}

/* 2. Class active untuk memunculkan menu lewat JavaScript */
.nav-links.active {
    right: 0; /* Geser ke dalam layar */
}

.nav-links li {
    margin: 20px 0; /* Jarak antar menu vertikal */
}

.nav-links li a {
    color: var(--hijau-muda);
    text-decoration: none;
    font-size: 18px; /* Sedikit diperbesar agar pas di mobile/sidebar */
    font-weight: 500;
    transition: 0.3s;
    position: relative;
}

.nav-links li a:hover,
.nav-links li a.active { 
    color: var(--aksen-terang); 
}

.menu-toggle { 
    display: block; 
    color: #fff; 
    font-size: 24px; 
    cursor: pointer; 
    transition: transform 0.3s ease;
    
    /* Perubahan di bawah ini */
    position: fixed;     /* Kunci posisi di layar */
    right: 8%;           /* Samakan dengan padding navbar agar sejajar */
    top: 28px;           /* Sesuaikan tinggi posisi tombol agar pas di tengah navbar */
    z-index: 1002;       /* Naikkan di atas navbar (1000) dan nav-links (999) */
}
/* ==========================================================================
   4. HERO SECTION WITH SLIDER ADJUSTMENT
   ========================================================================== */
.hero {
    height: 100vh;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    padding: 0 8%;
    position: relative;
    transition: background-image 0.8s ease-in-out; 
}

.hero-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    z-index: 1;
}

.hero-content {
    position: relative;
    max-width: 650px;
    z-index: 2;
}

.tagline {
    text-transform: uppercase;
    letter-spacing: 3px;
    font-size: 15px;
    color: var(--aksen-terang);
    font-weight: 700;
    display: inline-block;
    margin-bottom: 10px;
}

.hero-content h1 {
    font-family: 'Playfair Display', serif;
    font-size: 60px;
    line-height: 1.15;
    margin: 15px 0 25px 0;
    color: #fff;
}

.hero-content p {
    font-size: 20px;
    color: #CCD6CE;
    line-height: 1.6;
    margin-bottom: 35px;
}

.slider-dots {
    position: absolute;
    bottom: 40px;
    left: 8%;
    display: flex;
    gap: 10px;
    z-index: 5;
}

.dot {
    width: 12px;
    height: 12px;
    background: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: all 0.8s ease;
    -webkit-transition: all 0.8s ease;
    -moz-transition: all 0.8s ease;
    -ms-transition: all 0.8s ease;
    -o-transition: all 0.8s ease;
}

.dot.active {
    background: var(--aksen-terang);
    width: 30px;
    border-radius: 5px;
}

/* ==========================================================================
   5. ABOUT SECTION (MODERN ASYMMETRIC LAYOUT)
   ========================================================================== */
.about-section {
    padding: 140px 8%; /* Menambah ruang vertikal agar lebih elegan */
    background-color: var(--bg-tua);
    overflow: hidden;
}

.about-container {
    max-width: 1200px;
    margin: 0 auto;
}

.about-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr; /* Layout asimetris modern, gambar sedikit lebih dominan */
    gap: 80px; /* Jarak yang lebih lega antar kolom */
    align-items: center;
}

/* --- Kolom Gambar (Sisi Kiri) --- */
.about-image-box {
    position: relative;
    padding: 20px; /* Ruang untuk aksen border luar */
}

/* Efek dekorasi bingkai di belakang gambar */
.about-image-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 85%;
    height: 90%;
    border: 2px solid rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    z-index: 1;
    pointer-events: none;
}

.about-image-box img {
    width: 100%;
    height: 520px; /* Sedikit ditinggikan untuk kesan megah */
    object-fit: cover;
    border-radius: 20px; /* Lebih membulat halus */
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.08);
    position: relative;
    z-index: 2;
    transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1), box-shadow 0.5s ease;
}

/* Efek interaktif halus saat kursor melintas */
.about-image-box:hover img {
    transform: translateY(-8px);
    box-shadow: 0 40px 70px rgba(0, 0, 0, 0.6);
}

/* Badge pengalaman yang memotong sudut gambar secara estetik */
.about-experience-badge {
    position: absolute;
    bottom: 40px;
    right: -10px;
    background: var(--hijau-utama);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 25px 30px;
    border-radius: 16px;
    text-align: center;
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.4);
    z-index: 3;
    backdrop-filter: blur(5px);
    transition: transform 0.4s ease;
}

.about-image-box:hover .about-experience-badge {
    transform: translateY(-4px) scale(1.02);
}

.about-experience-badge h3 {
    font-family: 'Playfair Display', serif;
    font-size: 38px;
    color: var(--aksen-terang);
    line-height: 1;
    margin-bottom: 5px;
}

.about-experience-badge p {
    font-size: 11px;
    color: var(--hijau-muda);
    text-transform: uppercase;
    letter-spacing: 2px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 8px;
    margin-top: 8px;
}

/* --- Kolom Konten Teks (Sisi Kanan) --- */
.about-tagline {
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 3px; /* Jarak huruf diperlebar */
    color: var(--hijau-muda);
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

/* Dekorasi garis mini di depan tagline */
.about-tagline::before {
    content: '';
    width: 25px;
    height: 2px;
    background-color: var(--hijau-muda);
}

.about-text-box h2 {
    font-family: 'Playfair Display', serif;
    font-size: 46px; /* Ukuran proporsional heading utama */
    line-height: 1.25;
    color: #fff;
    margin-bottom: 25px;
    letter-spacing: -0.5px;
}

.about-lead {
    font-size: 19px;
    color: var(--aksen-terang);
    line-height: 1.65;
    margin-bottom: 22px;
    font-weight: 500;
}

.about-desc {
    font-size: 15px;
    color: #9BB0A3;
    line-height: 1.75;
    margin-bottom: 40px;
}

/* Mengubah daftar fitur vertikal menjadi grid 2 kolom */
.about-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 30px;
}

.feature-item {
    display: flex;
    flex-direction: column; /* Mengubah susunan ikon di atas, teks di bawah */
    align-items: flex-start;
    gap: 15px;
}

.feature-item i {
    font-size: 18px;
    color: var(--aksen-terang);
    background: rgba(46, 90, 68, 0.2);
    padding: 14px;
    border-radius: 12px;
    border: 1px solid rgba(46, 90, 68, 0.4);
    box-shadow: inset 0 2px 4px rgba(255, 255, 255, 0.05);
}

.feature-content {
    display: flex;
    flex-direction: column;
}

.feature-item h4 {
    font-size: 16px;
    color: #fff;
    margin-bottom: 6px;
    font-weight: 600;
}

.feature-item p {
    font-size: 13.5px;
    color: #99AAB0;
    line-height: 1.5;
}

/* Responsive Breakpoint untuk Layar Tablet/Mobile */
@media (max-width: 992px) {
    .about-grid {
        grid-template-columns: 1fr; /* Kembali ke 1 kolom jika layar sempit */
        gap: 60px;
    }
    .about-image-box img {
        height: 400px;
    }
    .about-features {
        grid-template-columns: 1fr; /* Fitur kembali vertikal di mobile */
    }
}
/* ==========================================================================
   6. SERVICES SECTION (ADVANCED GRID & INTERACTIVE GALLERY)
   ========================================================================== */
.services-section {
    padding: 140px 8%; /* Ruang vertikal yang lebih lega dan premium */
    background-color: var(--hijau-utama);
}

.services-container {
    max-width: 1200px; /* Diperlebar agar sejajar dengan About Section sebelumnya */
    margin: 0 auto;
}

/* --- Kotak Pengantar (Top Split Layout) --- */
.services-content-box {
    background-color: var(--bg-tua);
    padding: 50px;
    /*Paddinglebihtebalagarterasaluas*/border-radius: 50px;
    /*Sisisudutlebihmelengkunghalus*/border: 1px solid rgba(255, 255, 255, 0.05);
    border-top: 5px solid var(--aksen-terang);
    margin-bottom: 60px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);
    /*Membuatstruktursplitdidalamkotakintrojikalayarlebar*/display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 50px;
    align-items: center;
    -webkit-border-radius: 20px;
    -moz-border-radius: 20px;
    -ms-border-radius: 20px;
    -o-border-radius: 20px;
}

.service-intro {
    font-size: 17px;
    color: var(--hijau-muda);
    line-height: 1.75;
    margin-bottom: 0; /* Menghilangkan margin bawah karena sudah sejajar dengan list */
    font-weight: 500;
}

/* --- Daftar Layanan --- */
.service-list {
    list-style: none;
    display: grid;
    grid-template-columns: 1fr; /* Memanfaatkan tumpukan vertikal bersih di dalam grid kanan */
    gap: 35px;
}

.service-list li {
    display: flex;
    align-items: flex-start;
    gap: 24px;
    transition: transform 0.3s ease;
}

/* Efek interaktif mikro saat list disorot */
.service-list li:hover {
    transform: translateX(5px);
}

.service-list li i {
    font-size: 20px;
    color: var(--aksen-terang);
    background: rgba(46, 90, 68, 0.3);
    padding: 15px; /* Sedikit diperluas */
    border-radius: 12px;
    border: 1px solid rgba(46, 90, 68, 0.5);
    box-shadow: inset 0 2px 4px rgba(255, 255, 255, 0.05);
    transition: background 0.3s ease, color 0.3s ease;
}

.service-list li:hover i {
    background: var(--aksen-terang);
    color: var(--bg-tua); /* Kontras balik saat di-hover */
}

.service-list h4 {
    font-size: 19px;
    color: #fff;
    margin-bottom: 8px;
    font-weight: 600;
}

.service-list p {
    font-size: 14.5px;
    color: #9BB0A3;
    line-height: 1.65;
}

/* --- Galeri Grid Komposisi Modern --- */
.services-gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px; /* Jarak antar kartu lebih seimbang */
}

.gallery-card {
    position: relative;
    height: 320px; /* Ditambah tingginya untuk visual proporsional gambar */
    border-radius: 16px; /* Desain sudut modern */
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.35);
    cursor: pointer;
}

.gallery-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}

/* Overlay teks gradasi dinamis */
.gallery-overlay-text {
    position: absolute;
    bottom: 0; 
    left: 0; 
    width: 100%;
    padding: 30px 25px;
    /* Gradasi dipertebal di area bawah untuk keterbacaan teks teks */
    background: linear-gradient(0deg, rgba(11, 19, 14, 0.95) 0%, rgba(11, 19, 14, 0.4) 60%, rgba(11, 19, 14, 0) 100%);
    color: var(--aksen-terang);
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    transform: translateY(5px); /* Efek awal turun sedikit */
    transition: transform 0.5s ease, color 0.3s ease;
}

/* --- Trigger Efek Hover Galeri --- */
.gallery-card:hover img { 
    transform: scale(1.12) rotate(1deg); /* Sedikit rotasi dinamis saat zoom */
}

.gallery-card:hover .gallery-overlay-text {
    transform: translateY(0);
    color: #fff; /* Teks berubah menjadi putih terang saat disorot */
}

/* --- Responsive Breakpoint --- */
@media (max-width: 992px) {
    .services-content-box {
        grid-template-columns: 1fr; /* Kembali menjadi satu kolom bertumpuk di tablet */
        gap: 35px;
        padding: 35px;
    }
    
    .services-gallery-grid {
        grid-template-columns: repeat(2, 1fr); /* Galeri menjadi 2 kolom di tablet */
        gap: 20px;
    }
}

@media (max-width: 600px) {
    .services-gallery-grid {
        grid-template-columns: 1fr; /* Galeri penuh menjadi 1 kolom lurus di ponsel */
    }
    .gallery-card {
        height: 260px;
    }
}

/* ==========================================================================
   7. PRODUCTS SECTION
   ========================================================================== */
.products { 
    padding: 120px 8%; 
    background-color: var(--bg-tua);
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.product-card {
    background-color: rgba(255,255,255,0.02);
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    transition: all 0.4s ease;
}

.product-card:hover {
    transform: translateY(-12px);
    border-color: var(--hijau-sedang);
}

.badge {
    position: absolute; top: 15px; left: 15px;
    background: var(--hijau-sedang);
    padding: 5px 12px; font-size: 11px; font-weight: 700;
    text-transform: uppercase; border-radius: 20px; z-index: 2;
    color: #fff;
}

.img-container { overflow: hidden; height: 240px; }
.product-card img {
    width: 100%; height: 100%; object-fit: cover;
    transition: 0.5s;
}

.product-card:hover img { transform: scale(1.1); }
.card-body { padding: 25px; }
.card-body h3 { font-size: 22px; margin-bottom: 12px; font-weight: 600; color: #fff;}
.card-body p { color: #A0B0A6; font-size: 14px; line-height: 1.6; margin-bottom: 20px; }

.card-footer {
    display: flex; justify-content: space-between; align-items: center;
    border-top: 1px solid rgba(255,255,255,0.05); padding-top: 15px;
}

.price { font-size: 20px; font-weight: 700; color: var(--aksen-terang); }

.btn-action {
    background: var(--hijau-sedang); color: #fff; border: none;
    width: 45px; height: 45px; border-radius: 50%;
    cursor: pointer; display: flex; align-items: center; justify-content: center;
    font-size: 18px; transition: 0.3s;
}

.btn-action:hover { background: var(--aksen-terang); color: var(--bg-tua); }

/* ==========================================================================
   8. PORTFOLIO SECTION & POPUP MODAL (CINEMATIC DESIGN)
   ========================================================================== */
.portfolio-section {
    padding: 140px 8%;
    background-color: var(--hijau-utama);
}

.portfolio-container { 
    max-width: 1200px; 
    margin: 0 auto; 
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); /* Lebar minimum sedikit dinaikkan agar lebih gagah */
    gap: 35px;
}

.portfolio-card {
    background: var(--bg-tua);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    /*Sudutlengkungandisamakandengansectionmodernsebelumnya*/overflow: hidden;
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1), border-color 0.4s ease, box-shadow 0.4s ease;
    -webkit-transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1), border-color 0.4s ease, box-shadow 0.4s ease;
    -moz-transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1), border-color 0.4s ease, box-shadow 0.4s ease;
    -ms-transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1), border-color 0.4s ease, box-shadow 0.4s ease;
    -o-transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1), border-color 0.4s ease, box-shadow 0.4s ease;
}

.portfolio-card:hover {
    transform: translateY(-10px);
    border-color: var(--hijau-sedang);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.4);
}

/* Bingkai Gambar Portofolio */
.portfolio-img { 
    height: 260px; 
    overflow: hidden; 
    position: relative;
}

/* Efek shadow dalam tipis di atas gambar */
.portfolio-img::after {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0) 60%, rgba(11,19,14,0.4) 100%);
    transition: opacity 0.4s ease;
}

.portfolio-img img { 
    width: 100%; 
    height: 100%; 
    object-fit: cover; 
    transition: transform 0.7s cubic-bezier(0.25, 1, 0.5, 1); 
}

.portfolio-card:hover .portfolio-img img { 
    transform: scale(1.08); 
}

/* Informasi Portofolio */
.portfolio-info { 
    padding: 30px; 
}

.portfolio-info span {
    font-size: 11px; 
    text-transform: uppercase; 
    letter-spacing: 2px;
    color: var(--aksen-terang); 
    font-weight: 700; 
    display: inline-block; 
    margin-bottom: 12px;
}

.portfolio-info h3 { 
    font-family: 'Playfair Display', serif; 
    font-size: 24px; 
    color: #fff; 
    margin-bottom: 25px; 
    line-height: 1.3;
}

/* Tombol Detail */
.btn-detail {
    background: transparent; 
    border: none; 
    color: var(--hijau-muda);
    font-weight: 600; 
    font-size: 14.5px; 
    cursor: pointer;
    display: inline-flex; 
    align-items: center; 
    gap: 10px; 
    transition: color 0.3s ease;
    padding: 5px 0;
    position: relative;
}

.btn-detail i {
    transition: transform 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}

.btn-detail:hover { 
    color: var(--aksen-terang); 
}

.btn-detail:hover i { 
    transform: translateX(6px); 
}

/* ==========================================================================
   8b. SINKRONISASI POPUP MODAL (ANTI-INTERFERENSI GRID)
   ========================================================================== */

/* Ini adalah lapisan gelap yang mengunci layar penuh */
#portfolioModal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: rgba(11, 19, 14, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 9999;
    opacity: 1;
    visibility: visible;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

/* Saat disembunyikan */
#portfolioModal.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

/* KOTAK UTAMA: Ini yang kita paksa berdiri di tengah layar secara mutlak */
#portfolioModal .modal-content {
    background-color: var(--bg-tua);
    width: calc(100% - 40px); /* Memberi jarak aman 20px kanan-kiri di layar kecil */
    max-width: 850px;
    border-radius: 24px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.6);
    
    /* RUMUS SAKTI PENGUNCI TENGAH (Mencegah Grid Rusak) */
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(1);
    
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

/* Efek Hentakan Halus saat Muncul */
#portfolioModal.hidden .modal-content {
    transform: translate(-50%, -50%) scale(0.92);
}

/* Pembagi Tata Letak Dalam Modal */
.modal-body-layout {
    display: grid;
    grid-template-columns: 1.1fr 1.2fr;
    min-height: 450px;
}

.modal-img-box {
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.modal-img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.modal-text-box {
    padding: 45px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Tombol Close */
.modal-close-btn {
    position: absolute;
    top: 20px;
    right: 25px;
    font-size: 32px;
    color: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: color 0.3s ease;
    z-index: 10;
    line-height: 1;
}
.modal-close-btn:hover { color: #fff; }


/* --- RESPONSIVE POPUP SMARTPHONE / TABLET --- */
@media (max-width: 768px) {
    #portfolioModal .modal-content {
        width: calc(100% - 30px);
        max-height: 85vh; /* Menjaga agar tidak mentok ke batas layar atas-bawah HP */
        overflow-y: auto;
    }

    .modal-body-layout {
        grid-template-columns: 1fr;
        min-height: auto;
    }

    .modal-img-box {
        height: 200px;
    }

    .modal-text-box {
        padding: 30px 20px;
    }
    
    .modal-close-btn {
        top: 15px; right: 15px;
        background: rgba(11, 19, 14, 0.8);
        width: 36px; height: 36px; border-radius: 50%;
        display: flex; align-items: center; justify-content: center;
        font-size: 22px; color: #fff;
    }
}

/* ==========================================================================
   9. WHY CHOOSE US & CONTACT LINE (PERFECT FULL BACKGROUND)
   ========================================================================== */

/* --- WHY CHOOSE US SECTION --- */
.why-choose-section {
    padding: 120px 8%; /* Padding atas bawah diperbesar agar background terlihat megah */
    background-color: var(--bg-tua);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.why-img-box {
    position: absolute;
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%;
    z-index: -1; 
}

.why-img-box img {
    width: 100%; 
    height: 100%; 
    object-fit: cover; /* Memastikan gambar memenuhi seluruh area tanpa distorsi */
    filter: brightness(0.25); 
}

.why-choose-container {
    max-width: 1200px; 
    margin: 0 auto;
    /* MENGHAPUS DISPLAY FLEX AGAR TEKS MELEBAR */
    display: block; 
    position: relative;
    z-index: 3;
}

.why-text-box {
    margin-bottom: 30px; /* Jarak antara teks dan tombol di bawahnya */
    max-width: 800px; /* Membatasi lebar teks agar nyaman dibaca */
}

.why-text-box h3 { font-family: 'Playfair Display', serif; font-size: 36px; color: #fff; margin-bottom: 15px; }
.why-text-box p { font-size: 16px; color: #CBDCD0; line-height: 1.8; }

.btn-video {
    background: transparent; border: 2px solid var(--aksen-terang); color: var(--aksen-terang);
    padding: 14px 28px; border-radius: 30px; font-weight: 600; cursor: pointer;
    display: inline-flex; align-items: center; gap: 10px; transition: 0.3s;
}
.btn-video:hover { background-color: var(--aksen-terang); color: var(--bg-tua); transform: translateY(-2px); }


/* --- CONTACT LINE COMPONENT --- */
.contact-line-section {
    padding: 120px 8%;
    background-color: var(--bg-tua);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.contact-line-img {
    position: absolute;
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%;
    z-index: -1;
}

.contact-line-img img {
    width: 100%; 
    height: 100%; 
    object-fit: cover;
    filter: brightness(0.25);
}

.contact-line-container {
    max-width: 1200px; 
    margin: 0 auto;
    /* MENGHAPUS DISPLAY FLEX AGAR TEKS MELEBAR */
    display: block;
    position: relative;
    z-index: 3;
}

.contact-line-text {
    margin-bottom: 30px;
    max-width: 800px;
}

.contact-line-text h3 { font-family: 'Playfair Display', serif; font-size: 36px; color: #fff; margin-bottom: 15px; }
.contact-line-text p { font-size: 16px; color: #CBDCD0; line-height: 1.8; }

.btn-wa-line {
    background-color: #25D366; color: #fff; text-decoration: none;
    padding: 14px 28px; border-radius: 30px; font-weight: 600;
    display: inline-flex; align-items: center; gap: 10px; transition: 0.3s ease;
}
.btn-wa-line:hover { background-color: #20ba5a; transform: translateY(-3px); }


/* --- RESPONSIVE SCREEN --- */
@media (max-width: 768px) {
    .why-choose-section, .contact-line-section { padding: 80px 5%; text-align: center; }
    .why-text-box h3, .contact-line-text h3 { font-size: 28px; }
    .btn-video, .btn-wa-line { width: 100%; justify-content: center; }
}

/* ==========================================================================
   10. TEAM SECTION (MODERN ASYMMETRIC PROFILE)
   ========================================================================== */
.team-section {
    padding: 140px 8%;
    background-color: var(--hijau-utama);
}

.team-container { 
    max-width: 1200px; 
    margin: 0 auto; 
}

.team-grid {
    display: grid;
    /* Menggunakan repeat auto-fit agar grid otomatis responsif di berbagai layar */
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px; /* Jarak antar kartu diperlebar agar tidak terasa sesak */
    margin-top: 60px;
}

.team-card {
    background-color: var(--bg-tua);
    border-radius: 24px; /* Sudut lengkung lebih halus mengikuti tren modern */
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.03);
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1), box-shadow 0.4s ease, border-color 0.4s ease;
}

.team-card:hover { 
    transform: translateY(-12px); 
    border-color: rgba(255, 255, 255, 0.1);
    box-shadow: 0 30px 60px rgba(11, 19, 14, 0.4);
}

/* Bingkai Foto Profil */
.team-img-box { 
    height: 380px; /* Ditambah tingginya agar proporsi tubuh terlihat proporsional */
    overflow: hidden; 
    position: relative;
}

/* Lapisan warna transparan di atas foto */
.team-img-box::after {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to bottom, rgba(18, 34, 26, 0) 50%, rgba(18, 34, 26, 0.8) 100%);
    transition: opacity 0.4s ease;
}

.team-img-box img { 
    width: 100%; 
    height: 100%; 
    object-fit: cover; 
    filter: grayscale(20%); /* Efek sinematik semi-monokrom pasif */
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1), filter 0.6s ease; 
}

.team-card:hover .team-img-box img { 
    transform: scale(1.06); 
    filter: grayscale(0%); /* Foto kembali berwarna penuh saat di-hover */
}

/* Area Informasi Teks Ahli */
.team-info { 
    padding: 35px 30px; 
    text-align: center; 
    position: relative;
    margin-top: -30px; /* Menaikkan kotak info sedikit ke atas gambar (asimetris style) */
    background: var(--bg-tua);
    border-radius: 24px 24px 0 0; /* Membuat lengkungan di dalam potongan kartu */
    z-index: 2;
}

.team-info h3 { 
    font-family: 'Playfair Display', serif; 
    font-size: 26px; 
    color: #fff; 
    font-weight: 600;
    letter-spacing: -0.5px;
}

.team-position { 
    font-size: 11px; 
    text-transform: uppercase; 
    color: var(--aksen-terang); 
    font-weight: 700; 
    margin: 8px 0 20px; 
    display: inline-block; 
    letter-spacing: 2px;
}

.team-desc { 
    font-size: 14.5px; 
    color: #9BB0A3; 
    line-height: 1.7; 
    margin-bottom: 30px; 
}

/* Tata Letak Tombol Media Sosial */
.team-socials { 
    display: flex; 
    justify-content: center; 
    gap: 12px; 
}

.team-socials a {
    color: var(--hijau-muda); 
    background: rgba(255, 255, 255, 0.04);
    width: 44px; 
    height: 44px; 
    border-radius: 50%;
    display: flex; 
    align-items: center; 
    justify-content: center; 
    font-size: 16px;
    border: 1px solid rgba(255, 255, 255, 0.02);
    transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.team-socials a:hover { 
    background-color: var(--aksen-terang); 
    color: var(--bg-tua); 
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

/* --- RESPONSIVE SCREEN BREAKPOINT --- */
@media (max-width: 768px) {
    .team-section {
        padding: 100px 5%;
    }
    
    .team-grid {
        gap: 50px; /* Jarak diperlebar saat menumpuk vertikal agar efek asimetris tidak tabrakan */
    }
    
    .team-img-box {
        height: 340px; /* Sedikit dikecilkan di layar ponsel agar tidak terlalu panjang */
    }
}
/* ==========================================================================
   11. REVIEWS SECTION (MODERN 2-COLUMN SLIDER SYSTEM)
   ========================================================================== */
.review-section {
    padding: 140px 8%;
    background-color: var(--hijau-utama);
    overflow: hidden; 
}

.review-container { 
    max-width: 1200px; /* Diperlebar agar muat 2 kolom berdampingan dengan lega */
    margin: 0 auto; 
}

.review-relative-box {
    position: relative;
    width: 100%;
    overflow: hidden; /* Menyembunyikan kartu lain yang sedang mengantre */
    padding: 20px 0;
}

/* Jendela utama pembungkus kartu */
.review-slider-wrapper {
    display: flex;
    gap: 25px; /* PERBAIKAN: Disamakan menjadi 25px agar sinkron dengan nilaiGap di JavaScript */
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
    width: max-content; /* Membujur penuh ke kanan tanpa batas kontainer luar */
    will-change: transform; /* Membuat animasi geser lebih ringan di browser */
}

.review-card {
    background-color: var(--bg-tua);
    padding: 45px; 
    border-radius: 20px; 
    /* PERBAIKAN DESKTOP: (1200px - 25px gap) / 2 = 587.5px agar simetris pas di kontainer luar */
    width: 587.5px; 
    flex: 0 0 587.5px; /* Mengunci total pixel agar ukuran kartu kaku dan stabil di desktop */
    box-sizing: border-box;
    border: 1px solid rgba(255, 255, 255, 0.03);
    box-shadow: 0 15px 40px rgba(0,0,0,0.25);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.review-header { 
    display: flex; 
    justify-content: space-between; 
    align-items: flex-start;
    margin-bottom: 25px; 
}

.reviewer-info h3 { 
    font-family: 'Playfair Display', serif; 
    font-size: 22px; 
    color: #fff; 
}

.reviewer-info span { 
    font-size: 13px; 
    color: var(--aksen-terang); 
    display: block;
    margin-top: 4px;
}

.review-stars i { 
    color: var(--aksen-terang); 
    font-size: 13px; 
    margin-left: 2px;
}

.review-text { 
    font-size: 15.5px; 
    color: var(--hijau-muda); 
    line-height: 1.75; 
    font-style: italic; 
}

/* Navigasi Tombol Panah */
.review-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(18, 34, 26, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.05);
    color: #fff;
    width: 54px;
    height: 54px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    transition: all 0.3s ease;
    z-index: 10;
    backdrop-filter: blur(5px);
}

.review-nav-btn:hover {
    background: var(--aksen-terang);
    color: var(--bg-tua);
    border-color: var(--aksen-terang);
    transform: translateY(-50%) scale(1.05);
}

/* Tombol digeser keluar container agar tidak menutupi tulisan */
.review-btn-prev { left: -25px;}
.review-btn-next { right: -25px; }

.review-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 40px;
}

/* CSS untuk titik indikator slider */
.review-dots .dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    cursor: pointer;
    transition: all 0.3s ease;
}

.review-dots .dot.active {
    background: var(--aksen-terang);
    width: 28px; /* Efek memanjang estetik untuk dot yang aktif */
    border-radius: 10px;
}


/* ==========================================================================
   12. CORE MEDIA QUERIES (COMPLETE RESPONSIVENESS SYSTEM)
   ========================================================================== */

/* --- TABLET VIEW (Max-width: 992px) --- */
@media (max-width: 992px) {
    .about-grid { 
        gap: 40px; 
    }
    .about-image-box img { 
        height: 380px; 
    }
    .services-gallery-grid { 
        gap: 15px; 
    }
    
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }
    .portfolio-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }
    .team-grid { 
        grid-template-columns: repeat(2, 1fr); 
        gap: 45px;
    }

    /* ==========================================================================
       PERBAIKAN RESPONSIVE SLIDER TESTIMONI (TABLET & HORIZONTAL PONSEL)
       ========================================================================== */
    .review-container {
        max-width: 100%;
        overflow: hidden; /* Mencegah halaman utama rusak/jebol ke kanan */
        padding: 0 20px;
    }

    .review-slider-wrapper {
        gap: 25px !important; /* Memastikan gap tetap konsisten dengan hitungan JS */
    }

    .review-card {
        /* Ubah ukuran menjadi dinamis mengikuti lebar view tablet (100vw). 
           Dikurangi 80px agar kartu berikutnya mengintip sedikit di kanan layar secara rapi.
        */
        width: calc(100vw - 80px) !important;
        flex: 0 0 calc(100vw - 80px) !important;
        max-width: 650px; /* Batas aman di tablet beresolusi besar */
        padding: 40px 25px;
        position: relative !important;
    }

    .review-text { 
        font-size: 15px; 
        line-height: 1.65;
    }

    .review-btn-prev { left: -10px; }
    .review-btn-next { right: -10px; }
}
/* --- MOBILE INTERACTIVE VIEW (Max-width: 768px) --- */
@media (max-width: 768px) {
    .section-title h2 { 
        font-size: 30px; 
        letter-spacing: -0.5px;
    }
    .section-title p {
        font-size: 14px;
    }
    
    /* Navbar Hamburger Transformation */
    .menu-toggle { 
        display: block; 
        font-size: 22px;
        color: #fff;
        transition: transform 0.3s ease;
    }
    
    /* Menu Navigasi Seluler Premium (Glassmorphism Slide) */
    .nav-links {
        position: fixed;
        top: 0; 
        right: -100%;
        width: 80%; 
        height: 100vh;
        background: rgba(11, 19, 14, 0.96); 
        backdrop-filter: blur(20px); 
        -webkit-backdrop-filter: blur(20px);
        box-shadow: -15px 0 40px rgba(0, 0, 0, 0.6);
        flex-direction: column;
        align-items: flex-start;
        justify-content: center; 
        padding: 60px 50px;
        gap: 25px;
        transition: right 0.5s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 999;
        border-left: 1px solid rgba(255, 255, 255, 0.05);
    }
    
    .nav-links.active {
        right: 0;
    }

    .nav-links li {
        width: 100%;
        opacity: 0;
        transform: translateX(20px);
        transition: transform 0.4s ease, opacity 0.4s ease;
    }
    
    .nav-links.active li {
        opacity: 1;
        transform: translateX(0);
        transition-delay: 0.2s;
    }

    .nav-links li a { 
        margin-left: 0; 
        font-size: 20px; 
        width: 100%; 
        display: block; 
        padding: 10px 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.03); 
    }

    /* Hero Text Adjustment */
    .hero-content h1 { 
        font-size: 38px; 
        line-height: 1.25;
    }
    .hero-content p { 
        font-size: 15px; 
    }

    /* Meruntuhkan Semua Grid Menjadi 1 Kolom Vertikal (Khas Smartphone) */
    .about-grid, 
    .services-gallery-grid, 
    .product-grid,
    .portfolio-grid,
    .team-grid {
        grid-template-columns: 1fr;
    }
    
    .about-image-box img { 
        height: 300px; 
    }
    .about-experience-badge { 
        right: 20px; 
        bottom: -15px; 
        padding: 12px 20px; 
    }

    /* Penyelarasan Section Latar Belakang Penuh (Why Choose & Contact) */
    .why-choose-section, 
    .contact-line-section { 
        padding: 90px 6%; 
        text-align: center; 
    }
    
    .why-choose-container,
    .contact-line-container {
        padding: 0;
    }
    
    .why-text-box h3, 
    .contact-line-text h3 { 
        font-size: 28px; 
    }

    .btn-video, 
    .btn-wa-line {
        justify-content: center;
        width: 100%; 
        box-sizing: border-box;
    }

    .review-card { 
        width: calc(100vw - 80px) !important;
        flex: 0 0 calc(100vw - 80px) !important;
        padding: 30px 20px; /* Sedikit mengurangi padding dalam agar teks tetap lega */
    }
    .review-text { font-size: 14px; line-height: 1.6; }
    .reviewer-info h3 { font-size: 18px; }

    /* Penyempurnaan Tampilan Modal Di Layar HP */
    .modal-body-layout { 
        grid-template-columns: 1fr; 
    }
    .modal-img-box { 
        height: 220px; 
    }
    .modal-text-box { 
        padding: 40px 24px; 
    }
    .modal-text-box h3 { 
        font-size: 26px; 
    }
    .modal-close-btn {
        top: 15px;
        right: 20px;
        background: rgba(0,0,0,0.5); 
        width: 36px; height: 36px;
        border-radius: 50%;
        display: flex; align-items: center; justify-content: center;
    }
}

/* --- SMALL PHONE VIEW (Max-width: 480px) --- */
@media (max-width: 480px) {
    .navbar { 
        padding: 15px 6%; 
    }
    .hero { 
        padding: 0 6%; 
    }
    .hero-content h1 { 
        font-size: 32px; 
    }
    .services-content-box { 
        padding: 30px 20px; 
    }
    
    .about-section,
    .services-section,
    .products,
    .portfolio-section,
    .team-section,
    .review-section {
        padding: 80px 6%;
    }
    
    .wa-floating-btn {
        bottom: 20px;
        left: 20px;
        width: 50px;
        height: 50px;
        font-size: 20px;
    }
}
/* ==========================================================================
   13. FOOTER COMPONENT
   ========================================================================== */
footer {
    background-color: var(--bg-tua);
    padding: 30px 8%;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--hijau-muda);
    font-size: 14px;
}