/* hero welcome */
.hero-welcome {
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.hero-welcome .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.hero-welcome::before {
    content: "";
    position: absolute;
    top: -50%;
    right: -20%;
    width: 200px;
    height: 200px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    animation: float 6s ease-in-out infinite;
}

.hero-welcome::after {
    content: "";
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 150px;
    height: 150px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    animation: float 8s ease-in-out infinite reverse;
}

.hero-welcome .content {
    position: relative;
    z-index: 1;
}
/* end of hero welcome */

/* image home */
.image-wrapper {
    position: relative;
    width: 70%;
    max-width: 100%;
    margin: 0 auto; /* ini penting supaya wrapper sendiri di tengah */

    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

.image-wrapper video {
    width: 100%;
    height: auto;
    max-height: 100vh; /* supaya tidak melebihi viewport */
    object-fit: cover; /* crop biar tetap proporsional */
    display: block; /* memastikan video tidak punya inline spacing */
}

.loader {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border: 5px solid rgba(255, 255, 255, 0.5);
    border-top: 5px solid #fff;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    background: transparent;
    z-index: 2;
}
/* end of image home */

/* discover link */
.discover-link {
    text-decoration: none;
    border-bottom: 1px solid black;
    padding-bottom: 3px;
    color: black;
    font-weight: 500;
    transition: all 0.2s ease-in-out;
}

.discover-link:hover {
    color: #007bff;
    border-bottom-color: #007bff;
}
/* end of discover link */

/* menu scroll */
.menu-scroll {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    padding: 0px 5px 10px 5px;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    position: relative;
}

.menu-scroll::-webkit-scrollbar {
    display: none;
    /* Chrome, Safari */
}

.menu-scroll::before,
.menu-scroll::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    width: 80px;
    z-index: 10;
    pointer-events: none;
}

.menu-item {
    flex: 0 0 auto;
    /* margin-right: 10px; */
    width: 250px;
    /* lebar tetap */
    height: auto;
    /* tinggi seragam */
    /* border-radius: 10px; */
    /* biar rapi kalau ada ruang kosong */
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.menu-item img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    /* jaga proporsi */
    display: block;
}

.scroll-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: #fff;
    border: none;
    padding: 8px 12px;
    cursor: pointer;
    border-radius: 50%;
    z-index: 20;
}

.scroll-btn.left {
    left: 5px;
}

.scroll-btn.right {
    right: 5px;
}

.get-direction-link {
    text-decoration: none;
    color: #ba996e;
}

.get-direction-link:hover {
    text-decoration: underline;
}

/* Modal Style */
section#menu #imgModal.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    padding-top: 60px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.8);
}

section#menu #imgModal.modal .modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-width: 400px;
    width: 90%;
    height: auto;
    border-radius: 8px;
}

section#menu #imgModal.modal .close {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
}

/* enf of menu scroll */

/* loader  */
@keyframes spin {
    0% {
        transform: translate(-50%, -50%) rotate(0deg);
    }

    100% {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

/* topbar */

.restaurant-topbar {
    position: absolute;
    background: rgba(240, 234, 225, 1);
    width: 100%;
    padding: 5rem 10px 1rem 10px;
    z-index: 1000;
    /* biar di atas semua */
}

.restaurant-topbar nav {
    background: rgba(0, 0, 0, 0.5);
    /* transparan */
}

.topbar-nav {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 2rem;
}

.topbar-nav li {
    position: relative;
}

.topbar-nav a {
    color: white;
    text-decoration: none;
    padding: 0.75rem 1.5rem;
    border-radius: 2rem;
    font-weight: 500;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    backdrop-filter: blur(10px);
}

.topbar-nav a:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
    color: white;
    text-decoration: none;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.topbar-nav a i {
    margin-right: 0.5rem;
    font-size: 1.1rem;
}

.topbar-option {
    position: sticky;
    top: 0;
    z-index: 999;
    background: rgba(240, 234, 225, 1);
    align-items: center; /* ini bikin semua child vertikal tengah */
}

.topbar-option > hr:first-of-type {
    margin: 0;
}

.topbar-option > hr:last-of-type {
    margin-top: 0.25rem;
    padding-bottom: 1.5rem;
    /* optional */
}

/* end of topbar */

/* custom language */
.custom-select {
    background-color: transparent !important;
    border: none !important;
    box-shadow: none !important;
    color: inherit;
    padding-right: 1.5rem;
    appearance: none;
}

.custom-select:focus {
    outline: none !important;
    box-shadow: none !important;
}
/* endof custom languge */

.divider {
    border-left: 2px solid rgba(255, 255, 255, 0.6);
    height: 24px;
    display: inline-block;
    margin: 8px 10px;
    vertical-align: middle;
    background-color: #2a3064;
}

/* section ABOUT for image */
.image-wrapper-about {
    width: 100%;
    height: 400px;
    /* samain tinggi semua gambar */
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.image-wrapper-about img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Landscape ratio (16:9) */
.image-wrapper-about.landscape {
    aspect-ratio: 16/9;
}

/* Portrait ratio (3:4) */
.image-wrapper-about.portrait {
    aspect-ratio: 3/4;
}

.loader-about {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}
/* end of image about section */

@keyframes float {
    0%,
    100% {
        transform: translateY(0px) rotate(0deg);
    }

    50% {
        transform: translateY(-20px) rotate(180deg);
    }
}

/* creative custom button */
.creative-btn {
    background: linear-gradient(45deg, #4e73df, #36b9cc);
    border: none;
    color: white;
    padding: 0.75rem 2rem;
    border-radius: 2rem;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.creative-btn::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transition: all 0.3s ease;
    transform: translate(-50%, -50%);
}

.creative-btn:hover::before {
    width: 300px;
    height: 300px;
}

.creative-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(78, 115, 223, 0.3);
    color: white;
}
/* end of creative custom button */

/* feature card */

/* Interactive features section */
.feature-card {
    background: white;
    border-radius: 1rem;
    padding: 2rem;
    text-align: center;
    border: none;
    box-shadow: 0 0.25rem 1rem rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    height: 100%;
}

.feature-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(78, 115, 223, 0.1),
        transparent
    );
    transition: left 0.5s ease;
}

.feature-card:hover::before {
    left: 100%;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 1rem 2rem rgba(0, 0, 0, 0.15);
}

.feature-icon {
    width: 4rem;
    height: 4rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem auto;
    font-size: 1.5rem;
    position: relative;
    z-index: 2;
    transition: transform 0.3s ease;
}

.feature-card:hover .feature-icon {
    transform: scale(1.1) rotate(5deg);
}
/* end of feature card */

/* reservation button */
.reservation-btn {
    color: white;
    font-weight: bold;
    padding: 8px 16px;
    border-radius: 0px;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
    background-color: #2a3064;
}

.reservation-btn:hover {
    background-color: white;
    color: #000;
}
/* endof reservation button */

#about h2 {
    color: #2c3e50;
}

#about p {
    font-size: 1.1rem;
    line-height: 1.6;
}

#hotel-img img {
    transition: transform 0.3s ease;
}

#hotel-img img:hover {
    transform: scale(1.05);
}

/* flipbook */

:root {
    --primary-color: #007bff;
    --secondary-color: #6c757d;
}

/* Hero Section */

/* Hero section dengan logo overlay */
.hero-section {
    position: relative;
    width: 100%;
    min-height: 400px;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-background {
    width: 100%;
    height: 660px;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    display: block;
}

.logo-overlay {
    position: absolute;
    top: 15%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
    display: flex;
    justify-content: center;
    align-items: center;
    width: auto;
    height: auto;
}

.logo-overlay img {
    max-width: 300px;
    width: 100%;
    height: auto;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.2));
    transition: transform 0.3s ease;
}

.logo-overlay img:hover {
    transform: scale(1.05);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .hero-background {
        height: 300px;
    }

    .hero-section {
        min-height: 300px;
    }

    .logo-overlay img {
        max-width: 250px;
    }
}

@media (max-width: 576px) {
    .hero-background {
        height: 220px;
    }

    .hero-section {
        min-height: 250px;
    }

    .logo-overlay img {
        max-width: 200px;
    }
}

@media (max-width: 480px) {
    .hero-background {
        height: 300px;
    }

    .logo-overlay img {
        max-width: 180px;
    }
}

/* Alternative: Logo dengan background blur/overlay */
.hero-section.with-overlay::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 5;
}

.hero-section.with-blur .hero-background {
    filter: blur(1px);
}

/* Gradient overlay variant */
.hero-section.with-gradient::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        45deg,
        rgba(0, 0, 0, 0.3) 0%,
        rgba(255, 255, 255, 0.1) 100%
    );
    z-index: 5;
}

/* Logo dengan background circle */
.logo-with-bg {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    padding: 20px;
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

/* Animation untuk logo muncul */
.logo-overlay.animated {
    animation: logoFadeIn 1s ease-out;
}

@keyframes logoFadeIn {
    0% {
        opacity: 0;
        transform: translate(-50%, -60%);
    }

    100% {
        opacity: 1;
        transform: translate(-50%, -50%);
    }
}

/* Variant dengan positioning yang lebih fleksibel */
.hero-flexible {
    position: relative;
    width: 100%;
    display: grid;
    place-items: center;
}

.hero-flexible .hero-background {
    grid-area: 1 / 1;
}

.hero-flexible .logo-overlay {
    grid-area: 1 / 1;
    position: static;
    transform: none;
}

.hero-content h1 {
    font-size: 3rem;
    font-weight: bold;
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-content p {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2rem;
}
/* scroll fade */

.fade-left,
.fade-right {
    position: absolute;
    top: 0;
    width: 80px;
    height: 100%;
    z-index: 15;
    pointer-events: none;
    display: none;
    /* default disembunyikan */
}

.fade-left {
    left: 0;
    background: linear-gradient(
        to right,
        rgba(240, 234, 225, 0.9),
        rgba(240, 234, 225, 0)
    );
}

.fade-right {
    right: 0;
    background: linear-gradient(
        to left,
        rgba(240, 234, 225, 0.9),
        rgba(240, 234, 225, 0)
    );
}
/* end of scroll fade */

/* modal popup ads */
.custom-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    visibility: hidden;
    opacity: 0;
    transition: visibility 0s, opacity 0.3s;
    z-index: 9999;
}

/* Modal box */
.custom-modal-content {
    border-radius: 10px;
    width: 80%;
    max-width: 500px;
    /* box-shadow: 0px 4px 15px rgba(0, 0, 0, 0.3); */
    text-align: center;
    position: relative;
}

/* Close button */
.custom-close {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    border: none;
    background-color: rgba(255, 255, 255, 0) !important;
    color: #fff;
    font-size: 22px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.custom-close:hover {
    background-color: rgba(255, 255, 255, 1) !important;

    color: black;
    transform: scale(1.1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

/* Show modal */
.custom-modal.show {
    visibility: visible;
    opacity: 1;
}

/* Responsive video */
.custom-modal-content video,
.custom-modal-content img {
    max-width: 100%;
    width: 100%;
    height: auto;
    border-radius: 8px;
    display: block;
    margin: 0 auto;
}
/* ends of modal popup ads */

/* pdf */
.btn-open-pdf {
    background: linear-gradient(45deg, #ff6b6b, #ee5a24);
    border: none;
    color: white;
    padding: 15px 30px;
    font-size: 1.1rem;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.btn-open-pdf:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    color: white;
}

/* PDF Styles */
/* Default (Desktop / Tablet) */
.pdf-modal .modal-dialog {
    max-width: 95vw;
    height: 95vh;
    margin: 2.5vh auto;
}

.pdf-modal .modal-content {
    height: 100%;
    border: none;
    border-radius: 15px;
    overflow: hidden;
}

.pdf-modal .modal-header {
    background: var(--primary-color);
    color: white;
    padding: 1rem 1.5rem;
    border: none;
}

.pdf-modal .btn-close {
    filter: invert(1);
}

.pdf-modal .modal-body {
    padding: 0;
    height: calc(100% - 130px);
    position: relative;
}

/* PDF Viewer Container */
.pdf-container {
    position: relative;
    width: 100%;
    min-height: 70vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}
.pdf-pages {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    min-height: 60vh;
}
.pdf-page {
    position: absolute;
    background: white;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    border-radius: 10px;
    overflow: hidden;
    transform-origin: left center;
    transition: transform 0.6s ease;
    cursor: pointer;
    max-width: 90%;
    height: auto;
}

.pdf-page canvas {
    display: block;
    width: 100% !important;
    height: auto !important;
}

.pdf-page.current {
    z-index: 10;
}
.pdf-page.next {
    z-index: 9;
    transform: translateX(50%) rotateY(-15deg);
}
.pdf-page.flipping {
    z-index: 15;
    transform: rotateY(-180deg);
}
.pdf-page.flipped {
    transform: rotateY(-180deg);
    z-index: 5;
}

/* Controls */
.pdf-controls {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(255, 255, 255, 0.95);
    padding: 10px 20px;
    border-radius: 30px;
    backdrop-filter: blur(10px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    gap: 15px;
}

.control-btn {
    border: none;
    background: var(--primary-color);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}
.control-btn:hover:not(:disabled) {
    background: #0056b3;
    transform: scale(1.1);
}
.control-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.page-info {
    font-weight: 600;
    color: #333;
    font-size: 0.9rem;
    min-width: 80px;
    text-align: center;
}

/* Loading */
.loading-spinner {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 100;
}
/* END OF PDF STYLE */

/* endof pdf */

/* Responsive adjustments */
@media (max-width: 768px) {
    .welcome-title {
        font-size: 2rem;
    }

    .hero-welcome {
        padding: 2rem 1rem;
    }

    .feature-card {
        padding: 1.5rem;
    }

    .creative-menu-card {
        margin-bottom: 1.5rem;
    }

    .menu-image-container {
        height: 160px;
    }

    .topbar-nav {
        gap: 1rem;
    }

    .topbar-nav a {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }

    .reservation-btn {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        width: 100%;
        border-radius: 0;
        z-index: 1050;
    }

    .reservation-wrapper {
        position: sticky;
        bottom: 0;
        width: 100%;
        background: white;
        /* biar kontras */
        padding: 0;
        z-index: 1050;
    }

    .logo-wrapper {
        position: relative;
        width: 100%;
        max-width: 100%;
        overflow: hidden;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .image-wrapper {
        position: relative;
        width: 100%;
        max-width: 100%;
        overflow: hidden;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .image-wrapper video {
        width: 100%;
        height: auto;
        max-height: 100vh; /* supaya tidak melebihi viewport */
        object-fit: cover; /* crop biar tetap proporsional */
    }

    .hero-content h1 {
        font-size: 2rem;
    }

    .custom-close {
        top: 5px;
        right: 5px;
        width: 30px;
        height: 30px;
        font-size: 18px;
    }
}

/* PDF */
/* Mobile: Single Page Layout */
@media (max-width: 767px) {
    .pdf-pages {
        flex-direction: column;
        gap: 0;
    }

    .pdf-page {
        position: relative;
        background: white;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
        border-radius: 10px;
        overflow: hidden;
        cursor: pointer;
        width: 100%;
        max-width: 350px;
        margin-bottom: 20px;
        transform: none !important;
    }

    .pdf-page.current {
        display: block;
        z-index: 10;
    }

    .pdf-page.next {
        display: none;
    }

    .pdf-page.flipped {
        display: none;
    }
}

.pdf-page canvas {
    display: block;
    width: 100% !important;
    height: auto !important;
    border-radius: 8px;
}

/* Controls - Responsif */
.pdf-controls {
    position: relative;
    bottom: 0;
    background: rgba(255, 255, 255, 0.92);
    padding: 15px 25px;
    border-radius: 30px;
    backdrop-filter: blur(10px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: 20px;
    flex-wrap: wrap;
    justify-content: center;
}

.control-btn {
    border: none;
    background: var(--primary-color);
    color: white;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    font-size: 1.1rem;
}

.control-btn:hover:not(:disabled) {
    background: #0056b3;
    transform: scale(1.1);
}

.control-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.page-info {
    font-weight: 600;
    color: #333;
    font-size: 1rem;
    min-width: 80px;
    text-align: center;
    padding: 0 10px;
}

/* Loading */
.loading-spinner {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 100;
}

@media (max-width: 767px) {
    .pdf-controls {
        padding: 12px 20px;
        gap: 12px;
    }

    .control-btn {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    .page-info {
        font-size: 0.9rem;
        min-width: 70px;
    }
}

/* Tablet Responsive */
@media (min-width: 768px) and (max-width: 1024px) {
    .pdf-page {
        max-width: 40%;
    }
}

/* Hide initially */
.pdf-container {
    display: none;
}

.pdf-controls {
    display: none;
}
/* endof pdf */

@media (max-width: 576px) {
    .welcome-title {
        font-size: 1.75rem;
    }

    .topbar-nav {
        flex-direction: column;
        align-items: center;
        gap: 0.5rem;
    }

    .feature-icon {
        width: 3rem;
        height: 3rem;
        font-size: 1.25rem;
    }

    .image-wrapper {
        position: relative;
        width: 100%;
        max-width: 100%;
        overflow: hidden;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .image-wrapper video {
        width: 100%;
        height: auto;
        max-height: 100vh; /* supaya tidak melebihi viewport */
        object-fit: cover; /* crop biar tetap proporsional */
    }

    .custom-modal-content {
        width: 95%;
        max-width: 95%;
    }

    .custom-close {
        top: 5px;
        right: 5px;
        width: 30px;
        height: 30px;
        font-size: 18px;
    }
}
