/* Universal Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #f8f6f1;
    color: #333;
    /* PENTING: Tambahkan padding-top ini untuk memberi ruang pada header fixed */
    /* Nilai awal untuk desktop, akan disesuaikan di media query */
    padding-top: 100px;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideInFromTop {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes slideInFromBottom {
    from {
        transform: translateY(50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes slideInFromLeft {
    from {
        transform: translateX(-100px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideInFromRight {
    from {
        transform: translateX(100px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes scale {
    from {
        transform: scale(0.8);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

/* Header & Navigation */
header {
    background-color: #1a1a1a;
    padding: 20px 0;
    /* Diubah dari sticky ke fixed untuk perilaku yang lebih konsisten */
    position: fixed; /* Header akan selalu tetap di atas viewport */
    top: 0;
    width: 100%; /* Pastikan header mengambil lebar penuh */
    z-index: 1000; /* PENTING: Pastikan ini nilai TERTINGGI agar navbar selalu di atas elemen lain */
    animation: slideInFromTop 0.6s ease-out;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2); /* Menambahkan bayangan untuk visual */
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    /* Padding horizontal yang konsisten untuk semua ukuran layar */
    padding: 0 20px;
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    /* flex-wrap akan diatur di media query untuk mobile */
    gap: 20px; /* Jarak antara logo dan link navigasi/hamburger */
}

.nav-logo img {
    height: 60px; /* Tinggi logo di desktop */
}

/* Perbaikan: .logo-img menimpa .nav-logo img, pastikan konsisten atau gunakan salah satu */
.logo-img {
    height: 60px; /* Sesuaikan agar konsisten dengan nav-logo img jika ini logo utama */
    margin-right: 0px;
}

.nav-links {
    display: flex; /* Menu horizontal di desktop */
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-links li {
    margin-left: 40px; /* Jarak antar item menu di desktop, dikurangi dari 60px agar tidak terlalu lebar */
}

.nav-links a {
    color: white;
    text-decoration: none;
    font-size: 1rem;
    transition: color 0.3s;
    padding: 10px 0; /* Memberi area klik yang lebih luas */
    display: block; /* Penting agar padding berlaku */
}

.nav-links a:hover {
    color: rgb(190, 20, 20);
}

.nav-links a.active {
    color: rgb(190, 20, 20);
    font-weight: bold;
}

/* --- HAMBURGER MENU (DITAMBAHKAN) --- */
.hamburger-menu {
    display: none; /* Sembunyikan secara default di desktop */
    flex-direction: column;
    cursor: pointer;
    padding: 10px; /* Area klik yang lebih besar untuk mobile */
}

.hamburger-menu .bar {
    width: 25px;
    height: 3px;
    background-color: white; /* Warna bar hamburger */
    margin: 4px 0;
    transition: 0.4s;
    border-radius: 2px;
}

/* Animasi silang untuk ikon hamburger saat aktif (opsional) */
.hamburger-menu.active .bar:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
}
.hamburger-menu.active .bar:nth-child(2) {
    opacity: 0;
}
.hamburger-menu.active .bar:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
}

/* Hero Banner (Untuk Halaman Selain Home) */
.about-hero {
    /* min-height dihitung agar mengisi sisa viewport setelah header */
    min-height: calc(50vh - 100px); /* 50vh dikurangi padding-top body */
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.6)), url('foto dua.jpeg') no-repeat center center/cover;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    animation: fadeIn 1.2s ease-out;
}

.about-hero-title {
    font-size: 3.5rem;
    margin-bottom: 20px;
    font-weight: 700;
    line-height: 1.2;
    animation: slideInFromBottom 1s ease-out 0.3s both;
}

/* Main Content Sections */
.about-section {
    padding: 80px 0;
    background-color: white;
}

.about-dark {
    background-color: #111;
    color: white;
}

.about-container {
    display: flex;
    align-items: center;
    gap: 50px;
}

.about-content {
    flex: 1;
    animation: slideInFromLeft 1s ease-out forwards;
}

.about-image {
    flex: 1;
    animation: slideInFromRight 1s ease-out forwards;
}

.about-image img {
    width: 100%;
    border-radius: 100%; /* ini membuat lingkaran sempurna jika gambarnya persegi */
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Duplikasi, .about-image img sudah diatur 100% radius */
.about-image-round img {
    border-radius: 50%;
}

.section-title {
    font-size: 2rem;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 15px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    width: 100px;
    background-color: rgb(164, 14, 14);
}

.dark .section-title::after {
    background-color: rgb(190, 20, 20);
}

.about-text {
    line-height: 1.8;
    margin-bottom: 25px;
    color: #555;
}

.dark .about-text {
    color: #ccc;
}

.contact-btn {
    display: inline-block;
    background-color: rgb(164, 14, 14);
    color: white;
    padding: 12px 25px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s;
}

.contact-btn:hover {
    background-color: rgb(190, 20, 20);
}

/* Services Section */
.services-section {
    padding: 80px 0;
}

.services-container {
    display: flex;
    flex-direction: column; /* Sudah kolom secara default, tapi dikonfirmasi */
    gap: 30px;
}

.service-content {
    flex: 1;
    padding: 20px;
}

.service-title {
    font-size: 1.8rem;
    margin-bottom: 15px;
}

.service-text {
    line-height: 1.6;
    margin-bottom: 15px;
}

/* Vision & Mission */
.vision-mission {
    text-align: center;
    padding: 80px 0;
    background-color: #111;
    color: white;
}

.vision-mission-title {
    font-size: 2.5rem;
    margin-bottom: 40px;
}

.values-container {
    display: flex;
    justify-content: space-between;
    gap: 30px;
    margin-bottom: 50px;
}

.value-card {
    flex: 1;
    padding: 30px;
    text-align: center;
}

.value-title {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.value-text {
    line-height: 1.6;
}

.divider {
    width: 100%;
    height: 1px;
    background-color: rgba(255, 255, 255, 0.2);
    margin: 30px 0;
}

/* Stats Section */
.stats-section {
    padding: 80px 0;
    background-color: white;
}

.stats-container {
    display: flex;
    justify-content: space-between;
    gap: 30px;
    text-align: center;
}

.stat-card {
    flex: 1;
}

.stat-icon {
    font-size: 3rem;
    margin-bottom: 15px;
    color: rgb(164, 14, 14);
}

.stat-number {
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 10px;
}

.stat-title {
    font-size: 1rem;
    margin-bottom: 15px;
}

.stat-description {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.5;
}

/* Footer */
footer {
    background-color: #222;
    color: #aaa;
    padding: 50px 0 20px;
}

.footer-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.footer-col h3 {
    font-size: 1.2rem;
    color: white;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-col h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    height: 2px;
    width: 30px;
    background-color: rgb(164, 14, 14);
}

.footer-col p,
.footer-col a {
    display: block;
    color: #aaa;
    margin-bottom: 10px;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-col a:hover {
    color: rgb(164, 14, 14);
}

.copyright {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #444;
    font-size: 0.9rem;
}

/* --- Responsive Adjustments --- */
@media (max-width: 768px) {
    body {
        /* Kurangi padding-top di mobile jika header lebih ringkas */
        padding-top: 80px;
    }

    header {
        padding: 15px 0; /* Kurangi padding header di mobile */
    }

    .nav-logo img,
    .logo-img {
        height: 50px; /* Ukuran logo lebih kecil di mobile */
    }

    /* Tampilkan hamburger menu */
    .hamburger-menu {
        display: flex;
    }

    /* Sembunyikan nav-links (menu utama) secara default di mobile */
    .nav-links {
        display: none; /* Sembunyikan */
        flex-direction: column; /* Ubah menjadi daftar vertikal */
        position: absolute; /* Posisikan secara absolut di bawah header */
        top: 80px; /* Sesuaikan dengan tinggi header baru di mobile */
        left: 0;
        width: 100%;
        background-color: #1a1a1a; /* Latar belakang menu saat terbuka */
        box-shadow: 0 8px 16px rgba(0, 0, 0, 0.4);
        z-index: 998; /* Di bawah header fixed */
        transition: transform 0.3s ease-out; /* Animasi geser */
        transform: translateY(-100%); /* Sembunyikan menu ke atas (di luar viewport) */
    }

    /* Saat class 'active' ditambahkan oleh JavaScript */
    .nav-links.active {
        display: flex; /* Tampilkan menu */
        transform: translateY(0); /* Geser menu masuk ke dalam viewport */
    }

    .nav-links li {
        margin-left: 0; /* Hapus margin kiri untuk mobile */
        width: 100%;
        text-align: center; /* Pusatkan teks link */
    }

    .nav-links li a {
        padding: 15px 20px; /* Padding lebih besar untuk area sentuh di mobile */
        border-bottom: 1px solid rgba(255, 255, 255, 0.1); /* Garis pemisah antar menu */
    }

    .nav-links li:last-child a {
        border-bottom: none; /* Hapus border di item terakhir */
    }

    .about-hero {
        min-height: calc(50vh - 80px); /* Sesuaikan tinggi hero di mobile */
    }

    .about-hero-title {
        font-size: 2.5rem; /* Ukuran font lebih kecil di HP */
    }

    .about-container,
    .values-container,
    .stats-container { /* Menghapus .contact-container jika tidak ada */
        flex-direction: column; /* Tata letak kolom di mobile */
        text-align: center;
        gap: 30px;
    }

    .section-title::after {
        left: 50%;
        transform: translateX(-50%); /* Pusatkan garis bawah judul section */
    }

    .about-image img {
        width: 80%; /* Sesuaikan ukuran gambar di about section */
        max-width: 300px; /* Batasi ukuran maksimum agar tidak terlalu besar */
    }

    .footer-container {
        grid-template-columns: 1fr; /* Jadikan satu kolom di layar kecil */
    }

    .feature-card, /* Jika halaman ini juga punya features, tambahkan ini */
    .product-card, /* Jika halaman ini juga punya products, tambahkan ini */
    .footer-col {
        margin-bottom: 20px; /* Beri jarak antar elemen vertikal */
    }

    /* Penyesuaian untuk elemen lain di mobile */
    .service-content {
        padding: 15px;
    }

    .service-title {
        font-size: 1.5rem;
    }

    .vision-mission-title {
        font-size: 2rem;
    }

    .value-card {
        padding: 20px;
    }

    .stat-icon {
        font-size: 2.5rem;
    }

    .stat-number {
        font-size: 1.8rem;
    }
}

/* Media query untuk layar yang sangat kecil (misal: iPhone 5/SE lama, lebar < 480px) */
@media (max-width: 480px) {
    body {
        padding-top: 70px; /* Sesuaikan padding-top body untuk layar sangat kecil */
    }

    header {
        padding: 10px 0; /* Padding header lebih kecil lagi */
    }

    .nav-logo img,
    .logo-img {
        height: 40px; /* Ukuran logo lebih kecil lagi */
    }

    .nav-links {
        top: 60px; /* Sesuaikan posisi menu hamburger jika header lebih kecil */
    }

    .about-hero {
        min-height: calc(50vh - 70px);
    }

    .about-hero-title {
        font-size: 1.8rem;
    }

    .about-text {
        font-size: 0.9rem;
    }

    .contact-btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }

    .vision-mission-title {
        font-size: 1.8rem;
    }

    .value-title {
        font-size: 1.3rem;
    }

    .stat-number {
        font-size: 1.5rem;
    }

    .stat-title {
        font-size: 0.8rem;
    }

    .container {
        padding: 0 15px; /* Padding horizontal lebih kecil untuk layar sangat sempit */
    }
}