/* Media Queries for Portrait Orientation */
@media only screen and (orientation: portrait) {

    /* General Adjustments */
    body {
        font-size: 1rem; /* Slightly reduce font size for smaller screens */
    }
    * {
        margin: 0;
        padding: 0;
        box-sizing: border-box;
    }
    html, body {
        width: 100vw;
        overflow-x: hidden;
        overflow-y: scroll;
    }
    .mobile-section {
        display: flex !important;
    }
    .landscape-section {
        display: none !important;
    }
    h1, h2, h3 {
        letter-spacing: 1vw;
    }

    /* Header Section */
    .header-container {
        padding-inline: 5% !important;
        padding-block: 5% !important;
    }
    .logo {
        width: 20vw; /* Adjust logo size for smaller screen */
    }
    .logo-roa {
        width: 16rem !important;
        top: 5%;
    }
    .fas.fa-bars.hamburger {
        display: block;
        position: relative;
        z-index: 9;
    }
    #menu-hamburger.menu-open::before {
        content: 'X';
        transition: all 0.3s ease;
    }
    .fa-bars::before, .fa-navicon::before{
        font-size: 1.7rem !important;
        display: block !important;
        transition: all 0.3s ease;
    }
    .menu-atas {
        display: none;
        transform: scaleX(-100%);
        transition: all 0.3s ease;
    }
    .header-container a {
        display: flex;
        font-family: 'Metrolin';
        font-size: 1.3rem;
        font-weight: bold;
        letter-spacing: 10%;
    }
    .scrolled .logo {
        width: 3rem !important;
    }
    .menu-header.scrolled .header-container {
        padding: 5% !important;
    }
    .menu-atas.menu-open {
        display: block;
        position: fixed;
        top: 0px;
        right: 0px;
        width: 100vw;
        height: 100vh;
        background-color: #d9e6e4;
        transform: scaleX(100%);
        transition: all 0.3s ease;
    }
    .menu-atas nav {
        width: 70vw;
        position: absolute;
        left: 50%;
        top: 40%;
        transform: translate(-50%,-50%);
    }
    .menu-atas nav ul {
        height: 40vh;
        display: flex;
        flex-direction: column;
        justify-content: space-around;
    }
    nav ul li:not(:last-child) {
        border-right: unset;
    }
    nav ul li {
        display: block;
        padding-inline: 10%;
    }
    html.menu-open {
    overflow-y: hidden;
    }

    /* Hero Section */
    .hero-background {
        padding-top: 10vh;
    }
    .hero-text h1 {
        font-size: 2rem; /* Adjust font size for smaller screens */
    }
    .hero-text .subtitle {
        font-size: 1rem;
    }
    .parallax-container {
        min-height: 90vh;
    }
    .parallax-background {
        object-position: 35% center;
    }
    .foreground img {
        width: 37rem !important;
    }
    .foreground {
        bottom: -2rem;
        left: -5rem;
    }
    .foreground-third {
        position: absolute;
        width: 100%;
        z-index: 2;
        transition: transform 0.1s ease-out;
        bottom: -2%;
        left: -1%;
        transform-origin: left center;
    }

    /* Features Section */
    .features-container {
        padding: 0.8rem;
    }
    .feature-item img {
        width: 2.7rem;
    }
    .feature-item span {
        font-size: 1rem; /* Adjust text size */
    }

    /* About Section */
    .about-container {
        flex-direction: column;
        padding-inline: 5%;
        padding-block: 10%;
    }
    .about-image {
        max-width: 100%;
    }
    .about-text h2 {
        font-size: 1.3rem;
        text-align: center;
        margin-bottom: 6%;
    }
    .about-text {
        max-width: unset;
    }
    .about-text p {
        text-align: justify;
    }

    /* Fish Types Section */
    .fish-types-container {
        flex-direction: column; /* Stack fish cards vertically */
        padding-inline: unset;
    }
    .fish-card {
        width: 100%; /* Full width for fish cards */
        padding-inline: 5%;
        padding-block: 8%;
    }
    .fish-card h3 {
        font-size: 1.6rem;
    }
    .fish-card h4 {
        font-size: 1rem;
    }
    .fish-card img {
        width: 80%; /* Adjust image width */
    }
    .fish-card:not(:last-child) {
        border-right: unset;
        border-bottom: solid 2pt white;
    }
    .fish-card .gambar-fish {
        height: 15rem;
    }

    /* Product Gallery Section */
        .product-gallery .gallery-container {
            width: 100%;
            display: flex;
            justify-content: center;
            flex-direction: column;
            position: relative;
            padding-top: 5%;
            padding-inline: unset;
            padding-bottom: 3%;
        }
        .product-gallery .gallery-images {
            position: relative;
            margin-bottom: 3%;
            width: 100%;
            display: flex; /* Menyusun gambar dalam satu baris */
            overflow: unset; /* Menghapus gambar yang keluar dari batas */
        }
        .product-gallery .gallery-images img {
            max-width: 100%; /* Pastikan gambar tidak melebihi lebar kontainer */
            max-height: 100%; /* Pastikan gambar tidak melebihi tinggi kontainer */
            height: auto;
            width: 50%;
            margin-inline: 1%;
            flex-shrink: 0; /* Membuat gambar tidak mengecil */
        }
        .product-gallery {
            display: flex;
            position: relative;
            width: 100vw;
            border-bottom: solid white 2pt;
        }
        .view-products-btn {
            font-weight: bold;
        }

    /* Contact Section */
    .contact-container {
        height: 100%;
        max-height: unset;
        display: flex;
    }
    .contact-card {
        flex-direction: column; /* Stack contact card content vertically */
        width: auto;
        height: 100%;
        justify-content: flex-start;
    }
    .contact-image {
        width: auto;
        height: calc(100vw / 2);
        max-height: unset;
        margin-bottom: 10px;
    }
    .contact-details > *:not(:first-child) {
        margin-top: 5%;
    }
    .telp-roa {
        font-size: 1rem;
    }
    .contact-container > div {
        padding-block: 10%;
        width: calc(100vw / 2);
        height: auto;
    }
    .contact-details h3 {
        font-size: 1.3rem;
    }
    .contact {
        display: block;
        width: 100%;
        height: 100%;
        box-sizing: border-box;
        position: relative;
    }
    .contact-details {
        width: 100%;
        text-align: center;
        display: flex;
        flex-direction: column;
        margin-bottom: 6%;
        height: 50%;
        justify-content: space-around;
    }
    .alamat-contact .contact-image {
        width: 80%;
    }

    /* Footer Section */
    footer {
        font-size: 0.8rem;
        text-align: center;
    }

    footer .container {
        padding-block: 1rem;
    }

    /* Page Product */
    /* Hero Paralax Section */
    .pantai-roa .parallax-background {
        position: relative;
        object-fit: cover;
        z-index: 0;
        object-position: 85% center;
    }
    .foreground-second img {
        width: 40rem !important;
    }
    .pantai-roa .pulau-roa-kiri {
        bottom: 15vh;
        left: -3%;
        transform: unset;
        width: 85%;
    }
    .hero {
        width: 100vw;
        display: flex;
        flex-wrap: wrap;
        overflow-x: hidden;
    }
    .pantai-roa .logo-roa {
        top: 0px;
    }
    .pantai-roa .foreground-second .pulau-roa-kanan {
        width: 110vw !important;
        right: -2.5%;
    }
    .pantai-roa .foreground .pulau-roa-kanan {
        right: -5%;
        bottom: 25vh;
        width: 60% !important;
    }
    .pantai-roa .foreground-second {
        z-index: 3;
        bottom: 0;
        left: unset;
        right: 0px;
        bottom: -5%;
    }
    .pantai-roa .foreground {
        left: unset;
    }

    /* product section */
    .product-item {
        width: calc(100% / 2);
        border-bottom: solid 2pt white !important;
        padding-block: 10% !important;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
    }
    #product-roa .container.gallery-container {
        padding-block: unset !important;
    }
    .second-row .product-item:first-child {
        border-left: unset !important;
    }
    #product-roa .product-item img {
        height: 35vh;
        min-height: unset;
        max-height: unset;
        margin-bottom: 10%;
        object-fit: contain;
    }
    .product-name {
        font-size: 1.2rem;
    }
    .mobile-section .product-item:last-child {
        border-right: unset;
    }
    .mobile-section .third-row .product-item {
        border-inline: solid 2pt white;
        border-bottom: unset !important;
    }

    /* Gourmet section */
    .gourmet-image {
        position: relative;
        top: unset;
        left: unset;
        transform: unset;
    }
    .gourmet-image img {
        width: 100%;
        object-fit: cover;
    }
    .gourmet-logo img {
        width: 100%;
    }
    .desc-gourmet {
        position: relative;
        top: unset;
        left: unset;
        transform: unset;
        width: 100%;
        justify-content: unset;
        display: block;
    }
    .gourmet-text h2 {
        font-size: 1.2rem;
    }
    .gourmet-text {
        width: 100%;
        text-align: center !important;
    }
    .container.gourmet-container {
        min-height: unset;
        padding-block: 10%;
        padding-inline: 6%;
    }
    .gourmet-text.kiri h2::after {
        display: none;
    }
    .gourmet-text.kanan h2::before {
        display: none;
    }
    .gourmet-text div {
        margin-block: 5%;
    }
    footer .container p {
        text-align: center;
    }
    .gourmet-logo {
        margin-bottom: 12%;
    }

    /* Heritage Bakes Mobile */
    /* Header */
    .heritage-bakes-page #menu-atas-kue {
    display: none;
    }
    .heritage-bakes-page .logo {
    width: 75%;
    height: auto;
    }
    .heritage-bakes-page .hero-background {
    position: relative;
    }
    .heritage-bakes-page .parallax-container {
    min-height: 100vh;
    max-height: unset;
    width: 100vw;
    height: 110vh;
    }
    .heritage-bakes-page .wmm-coklat {
    margin-bottom: 8%;
    }
    .heritage-bakes-page .foreground {
    bottom: -3%;
    height: 60vh;
    }
    .heritage-bakes-page .foreground img {
    width: 150vw !important;
    }
    .heritage-bakes-page .logo-roa {
    width: 90vw !important;
    top: 10%;
    height: 50vh;
    }
    .heritage-bakes-page .parallax-background.meja-panjang {
    height: 48vh;
    object-fit: cover;
    }
    .heritage-bakes-page .legacy-section {
    flex-direction: column;
    padding-top: 15%;
    align-items: center;
    padding-bottom: 10%;
    }
    .heritage-bakes-page .fa-bars::before, .heritage-bakes-page .fa-navicon::before {
    font-size: 1.3rem !important;
    }
    .heritage-bakes-page .header-container a {
    justify-content: center;
    }
    .heritage-bakes-page .menu-atas nav {
    left: unset;
    top: unset;
    transform: unset;
    position: relative;
    display: flex;
    width: auto;
    align-items: center;
    }
    .heritage-bakes-page .menu-header.scrolled .header-container {
    padding: 4% !important;
    }
    .heritage-bakes-page #overlay-menu-atas.menu-open {
    display: flex;
    position: absolute;
    width: 2rem;
    height: 2rem;
    background: #581300;
    top: 5vh;
    left: unset;
    opacity: unset;
    z-index: 999;
    right: 10vw;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transform: translate(0%);
    }
    .heritage-bakes-page .menu-atas .judul-menu::after {
    width: 60vw;
    margin-block: 2rem;
    }
    .heritage-bakes-page nav ul li {
    padding: unset;
    }
    .heritage-bakes-page nav ul {
    width: auto;
    }
    .heritage-bakes-page .menu-atas .judul-menu {
    text-align: center;
    }
    .heritage-bakes-page .menu-atas.menu-open {
    transform: translate(0%);
    display: flex;
    z-index: -9;
    padding: 20vw;
    align-items: center;
    }
    .heritage-bakes-page .menu-atas {
    transform: translate(-100%);
    }
    .heritage-bakes-page #overlay-menu-atas {
    transform: translate(-100%);
    }
    .heritage-bakes-page .menu-atas nav ul {
    height: 30vh;
    align-items: center;
    }
    .heritage-bakes-page #overlay-menu-atas.menu-open::before {
    content: "X";
    font-size: 1rem;
    color: white;
    }

    /* Legacy Section */
    .heritage-bakes-page .scrolled .logo {
    width: 50% !important;
    height: auto !important;
    }
    .heritage-bakes-page .legacy-img {
    width: 110%;
    }
    .heritage-bakes-page .legacy-desc {
    width: 100%;
    padding-left: unset;
    margin-top: 10%;
    }
    .heritage-bakes-page h1, .heritage-bakes-page h2, .heritage-bakes-page h3 {
    font-size: 1.5rem;
    }
    .heritage-bakes-page .legacy-heading {
    text-align: center;
    margin-bottom: 5%;
    }
    .heritage-bakes-page .legacy-desc p {
    text-align: justify;
    margin-bottom: 5%;
    }

    /* Product Section */
    .heritage-bakes-page .collection-section .product-card {
    max-height: unset;
    height: auto;
    width: 90vw;
    margin-block: 5vh;
    text-align: center;
    display: block;
    }
    .heritage-bakes-page .product-info p {
    font-size: 1rem;
    }
    .heritage-bakes-page .product-card .product-img {
    height: auto;
    width: 70%;
    max-width: unset;
    position: relative;
    left: 50% !important;
    transform: translateX(-50%);
    margin-bottom: 5%;
    float: left;
    }
    .heritage-bakes-page .product-card .product-info {
    padding-left: 6% !important;
    padding-right: 6% !important;
    margin-top: 30vh;
    padding-bottom: 10%;
    padding-top: 25vh;
    text-align: justify;
    border-radius: 1.5rem;
    box-shadow: 0px 2px 15px 2px rgba(49, 29, 3, 0.32);
    -webkit-box-shadow: 0px 2px 15px 2px rgba(49, 29, 3, 0.32);
    -moz-box-shadow: 0px 2px 15px 2px rgba(49, 29, 3, 0.32);
    background-size: cover !important;
    background-position: top center !important;
    background-repeat: no-repeat !important;
    transition: 0.5s ease 0s;
    }
    .heritage-bakes-page .collection-section .collection-title {
    margin-top: 20%;
    }
    .heritage-bakes-page .product-card .product-info h3 {
    text-align: center;
    margin-bottom: 5%;
    display: inline-block;
    width: 100%;
    }
    .product-card .klappertart {
    background: url('https://batikchicindonesia.com/assets/img/user/bg-klappertart.jpg') !important;
    }
    .product-card .onbijtkoek {
    background: url('https://batikchicindonesia.com/assets/img/user/bg-onbijtkoek.jpg') !important;
    color: #885e3c !important;
    }
    .product-card .palm-cheese {
    background: url('https://batikchicindonesia.com/assets/img/user/bg-palm-cheese.jpg') !important;
    color: #8b5513 !important;
    }
    .product-card .onde-aren {
    background: url('https://batikchicindonesia.com/assets/img/user/bg-onde-aren.jpg') !important;
    color: #4b5115 !important;
    }

    /* Footer */
    .heritage-bakes-page .alamat-heritage {
    font-size: 1rem;
    padding-inline: 6%;
    }
    .heritage-bakes-page .footer-copyright {
    align-items: center;
    }
    .heritage-bakes-page .tombol-fixed .button-order {
    display: unset !important;
    position: fixed;
    bottom: 5%;
    z-index: 999 !important;
    width: 80%;
    padding: 2%;
    text-align: center;
    background: #581300;
    border-radius: 3rem;
    box-shadow: 0px 2px 15px 2px rgba(49, 29, 3, 0.82);
    -webkit-box-shadow: 0px 2px 15px 2px rgba(49, 29, 3, 0.82);
    -moz-box-shadow: 0px 2px 15px 2px rgba(49, 29, 3, 0.82);
    transition: 1s ease-in-out;
	-webkit-animation: fade-in-bottom 0.6s cubic-bezier(0.390, 0.575, 0.565, 1.000) both;
	        animation: fade-in-bottom 0.6s cubic-bezier(0.390, 0.575, 0.565, 1.000) both;
    }
        @-webkit-keyframes fade-in-bottom {
            0% {
                -webkit-transform: translateY(50px);
                        transform: translateY(50px);
                opacity: 0;
            }
            100% {
                -webkit-transform: translateY(0);
                        transform: translateY(0);
                opacity: 1;
            }
        }
        @keyframes fade-in-bottom {
            0% {
                -webkit-transform: translateY(50px);
                        transform: translateY(50px);
                opacity: 0;
            }
            100% {
                -webkit-transform: translateY(0);
                        transform: translateY(0);
                opacity: 1;
            }
        }
    .heritage-bakes-page .button-order {
    transition: 1s ease-in-out;
	-webkit-animation: fade-in-top 0.6s cubic-bezier(0.390, 0.575, 0.565, 1.000) both;
	        animation: fade-in-top 0.6s cubic-bezier(0.390, 0.575, 0.565, 1.000) both;
    }
        @-webkit-keyframes fade-in-top {
            0% {
                -webkit-transform: translateY(-50px);
                        transform: translateY(-50px);
                opacity: 0;
            }
            100% {
                -webkit-transform: translateY(0);
                        transform: translateY(0);
                opacity: 1;
            }
        }
        @keyframes fade-in-top {
            0% {
                -webkit-transform: translateY(-50px);
                        transform: translateY(-50px);
                opacity: 0;
            }
            100% {
                -webkit-transform: translateY(0);
                        transform: translateY(0);
                opacity: 1;
            }
        }
    .heritage-bakes-page #footer-links a {
    font-size: 1rem;
    font-weight: bold;
    }
    .heritage-bakes-page .button-link {
    width: 100%;
    }
}
