/* Reset and Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Montserrat', sans-serif;
}

html {
    scroll-behavior: smooth;
}

/* Mengatur scrollbar pada seluruh halaman */
html, body {
    overflow: auto; /* Menjaga agar scrollbar muncul hanya jika dibutuhkan */
}

/* Mengubah scrollbar */
::-webkit-scrollbar {
    width: 8px; /* Lebar scrollbar vertikal */
    height: 8px; /* Lebar scrollbar horizontal (jika ada) */
    opacity: 10%;
}

/* Scrollbar thumb (bagian yang dapat digeser) */
::-webkit-scrollbar-thumb {
    background-color: rgba(0, 0, 0, 0.1); /* Warna batang scrollbar */
    border-radius: 10px; /* Membuat batang scrollbar lebih halus */
}

/* Scrollbar track (bagian yang dilalui thumb) */
::-webkit-scrollbar-track {
    background: transparent; /* Menjadikan track scrollbar transparan */
    opacity: 10%;
    border-radius: 10px; /* Sudut yang lebih halus pada track */
}

/* Mengatur scrollbar saat hover */
::-webkit-scrollbar-thumb:hover {
    background-color: rgba(0, 0, 0, 0.3); /* Warna lebih gelap saat hover */
}

/* Agar body atau elemen lainnya tidak mengganggu scrollbar */
body {
    margin: 0;
    padding: 0;
}

.allheader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
}

.top-header {
    background-color: #7e4c4c;
    color: white;
    padding: 0.5rem 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
}

.contact-info span {
    margin-right: 1rem;
}

.main-header {
    background-color: white;
    padding: 1rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.1);
}

/* Gaya default untuk tombol menu */

.logo-section {
    display: flex;
    align-items: center;
}

.logo {
    max-height: 50px;
    margin-right: 0.5rem;
}

.company-name {
    font-size: 1.5rem;
    font-weight: bold;
    color: #4b2e2e;
}

.navbar {
    display: flex;
    gap: 1.5rem;
}

.language {
    display: flex;
    align-items: center;
    font-size: 1rem;
    margin-right: 20px;
    position: relative;
    cursor: pointer;
}

.flag {
    font-size: 1.5rem;
    margin-right: 0.5rem;
}

.language-options {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    background-color: white;
    border: 1px solid #ccc;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    padding: 10px;
    z-index: 999;
}

.language-options a {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: #333;
    padding: 8px 12px;
}

.language-options a:hover {
    background-color: #f0f0f0;
}

.flag-icon {
    width: 20px;  /* Atur lebar ikon bendera */
    height: auto;
    margin-right: 8px;  /* Memberikan jarak antara bendera dan teks */
}

/* Style untuk pilihan bahasa yang aktif */
.language.active {
    background-color: #f0f0f0;
}

.navbar a {
    font-family: 'Montserrat', sans-serif; /* Menetapkan font Montserrat */
    font-weight: 200;                     /* Menetapkan font weight 400 */
    font-size: 20px;                      /* Ukuran font 20px */
    line-height: 24.38px;                 /* Menetapkan line height sesuai */
    color: #333;                          /* Warna teks default */
    text-decoration: none;                /* Menghapus garis bawah */
    margin: 0 1rem;                       /* Jarak antar link */
}

.navbar a:hover {
    color: #7e4c4c;                       /* Mengubah warna saat hover */
}

.subtitle {
    font-size: 36px; /* Membuat ukuran judul lebih besar */
    font-weight: bold;
    color: #000;
    margin-bottom: 40px; /* Memberikan jarak antara judul dan produk */
    text-align: center; /* Menjaga judul tetap di tengah */
}

.subtitle-first {
    font-weight: 400; /* Lebih ringan daripada PRODUCTS */
}

.subtitle-second {
    font-weight: 800; /* Lebih tebal */
}
/* Banner Styles */
.banner {
    margin-top: 120px; /* Sesuaikan dengan tinggi header agar konten tidak tertutup */
    position: relative;
    background-image: url('../images/homepage/homepage.jpg');
    background-size: cover;
    background-position: center;
    height: 81vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}
.banner-about {
    margin-top: 120px; /* Sesuaikan dengan tinggi header agar konten tidak tertutup */
    position: relative;
    background-image: url('../images/homepage/about.jpeg');
    background-size: cover;
    background-position: center;
    height: 75vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.banner-title {
    font-size: 2.5rem;
    color: #7e4c4c;
    background-color: rgba(255, 255, 255, 0.8);
    padding: 0.5rem 1rem;
    border-radius: 5px;
    font-weight: bold;
}

.about-section {
    display: flex;
    flex-direction: column; /* Susun elemen secara vertikal */
    align-items: center; /* Pusatkan secara horizontal */
    justify-content: center; /* Pusatkan secara vertikal */
    padding: 60px 20px; /* Padding atas dan samping */
    margin: 80px auto; /* Margin otomatis untuk posisi tengah */
    text-align: center; /* Pusatkan teks */
    max-width: 1200px; /* Lebar maksimum */
    height: auto; /* Tinggi fleksibel */
}

.flextitle {
    display: flex;
    flex-wrap: wrap; /* Agar judul turun ke bawah di layar kecil */
    justify-content: center; /* Pusatkan teks "ABOUT" dan "US" */
    gap: 5px; /* Tambahkan jarak kecil antar kata */
}

.flextitle h2,
.flextitle h4 {
    font-size: 2.5rem; /* Ukuran font besar untuk desktop */
    margin: 0; /* Hilangkan margin default */
    line-height: 1.2; /* Kurangi jarak antar baris */
    font-weight: normal; /* Gunakan font normal untuk keseimbangan */
}

.about-contents p {
    font-size: 1.2rem; /* Ukuran font yang nyaman dibaca */
    line-height: 1.8; /* Jarak antar baris yang proporsional */
    margin-top: 20px; /* Tambahkan jarak atas */
    margin-bottom: 20px; /* Jarak bawah untuk nilai */
    max-width: 600px; /* Batas lebar untuk deskripsi */
}

.about-section img {
    width: 400px; /* Ukuran gambar */
    height: auto;
    margin-right: 30px; /* Jarak antara gambar dan konten teks */
    border-radius: 8px; /* Buat sudut gambar lebih lembut */
}

.about-content {
    max-width: 600px;
    text-align: left; /* Ratakan teks ke kiri */
}
.about-contents {
    max-width: 600px;
    text-align: center; /* Ratakan teks ke kiri */
}
.flextitle{
    display: flex;
}

.mid{
    margin-left: 175px;
}

.about-content h2 {
    font-size: 2.5rem; /* Ukuran font lebih besar */
    color: #000;
    margin-bottom: 10px;
    margin-right: 10px;
    font-weight: normal;
}
.about-contents h2 {
    font-size: 2.5rem; /* Ukuran font lebih besar */
    color: #000;
    margin-bottom: 10px;
    margin-right: 10px;
    font-weight: normal;
}
.flextitle h4 {
    font-size: 2.5rem; /* Ukuran font lebih besar */
    color: #000;
    margin-bottom: 10px;
    font-weight: 800px;
}

.about-content h3 {
    font-size: 1.8rem; /* Subjudul lebih besar */
    font-weight: bold;
    color: #8e4b4b;
    margin-bottom: 15px;
}

.about-content p {
    font-size: 1.2rem; /* Teks lebih besar */
    line-height: 1.8;
    color: #333;
    margin-bottom: 15px;
}
.about-contents h3 {
    font-size: 1.8rem; /* Subjudul lebih besar */
    font-weight: bold;
    color: #8e4b4b;
    margin-bottom: 15px;
}

.about-contents p {
    font-size: 1.2rem; /* Teks lebih besar */
    line-height: 1.8;
    color: #333;
    margin-bottom: 15px;
}

.read-more {
    font-weight: bold;
    color: #333;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    font-size: 1.1rem;
}

.read-more-text {
    border-bottom: 2px solid #333; /* Memberi efek underline pada teks */
    color: #333;
}

.read-more:hover .read-more-text {
    border-bottom-color: #8e4b4b; /* Mengubah warna underline saat hover */
}

.read-more-arrow {
    margin-left: 8px;
    font-size: 2rem;
}

.trust-section {
    background-image: url('../images/homepage/edited%20motto%20bg.jpg');
    background-size: cover;
    background-position: center;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 50px;
}

.trust-box {
    background-color: rgba(186, 132, 89, 0.9); /* Warm brown color with opacity */
    color: #fff;
    padding: 60px 40px; /* Menambah padding untuk memberi ruang lebih banyak */
    max-width: 1000px; /* Memperlebar kotak */
    text-align: center;
    border-radius: 8px;
    margin: 0 auto; /* Untuk memastikan kotak berada di tengah */
}

.trust-box h1 {
    font-size: 28px; /* Menambah ukuran font judul */
    font-weight: bold;
    margin: 0 0 20px;
}

.trust-box p {
    font-size: 18px; /* Menambah ukuran font paragraf */
    margin: 0;
    line-height: 1.8;
}

.container-prd {
    padding-top: 80px; /* Memberikan ruang kosong di atas */
    height: 80vh; /* Memastikan container mengambil ruang penuh di layar */
    background-color: #f8f8f8; /* Menambahkan background terang */
}


.products {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* Membuat 3 kolom */
    grid-gap: 30px; /* Memberikan jarak antar box lebih lebar */
    max-width: 800px; /* Membatasi lebar grid untuk box yang lebih kecil */
    margin-left: auto;
    margin-right: auto; /* Menempatkan grid di tengah */
    padding: 0 20px; /* Memberikan padding kiri dan kanan agar tidak terlalu mepet */
}

.product-item {
    height: 100px; /* Memperkecil ukuran box */
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #732F2F;
    color: white;
    font-weight: 600; /* Mengubah font-weight menjadi 600 */
    border-radius: 10px;
    box-shadow: 0px 6px 15px rgba(0, 0, 0, 0.4); /* Menambahkan efek shadow yang lebih besar */
    text-align: center;
    padding: 0 20px; /* Memberikan jarak horizontal pada teks */
    transition: box-shadow 0.3s ease; /* Efek transisi shadow */
}

/* Menambahkan padding di dalam elemen <p> untuk memberi jarak pada teks */
.product-item p {
    padding: 0 10px;  /* Memberikan jarak pada teks di kiri dan kanan */
    margin: 0; /* Menghilangkan margin default pada <p> */
    font-size: 24px;
    font-weight: bold;
}

/* Efek hover untuk memperbesar shadow saat kursor berada di atas produk */
.product-item:hover {
    box-shadow: 0px 10px 20px rgba(0, 0, 0, 0.5);
}


.values-section {
    text-align: center;
    padding: 60px 20px;
    background-color: #fff;
}

.values-section h2 {
    font-size: 2rem;
    color: #000;
    font-weight: bold;
    margin-bottom: 40px;
}

.values-container {
    display: flex;
    justify-content: center;
    gap: 40px;
}

.value-item {
    text-align: center;
    max-width: 150px;
    margin-left: 50px;
    margin-right: 50px;
}

.value-icon {
    background-color: #d49a6a; /* Background color for the icon */
    width: 175px;
    height: 175px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.value-icon img {
    width: 65%; /* Adjust the size of the icon as needed */
    height: 65%;
    object-fit: contain;
}

.values-container p{
    margin-left: 20px;
}

.shiptext p{
    margin-left: 30px;
    margin-right: 15px;
}

.value-item p {
    font-size: 24px;
    font-weight: bold;
    color: #000;
}

#content-container {
    min-height: 500px; /* Atur sesuai dengan tinggi terbesar dari konten slide */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.page-navigation {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 20px; /* Beri jarak dari konten utama */
}

.opp-container {
    margin-top: 150px;
    min-height: 600px;
    margin-bottom: 75px;
    text-align: center;
    padding: 20px;
    font-family: Arial, sans-serif;
}

.opp-title {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 20px;
}

.opp-image-row {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: nowrap; /* Hindari gambar berpindah ke baris baru */
    overflow: hidden; /* Mencegah ukuran gambar terpotong */
    margin-bottom: 30px;
}

.opp-image {
    width: 350px; /* Set width to make it rectangular */
    height: 200px; /* Set height to create a rectangular shape */
    object-fit: cover; /* Ensure the image fills the rectangle while maintaining aspect ratio */
    border-radius: 8px; /* Optional: Adds rounded corners */
}

.opp-description {
    font-size: 14px;
    max-width: 600px;
    margin: 0 auto 20px auto;
    line-height: 1.6;
}

.opp-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    font-size: 16px;
}

.opp-prev, .opp-next {
    cursor: pointer;
}


/* Main container styling */

.footershort{
    margin-top: -110px;
}
.footer {
    background-color: #fff; /* Match background color */
    color: #333;
    font-family: Arial, sans-serif;
    padding: 20px 10%;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.footer::before {
    content: "";
    position: absolute;
    top: -10px;
    left: 0;
    width: 100%;
    height: 10px;
    background: linear-gradient(to top, rgba(0, 0, 0, 1.15), transparent);
}

/* Company Info section */
.footer .company-info {
    max-width: 300px;
    text-align: center; /* Center-aligns all text in the company-info section */
}

.footer .company-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
}

.footer .company-logo img {
    width: 150px; /* Increase logo size */
    margin-right: 15px; /* Spacing between logo and text */
}

.footer .company-logo h2 {
    font-size: 1.5em;
    font-weight: bold;
    margin: 0;
}

.footer .company-info p {
    font-size: 15px;
    line-height: 1.5;
    color: #555;
    margin-top: 5px;
}

/* Contact Info section */
.footer .contact-info {
    max-width: 200px;
}

.footer .contact-info h3 {
    font-size: 1.2em;
    font-weight: bold;
    margin-bottom: 10px;
}

.footer .contact-info p {
    display: flex;
    align-items: center;
    margin: 5px 0;
    font-size: 0.9em;
}

.footer .contact-info p i {
    margin-right: 8px;
}

/* Quick Links section */
.footer .quick-links {
    max-width: 150px;
}

.footer .quick-links h3 {
    font-size: 1.2em;
    font-weight: bold;
    margin-bottom: 10px;
}

.footer .quick-links a {
    display: block;
    margin: 5px 0;
    color: #333;
    text-decoration: none;
    font-size: 0.9em;
}

.footer .quick-links a:hover {
    text-decoration: underline;
}

@keyframes slideUp {
    from {
        transform: translateY(20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Initial state before animation */
.animate {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.3s ease-out, transform 0.3s ease-out;
}

/* Animated state */
.animate.visible {
    animation: slideUp 0.6s ease forwards;
}

/* Agarbox terakhir hanya 2 pada baris kedua */
@media (max-width: 720px) {
    .products {
        grid-template-columns: repeat(2, 1fr); /* 2 kolom di perangkat kecil */
    }
}

/* Tampilan HP (max-width: 600px) */
@media (max-width: 600px) {
    .main-header {
        flex-direction: column;
        padding: 0.5rem 1rem;
        align-items: center;
        position: relative; /* Untuk memposisikan language selector */
    }

    .navbar {
        display: grid;
        grid-template-columns: repeat(2, 1fr); /* Navigasi dalam dua kolom */
        gap: 0.3rem; /* Jarak antar tombol navigasi */
        text-align: center;
    }

    .logo-section {
        display: flex;
        align-items: center;
        margin-bottom: 1rem; /* Tambahkan jarak bawah */
    }

    /* Logo and title adjustments */
    .logo {
        max-height: 40px; /* Ukuran logo lebih kecil */
        margin-bottom: 0.5rem;
    }

    .company-name {
        font-size: 1.2rem; /* Ukuran judul lebih kecil */
        margin-bottom: 1rem;
    }

    /* Navigasi dalam grid 2x2 */

    .navbar a {
        font-size: 1rem; /* Ukuran font lebih kecil */
        padding: 0.5rem 0.5rem; /* Kurangi padding */
        background: #f8f8f8; /* Tambahkan warna latar belakang */
        border-radius: 5px; /* Tombol dengan sudut melengkung */
        text-decoration: none; /* Hilangkan garis bawah */
        color: #333; /* Warna teks default */
        font-weight: 500; /* Teks sedikit lebih ringan */
    }

    .navbar a:hover {
        background: #e0e0e0; /* Warna latar belakang saat hover */
    }

    /* Translation (Language Selector) */
    .language {
        position: absolute;
        top: 0;
        right: 1rem; /* Letakkan di kanan header */
        font-size: 0.75rem; /* Ukuran font lebih kecil */
        display: flex;
        align-items: center;
    }

    .language img {
        width: 18px; /* Ikon bendera lebih kecil */
        margin-right: 0.3rem;
    }

    .about-section {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center; /* Pusatkan secara vertikal */
        text-align: center; /* Pusatkan teks */
        padding: 60px 20px; /* Tambahkan padding */
        margin: 0 auto; /* Pusatkan secara horizontal */
    }

    .flextitle {
        display: flex;
        flex-wrap: wrap; /* Agar judul bisa turun ke bawah jika layar sempit */
        justify-content: center; /* Pusatkan elemen judul */
    }

    .flextitle h2, 
    .flextitle h4 {
        font-size: 1.8rem; /* Ukuran font lebih kecil untuk layar kecil */
        margin: 0 5px; /* Jarak antar teks */
        line-height: 1.2; /* Kurangi jarak antar baris */
    }

    .about-contents p {
        font-size: 1rem;
        line-height: 1.6;
        margin: 10px 0;
    }

    .values-section {
        margin-top: 20px; /* Kurangi jarak antara bagian deskripsi dan VALUES */
    }
    /* Values Section - berderet ke bawah */
    .values-container {
        flex-direction: column; /* Susun ke bawah */
        align-items: center;
        gap: 1.5rem; /* Tambahkan sedikit jarak antar item */
    }

    /* About Section - gambar di atas judul dan deskripsi */
    .about-section {
        flex-direction: column; /* Susun elemen secara vertikal */
        align-items: center; /* Pusatkan elemen */
        text-align: center;
    }

    .about-section img {
        margin-bottom: 1rem; /* Tambahkan jarak bawah */
        width: 90%; /* Sesuaikan ukuran gambar agar muat di layar */
        max-width: 300px; /* Batas maksimum lebar gambar */
        height: auto; /* Pertahankan proporsi gambar */
    }

    .about-content {
        padding: 0 1rem; /* Tambahkan padding di sisi kiri dan kanan */
        max-width: 100%; /* Gunakan lebar penuh */
    }

    /* Produk */
    .products {
        grid-template-columns: repeat(2, 1fr); /* 2 kolom untuk produk */
        grid-gap: 1rem;
    }

    .product-item {
        font-size: 0.8rem; /* Sesuaikan ukuran font produk */
        padding: 0.4rem;
    }
    .opp-container{
        margin-top: 200px;
    }
    .opp-image-row {
        display: flex;
        flex-direction: row; /* Susun gambar secara horizontal */
        justify-content: center; /* Pusatkan gambar di tengah */
        gap: 5px; /* Kurangi jarak antar gambar */
        flex-wrap: nowrap; /* Hindari gambar turun ke baris berikutnya */
    }

    .opp-image {
        width: 90%; /* Gambar mengambil hampir setengah lebar layar */
        height: auto; /* Pertahankan proporsi gambar */
        border-radius: 8px; /* Tambahkan sudut melengkung */
        object-fit: cover; /* Pastikan gambar tetap proporsional */
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); /* Tambahkan efek bayangan */
    }

    /* Footer - Contact Info dan Quick Links di center */
    .footer {
        flex-direction: column; /* Susun elemen footer ke bawah */
        align-items: center;
        text-align: center; /* Pusatkan teks */
    }

    .footer .contact-info,
    .footer .quick-links {
        margin-bottom: 1.5rem; /* Tambahkan jarak antar bagian */
    }

    .footer .company-info {
        margin-bottom: 1.5rem; /* Tambahkan jarak dengan elemen lainnya */
    }
}

