@import url("https://fonts.googleapis.com/css2?family=Righteous&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Lato:wght@300&display=swap");

:root {
    --primary: #b6895b;
    --bg: #010101;
    --bg2: #d91f1f;
}

*,
*:before,
*:after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    outline: none;
    border: none;
    text-decoration: none;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "poppins", sans-serif;

    background-color: var(--bg);
    color: white;
    min-height: 3000px;
}

.btn-warning {
    display: inline-block;
    background-color: #ffc107;
    color: #212529;
    padding: 6px 12px;
    font-size: 14px;
    font-weight: 600;
    border: 1px solid #ffc107;
    border-radius: 4px;
    cursor: pointer;
    text-align: center;
    text-decoration: none;
    transition: background-color 0.2s ease, color 0.2s ease,
        border-color 0.2s ease;
}

.btn-warning:hover {
    background-color: #e0a800;
    border-color: #d39e00;
    color: #fff;
}

/* Navbar */

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.4rem 5%;
    background-color: rgba(1, 1, 1, 0.8);
    border-radius: 1px solid var#513c28;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 9999;
}

.navbar .navbar-logo {
    font-size: 2rem;
    font-weight: 700;
    color: white;
    font-style: italic;
}

.navbar .navbar-logo span {
    color: var(--bg2);
}

.navbar .navbar-nav a {
    color: white;
    display: inline-block;
    font-size: 1.4rem;
    margin: 0 1rem;
}

.navbar .navbar-nav a:hover {
    color: var(--bg2);
}

.navbar .navbar-nav a::after {
    content: "";
    display: block;
    padding-bottom: 0.5rem;
    border-bottom: 0.1rem solid var(--bg2);
    transform: scaleX(0);
    transition: 0.2s linear;
}

.navbar .navbar-nav a:hover::after {
    transform: scaleX(0.5);
}

.navbar .navbar-extra {
    display: flex;
    gap: 1rem;
    align-items: center;
    z-index: 10000;
}

.n.navbar .navbar-extra a {
    display: flex;
    align-items: center;
    color: white;
    margin: 0.5rem;
    transition: color 0.3s ease;
}

.navbar .navbar-extra a:hover {
    color: var(--bg2);
}
.navbar-extra .nav-icon {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: white;
    text-decoration: none;
    font-size: 14px;
}

.navbar-extra .nav-icon svg {
    width: 24px;
    height: 24px;
    margin-bottom: 4px;
}

.navbar-extra .nav-icon span {
    margin-top: 2px;
}

/* Side bar */
/* Hamburger hidden by default */
#hamburger-menu {
    display: none;
    font-size: 2rem;
    color: white;
    z-index: 10001; /* lebih tinggi dari navbar jika perlu */
}

/* Sidebar off-screen */
.mobile-sidebar {
    position: fixed;
    top: 0;
    left: -100%;
    width: 250px;
    height: 100%;
    background-color: rgba(1, 1, 1, 0.8);
    padding-top: 60px;
    transition: 0.3s ease;
    z-index: 10000;
}

.mobile-sidebar a {
    display: block;
    color: white;
    padding: 1rem;
    font-size: 1.8rem;
    margin-left: 15px;
    text-decoration: none;
}

.mobile-sidebar a:hover {
    color: var(--bg2);
}

.mobile-sidebar .close-btn {
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 3rem;
    color: white;
    text-decoration: none;
}

/* Hero Section */

.hero {
    min-height: 100vh;
    margin: auto;
    overflow: hidden;
    position: relative;
}

.hero::after {
    content: "";
    display: block;
    position: absolute;
    width: 100%;
    height: 30%;
    bottom: 0;
    background: linear-gradient(
        0deg,
        rgba(1, 1, 3, 1) 8%,
        rgba(255, 255, 255, 0) 50%
    );
    z-index: 1;
}

/* about Section */
.about {
    margin-top: -6rem;
}

.about,
.menu,
.contact,
.products {
    padding: 10rem 7% 1.4rem;
}

.about h2,
.menu h2,
.contact h2,
.products h2,
.gallery h2 {
    text-align: center;
    font-size: 2.6rem;
    margin-bottom: 3rem;
}

.about h2 span,
.menu h2 span,
.contact h2 span,
.products h2 span,
.gallery h2 span {
    color: var(--bg2);
}

.about .row {
    display: flex;
    margin-bottom: 6rem;
}

.about .row .about-img {
    flex: 1 1 45rem;
}

.about .row .about-img img {
    width: 90%;
    height: 100%;
    border-radius: 2%;
    padding-top: 20px;
}

.about .row .content {
    flex: 1 1 35rem;
    padding: 0 1rem;
}

.about .row .content h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.about .row .content p {
    text-align: justify;
    margin-bottom: 0.8rem;
    font-size: 1.4rem;
    font-weight: 300;
    line-height: 1.6;
}

/* Menu Section */
.menu h2,
.contact h2,
.products h2,
.gallery h2 {
    margin-bottom: 10px;
}
.menu p,
.contact p,
.products p,
.gallery p {
    text-align: center;
    max-width: 3orem;
    margin-bottom: auto;
    font-weight: 00;
    line-height: 1.6;
}

.product-card {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* Laptop default: 3 kolom */
    gap: 25px;
    justify-content: center;
    margin: 30px auto; /* lebih proporsional */
    padding: 20px;
    max-width: 1200px;
}

.wrapper {
    max-width: 300px; /* Ukuran maksimal card 300px */
    box-sizing: border-box;
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    background-color: rgba(17, 25, 40, 0.25);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.125);
    filter: drop-shadow(0 30px 10px rgba(0, 0, 0, 0.125));
    padding: 20px;
    text-align: center;
}

.banner-image img {
    background-position: center;
    background-size: cover;
    height: 300px;
    width: 100%;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.255);
}

.product-card h1 {
    margin-top: 10px;
    font-family: "Righteous", sans-serif;
    color: rgba(255, 255, 255, 0.98);
    font-size: 20px; /* Ukuran font tetap */
}

.product-card p {
    color: #fff;
    font-family: "Lato", sans-serif;
    font-size: 14px; /* Ukuran font tetap */
    line-height: 150%;
    letter-spacing: 2px;
}

/* our gallery section */

.gallery p {
    margin-bottom: 20px;
    padding: 5px;
}

.grid-container {
    columns: 5 200px;
    column-gap: 1.5rem;
    width: 90%;
    margin: 0 auto;
    div {
        width: 150px;
        margin: 0 1.5rem 1.5rem 0;
        display: inline-block;
        width: 100%;
        border: solid 2px rgb(138, 137, 137);
        padding: 5px;
        box-shadow: 5px 5px 5px rgba(0, 0, 0, 0.5);
        border-radius: 5px;
        transition: all 0.25s ease-in-out;
        &:hover img {
            filter: grayscale(0);
        }
        &:hover {
            border-color: rgb(255, 255, 255);
        }
        img {
            width: 100%;
            border-radius: 5px;
            transition: all 0.25s ease-in-out;
        }
        p {
            margin: 5px 0;
            padding: 0;
            text-align: center;
            font-style: italic;
        }
    }
}

/* Vidio Section Youtube */
.vidio-section h3 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 3rem;
}

.vidio-section h3 span {
    color: var(--bg2);
}

.video-section {
    margin-top: 50px;
    text-align: center;
}

.video-container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 20px;
}

.video-container iframe {
    width: 450px;
    height: 250px;
}

/* contact Section */
.contact .btn {
    font-family: "poppins";
}
.contact .row {
    display: flex;
    margin-top: 2rem;
    background-color: #222;
}
.contact .row .map {
    flex: 1 1 45rem;
    width: 100%;
    object-fit: cover;
}

.contact .row form {
    flex: 1 1 45rem;
    padding: 5rem 2rem;
    text-align: center;
}

.contact .row form .input-group {
    display: flex;
    align-items: center;
    margin-top: 2rem;
    background-color: var(--bg);
    border: 1px solid #eee;
    border-radius: 1rem;
    padding-left: 2rem;
}

.contact .row form .input-group input {
    width: 100%;
    padding: 2rem;
    font-size: 2rem;
    font-size: 1.7rem;
    background: none;
    color: #fff;
}

.contact .row form .btn {
    margin-top: 3rem;
    display: inline-block;
    padding: 1rem 3rem;
    border-radius: 1rem;
    border: 1px solid #eee;
    font-size: 1rem;
    font-weight: 700;
    color: #fff;
    background-color: var(--bg2);
    cursor: pointer;
}

/* Footer */
footer {
    background-color: var(--bg2);
    text-align: center;
    padding: 1rem 0.3rem;
    margin-top: 3rem;
}

footer .social {
    padding: 1rem 0;
}

footer .social a {
    color: #fff;
    margin: 1rem;
}

footer .social a:hover {
    color: var(--bg);
}

footer .links {
    margin-bottom: 1.4rem;
}

footer .links a {
    color: #fff;
    padding: 0.7rem 1rem;
}

footer .credit {
    font-size: 0.8rem;
}

footer .credit a {
    color: var(--bg);
    font-weight: 700;
}

/* modal bos */
/*item detail  */
.modal {
    display: none;
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(1, 1, 1, 0.7);
}

@keyframes animateModal {
    0% {
        opacity: 0;
        transform: scale(0.8);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

.modal-container {
    position: relative;
    background-color: #fefefe;
    color: var(--bg);
    margin: 15% auto;
    padding: 1.2rem;
    border: 1px solid #666;
    width: 80%;
    animation: animateModal 0.5s ease-in-out;
    transition: opacity 0.3s ease-in-out, transform 0.3s ease-in-out;
}

/* Misalnya, ketika modal ditampilkan */
.modal-container.show {
    opacity: 1;
    transform: scale(1);
}

/* Misalnya, ketika modal disembunyikan */
.modal-container.hide {
    opacity: 0;
    transform: scale(0.9);
}

.modal-container .close-icon {
    position: absolute;
    right: 1rem;
}
.modal-content {
    display: flex;
    flex-wrap: nowrap;
}

.modal-content img {
    height: 16rem;
    margin-right: 2rem;
    margin-bottom: 2rem;
}

.modal-content p {
    font-size: 1.2rem;
    line-height: 1.8rem;
    margin-top: 1.2rem;
}

.modal-content a {
    display: flex;
    gap: 1rem;
    width: 12rem;
    background-color: var(--primary);
    color: #fff;
    margin-top: 1rem;
    padding: 1rem 1.6rem;
}

/* ======= Order List Section ======= */
.container {
    padding: 4rem 7%;
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    margin: 2rem auto;
    color: white;
    font-family: "Lato", sans-serif;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.05);
}

.container h2 {
    font-family: "Righteous", sans-serif;
    font-size: 2.4rem;
    color: var(--bg2);
    margin-bottom: 2rem;
    text-align: center;
}

.container p {
    text-align: center;
    font-size: 1.4rem;
    color: #ccc;
}

.table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1.5rem;
    background-color: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
    overflow: hidden;
}

.table thead {
    background-color: var(--bg2);
    color: #fff;
}

.table thead th {
    padding: 1.2rem;
    font-size: 1.2rem;
    font-weight: bold;
    text-align: left;
}

.table tbody td {
    padding: 1rem 1.2rem;
    font-size: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    color: #eee;
}

.table tbody tr:hover {
    background-color: rgba(255, 255, 255, 0.05);
    transition: background-color 0.3s ease;
}

@media (max-width: 768px) {
    .container {
        padding: 3rem 4%;
    }

    .table thead {
        display: none;
    }

    .table,
    .table tbody,
    .table tr,
    .table td {
        display: block;
        width: 100%;
    }

    .table tr {
        margin-bottom: 1rem;
        border: 1px solid #444;
        border-radius: 10px;
        background-color: rgba(255, 255, 255, 0.05);
        padding: 1rem;
    }

    .table td {
        padding: 0.5rem 1rem;
        font-size: 1rem;
        text-align: right;
        position: relative;
    }

    .table td::before {
        content: attr(data-label);
        position: absolute;
        left: 1rem;
        top: 0.5rem;
        font-weight: bold;
        text-transform: uppercase;
        font-size: 0.8rem;
        color: var(--primary);
    }
}

/* Media Queries */

/* laptop */
@media (max-width: 1366px) {
    html {
        font-size: 75%;
    }
}
/* Tablet */
@media (min-width: 769px) {
    .mobile-sidebar {
        display: none;
    }
}

@media (max-width: 768px) {
    html {
        font-size: 62.5%;
    }

    .navbar {
        padding: 25px 35px;
        position: fixed;
        z-index: 9999;
    }

    .navbar .navbar-logo {
        margin-left: -15px;
        font-size: 2.8rem;
        align-items: center;
    }

    .navbar .navbar-nav a {
        display: none;
        font-size: 0.8rem;
        margin: 4px;
        padding-top: 8px;
        align-items: center;
    }

    .navbar-extra {
        display: flex;
        justify-content: space-between;
    }

    .navbar .navbar-extra a {
        padding: 0;
        padding-top: 5px;
        height: 50px;
        align-items: center;
    }

    .navbar .navbar-nav {
        display: none;
    }

    #hamburger-menu {
        display: block;
    }

    .hero::after {
        height: 50%; /* Naikkan nilai height untuk menaikkan posisi */
        bottom: 0; /* Naikkanposisi lebih tinggi */
    }

    .nav-icon {
        display: flex;
        flex-direction: column;
        align-items: center;
        font-size: 10px;
        color: white;
        text-decoration: none;
    }

    .nav-icon svg {
        width: 20px;
        height: 20px;
        margin-bottom: 2px;
    }

    .nav-icon span {
        display: block;
        font-size: 11px;
    }

    /* abaout section responsive */
    .about {
        margin-top: 0.5rem;
    }
    .about .row {
        flex-wrap: wrap;
    }
    .about.row .about-img img {
        height: 20rem;
        object-fit: cover;
        object-position: center;
    }
    .about .row .content {
        padding: 0;
    }
    .about .row .content h3 {
        margin-top: 1rem;
        font-size: 2rem;
    }
    .about .row .content p {
        font-size: 1.6rem;
    }

    /* Menu responsive */
    .menu {
        margin-top: -10rem;
    }
    .menu p {
        font-size: 1.2rem;
    }

    .products {
        margin-top: -10rem;
    }

    .modal-content {
        flex-wrap: wrap;
    }

    .product-card {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .banner-image img {
        height: 150px;
    }

    .menu h1 {
        font-size: 16px;
    }

    .menu p {
        font-size: 13px;
    }

    .contact .row {
        flex-wrap: wrap;
    }

    .contact .row .map {
        height: 30rem;
    }

    .gallery {
        margin-top: -170rem;
    }
}

/* Media Phone */
@media (max-width: 450px) {
    html {
        font-size: 55%;
    }

    .about {
        margin-top: -70px;
    }

    .product-card {
        display: flex;
        flex-direction: column;
        gap: 1rem;
        align-items: center;
    }

    .product-card .card {
        width: 90%;
        max-width: 300px;
    }

    .banner-image img {
        width: 200px;
        max-width: 300px;
        height: auto;
        object-fit: cover;
        border-radius: 10px;
        display: block;
        margin: 0 auto;
    }
    .container-menu {
        padding: 10px;
    }

    .wrapper {
        max-width: 250px;
    }

    .grid-container {
        columns: 2 100px;
        column-gap: 1.5rem;
    }

    .video-container iframe {
        padding: 10px;
        width: 350;
        height: 150;
    }

    .gallery {
        margin-top: -170rem;
    }
}

@media (max-width: 430px) {
    .gallery {
        margin-top: -155rem;
    }
}

/* Ukuran phone lebih kecil */
@media (max-width: 390px) {
    .gallery {
        margin-top: -120rem;
    }
}
