/* --- Global Reset & Body --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
:root {
    --primary: #1a3a5c;
    --accent: #c83e3e;
    --bg: #f0f2f5;
    --text: #333333;
}
html { scroll-behavior: smooth; }

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: var(--text);
}

/* --- Navbar --- */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    z-index: 1000;
    padding: 1rem 5%;
}

/* Language Switcher */
.lang-toggle-wrapper { display: flex; align-items: center; }
.lang-toggle {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    width: 72px; /* Lebar lebih kecil agar presisi */
    background: #f1f4f8;
    border: 1px solid rgba(26,58,92,0.15);
    border-radius: 999px;
    padding: 4px 8px; /* Padding lebih kecil */
    cursor: pointer;
    overflow: hidden; /* Mencegah knob keluar dari container */
}
.lang-toggle .option {
    font-size: 0.85rem; /* Sedikit lebih kecil */
    font-weight: 700;
    color: #6b7a90;
    transition: color 0.2s;
    z-index: 2; /* Memastikan teks selalu di atas knob */
    width: 22px; /* Lebar tetap untuk teks */
    text-align: center;
}
.lang-toggle .knob {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 24px;
    height: 24px;
    background: white;
    border-radius: 50%;
    box-shadow: 0 4px 10px rgba(0,0,0,0.12);
    border: 1px solid rgba(26,58,92,0.12);
    transition: left 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 1;
}
 .lang-toggle[data-lang="en"] .option.en { color: var(--primary); }
 .lang-toggle[data-lang="id"] .option.id { color: var(--primary); }
 .lang-toggle[data-lang="en"] .knob { left: 6px; }
 .lang-toggle[data-lang="id"] .knob { left: calc(100% - 6px - 24px); }

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
}

/* Style untuk .logo diupdate */
.logo {
    /* Tambahan agar gambar pas */
    display: flex;
    align-items: center;
}

/* Style BARU untuk gambar logo di navbar */
.navbar-logo {
    height: 40px; /* Atur tinggi logo di navbar */
    width: auto;  /* Lebar otomatis menyesuaikan */
}

.nav-menu {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-menu a {
    text-decoration: none;
    color: #1a3a5c;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-menu a:hover {
    color: #c83e3e;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: #1a3a5c;
    margin: 3px 0;
    transition: 0.3s;
}

/* --- Navbar state saat scroll --- */
.navbar.scrolled {
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 6px 20px rgba(0,0,0,0.12);
    backdrop-filter: saturate(130%) blur(8px);
}

/* --- Hero Section (revamp) --- */
.hero {
    position: relative;
    background: linear-gradient(180deg, #ffffff 0%, var(--bg) 100%);
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 2rem;
    overflow: hidden;
}
.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: url('hero-background.png') center/cover no-repeat;
    filter: blur(2.5px); /* Membuat gambar diblur */
    transform: scale(1.03); /* Menghindari tepi blur terlihat */
    z-index: 0;
}
.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(0deg, rgba(10,22,40,0.55), rgba(10,22,40,0.55)),
        radial-gradient(1200px 500px at 10% -10%, rgba(26,58,92,0.20), transparent),
        radial-gradient(1000px 400px at 90% 10%, rgba(200,62,62,0.14), transparent);
    z-index: 1; /* Overlay di atas gambar blur */
}
.hero::before {
    content: "";
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(26,58,92,0.12) 0%, rgba(26,58,92,0) 60%);
    border-radius: 50%;
    left: -150px;
    bottom: -120px;
    animation: float 12s ease-in-out infinite;
}
@keyframes float {
    0%, 100% { transform: translateY(0) translateX(0); }
    50% { transform: translateY(-20px) translateX(10px); }
}
.hero-inner {
    max-width: 1000px;
    z-index: 2; /* Konten di atas overlay */
    position: relative; /* Memastikan konten berada di atas overlay */
}
.hero h1 {
    font-size: 3.2rem;
    color: #ffffff; /* Teks putih agar kontras di atas overlay */
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 0 2px 8px rgba(0,0,0,0.35);
}
.hero-subtitle {
    font-size: 1.2rem;
    color: #e9eef5; /* Lebih terang untuk keterbacaan */
    max-width: 860px;
    margin: 0 auto 2rem;
    text-shadow: 0 1px 6px rgba(0,0,0,0.3);
}
.hero-actions {
    display: inline-flex;
    gap: 1rem;
}
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    background: var(--primary);
    color: #fff;
    padding: 0.9rem 1.6rem;
    border-radius: 999px;
    font-weight: 600;
    text-decoration: none;
    box-shadow: 0 8px 20px rgba(26,58,92,0.25);
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 12px 26px rgba(26,58,92,0.28); }
.btn-outline {
    background: var(--accent); /* Merah solid */
    color: #fff;
    border: 2px solid var(--accent);
    box-shadow: 0 8px 18px rgba(200,62,62,0.28);
}
.btn-outline:hover { filter: brightness(0.92); }
.btn-outline:focus-visible { outline: 3px solid rgba(200,62,62,0.45); outline-offset: 2px; }

/* Teks h1 dan p di hero sudah dihapus dari HTML, style ini tidak terpakai di hero */
.hero h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
}
.hero-subtitle {
    font-size: 1.3rem;
    font-weight: 300;
    max-width: 800px;
}

/* --- Section Styling --- */
section {
    padding: 5rem 5%;
}
.container {
    max-width: 1400px;
    margin: 0 auto;
}
.section-title {
    font-size: 2.5rem;
    color: #1a3a5c;
    margin-bottom: 3rem;
    text-align: center;
}

/* --- Introduction Section --- */
.intro {
    background: #fff;
}
.intro-content {
    display: grid;
    grid-template-columns: 55% 45%; /* Memberikan lebih banyak ruang untuk teks, gambar lebih kecil tapi tinggi */
    gap: 2rem;
    align-items: start; /* Align ke atas agar gambar tinggi terlihat proporsional */
}
.intro-text h2 {
    font-size: 2.2rem;
    color: #1a3a5c;
    margin-bottom: 1.5rem;
}
.intro-text p {
    font-size: 1.1rem;
    color: #555;
    margin-bottom: 2rem;
    text-align: justify;
}
.vision-mission {
    margin-top: 2rem;
}
.vision-mission h3 {
    color: #c83e3e;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}
.vision-mission p, .vision-mission ol {
    color: #555;
    margin-bottom: 1.5rem;
}
.vision-mission ol {
    padding-left: 1.5rem;
}
.vision-mission li {
    margin-bottom: 0.5rem;
}
.intro-image {
    width: 100%;
    height: clamp(500px, 75vh, 1000px); /* Tinggi lebih besar untuk membuat gambar vertikal */
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    max-width: 100%; /* Memastikan gambar tidak melebihi container */
}

/* Responsivitas untuk layout intro dan skala gambar */
@media (max-width: 1200px) {
    .intro-content { grid-template-columns: 52% 48%; }
    .intro-image { height: clamp(450px, 65vh, 900px); }
}
@media (max-width: 992px) {
    .intro-content { grid-template-columns: 1fr; }
    .intro-image { height: clamp(400px, 60vh, 800px); margin-top: 1rem; }
}
@media (max-width: 600px) {
    .intro-image { height: clamp(350px, 55vh, 700px); }
}

/* --- Values Section --- */
.values {
    background: #f8f9fa;
}
.values-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
    margin-top: 3rem;
}
.value-card {
    background: white;
    padding: 2.5rem;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}
.value-card:hover {
    transform: translateY(-10px);
}
.value-icon {
    font-size: 3.5rem;
    color: #c83e3e;
    margin-bottom: 1.5rem;
}
.value-card h4 {
    font-size: 1.5rem;
    color: #1a3a5c;
    margin-bottom: 1rem;
}
.value-card p {
    color: #666;
    line-height: 1.8;
}

/* --- Why Choose Us --- */
.why-choose {
    background: #fff;
}
.why-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
    margin-top: 3rem;
}
.why-card {
    background: #f8f9fa;
    padding: 2.5rem;
    border-radius: 10px;
    text-align: center;
    border: 2px solid transparent;
    transition: all 0.3s;
}
.why-card:hover {
    border-color: #c83e3e;
    box-shadow: 0 5px 20px rgba(200, 62, 62, 0.2);
}
.why-icon {
    font-size: 3.5rem;
    color: #1a3a5c;
    margin-bottom: 1.5rem;
}
.why-card h4 {
    font-size: 1.5rem;
    color: #1a3a5c;
    margin-bottom: 1rem;
}

/* --- Products Section --- */
.products {
    background: #f8f9fa;
}
.products-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}
.products-text h2 {
    font-size: 2.2rem;
    color: #1a3a5c;
    margin-bottom: 2rem;
}
.products-text ol {
    font-size: 1.1rem;
    color: #555;
    padding-left: 1.5rem;
}
.products-text li {
    margin-bottom: 1rem;
    font-weight: 500;
}

/* --- Catalog Preview (Carousel) --- */
.catalog {
    background: #fff;
}
.catalog-hint {
    color: #666;
    font-style: italic;
    text-align: center;
    margin-bottom: 1rem;
}
.catalog-carousel {
    position: relative;
    display: flex;
    align-items: center;
    gap: 1rem;
}
.catalog-track {
    display: flex;
    gap: 1.5rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding: 1rem 0.5rem;
    width: 100%;
    flex: 1;
    white-space: nowrap; /* fallback jika flex tidak diterapkan */
}
.catalog-track::-webkit-scrollbar { height: 10px; }
.catalog-track::-webkit-scrollbar-thumb { background: rgba(0,0,0,0.2); border-radius: 999px; }
.catalog-track::-webkit-scrollbar-track { background: rgba(0,0,0,0.06); }
.catalog-item {
    flex: 0 0 auto;
    width: clamp(240px, 25vw, 300px);
    scroll-snap-align: start;
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}
.catalog-item:hover { transform: translateY(-4px); }
.catalog-item img {
    width: 100%;
    height: auto;
    aspect-ratio: 4/3;
    object-fit: contain;
}
.carousel-btn {
    background: #fff;
    color: var(--primary);
    border: 1px solid rgba(26,58,92,0.2);
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    box-shadow: 0 6px 16px rgba(0,0,0,0.12);
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.carousel-btn:hover { transform: translateY(-2px); box-shadow: 0 10px 20px rgba(0,0,0,0.16); }
.carousel-btn i { pointer-events: none; }

/* --- CTA Section --- */
.cta {
    position: relative; /* Diperlukan untuk positioning pseudo-element */
    color: #fff;
    text-align: center;
    padding: 6rem 5%;
    overflow: hidden; /* Mencegah blur 'bocor' keluar */
}

.cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('backgroun-contact.jpg');
    background-size: cover;
    background-position: center 38%; /* Menggeser gambar ke bawah */
    filter: blur(2px); /* Efek blur pada gambar */
    transform: scale(1.05); /* Sedikit zoom untuk menyembunyikan tepi blur */
    z-index: 0;
}

.cta::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(26, 58, 92, 0.7); /* Overlay gelap untuk kontras teks */
    z-index: 1;
}

.cta .container {
    position: relative; /* Memastikan konten berada di atas pseudo-elements */
    z-index: 2;
}

.cta h2 {
    font-size: 2.5rem;
    color: #fff; /* Explicitly set color for contrast */
    margin-bottom: 2rem;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5); /* Bayangan teks untuk keterbacaan */
}
.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    background: var(--accent);
    color: #fff;
    padding: 1rem 2.5rem;
    border-radius: 999px;
    font-size: 1.2rem;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 10px 25px rgba(0,0,0,0.3);
    transition: all 0.3s ease;
}
.cta-button:hover {
    transform: translateY(-3px) scale(1.03);
    box-shadow: 0 14px 30px rgba(0,0,0,0.35);
    filter: brightness(1.1);
}
.cta-button i {
    font-size: 1.5rem;
}

/* --- Footer --- */
footer {
    background: #1a3a5c;
    color: white;
    padding: 3rem 5%;
    text-align: center;
}
.footer-content {
    max-width: 1400px;
    margin: 0 auto;
}
.footer-logo {
    font-size: 3rem;
    font-weight: 700;
    letter-spacing: 5px;
    margin-bottom: 1.5rem;
}
.footer-address {
    margin: 1.5rem 0;
    line-height: 1.8;
}
.social-links {
    margin: 2rem 0;
}
.social-links a {
    color: white;
    font-size: 2rem;
    margin: 0 1rem;
    transition: color 0.3s;
}
.social-links a:hover {
    color: #c83e3e;
}
.copyright {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.2);
    font-size: 0.9rem;
}

/* --- Responsive (Mobile) --- */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px; /* Sesuaikan dengan tinggi navbar */
        flex-direction: column;
        background: white;
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0,0,0,0.05);
        padding: 2rem 0;
    }

    .nav-menu.active {
        left: 0;
    }

    .hero h1 {
        font-size: 2rem;
    }
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .intro-content,
    .products-content {
        grid-template-columns: 1fr;
    }

    /* Balik urutan di mobile agar gambar di atas teks */
    .intro-content div:first-child {
        order: 2;
    }
    .intro-content div:last-child {
        order: 1;
    }
    .products-content div:first-child {
        order: 2;
    }
    .products-content div:last-child {
        order: 1;
    }
    
    .values-grid,
    .why-grid {
        grid-template-columns: 1fr;
    }
    
    .catalog-item { width: 70vw; }
    
    section {
        padding: 3rem 5%;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .cta h2 {
        font-size: 1.8rem;
    }
    .cta-button {
        padding: 1rem 2rem;
        font-size: 1rem;
    }

    .intro-image {
        height: 300px; /* Sesuaikan tinggi gambar di mobile */
    }
}

/* --- Modal untuk zoom --- */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.9);
    justify-content: center;
    align-items: center;
}
.modal.active {
    display: flex;
}
.modal img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
}
.modal-close {
    position: absolute;
    top: 20px;
    right: 40px;
    color: white;
    font-size: 40px;
    cursor: pointer;
}
/* Tombol navigasi pada modal */
.modal-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.15);
    color: #fff;
    border: none;
    width: 54px;
    height: 54px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    cursor: pointer;
    transition: background 0.2s ease;
}
.modal-nav:hover { background: rgba(255,255,255,0.25); }
.modal-prev { left: 24px; }
.modal-next { right: 24px; }


/* --- Scroll reveal utility --- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.show { opacity: 1; transform: translateY(0); }

/* Footer image sizing */
.footer-logo img { height: 48px; width: auto; }

