:root {
    --primary-green: #00a651;
    --dark-green: #004d26;
    --light-bg: #f0fff4;
}

body {
    font-family: 'Poppins', sans-serif;
    overflow-x: hidden; /* Mencegah scroll horizontal akibat animasi masuk */
}

/* --- NAVBAR --- */
.navbar {
    background-color: var(--primary-green);
    padding: 15px 0;
    transition: all 0.3s ease;
}

.navbar-brand {
    color: white;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.2rem;
}

.logo-box {
    padding: 2px 5px;
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-box img {
    height: 25px; /* Sesuaikan ukuran logo */
}

.nav-link {
    color: rgba(255, 255, 255, 0.9) !important;
    font-weight: 500;
    margin: 0 10px;
    position: relative;
}

.nav-link:hover, .nav-link.active {
    color: white !important;
    font-weight: 700;
}

/* Garis bawah animasi pada menu */
.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: white;
    transition: width 0.3s;
}

.nav-link:hover::after {
    width: 100%;
}

.btn-kontak {
    background-color: white;
    color: var(--primary-green);
    font-weight: 600;
    padding: 8px 25px;
    border-radius: 4px;
    transition: 0.3s;
}

.btn-kontak:hover {
    background-color: #f0f0f0;
    transform: scale(1.05);
}

/* --- HERO SECTION --- */
.hero-section {
    background-color: var(--dark-green);
    color: white;
    padding: 80px 0;
    position: relative;
    overflow: hidden;
    min-height: 85vh;
    display: flex;
    align-items: center;
}

/* Animasi Dots Berputar */
@keyframes spin { 
    100% { transform: rotate(360deg); } 
}

.hero-bg-pattern {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background-image: radial-gradient(circle, rgba(255,255,255,0.1) 1px, transparent 1px);
    background-size: 20px 20px;
    opacity: 0.3;
}

.dots-deco-right {
    position: absolute;
    right: -50px;
    bottom: -50px;
    width: 300px;
    height: 300px;
    background-image: radial-gradient(var(--primary-green) 2px, transparent 2px);
    background-size: 25px 25px;
    border-radius: 50%;
    opacity: 0.5;
    animation: spin 60s linear infinite; /* Animasi Putar Lambat */
}

.hero-title {
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1rem;
}

.hero-desc {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    line-height: 1.6;
    opacity: 0.9;
}

.btn-layanan {
    background-color: white;
    color: var(--dark-green);
    font-weight: 700;
    padding: 12px 30px;
    border-radius: 4px;
    text-decoration: none;
    display: inline-block;
    transition: 0.3s;
}

.btn-layanan:hover {
    transform: translateX(5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

/* Animasi Floating (Melayang) untuk Gambar Hero */
@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
    100% { transform: translateY(0px); }
}

.hero-image-container img {
    max-width: 100%;
    height: auto;
    animation: float 6s ease-in-out infinite; /* Penerapan animasi floating */
}

/* --- SERVICES SECTION --- */
.services-section {
    padding: 80px 0;
    min-height: 90vh; 
    background-color: var(--light-bg);
    
    /* TAMBAHAN BARU: Agar konten rata tengah vertikal */
    display: flex;
    flex-direction: column;
    justify-content: center; /* Mengatur posisi vertikal ke tengah */
}

.section-title {
    color: var(--primary-green);
    font-weight: 700;
    margin-bottom: 10px;
}

.section-subtitle {
    color: #333;
    margin-bottom: 50px;
}

.service-card {
    padding: 40px 20px;
    border-radius: 10px;
    text-align: center;
    height: 100%;
    transition: all 0.4s ease; /* Transisi halus saat hover */
    cursor: default;
}

/* Efek Hover Card: Naik ke atas */
.service-card:hover {
    transform: translateY(-15px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

.card-green {
    background-color: var(--dark-green);
    color: white;
}

.card-white {
    background-color: white;
    color: #333;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.icon-circle {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
}

.card-green .icon-circle {
    background-color: rgba(255,255,255,0.2);
    color: white;
}

.card-white .icon-circle {
    background-color: #e0f7fa; /* Biru muda pudar */
    color: var(--dark-green);
}

/* Animasi icon berputar saat hover card */
.service-card:hover .icon-circle i {
    animation: spin 1s ease-in-out;
}

/* --- ABOUT SECTION (UPDATED) --- */
.about-section {
    background-color: var(--dark-green); /* Pastikan variabel warna tetap ada */
    color: white;
    
    /* Kunci agar rata tengah vertikal & horizontal */
    min-height: 80vh; /* Sedikit lebih tinggi agar tidak sempit */
    display: flex;
    align-items: center; /* Tengah secara Vertikal */
    justify-content: center; /* Tengah secara Horizontal */
    
    text-align: center;
    padding: 40px 20px;
}

.about-title {
    font-weight: 600;
    margin-bottom: 40px;
    font-size: 3.5rem; /* Ukuran Judul diperbesar drastis */
    letter-spacing: 2px;
}

.about-desc {
    max-width: 900px; /* Membatasi lebar teks agar enak dibaca */
    margin: 0 auto;
    font-size: 1.4rem; /* Ukuran paragraf diperbesar */
    line-height: 1.8; /* Jarak antar baris lebih renggang */
    font-weight: 300;
}

/* Responsif untuk HP: Ukuran font disesuaikan agar tidak kepotong */
@media (max-width: 768px) {
    .about-section {
        min-height: auto; /* Di HP tinggi menyesuaikan isi */
        padding: 60px 20px;
    }
    .about-title {
        font-size: 2.5rem;
    }
    .about-desc {
        font-size: 1.1rem;
    }
}

/* --- PRODUCT SECTION --- */
.product-section {
    padding: 80px 0;
    background-color: var(--light-bg);
}

.product-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: 0.4s;
    height: 100%;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.product-img-wrapper {
    height: 250px;
    overflow: hidden;
}

.product-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

/* Efek Zoom in gambar saat hover */
.product-card:hover .product-img-wrapper img {
    transform: scale(1.1);
}

.product-info {
    padding: 20px;
    text-align: center;
}

.product-title {
    font-weight: 700;
    font-size: 1.2rem;
    margin-bottom: 5px;
}

.product-desc {
    font-size: 0.9rem;
    color: #666;
    margin: 0;
}

/* --- KEUNGGULAN / PORTFOLIO SECTION --- */
.keunggulan-section {
    background-color: #f0fff4;
    padding: 80px 0;
    overflow: hidden;
}

.header-wrap {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    flex-wrap: wrap;
    gap: 15px;
}

.btn-pesan {
    background-color: #00a651;
    color: white;
    font-weight: 600;
    padding: 10px 25px;
    border-radius: 4px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: 0.3s;
}

.btn-pesan:hover {
    background-color: var(--dark-green);
    color: white;
    transform: translateX(5px);
}

.slider-container {
    display: flex;
    align-items: center;
    gap: 20px;
}

.nav-arrow {
    width: 50px;
    height: 50px;
    min-width: 50px;
    background-color: #00a651;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    cursor: pointer;
    transition: 0.3s;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.nav-arrow:hover {
    background-color: var(--dark-green);
    transform: scale(1.1) rotate(360deg); /* Putar panah saat hover */
}

.portfolio-card {
    position: relative;
    height: 450px;
    border-radius: 0;
    overflow: hidden;
    background-size: cover;
    background-position: center;
}

.portfolio-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 20px;
    transition: 0.3s;
    opacity: 1; /* Selalu terlihat sesuai request */
}

.portfolio-card:hover .portfolio-overlay {
    background: rgba(0, 0, 0, 0.7);
}

.portfolio-title {
    color: white;
    font-weight: 700;
    font-size: 2rem;
    margin-bottom: 10px;
    line-height: 1.2;
    transform: translateY(20px);
    transition: 0.4s;
}

.portfolio-card:hover .portfolio-title {
    transform: translateY(0);
}

.portfolio-desc {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.95rem;
    margin-bottom: 25px;
    max-width: 80%;
}

.btn-lihat-layanan {
    background-color: #00a651;
    color: white;
    border: none;
    padding: 8px 20px;
    font-weight: 600;
    text-transform: capitalize;
    border-radius: 4px;
    text-decoration: none;
    transform: scale(0.9);
    transition: 0.3s;
}

.btn-lihat-layanan:hover {
    background-color: white;
    color: #00a651;
    transform: scale(1);
}

@media (max-width: 768px) {
    .nav-arrow { display: none; }
    .portfolio-card { height: 350px; margin-bottom: 20px; }
}

/* --- CTA & FOOTER SECTION --- */
.cta-section {
    position: relative;
    background-image: url('images/image 20.png'); 
    background-size: cover;
    background-position: center;
    background-attachment: fixed; /* Parallax Effect */
    color: white;
    padding-top: 100px;
    padding-bottom: 30px;
}

.cta-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.65);
    z-index: 1;
}

.cta-content {
    position: relative;
    z-index: 2;
}

.cta-title {
    font-weight: 700;
    font-size: 2.5rem;
    margin-bottom: 2rem;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.btn-kirim {
    background-color: #00a651;
    color: white;
    padding: 12px 60px;
    font-size: 1.2rem;
    font-weight: 600;
    border: none;
    border-radius: 4px;
    text-transform: capitalize;
    transition: 0.3s;
    text-decoration: none;
    display: inline-block;
    margin-bottom: 100px;
}

.btn-kirim:hover {
    background-color: #008c44;
    color: white;
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.3);
}

.footer-info {
    border-top: 1px solid rgba(255,255,255,0.2);
    padding-top: 40px;
}

.footer-heading {
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 15px;
    text-transform: uppercase;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 15px;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.9);
}

.contact-item i {
    font-size: 1.2rem;
    color: #00a651;
    transition: 0.3s;
}

.contact-item:hover i {
    transform: scale(1.2);
}

.social-link {
    color: white;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: 0.3s;
}

.social-link:hover {
    color: #00a651;
    padding-left: 5px; /* Sedikit geser ke kanan */
}

/* --- FINAL FOOTER --- */
.final-footer {
    background-color: black;
    height: 10vh; /* Tinggi tetap */
    color: white;
    border-top: 1px solid #333;
    
    /* TAMBAHAN BARU: Agar konten rata tengah vertikal & horizontal */
    display: flex;
    flex-direction: column;
    justify-content: center; /* Tengah secara vertikal */
    align-items: center;     /* Tengah secara horizontal */
    padding: 0;              /* Reset padding agar center akurat */
}
.final-footer .container {
    width: 100%;
}
.footer-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 1.2rem;
    text-decoration: none;
    color: white;
}

.footer-logo-box {
    border: 2px solid var(--primary-green);
    color: var(--primary-green);
    padding: 2px 6px;
    font-size: 1.1rem;
    border-radius: 4px;
    line-height: 1;
    font-weight: 800;
}

.footer-nav {
    display: flex;
    gap: 30px;
}

.footer-link {
    color: white;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: color 0.3s;
}

.footer-link:hover {
    color: var(--primary-green);
}

/* --- RESPONSIVE MOBILE FIXES --- */
@media (max-width: 768px) {
    
    /* 1. Global Typography Mobile */
    h1, h2, h3, .section-title {
        text-align: center; /* Judul lebih rapi rata tengah di HP */
    }

    /* 2. Navbar Mobile */
    .navbar-collapse {
        background-color: var(--primary-green); /* Pastikan background menu solid */
        padding: 15px;
        border-radius: 0 0 10px 10px;
        margin-top: 10px;
    }

    /* 3. Hero Section Mobile */
    .hero-section {
        min-height: auto; /* Jangan dipaksa 85vh, biarkan fleksibel */
        padding: 60px 0 40px 0;
        text-align: center; /* Konten rata tengah */
    }

    .hero-title {
        font-size: 2.5rem; /* Perkecil ukuran judul hero */
    }

    /* Menengahkan tombol di hero */
    .hero-section .d-flex {
        justify-content: center;
    }

    .dots-deco-right {
        opacity: 0.3; /* Kurangi opacity agar tidak mengganggu teks */
        width: 200px;
        height: 200px;
    }

    .hero-image-container {
        margin-top: 40px;
        padding: 0 20px; /* Beri jarak samping */
    }

    /* 4. Services & Product Mobile */
    .services-section, 
    .product-section {
        min-height: auto;
        padding: 50px 0;
    }

    /* 5. About Section Mobile (FIX UTAMA) */
    .about-section {
        min-height: auto; /* Hapus tinggi layar penuh */
        padding: 60px 20px;
    }

    .about-title {
        font-size: 2.2rem; /* Kecilkan dari 3.5rem agar muat */
        margin-bottom: 20px;
    }

    .about-desc {
        font-size: 1rem; /* Ukuran font baca standar HP */
        line-height: 1.6;
    }

    /* 6. Keunggulan / Portfolio Mobile */
    .header-wrap {
        justify-content: center; /* Judul dan tombol pesan rata tengah */
        flex-direction: column;
        gap: 20px;
    }
    
    .nav-arrow {
        display: none; /* Sembunyikan panah slider di HP */
    }
    
    .portfolio-card {
        height: 300px; /* Kurangi tinggi kartu */
        margin-bottom: 15px;
    }

    /* 7. CTA Section Mobile */
    .cta-section {
        /* Matikan fixed background di HP agar scroll lancar */
        background-attachment: scroll; 
        padding-top: 60px;
    }

    .cta-title {
        font-size: 1.8rem; /* Sesuaikan ukuran judul CTA */
    }

    .btn-kirim {
        margin-bottom: 50px; /* Kurangi margin bawah */
        width: 100%; /* Tombol lebar penuh lebih mudah ditekan */
    }

    /* 8. Footer Mobile */
    .footer-info {
        text-align: center; /* Info kontak rata tengah */
    }

    .contact-item {
        justify-content: center; /* Icon dan teks rata tengah */
    }

    .social-link {
        justify-content: center;
    }

    /* 9. Final Footer Mobile */
    .final-footer {
        height: auto; /* PENTING: Jangan pakai 30vh, biarkan auto */
        padding: 30px 0;
    }

    .final-footer .container {
        flex-direction: column;
        gap: 25px;
        text-align: center;
    }

    .footer-nav {
        flex-direction: column; /* Menu footer jadi vertikal */
        gap: 15px;
    }
}