@import url('https://fonts.cdnfonts.com/css/avenir Book');

* {
    font-family: "Military", sans-serif;
}

/* font external */
@font-face {
    font-family: "Military";
    src: url('/font/sf-pro.otf');
}

/* ========== GLOBAL RESPONSIVE SETTINGS ========== */
html {
    font-size: 14px;
    /* Base font size */
    overflow-x: hidden;
    /* Prevent horizontal scroll */
}

.section .number .font-external {
    word-break: break-word;
    font-family: "Military";
    white-space: normal;
    display: inline-block;
    line-height: 1;
    font-size: 0.5em;
    /* margin-top: -100px; */
}

.number {
    font-family: "Military";
    font-size: 7em;
    font-weight: bold;
    color: #ffffff;
    text-align: center;
    position: relative;
    margin-left: 100px;
}

body {
    margin: 0;
    font-family: "Avenir Book", sans-serif;
    background-color: #000000;
    color: #ffffff;
    font-size: 14px;
    /* background-image:
        url(img/bg.png),
        repeating-linear-gradient(to right, transparent 0 500px, #73814B33 500px 501px); */
    background-size: 100%;
    min-width: 320px;
}

.penjelasan {
    font-family: "Avenir Book", sans-serif;
    background-color: #000000;
    color: #ffffff;
    font-size: 14px;
    text-align: justify;
    line-height: 2;
    margin-bottom: 1em;
    margin-top: 0px;
}

* {
    padding: 0;
    margin: 0;
    list-style: none;
    box-sizing: border-box;
}

.section {
    width: 100%;
    min-height: 100vh;
    /* Setiap bagian 1 layar penuh */
    position: relative;
    overflow: hidden;
    justify-content: center;
    /* Horizontal center */
    align-items: center;
    /* Vertical center */
    padding-top: 150px;
    /* Memberikan sedikit ruang di atas */
    padding-bottom: 10px;
    /* Memberikan sedikit ruang di bawah */
}

/* Animasi keluar ke atas untuk bagian yang hilang */
.hidden {
    transform: translateY(-100%);
}

/* Animasi muncul dari bawah */
.show {
    transform: translateY(0%);
    transition: transform 1s ease-in-out;
}

.content-fit {
    width: min(1200px, 90vw);
    margin: auto;
    min-height: 100vh;
    position: relative;
    padding-block: 10em;
    z-index: 30;
}

header {
    padding-block: 1em;
    position: fixed;
    top: 0;
    width: 100%;
    backdrop-filter: blur(20px);
    z-index: 100;
    background-color: #1B1B1B11;
    background-image: repeating-linear-gradient(transparent 0 500px, #eee1 500px 501px);
}

header .content-fit {
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: unset !important;
    padding-block: unset !important;
}

header .content-fit nav ul {
    display: flex;
    gap: 2em;
}

.section .decorate {
    position: absolute;
}

#intro .content-fit {
    display: flex;
    gap: 55%;
    justify-content: space-between;
    align-items: flex-start;
    z-index: 1;
}

.section .number {
    font-family: "devil breeze";
    font-size: 7em;
    font-weight: bold;
}

.section .content-fit .title {
    font-family: "devil breeze";
    font-size: 5em;
    font-weight: bold;
}

#contact .content-fit {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    text-align: center;
}

#contact table {
    width: min(800px, 90vw);
    padding-top: 2em;
    font-size: 2em;
    margin: auto;
}

#contact table td {
    padding-block: 0.5em;
    border-bottom: 1px dashed #445022;
}

#contact table td:nth-child(1) {
    text-align: left;
    font-weight: 500;
}

#contact table td:nth-child(2) {
    text-align: right;
    font-weight: 200;
}

#contact .sign {
    font-family: 'Bimbo', sans-serif;
    font-size: 10em;
}


@media screen and (max-width: 1023px) {

    #intro .content-fit {
        flex-direction: column;
    }
}

@media screen and (max-width: 767px) {


    #intro .content-fit {
        flex-direction: column;
    }

    .section .number {
        font-size: 5em;
    }

    .section .content-fit .title {
        font-size: 2em;
    }

    #contact table {
        font-size: 1em;
    }

    #contact .sign {
        font-size: 2em;
    }

}

.logo-image {
    height: auto;
    max-height: 50px;
    width: 400px;
    max-width: 100%;
    object-fit: contain;
    display: block;
    margin-left: -60px;
}


.title-image {
    height: 1em;
    /* Adjust the height to match the text size */
    vertical-align: middle;
    /* Align the image vertically with the text */
}

#contact {
    background-color: #000000;
    z-index: 100;
}

.buttons {
    display: flex;
    justify-content: flex-start;
    /* Align buttons to the left */
    margin-top: 20px;
    margin-bottom: 20px;
    margin-left: -5px;
    width: 100%;
    height: 100%;
}

.buttons button {
    flex-grow: 1;
    margin: 0 10px;
    padding: 10px 20px;
    font-size: 16px;
    cursor: pointer;
    background-color: #BF0405;
    color: white;
    border: none;
    border-radius: 5px;
    z-index: 15;
    white-space: nowrap;
}

.buttons button:hover {
    background-color: #8f0000;
}

.intro-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    /* Membagi grid menjadi dua kolom yang sama */
    gap: 50px;
    /* Menambahkan jarak antar kolom */
    align-items: center;
    /* Vertikal center kolom */
    /* margin-top: -50px; */
}

.grid-right {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
}

/* footer */
.footer {
    position: relative;
    background-color: #1c1c1c;
    color: #ffffff;
    padding: 40px 40px;
    /* Memperbesar padding untuk menambah tinggi */
    display: grid;
    grid-template-columns: 1fr auto auto auto 1fr;
    /* Mengatur grid dengan kolom kosong di kiri dan kanan */
    align-items: flex-start;
    gap: 20px;
    z-index: 2;
}

.footer div {
    margin: 10px;
    z-index: 2;
}

.footer h3 {
    margin-top: 0;
    font-size: 18px;
    z-index: 2;
}

.footer p {
    margin: 5px 0;
    font-size: 14px;
    z-index: 2;
}

.footer a {
    color: #ffffff;
    text-decoration: none;
    z-index: 2;
}

.footer a:hover {
    text-decoration: underline;
}

.footer .social-media a {
    display: flex;
    align-items: center;
    margin: 5px 0;
    z-index: 2;
}

.footer .social-media i {
    margin-right: 10px;
    z-index: 2;
}

.footer-bottom {
    background-color: #111111;
    color: #888888;
    text-align: center;
    padding: 10px 40px;
    font-size: 12px;
    z-index: 2;
}

.footer-bottom a {
    color: #888888;
    text-decoration: none;
    z-index: 2;
}

.footer-bottom a:hover {
    text-decoration: underline;
}

@media (max-width: 768px) {
    .footer {
        grid-template-columns: 1fr;
        /* Mengatur grid menjadi satu kolom pada layar kecil */
        padding: 20px;
    }

    .footer-bottom {
        padding: 10px 20px;
    }
}

.intro-box {
    position: relative;
    width: 100%;
    /* penuh mengikuti kolom/grid */
    max-width: 800px;
    /* plafon di layar besar */
    aspect-ratio: 16 / 9;
    /* jaga rasio video */
    margin: 0;
    /* hapus margin negatif/fixed */
}

/* IFRAME MENGISI WADAH */
.intro-box iframe {
    position: absolute;
    inset: 0;
    /* top/right/bottom/left: 0 */
    width: 100%;
    height: 100%;
    border: 0;
}

/* Lini Produk */

/* #about-us {
    left: 20%;
} */

.content-fit-products {
    margin-top: 0;
    padding: 2rem 0;
    position: relative;
    z-index: -1;
    width: 100%;
    justify-content: center;

}

.header {
    width: 100%;
    background-color: #dddcdc;
    max-width: 65%;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    padding: 8px 0;
    text-align: center;
}

.header h2 {
    font-family: "Avenir Book", sans-serif;
    font-weight: 800;
    font-size: 1.25rem;
    color: black;
    margin: 0;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.products {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    grid-auto-rows: minmax(300px, auto);
    /* 1. Atur tinggi minimum 400px */
    gap: 16px;
}

.product {
    background-color: black;
    border: 1px solid #ccc;
    display: grid;
    flex-direction: column;
    position: relative;
    cursor: pointer;
    height: 100%;
    /* 2. Gunakan tinggi penuh dari grid cell */
    min-height: 50px;
    /* 3. Batasan tinggi minimum */
    grid-template-rows: 1fr auto;
    /* 5. Bagi ruang vertikal */
}

.product img {
    width: 100%;
    height: 100%;
    display: block;
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    opacity: 0;
    transition: opacity 0.3s ease;
    display: flex;
    justify-content: center;
    align-items: center;
}

.product:hover .overlay {
    opacity: 1;
}

.details-button {
    background: white;
    color: #b91c1c;
    font-weight: 600;
    padding: 8px 16px;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.about-button {
    background: white;
    color: #000000;
    font-weight: 600;
    padding: 8px 16px;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.caption {
    background-color: black;
    color: white;
    font-weight: 700;
    text-align: center;
    padding: 8px 0;
    margin-top: auto;
}

/* Our Partners */

.section-partners {
    position: relative;
    background-color: black;
    padding: 1.5rem 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 20vh;
    width: 100%;
    box-sizing: border-box;
    overflow: hidden;
    margin-top: -40px;
    z-index: 2;
}

/* Overlay */
.section-partners::before {
    content: "";
    position: absolute;
    inset: 0;
    background-color: rgba(255, 255, 255, 0.15);
    pointer-events: none;
    z-index: 2;
}

.content-fit-partners {
    margin-top: 0;
    padding: 2rem 0;
    position: relative;
    z-index: 2;
    width: 100%;
    display: flex;
    justify-content: center;
    margin-bottom: -40px;
}

h2 {
    position: relative;
    color: white;
    font-weight: 700;
    font-size: 24px;
    line-height: 29px;
    margin-bottom: 2.5rem;
    z-index: 2;
    text-align: center;
}

.partners {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 3rem;
    padding: 0 1rem;
    max-width: 80rem;
    width: 100%;
    box-sizing: border-box;
    z-index: 2;
}

.partners img {
    object-fit: contain;
    max-height: 80px;
    z-index: 2;
}

.partners img.dev {
    max-width: 150px;
}

@media (max-width: 640px) {
    .section-partners {
        min-height: 25vh;
    }

    .partners {
        gap: 1.5rem;
        padding: 0 0.5rem;
    }

    .partners img {
        max-height: 50px;
    }

    .partners img.dev {
        max-height: 100px;
        max-width: 100px;
    }
}

/* Logo berada di tengah layar dengan animasi */
#logo-container {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    position: fixed;
    width: 100%;
    z-index: 9999;
    opacity: 0;
    animation: fadeInOut 3s forwards;
}

/* Animasi fade-in dan fade-out */
@keyframes fadeInOut {
    0% {
        opacity: 0;
    }

    50% {
        opacity: 1;
    }

    100% {
        opacity: 0;
    }
}

/* Semua konten lainnya, default dalam kondisi tersembunyi */
#content {
    opacity: 0;
    transition: opacity 1s ease-out;
    /* Tidak perlu menambahkan display: none di sini */
}

/* Setelah animasi selesai, tampilkan konten */
.show-content #content {
    opacity: 1;
}

/* Terapkan efek blink pada tombol */
.number .about-button {
    background-color: transparent;
    border: 2px solid white;
    padding: 10px 20px;
    color: white;
    font-weight: bold;
    font-family: "Avenir Book", sans-serif;
    cursor: pointer;
}

.number .about-button:hover {
    background-color: #fff;
    color: #000;
}

/* ========== INTRO SECTION RESPONSIVE ========== */
@media (max-width: 992px) {
    .intro-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .number {
        margin-left: 0;
        text-align: center;
        padding: 0 20px;
    }

    .grid-right {
        margin-left: 0;
        order: -1;
    }

    .intro-box {
        width: 100%;
        height: 300px;
        margin: 0;
    }
}

/* Styling dasar untuk navigasi */
nav {
    font-family: "Avenir Book", sans-serif;
}

nav ul {
    list-style-type: none;
    margin: 0;
    padding: 0;
    display: flex;
    /* gap: 20px; */
    /* Memberikan jarak antar item menu */
}

nav ul li {
    cursor: pointe;
    padding: 10px;
    transition: color 0.3s, background-color 0.3s;
    /* Animasi untuk perubahan warna */
}

/* Efek hover untuk item menu utama */
nav ul li:hover {
    color: white;
    /* Mengubah warna teks menjadi putih saat hover */
    background-color: #ff0000;
    /* Mengubah latar belakang menjadi merah terang */
}

.menu-item {
    display: block;
    width: 100%;
    /* Menyusun kotak agar lebar penuh */
    padding: 10px 15px;
    /* Berikan padding agar area lebih besar dan lebih mudah diklik */
    background-color: #f1f1f1;
    /* Warna latar belakang kotak */
    border-radius: 5px;
    /* Sudut membulat */
    margin: 5px 0;
    /* Jarak antar item menu */
    cursor: pointer;
    /* Mengubah kursor menjadi pointer untuk menunjukkan bahwa kotak dapat diklik */
    transition: background-color 0.3s;
    /* Efek transisi saat hover */
}

/* Membuat link menjadi block-level agar area link penuh bisa diklik */
.menu-item a {
    display: block;
    text-decoration: none;
    /* Menghapus garis bawah */
    color: #000;
    /* Warna teks */
}

/* Efek hover untuk menu item */
.menu-item:hover {
    background-color: #ff0000;
    /* Mengubah warna latar belakang saat item dihover */
}

.menu-item:hover a {
    color: white;
    /* Mengubah warna teks saat hover */
}

/* Styling untuk dropdown menu */
nav ul li>.dropdown {
    display: none;
    /* Menyembunyikan dropdown secara default */
    position: absolute;
    background-color: #ffffff;
    color: #000;
    list-style-type: none;
    padding: 5px;
    margin-top: 10px;
    margin-left: -10px;
    border-radius: 5px;
    z-index: 10;
    /* Pastikan dropdown berada di atas elemen lain */
}

/* Menampilkan dropdown saat item menu dihover */
nav ul li:hover>.dropdown {
    display: block;
}

/* Styling untuk menu icon pada tampilan mobile */
.menu-icon {
    cursor: pointer;
    font-size: 24px;
    display: none;
}

@media (max-width: 600px) {
    #menuList {
        position: absolute;
        top: 57px;
        left: 0;
        right: 0;
        flex-direction: column;
        text-align: center;
        gap: 0;
        z-index: 100;
        opacity: 0;
        transition: all 0.3s ease;
        backdrop-filter: blur(20px) !important;
        background-color: rgba(27, 27, 27, 0.8);
    }

    #menuList.mobile-visible {
        display: flex !important;
        opacity: 1;
    }
}