/* styles.css */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: "Military", sans-serif;
    background-color: #000000;
    color: #ffffff00;
    font-size: 14px;
    /* background-image:
        url(img/bg.png),
        repeating-linear-gradient(to right, transparent 0 500px, #73814B33 500px 501px); */
    background-size: 100%;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    /* padding: 100px; */
    padding-top: 100px;
}

/* Product Description Styling */
.product-description {
    background: #ffffff00;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 40px;
}

.product-description p {
    font-size: 16px;
    line-height: 1.8;
    text-align: justify;
    color: #ffffff;
}

/* Table Styling */
.specifications-table {
    margin-bottom: 40px;
    overflow-x: auto;
}

.spec-table {
    width: 100%;
    min-width: 1000px;
    border-collapse: collapse;
    background: #ffffff00;
    border-radius: 0;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    font-size: 14px;
    border: 2px solid #e9ecef;
}

.spec-table th,
.spec-table td {
    padding: 12px 8px;
    text-align: center;
    border: 1px solid #ffffff;
    vertical-align: middle;
}

.spec-table th {
    background: #898a8b;
    color: white;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 12px;
}

/* Styling khusus untuk kolom Armor Level dengan rowspan */
.armor-level {
    background-color: #ffffff00 !important;
    font-weight: bold;
    font-size: 16px;
    color: #ffffff;
    border-right: 2px solid #007bff;
    vertical-align: middle;
}

.spec-table tbody tr:hover {
    background-color: #f1f3f534;
    transition: background-color 0.3s ease;
}

/* Styling untuk test ammunition dengan line break */
.spec-table td:nth-child(2) {
    text-align: center;
    padding-left: 15px;
}

.spec-table tbody tr:last-child td {
    border-bottom: none;
}

/* Process Title */
.process-title {
    text-align: center;
    color: #ffffff;
    margin: 40px 0;
    font-size: 2.5em;
    font-weight: 300;
    position: relative;
}

.process-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 3px;
    background: #ff0000;
    margin: 15px auto;
}

/* Gallery Styling */
.gallery-section {
    margin-bottom: 40px;
}



/* Responsive Design */
@media (max-width: 1200px) {
    .spec-table {
        font-size: 12px;
    }

    .spec-table th,
    .spec-table td {
        padding: 10px 6px;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 15px;
    }

    .pswp-gallery {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .specifications-table {
        margin: 20px -15px;
        padding: 0 15px;
    }

    .spec-table {
        font-size: 11px;
    }

    .spec-table th,
    .spec-table td {
        padding: 8px 4px;
    }

    .armor-level {
        font-size: 14px;
    }

    .process-title {
        font-size: 2em;
    }

    .product-description {
        padding: 20px;
    }

    .product-description p {
        font-size: 15px;
    }
}

@media (max-width: 480px) {
    .spec-table {
        font-size: 10px;
    }

    .spec-table th,
    .spec-table td {
        padding: 6px 3px;
    }

    .process-title {
        font-size: 1.8em;
    }
}

/* Horizontal scroll indicator untuk mobile */
.specifications-table::after {
    content: "← Geser untuk melihat selengkapnya →";
    display: block;
    text-align: center;
    font-size: 12px;
    color: #6c757d;
    margin-top: 10px;
}

@media (min-width: 1000px) {
    .specifications-table::after {
        display: none;
    }
}



/* Override default Fancybox styling */
.fancybox__container {
    background: rgba(0, 0, 0, 0.9) !important;
}

.fancybox__content {
    padding: 20px !important;
    max-width: 90vw !important;
    max-height: 90vh !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.fancybox__image {
    max-width: 100% !important;
    max-height: 100% !important;
    width: auto !important;
    height: auto !important;
    object-fit: contain !important;
    position: static !important;
}

/* Thumbnail gallery styling */
.fancybox-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    padding: 20px 0;
}

.fancybox-gallery img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 8px;
}



@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');
}

.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%;
}

.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;
}



/* 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;
}

.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 */
}

/* 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;
    }
}

/* Styling dasar untuk navigasi */
nav {
    font-family: "Avenir Book", sans-serif;
}



/* 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;
}

/* Contoh styling untuk tiap state */
.decode-text {
    font-family: "Military";
    src: url('/font/Military-Jr34-Bold.woff');
    color: #ffffff;
    font-size: clamp(2rem, 7.5vw, 5rem);
    /* Responsive font size */
    line-height: 1.3;
    text-align: center;
    padding: 0 2rem;
    max-width: 100%;
    overflow: hidden;

}

.decode-text span {
    /* transition: all 0.3s ease; */
    opacity: 0;
    /* Awal: tidak terlihat */
    font-family: "Military";
    src: url('/font/Military-Jr34-Bold.woff');
    display: inline-block;
    white-space: normal;
    transition: all 0.3s ease;
    margin: 1 0.1em;

}

.decode-text span.state-1 {
    opacity: 0.3;
    /* Bisa ditambahkan efek garis (line) dengan border-bottom misalnya */
    border-bottom: 1px solid #fff;
}

.decode-text span.state-2 {
    opacity: 0.6;
    /* Ubah tampilan, misalnya background block sementara */
    background-color: rgba(255, 255, 255, 0.3);
}

.decode-text span.state-3 {
    opacity: 1;
    border-bottom: none;
    background-color: transparent;
}

.title {
    color: #ffffff;
    font-size: 5em;
    font-family: "Avenir Book", sans-serif;
    font-weight: bold;
    position: relative;
    text-align: center;
    /* position: absolute; */
    /* Menggunakan absolute agar tidak terpengaruh perubahan lain */
    top: auto;
    /* Menjaga elemen di tengah secara vertikal */
    left: auto;
    /* Menjaga elemen di tengah secara horizontal */
    transform: none;
    /* Menyesuaikan posisi agar elemen tepat di tengah */
    text-align: center;
    margin: 1rem 0;
    padding: 0 1rem;
    /* Menghapus margin-top untuk menghindari pergeseran */
    padding-bottom: 55px;
}

.title::before {
    content: attr(data-before);
    position: absolute;
    top: 0.5em;
    inset: 0.66em 0 0 0;
    z-index: -1;
    color: #445022;
}

@media (max-width: 768px) {
    .decode-text {
        font-size: clamp(2rem, 6.6vw, 3rem);
        line-height: 1.2;
    }

    .title {
        padding-bottom: 0px;
    }

    .decode-text span {
        margin: 1 0.05em;
        transition-duration: 0.2s;
    }

    .title::before {
        top: 0.3em;
    }
}

@media (max-width: 480px) {
    .decode-text {
        font-size: clamp(1.2rem, 6vw, 2rem);
        padding: 0 1rem;
    }

    .decode-text span.state-1,
    .decode-text span.state-2,
    .decode-text span.state-3 {
        letter-spacing: normal;
    }
}

.red-letter {
    color: red;
}

.container-contact {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
}

.contact-header {
    background-color: #000000;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
    margin-bottom: -40px;
}

.contact-header h1 {
    color: #ffffff;
    margin-bottom: 20px;
    font-size: 2.2em;
}

.contact-header p {
    color: #ffffff;
    font-size: 1.1em;
    margin-bottom: 15px;
    text-align: justify;
}

.contact-form {
    background-color: #000000;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);

}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
    margin-bottom: 25px;
}

.form-group {
    margin-bottom: 20px;
}

label {
    display: block;
    margin-bottom: 8px;
    color: #ffffff;
    font-weight: 500;
}

input,
textarea,
select {
    width: 100%;
    padding: 12px;
    border: 1px solid #bdc3c7;
    border-radius: 6px;
    font-size: 16px;
    transition: border-color 0.3s ease;
}

input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: #ffffff;
    box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.2);
}

textarea {
    height: 120px;
    resize: vertical;
}

.submit-btn {
    background-color: #000000;
    color: rgb(255, 255, 255);
    padding: 14px 28px;
    border: white 2px solid;
    border-radius: 6px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s ease;
}

.submit-btn:hover {
    background-color: #ff0000;
}

@media (max-width: 768px) {
    .form-grid {
        grid-template-columns: 1fr;
    }

    .contact-header,
    .contact-form {
        padding: 25px;
    }
}

.submit-btn {
    background-color: transparent;
    border: 2px solid white;
    padding: 10px 20px;
    color: white;
    font-weight: bold;
    font-family: "Avenir Book", sans-serif;
    cursor: pointer;
    font-size: 1rem;
    text-decoration: none;
}

.submit-btn:hover {
    background-color: #fff;
    color: #000;
}

.submit-btn:disabled {
    background-color: #95a5a6;
    cursor: not-allowed;
}

.success-message {
    color: #ff0000;
    background-color: #d5f4e6;
    padding: 15px;
    border-radius: 6px;
    margin-bottom: 20px;
    display: none;
}

.error-message {
    color: #e74c3c;
    background-color: #fdeaea;
    padding: 15px;
    border-radius: 6px;
    margin-bottom: 20px;
    display: none;
}

@media (max-width: 768px) {
    .form-grid {
        grid-template-columns: 1fr;
    }

    .contact-header, .contact-form {
        padding: 25px;
    }
}

.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;
}

/* Styling untuk menu icon (hamburger menu) */
.menu-icon {
    display: none;
    cursor: pointer;
}

.menu-icon i {
    color: #ffffff;
    font-size: 30px;
}

/* ========== MOBILE MENU ========== */
@media (max-width: 600px) {
    #menuList {
        position: absolute;
        top: 57px;
        left: 0;
        right: 0;
        flex-direction: column;
        text-align: center;

        /* background: #00427400; */
        gap: 0;
        overflow: hidden;
        display: none !important;
        /* box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1); */
        z-index: 100;
        opacity: 0;
        transition: all 0.3s ease;
        /* Efek background baru */
        backdrop-filter: blur(20px) !important;
        background-color: rgba(27, 27, 27, 0.8);
        -webkit-backdrop-filter: blur(20px) !important;
        background-image: repeating-linear-gradient(to right,
                transparent 0 500px,
                /* Diperkecil untuk mobile */
                #eee1 500px 501px) !important;

    }

    #menuList.mobile-visible {
        display: flex !important;
        opacity: 1;
    }

    .menu-icon {
        display: block !important;
        z-index: 1000;
    }

    nav ul li>.dropdown {
        position: static;
        margin-left: 0px;
        width: 100%;
        /* margin-top: 100; */
        max-height: 100;
        overflow: hidden;
        transition: max-height 0.3s ease;
        backdrop-filter: blur(20px) !important;
        /* background-color: rgba(27, 27, 27, 0.8); */
        -webkit-backdrop-filter: blur(20px) !important;
        background-image: repeating-linear-gradient(to right,
                transparent 0 500px,
                /* Diperkecil untuk mobile */
                #eee1 500px 501px) !important;
    }
}

/* ========== FOOTER RESPONSIVE ========== */
@media (max-width: 768px) {
    .footer {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .social-media a {
        justify-content: center;
    }
}

/* 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;
    }
}