html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;

}

body {
    font-family: var(--secondaryFont);
    padding-top: 25px;
}

@media (min-width: 992px) {
    body {
        padding-top: 40px;
    }
}

.contact-btn {
    background-color: var(--text-color-dark);
    color: var(--text-color-light);
    border: none;
    padding: 6px 16px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.contact-btn:hover {
    background-color: var(--btn-hover2);
}

.icon-bag {
    width: 24px;
    height: 24px;
    margin-right: 1rem;
    cursor: pointer;
    transition: transform 0.3s ease, filter 0.3s ease;
}


.icon-bag:hover {
    filter: brightness(1.2) sepia(0.5) hue-rotate(30deg);
    transform: scale(1.1);
    transition: all 0.3s ease;
}


.bg-footer {
    background-color: var(--secondary-color);
    font-family: 'Poppins', sans-serif;
}

.footerSaisyd {
    color: var(--text-color-dark);
}

.footer-link:hover {
    font-weight: 600;
    transition: color 0.3s ease;
}

footer .fab:not(.fa-tiktok):hover {
    color: var(--primary-color);
    transform: scale(1.1);
    transition: all 0.3s ease;
    cursor: pointer;
}

.accordion-body {
    background-color: var(--secondary-color);
}

.coffee-banner {
    width: 100%;
    height: 820px;
    border-radius: 20px;
    padding: 50px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 350px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
    gap: 40px;
}

.coffee-text {
    position: relative;
    z-index: 2;
}

.coffee-text h1 {
    color: var(--text-color-dark);
}

.coffee-text p {
    margin: 15px 0;
    font-family: var(--secondaryFont);
}

/*  Coffee Buttons */
.coffee-buttons {
    display: flex;
    gap: 15px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.coffee-buttons .btn {
    border-radius: 25px;
    height: 50px;
    width: 150px;
    font-weight: 500;
    font-family: var(--primaryFont);
    font-size: var(--lead);
    transition: all 0.3s ease;
    transform: translateY(0);
}

.coffee-buttons .btn:hover {
    transform: translateY(-5px) scale(1.05);
}

/* Button Styles */
.btn-fill {
    background-color: var(--primary-color);
    color: var(--text-color-light);
    border: none;
    box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.5);
}

.btn-fill:hover {
    background-color: var(--btn-hover1);
    color: var(--text-color-light);
    font-weight: 600;
}

.btn-outline {
    background-color: transparent;
    border: 2px solid var(--text-color-light);
    color: var(--text-color-dark);
    backdrop-filter: blur(4px);
}

.btn-outline:hover {
    background-color: var(--text-color-light);
    color: var(--primary-color);
}

/*  Coffee Image - Enhanced */
.coffee-img {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: center;
    align-items: center;
}

.coffee-img img {
    width: 380px;
    /* Coffee-specific realistic shadows */
    filter: drop-shadow(0 8px 25px rgba(101, 67, 33, 0.35)) 
            drop-shadow(0 4px 12px rgba(0, 0, 0, 0.2));
    animation: coffeeFloat 5s ease-in-out infinite;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    transform-origin: center bottom;
}



/* Enhanced Coffee Float Animation */
@keyframes coffeeFloat {
    0% {
        transform: translateY(0px) rotate(0deg) scale(1);
    }
    25% {
        transform: translateY(-12px) rotate(-1.2deg) scale(1.01);
    }
    50% {
        transform: translateY(-18px) rotate(0deg) scale(1.02);
    }
    75% {
        transform: translateY(-10px) rotate(1.2deg) scale(1.01);
    }
    100% {
        transform: translateY(0px) rotate(0deg) scale(1);
    }
}


@keyframes coffeeBreath {
    0%, 100% {
        transform: translateY(0px) rotate(0deg) scale(1);
        filter: drop-shadow(0 8px 25px rgba(101, 67, 33, 0.35)) 
                drop-shadow(0 4px 12px rgba(0, 0, 0, 0.2));
    }
    50% {
        transform: translateY(-16px) rotate(0.8deg) scale(1.03);
        filter: drop-shadow(0 12px 35px rgba(101, 67, 33, 0.45)) 
                drop-shadow(0 6px 18px rgba(0, 0, 0, 0.25))
                drop-shadow(0 0 25px rgba(139, 69, 19, 0.3));
    }
}

@keyframes floatWave {
    0% {
        transform: translateY(0px) rotate(0deg);
    }
    20% {
        transform: translateY(-10px) rotate(-1.5deg);
    }
    40% {
        transform: translateY(-16px) rotate(1deg);
    }
    60% {
        transform: translateY(-22px) rotate(-0.5deg);
    }
    80% {
        transform: translateY(-12px) rotate(1.5deg);
    }
    100% {
        transform: translateY(0px) rotate(0deg);
    }
}

@keyframes coffeeSway {
    0%, 100% {
        transform: translateY(0px) rotate(0deg) scale(1);
    }
    33% {
        transform: translateY(-14px) rotate(-1.8deg) scale(1.01);
    }
    66% {
        transform: translateY(-20px) rotate(1.8deg) scale(0.99);
    }
}

/* Animation Classes */
.coffee-breath {
    animation: coffeeBreath 4.5s ease-in-out infinite !important;
}

.coffee-sway {
    animation: coffeeSway 6s ease-in-out infinite !important;
}

.float-wave {
    animation: floatWave 8s ease-in-out infinite !important;
}

.coffee-glow {
    animation: coffeeFloat 5s ease-in-out infinite;
    filter: drop-shadow(0 8px 25px rgba(101, 67, 33, 0.4)) 
            drop-shadow(0 4px 12px rgba(0, 0, 0, 0.2))
            drop-shadow(0 0 30px rgba(139, 69, 19, 0.25));
}



/* 📱 Mobile (below 768px) */
@media (max-width: 768px) {
    .coffee-banner {
        flex-direction: column;
        text-align: center;
        padding: 20px 15px;
        height: auto;
        gap: 25px;
    }

    .coffee-text {
        order: 1;
        width: 100%;
        padding: 0 10px;
    }

    .coffee-text h1 {
        font-size: 2rem;
        line-height: 1.3;
        margin-bottom: 10px;
    }

    .coffee-text p,
    .coffee-text .lead {
        font-size: 0.85rem;
        line-height: 1.6;
        text-align: justify;
        text-justify: inter-word;
        margin-right: -30px;
        margin-left: -30px;
    }

    .coffee-buttons {
        justify-content: center;
        margin-top: 15px;
        flex-wrap: wrap;
        gap: 10px;
    }

    .coffee-buttons .btn {
        margin-top: 20px;
        width: 130px;
        height: 45px;
        font-size: 0.9rem;
        transition: all 0.3s ease;
    }

    .coffee-buttons .btn:hover {
        transform: translateY(-3px) scale(1.03);
    }

    .coffee-img {
        order: 2;
        margin-top: 20px;
        display: flex;
        justify-content: center;
    }

    .coffee-img img {
        margin-top: 15px;
        width: 220px;
        max-width: 90%;
        filter: drop-shadow(0 6px 18px rgba(101, 67, 33, 0.3)) 
                drop-shadow(0 3px 8px rgba(0, 0, 0, 0.15));
        animation: coffeeFloat 6s ease-in-out infinite;
        transition: none; 
    }
}

/* 📲 Tablet/iPad (769px - 1024px) */
@media (min-width: 769px) and (max-width: 1024px) {
    .coffee-banner {
        flex-direction: column;
        text-align: center;
        padding: 40px;
        gap: 30px;
        height: auto;
    }

    .coffee-text {
        max-width: 80%;
        margin: 0 auto;
    }

    .coffee-buttons {
        justify-content: center;
    }

    .coffee-buttons .btn {
        width: 140px;
        height: 48px;
    }

    .coffee-img img {
        width: 300px;
        filter: drop-shadow(0 7px 20px rgba(101, 67, 33, 0.32)) 
                drop-shadow(0 4px 10px rgba(0, 0, 0, 0.18));
        animation: coffeeFloat 5.5s ease-in-out infinite;
    }
}

/* 💻 Large Desktop (1200px and up) */
@media (min-width: 1200px) {
    .coffee-banner {
        padding: 70px;
        gap: 60px;
    }

    .coffee-img img {
        width: 570px;
        filter: drop-shadow(0 10px 30px rgba(101, 67, 33, 0.4)) 
                drop-shadow(0 5px 15px rgba(0, 0, 0, 0.25))
                drop-shadow(0 0 20px rgba(139, 69, 19, 0.2));
        animation: coffeeFloat 4.5s ease-in-out infinite;
    }

    .coffee-buttons .btn {
        width: 160px;
        height: 55px;
        font-size: 1rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .coffee-img img {
        animation: none;
    }
}

.circle-icon {
    width: 40px;
    height: 40px;
    background-color: var(--text-color-dark);
    border-radius: 50%;
    margin: 0 auto 10px;
}

.subheading2 {
    font-family: var(--primaryFont);
    font-weight: 900;
    font-size: 2rem;
}

.title2 {
    font-size: clamp(1.8rem, 5vw, 3rem);
    font-weight: bolder;
    font-family: var(--primaryFont);
}

.circle-text {
    font-family: var(--secondaryFont);
    font-size: clamp(0.75rem, 1.5vw, 0.88rem);
    font-weight: 200;

}


.custom-img {
    border-radius: 1rem;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    width: clamp(300px, 50vw, 500px);
    height: clamp(400px, 60vh, 600px);

    object-fit: cover;
}

.custom-card {
    width: 100%;
    height: auto;
    border-radius: 1rem;
    background-color: #fef8ef;
    padding: 1rem;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.1);
}

.menu-container {
    background-color: var(--card-bg-color);
    border-radius: 1.5rem;
    padding: 2rem;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.05);
}

.menu-title {
    font-family: var(--primaryFont);
    font-weight: 800;
    text-align: center;
    color: var(--text-color-dark);
    margin-bottom: 2rem;
}

.menu-item {
    text-align: center;
    padding: 1rem;
}

.menu-item img {
    max-width: 100%;
    height: auto;
}

/* Clean Item Cards */
.popular-item {
    text-align: center;
    padding: 1rem;
    height: 100%;
    transition: all 0.3s ease;
}

.popular-item:hover {
    transform: translateY(-8px);
}

/* Beautiful Image Container */
.image-container {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(46, 26, 0, 0.12);
    transition: all 0.3s ease;
    background: linear-gradient(145deg, #ffffff, #f8f4f0);
    border: 1px solid rgba(196, 162, 119, 0.2);
    margin-bottom: 1.2rem;
}

.popular-item:hover .image-container {
    box-shadow: 0 12px 30px rgba(46, 26, 0, 0.18);
    transform: scale(1.02);
}

/* Natural Image Styling */
.popular-item img {
    width: 100%;
    height: clamp(160px, 25vw, 190px);
    object-fit: contain;
    transition: all 0.3s ease;
    padding: 1.2rem;
}

.popular-item:hover img {
    transform: scale(1.05);
    filter: brightness(1.05) saturate(1.1);
}

@media (max-width: 768px) {
    .scroll-container {
        display: flex;
        overflow-x: auto;
        gap: 1rem;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 1rem;
    }

    .scroll-container::-webkit-scrollbar {
        display: none;
    }

    .scroll-container .popular-item {
        flex: 0 0 auto;
        width: clamp(250px, 80vw, 400px);
        scroll-snap-align: center;
    }

    .scroll-container .popular-item img {
        height: clamp(140px, 30vh, 180px);
    }
}

/* Natural See More Button */
.see-more-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 1.8rem;
    font-family: var(--primaryFont);
    font-weight: 600;
    font-size: var(--lead);
    color: var(--text-color-light);
    background-color: var(--primary-color);
    border-radius: 25px;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(196, 162, 119, 0.3);
    transition: all 0.3s ease;
}

.see-more-btn:hover {
    background-color: var(--btn-hover1);
    color: var(--text-color-light);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(46, 26, 0, 0.25);
}

.see-more-btn i {
    transition: transform 0.3s ease;
}

.see-more-btn:hover i {
    transform: translateX(4px);
}

/* Clean Menu Names */
.menu-name1 {
    font-family: var(--primaryFont);
    font-weight: 800;
    font-size: clamp(1rem, 2.5vw, 1.2rem);
    color: var(--text-color-dark);
    margin-top: 0.8rem;
    transition: all 0.3s ease;
}

.popular-item:hover .menu-name1 {
    color: var(--primary-color);
    transform: translateY(-2px);
}

/* Simple decorative line */
.menu-name1::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width 0.3s ease;
    position: relative;
    display: block;
    margin: 0.5rem auto 0;
}

.popular-item:hover .menu-name1::after {
    width: 30px;
}

/* ABOUT */
.about-us-section {
    background: url('assets/img/bgAbout.png') no-repeat center center;
    background-size: cover;
    color: var(--text-color-light);
    font-family: var(--primaryFont);
    position: relative;
}

.about-us-section::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(46, 26, 0, 0.6);
    z-index: 0;
}

.about-us-section .container {
    position: relative;
    z-index: 1;
}

/* CAROUSEL */
.heading2 {
    text-align: center;
    font-family: var(--primaryFont);
    font-weight: 700;
    margin-top: 1rem;
}

.lead2 {
    font-size: clamp(0.95rem, 2vw, 1rem);
    font-family: var(--secondaryFont);
    text-align: center;
    margin-top: 2rem;
    padding: 0 2rem;
    max-width: 1000px;
}

.carousel__container {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 3rem 1rem;
    background: var(--card-bg-color);
    border-radius: 1.5rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    margin: 2rem auto;
    max-width: 1200px;
    flex-direction: column;
}

.card__container {
    width: 100%;
}

.card__content {
    padding: 2rem 0;

}

.swiper-wrapper {
    display: flex;
}

.card__article {
    background: var(--bg-color);
    border-radius: 1.25rem;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.card__article:hover {
    transform: translateY(-8px);
}

.card__img {
    width: 100%;
    height: 500px;
    object-fit: cover;
    display: block;
}

.swiper-button-prev,
.swiper-button-next {
    font-size: 2.5rem;
    color: var(--text-color-dark);
    border-radius: 50%;
    padding: 0.5rem;
    transition: transform 0.2s ease;
}

.swiper-button-prev:hover,
.swiper-button-next:hover {
    transform: scale(1.1);
}

.swiper-button-prev:after,
.swiper-button-next:after {
    display: none;
}

.swiper-pagination-bullet {
    background-color: hsl(212, 32%, 40%);
    opacity: 1;
}

.swiper-pagination-bullet-active {
    background-color: var(--primary-color);
}

/* LOCATION */

.branch-nav {
    display: flex;
    justify-content: center;
    flex-wrap: nowrap;
    gap: clamp(0.5rem, 2vw, 1.5rem);
    font-family: var(--primaryFont);
}

.branch-nav a {
    white-space: nowrap;
    text-decoration: none;
    color: var(--text-color-dark);
    padding: clamp(6px, 1vw, 10px) clamp(10px, 2vw, 16px);
    font-size: clamp(0.875rem, 2vw, 1rem);
    position: relative;
    display: inline-block;
    font-weight: normal;
    transition: color 0.3s ease;
}

.branch-nav a.active {
    font-weight: bold;
    color: var(--text-color-dark);
}

.branch-nav a.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    width: 100%;
    background-color: var(--text-color-dark);
    border-radius: 2px;
}

.location-section {
    padding: 4rem 2rem;
    background: var(--card-bg-color);
}

/* Location Image Wrapper */
.location-img-wrapper {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(46, 26, 0, 0.15);
    height: 100%;
    min-height: 400px;
}

.location-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.location-img-wrapper:hover .location-img {
    transform: scale(1.05);
}

/* Branch Details Card */
.branch-details-card {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.branch-title {
    font-family: var(--primaryFont);
    font-weight: 800;
    font-size: var(--heading);
    color: var(--text-color-dark);
    margin-bottom: 1rem;
}

/* Branch Address */
.branch-address {
    font-family: var(--secondaryFont);
    font-size: var(--lead);
    color: var(--text-color-dark);
    display: flex;
    align-items: start;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.branch-address i {
    color: var(--primary-color);
    font-size: 1.2rem;
    margin-top: 0.2rem;
}

/* Info Cards */
.info-card {
    background: var(--card-bg-color);
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 4px 20px rgba(46, 26, 0, 0.08);
    transition: all 0.3s ease;
    height: 100%;
    border: 2px solid transparent;
}

.info-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(46, 26, 0, 0.15);
    border-color: var(--primary-color);
}

.info-card-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-color), #d4b896);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

.info-card-icon i {
    font-size: 1.5rem;
    color: white;
}

.info-card-title {
    font-family: var(--primaryFont);
    font-weight: 700;
    font-size: var(--subheading);
    color: var(--text-color-dark);
    margin-bottom: 1rem;
}

/* Hours Details */
.hours-details {
    background: var(--secondary-color);
    border-radius: 12px;
    padding: 1rem;
}

.hour-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    font-family: var(--primaryFont);
}

.hour-row:not(:last-child) {
    border-bottom: 1px solid rgba(46, 26, 0, 0.1);
}

.hour-row .day {
    font-weight: 600;
    color: var(--text-color-dark);
    font-size: 0.9rem;
}

.hour-row .time {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.9rem;
}

.hour-row.closed .time {
    color: var(--btn-hover1);
    font-weight: 700;
}

.open-badge {
    background: var(--primary-color);
    color: var(--text-color-light);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    text-align: center;
    font-family: var(--primaryFont);
    font-weight: 600;
    margin-top: 1rem;
    font-size: 0.9rem;
}

/* Map Card */
.map-preview {
    border-radius: 12px;
    overflow: hidden;
}

.btn-location {
    background-color: var(--primary-color);
    color: white;
    font-family: var(--primaryFont);
    font-size: var(--lead);
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(196, 162, 119, 0.3);
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-location:hover {
    background-color: var(--btn-hover1);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(46, 26, 0, 0.3);
}

.subheading3 {
    font-family: var(--primaryFont);
    font-weight: 900;
    font-size: var(--subheading);
}

.info-text {
    max-width: 800px;
}

.location-text {
    font-family: var(--primaryFont);
}

.time-text {
    font-size: var(--h6);
    margin-bottom: 10px;
}

.map-card {
    background-color: var(--bg-color);
    padding: 1rem;
    border-radius: 15px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.hours {
    border-top: 2px solid #ccc;
    padding-top: 1rem;
}

.hours-box {
    font-family: var(--primaryFont);
    color: var(--text-color-dark);
}

.hours-line-box {
    border-top: 1px solid var(--text-color-dark);
    border-bottom: 1px solid var(--text-color-dark);
    display: inline-block;
    padding: 8px 0;
    margin: 10px auto;
}

/* Responsive */
@media (max-width: 991px) {
    .location-img-wrapper {
        min-height: 300px;
        margin-bottom: 1rem;
    }
    
    .info-card {
        margin-bottom: 1rem;
    }
}

@media (max-width: 768px) {
    .location-section {
        padding: 3rem 1.5rem;
    }

    .location-img-wrapper {
        min-height: 250px;
    }
    
    .branch-address {
        font-size: 0.9rem;
    }
    
    .info-card {
        padding: 1.25rem;
    }
    
    .hour-row {
        font-size: 0.85rem;
    }
}

.payment-h2 {
    color: var(--text-color-dark);
    font-family: var(--primaryFont);
    font-weight: bolder;
}

.payment-p {
    max-width: 600px;
    margin-inline: auto;
    color: var(--text-color-dark);
}

.moreCircle {
    width: 80px;
    height: 80px;
    background-color: var(--primary-color);
}

.more-p {
    color: var(--text-color-dark);
}

.social-circle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    font-size: 1.5rem;
    color: #fff;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

.instagram {
    background: linear-gradient(135deg, #feda75, #d62976, #962fbf, #4f5bd5);
}

.facebook {
    background-color: #1877f2;
}

.tiktok {
    background-color: #000;
}

.social-circle:hover {
    transform: scale(1.1);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.25);
}

/* FEEDBACK */
.feedback-card {
    background-color: var(--gray);
    color: var(--text-color-light);
    font-family: var(--secondaryFont);
    min-height: 200px;
    margin-bottom: clamp(1rem, 5vw, 50px);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}

.feedback-card:hover {
    transform: translateY(-5px);
}

/* Tablet (iPad) breakpoint */
@media (max-width: 991.98px) and (min-width: 768px) {
    .row.justify-content-center .col-md-4 {
        flex: 0 0 50%;
        /* 2 per row */
        max-width: 50%;
    }

    /* Last feedback card goes centered below */
    .row.justify-content-center .col-md-4:last-child {
        flex: 0 0 100%;
        /* full width */
        max-width: 100%;
        display: flex;
        justify-content: center;
    }

    .row.justify-content-center .col-md-4:last-child>div {
        max-width: 70%;
        /* adjust width so it’s centered nicely */
    }
}

/* CART */
.rounded-square {
    background-color: var(--primary-color);
}

.back-to-top-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: var(--primary-color);
    color: var(--text-color-light);
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    font-size: 1.25rem;
    z-index: 999;
    display: none;
    justify-content: center;
    align-items: center;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.2);
    cursor: pointer;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
}

.back-to-top-btn:hover {
    background-color: var(--btn-hover1);
    /* or darker shade */
}


.coffee-banner video {
    object-fit: cover;
}

/* Loading Screen Styles */
#loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--secondary-color);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 1;
    transition: opacity 0.8s ease-out;
}

body.loading #loading-screen {
    display: flex !important;
    visibility: visible !important;
    opacity: 1;
}


body.skip-loading #loading-screen {
    display: none !important;
    visibility: hidden !important;
}

#loading-screen.fade-out {
    opacity: 0;
    pointer-events: none;
}

.loading-logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 40px;
}


.coffee-cup-container {
    position: relative;
    margin-bottom: 30px;
}

.coffee-cup {
    width: 120px;
    height: 120px;
    position: relative;
}

.cup {
    width: 80px;
    height: 60px;
    background: var(--text-color-dark);
    border-radius: 0 0 40px 40px;
    position: relative;
    margin: 20px auto;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.cup::before {
    content: '';
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 70px;
    height: 10px;
    background: var(--text-color-dark);
    border-radius: 50px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.cup-handle {
    position: absolute;
    right: -25px;
    top: 15px;
    width: 20px;
    height: 30px;
    border: 5px solid var(--text-color-dark);
    border-left: none;
    border-radius: 0 15px 15px 0;
}

.saucer {
    width: 100px;
    height: 8px;
    background: var(--text-color-dark);
    border-radius: 50px;
    margin: 0 auto;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.steam {
    position: absolute;
    top: -30px;
    left: 50%;
    transform: translateX(-50%);
}

.steam-line {
    width: 3px;
    height: 20px;
    background: var(--text-color-dark);
    border-radius: 2px;
    display: inline-block;
    margin: 0 3px;
    animation: steam-rise 2s ease-in-out infinite;
    opacity: 0.8;
}

.steam-line:nth-child(1) {
    animation-delay: 0s;
}

.steam-line:nth-child(2) {
    animation-delay: 0.3s;
}

.steam-line:nth-child(3) {
    animation-delay: 0.6s;
}

@keyframes steam-rise {

    0%,
    100% {
        opacity: 0;
        transform: translateY(0) scale(1);
    }

    50% {
        opacity: 0.9;
        transform: translateY(-10px) scale(1.1);
    }
}

.loading-text {
    text-align: center;
    color: var(--text-color-light);
}

.cafe-name {
    font-family: var(--primaryFont);
    font-size: clamp(2.5rem, 8vw, 4rem);
    font-weight: 900;
    letter-spacing: clamp(4px, 2vw, 8px);
    margin-bottom: 10px;
    color: var(--text-color-dark);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    animation: pulse-glow 2s ease-in-out infinite alternate;
}

.tagline {
    font-family: var(--secondaryFont);
    font-size: var(--subheading);
    font-weight: 400;
    letter-spacing: clamp(2px, 1vw, 3px);
    margin-bottom: 50px;
    color: var(--text-color-dark);
    opacity: 0.9;
}

@keyframes pulse-glow {
    from {
        text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    }

    to {
        text-shadow: 2px 2px 20px rgba(196, 162, 119, 0.4);
    }
}

.loading-progress {
    width: clamp(250px, 80vw, 350px);
    margin-bottom: 20px;
}

.progress-bar-container {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 3px;
    overflow: hidden;
    position: relative;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.2);
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--text-color-dark));
    background-size: 200% 100%;
    border-radius: 3px;
    width: 0%;
    transition: width 0.1s ease-out;
    animation: shine 2s linear infinite;
    box-shadow: 0 2px 8px rgba(196, 162, 119, 0.3);
}

@keyframes shine {
    0% {
        background-position: -200% 0;
    }

    100% {
        background-position: 200% 0;
    }
}

.loading-percentage {
    text-align: center;
    margin-top: 15px;
    font-family: var(--primaryFont);
    font-size: var(--subheading);
    font-weight: 700;
    color: var(--text-color-dark);
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.loading-dots {
    margin-top: 20px;
    display: flex;
    justify-content: center;
    gap: 10px;
}

.dot {
    width: 10px;
    height: 10px;
    background: var(--text-color-dark);
    border-radius: 50%;
    animation: loading-bounce 1.4s ease-in-out infinite both;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.dot:nth-child(1) {
    animation-delay: -0.32s;
}

.dot:nth-child(2) {
    animation-delay: -0.16s;
}

.dot:nth-child(3) {
    animation-delay: 0s;
}

@keyframes loading-bounce {

    0%,
    80%,
    100% {
        transform: scale(0.8);
        opacity: 0.6;
    }

    40% {
        transform: scale(1.3);
        opacity: 1;
    }
}

/* Loading message */
.loading-message {
    margin-top: 25px;
    font-family: var(--secondaryFont);
    font-size: var(--lead);
    color: var(--text-color-dark);
    opacity: 0.8;
    text-align: center;
    animation: fade-pulse 3s ease-in-out infinite;
}

@keyframes fade-pulse {

    0%,
    100% {
        opacity: 0.6;
    }

    50% {
        opacity: 1;
    }
}

/* Hide main content during loading */
body.loading .main-content {
    visibility: hidden;
}

.main-content {
    visibility: visible;
    transition: visibility 0s;
}

/* Enhanced responsive adjustments */
@media (max-width: 768px) {
    .loading-logo {
        margin-bottom: 30px;
    }

    .coffee-cup {
        width: 100px;
        height: 100px;
    }

    .cup {
        width: 70px;
        height: 50px;
    }

    .saucer {
        width: 85px;
    }

    .steam {
        top: -25px;
    }

    .steam-line {
        height: 15px;
    }
}

@media (max-width: 480px) {
    .loading-logo {
        margin-bottom: 25px;
    }

    .coffee-cup {
        width: 80px;
        height: 80px;
    }

    .cup {
        width: 60px;
        height: 45px;
    }

    .saucer {
        width: 75px;
    }
}

/* Pre-animate landing elements for smooth reveal - ONLY FOR LANDING */
.landing-element {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Ready state for animated elements */
.main-content.ready .landing-element {
    opacity: 1;
    transform: translateY(0);
}


/* Centered Carousel Styles for Inside of Cafe Section */
.centered-carousel-container {
    position: relative;
    width: 100%;
    max-width: 1200px;
    height: 400px;
    margin: 2rem auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.centered-carousel-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    perspective: 1200px;
}

.centered-carousel-slide {
    position: absolute;
    width: 350px;
    height: 450px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    cursor: pointer;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(46, 26, 0, 0.3);
}

.carousel-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.6s ease;
}

.slide-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(46, 26, 0, 0.85));
    color: var(--text-color-light);
    padding: 2rem 1.5rem 1.5rem;
    text-align: center;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.slide-overlay h3 {
    font-family: var(--primaryFont);
    font-size: var(--subheading);
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--secondary-color);
}

.slide-overlay p {
    font-family: var(--secondaryFont);
    font-size: var(--lead);
    margin: 0;
    opacity: 0.9;
}

/* Slide positions and states */
.centered-carousel-slide.active {
    transform: translateX(0) scale(1) rotateY(0deg);
    z-index: 3;
    filter: blur(0px);
    opacity: 1;
}

.centered-carousel-slide.active .slide-overlay {
    transform: translateY(0);
}

.centered-carousel-slide.active:hover .slide-overlay {
    transform: translateY(0);
}

.centered-carousel-slide.prev {
    transform: translateX(-220px) scale(0.75) rotateY(25deg);
    z-index: 2;
    filter: blur(4px);
    opacity: 0.6;
}

.centered-carousel-slide.next {
    transform: translateX(220px) scale(0.75) rotateY(-25deg);
    z-index: 2;
    filter: blur(4px);
    opacity: 0.6;
}

.centered-carousel-slide.hidden {
    transform: translateX(0) scale(0.5);
    z-index: 1;
    filter: blur(6px);
    opacity: 0;
}

/* Navigation buttons */
.carousel-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: var(--card-bg-color);
    border: 2px solid var(--text-color-dark);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
    color: var(--text-color-dark);
    font-size: 1.5rem;
}

.carousel-nav-btn:hover {
    background: var(--text-color-dark);
    color: var(--secondary-color);
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 5px 15px rgba(46, 26, 0, 0.3);
}

.carousel-nav-prev {
    left: 20px;
}

.carousel-nav-next {
    right: 20px;
}

.carousel-pagination {
    position: absolute;
    bottom: -60px;
    /* Keep same vertical position as before */
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    /* Centered bullets */
    z-index: 10;
    width: auto;
    height: 20px;
    pointer-events: none;
    /* Allows click only on the bullets */
}

.carousel-pagination-track {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: none;
    transform: translateX(0);
    pointer-events: auto;
}

.carousel-pagination-bullet {
    width: clamp(6px, 1.5vw, 10px);
    height: clamp(6px, 1.5vw, 10px);
    border-radius: 50%;
    background: #2E1A00;
    opacity: 0.2;
    cursor: pointer;
    transition: none;
    transform: scale(0.33);
    border: none;
    flex-shrink: 0;
    visibility: visible;
    margin: 0 4px;
}

.carousel-pagination-bullet.hidden {
    visibility: hidden;
    opacity: 0;
    transform: scale(0);
}

.carousel-pagination-bullet.active {
    transform: scale(1);
    opacity: 1;
    background: #2E1A00;
}

.carousel-pagination-bullet.active-prev,
.carousel-pagination-bullet.active-next {
    transform: scale(0.66);
    opacity: 0.4;
}

.carousel-pagination-bullet.active-prev-prev,
.carousel-pagination-bullet.active-next-next {
    transform: scale(0.33);
    opacity: 0.2;
}

.carousel-pagination-bullet:hover:not(.hidden) {
    opacity: 0.5;
}

/* Remove fixed widths so it auto-sizes based on bullet count */
.carousel-pagination.max-3,
.carousel-pagination.max-4,
.carousel-pagination.max-5 {
    width: auto;
}

/* Responsive tweaks for small screens */
@media (max-width: 576px) {
    .carousel-pagination {
        bottom: -50px;
        /* Slightly higher on small screens if needed */
    }

    .carousel-pagination-track {
        gap: 4px;
    }

    .carousel-pagination-bullet {
        margin: 0 2px;
    }
}



/* Responsive design */
@media (max-width: 768px) {
    .centered-carousel-container {
        height: 300px;
    }

    .centered-carousel-slide {
        width: 250px;
        height: 280px;
    }

    .centered-carousel-slide.prev {
        transform: translateX(-150px) scale(0.7) rotateY(25deg);
    }

    .centered-carousel-slide.next {
        transform: translateX(150px) scale(0.7) rotateY(-25deg);
    }

    .slide-overlay h3 {
        font-size: var(--subheading);
    }

    .slide-overlay p {
        font-size: var(--lead);
    }

    .carousel-nav-btn {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }

    .carousel-nav-prev {
        left: 10px;
    }

    .carousel-nav-next {
        right: 10px;
    }
}

@media (max-width: 480px) {
    .centered-carousel-slide {
        width: 200px;
        height: 250px;
    }

    .centered-carousel-slide.prev {
        transform: translateX(-120px) scale(0.6) rotateY(30deg);
    }

    .centered-carousel-slide.next {
        transform: translateX(120px) scale(0.6) rotateY(-30deg);
    }

    .slide-overlay {
        padding: 1.5rem 1rem 1rem;
    }

    .slide-overlay h3 {
        font-size: var(--lead);
    }

    .slide-overlay p {
        font-size: var(--h6);
    }
}


/* Carousel arrows positioning with lower opacity */

#welcomeCarousel .carousel-control-prev {
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    position: absolute;
    z-index: 10;
    width: auto;
    opacity: 0.6;
}

#welcomeCarousel .carousel-control-next {
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    position: absolute;
    z-index: 10;
    width: auto;
    opacity: 0.6;
}

/* Hover effect to make them more visible when needed */
#welcomeCarousel .carousel-control-prev:hover,
#welcomeCarousel .carousel-control-next:hover {
    opacity: 0.9;
}

/* Responsive positioning */
@media (max-width: 768px) {
    #welcomeCarousel .carousel-control-prev {
        left: 8px;
    }

    #welcomeCarousel .carousel-control-next {
        right: 8px;
    }
}

@media (max-width: 576px) {
    #welcomeCarousel .carousel-control-prev {
        left: 5px;
    }

    #welcomeCarousel .carousel-control-next {
        right: 5px;
    }
}

/* Contact Mini Cards */
.contact-mini-card {
    background: white;
    padding: 1.75rem 1.25rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(46, 26, 0, 0.08);
    transition: all 0.3s ease;
    border: 2px solid transparent;
    height: 100%;
    min-height: 180px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.contact-mini-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(46, 26, 0, 0.15);
    border-color: var(--primary-color);
}

.contact-mini-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color) 0%, #d4b896 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    box-shadow: 0 4px 12px rgba(196, 162, 119, 0.3);
    transition: all 0.3s ease;
}

.contact-mini-card:hover .contact-mini-icon {
    transform: scale(1.1) rotate(5deg);
}

.contact-mini-icon i {
    font-size: 1.5rem;
    color: var(--text-color-light);
}

/* Responsive adjustments */
@media (max-width: 991px) {
    .contact-mini-card {
        min-height: 160px;
        padding: 1.5rem 1rem;
    }
    
    .contact-mini-icon {
        width: 55px;
        height: 55px;
    }
    
    .contact-mini-icon i {
        font-size: 1.35rem;
    }
}

@media (max-width: 576px) {
    .contact-mini-card {
        min-height: 150px;
        padding: 1.25rem 1rem;
    }
    
    .contact-mini-icon {
        width: 50px;
        height: 50px;
    }
    
    .contact-mini-icon i {
        font-size: 1.25rem;
    }
}

.elfsight-wrapper {
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  position: relative;
}

/* ============================================
   RESPONSIVE ENHANCEMENTS FOR IPAD & TABLET
   ============================================ */

/* iPad Pro 12.9" (1024px x 1366px) */
@media (min-width: 1024px) and (max-width: 1366px) {
    .coffee-banner {
        height: 700px;
        padding: 60px 40px;
        flex-direction: row !important;
        text-align: left !important;
        justify-content: space-between;
        align-items: center;
    }

    .coffee-text {
        order: 1 !important;
        text-align: left !important;
        max-width: 55%;
    }

    .coffee-text h1 {
        font-size: 2.8rem;
        text-align: left !important;
    }

    .coffee-text p {
        font-size: 1rem;
        text-align: left !important;
    }

    .coffee-buttons {
        justify-content: flex-start !important;
    }

    .coffee-img {
        order: 2 !important;
        margin-top: 0 !important;
    }

    .coffee-img img {
        width: 450px;
    }

    .custom-img {
        width: 100%;
        height: 500px;
    }

    .popular-item img {
        height: 180px;
    }

    .centered-carousel-slide {
        width: 320px;
        height: 400px;
    }

    .centered-carousel-slide.prev {
        transform: translateX(-200px) scale(0.75) rotateY(25deg);
    }

    .centered-carousel-slide.next {
        transform: translateX(200px) scale(0.75) rotateY(-25deg);
    }
}

/* iPad Air / iPad Pro 11" (820px x 1180px) */
@media (min-width: 820px) and (max-width: 1023px) {
    body {
        padding-top: 35px;
    }

    .coffee-banner {
        height: 600px;
        padding: 50px 35px;
        flex-direction: row !important;
        text-align: left !important;
        justify-content: space-between;
        align-items: center;
    }

    .coffee-text {
        order: 1 !important;
        width: auto !important;
        max-width: 52%;
        margin: 0 !important;
        text-align: left !important;
    }

    .coffee-text h1 {
        font-size: 2.3rem;
        margin-bottom: 15px;
        text-align: left !important;
    }

    .coffee-text p {
        font-size: 0.95rem;
        text-align: left !important;
        margin: 0 0 20px 0 !important;
    }

    .coffee-buttons {
        justify-content: flex-start !important;
        margin-top: 20px;
    }

    .coffee-buttons .btn {
        width: 145px;
        height: 48px;
    }

    .coffee-img {
        order: 2 !important;
        margin-top: 0 !important;
    }

    .coffee-img img {
        width: 350px;
    }

    /* Welcome Section */
    .custom-img {
        width: 100%;
        height: 450px;
    }

    .custom-card {
        padding: 2rem;
    }

    .title2 {
        font-size: 2.5rem;
    }

    .custom-card p {
        font-size: 0.95rem;
    }

    /* Popular Menu */
    .menu-container {
        padding: 2.5rem 2rem;
    }

    .popular-item {
        padding: 1.5rem 1rem;
    }

    .popular-item img {
        height: 170px;
    }

    .menu-name1 {
        font-size: 1.1rem;
    }

    /* About Section */
    .about-us-section {
        padding: 3rem 0;
    }

    .about-us-section h2 {
        font-size: 2.5rem;
    }

    .about-us-section p {
        font-size: 0.95rem;
    }

    .about-us-section img {
        width: 220px;
    }

    /* Centered Carousel */
    .centered-carousel-container {
        height: 380px;
    }

    .centered-carousel-slide {
        width: 300px;
        height: 380px;
    }

    .centered-carousel-slide.prev {
        transform: translateX(-180px) scale(0.72) rotateY(25deg);
    }

    .centered-carousel-slide.next {
        transform: translateX(180px) scale(0.72) rotateY(-25deg);
    }

    .carousel-nav-btn {
        width: 45px;
        height: 45px;
    }

    /* Location Section */
    .location-img-wrapper {
        min-height: 400px;
        margin-bottom: 2rem;
    }

    .branch-details-card {
        padding: 0 1rem;
    }

    .info-card {
        padding: 1.75rem 1.5rem;
    }

    /* Contact Cards */
    .contact-mini-card {
        min-height: 170px;
        padding: 1.5rem 1rem;
    }

    .contact-mini-icon {
        width: 58px;
        height: 58px;
    }

    /* Social Media */
    .social-circle {
        width: 75px;
        height: 75px;
    }

    /* Footer */
    .bg-footer {
        padding: 2rem 0;
    }
}

/* Standard iPad (768px x 1024px) */
@media (min-width: 768px) and (max-width: 819px) {
    body {
        padding-top: 30px;
    }

    .coffee-banner {
        height: 550px;
        padding: 40px 30px;
        flex-direction: row !important;
        text-align: left !important;
        justify-content: space-between;
        align-items: center;
        gap: 20px;
    }

    .coffee-text {
        order: 1 !important;
        width: auto !important;
        max-width: 50%;
        text-align: left !important;
    }

    .coffee-text h1 {
        font-size: 2rem;
        text-align: left !important;
    }

    .coffee-text p {
        font-size: 0.88rem;
        text-align: left !important;
        margin: 0 0 15px 0 !important;
    }

    .coffee-buttons {
        justify-content: flex-start !important;
        gap: 12px;
    }

    .coffee-buttons .btn {
        width: 140px;
        height: 46px;
        font-size: 0.95rem;
    }

    .coffee-img {
        order: 2 !important;
        margin-top: 0 !important;
    }

    .coffee-img img {
        width: 300px;
    }

    /* Welcome Section */
    #welcomeCarousel {
        margin: 3rem 0;
    }

    .custom-img {
        width: 100%;
        height: 420px;
    }

    .custom-card {
        padding: 1.75rem;
        margin: 0 1rem;
    }

    .title2 {
        font-size: 2.2rem;
    }

    .custom-card p {
        font-size: 0.9rem;
        line-height: 1.6;
    }

    /* Popular Menu */
    .menu-container {
        padding: 2rem 1.5rem;
    }

    .row.row-cols-md-3 {
        row-gap: 2rem;
    }

    .popular-item {
        padding: 1.25rem 1rem;
    }

    .popular-item img {
        height: 165px;
        padding: 1rem;
    }

    .menu-name1 {
        font-size: 1.05rem;
    }

    .see-more-btn {
        padding: 0.75rem 1.6rem;
        font-size: 0.95rem;
    }

    /* About Section */
    .about-us-section {
        padding: 2.5rem 0;
    }

    .about-us-section .container {
        padding: 0 2rem;
    }

    .about-us-section h2 {
        font-size: 2.2rem;
        margin-bottom: 1.5rem;
    }

    .about-us-section p {
        font-size: 0.9rem;
        line-height: 1.6;
    }

    .about-us-section img {
        width: 200px;
    }

    /* Centered Carousel */
    .carousel__container {
        padding: 2.5rem 1rem;
    }

    .heading2 {
        font-size: 2rem;
        margin-bottom: 2rem;
    }

    .centered-carousel-container {
        height: 360px;
        margin: 1.5rem auto;
    }

    .centered-carousel-slide {
        width: 280px;
        height: 360px;
    }

    .centered-carousel-slide.prev {
        transform: translateX(-170px) scale(0.7) rotateY(25deg);
    }

    .centered-carousel-slide.next {
        transform: translateX(170px) scale(0.7) rotateY(-25deg);
    }

    .slide-overlay h3 {
        font-size: 1.1rem;
    }

    .slide-overlay p {
        font-size: 0.9rem;
    }

    .carousel-nav-btn {
        width: 42px;
        height: 42px;
        font-size: 1.3rem;
    }

    .carousel-nav-prev {
        left: 15px;
    }

    .carousel-nav-next {
        right: 15px;
    }

    .lead2 {
        font-size: 0.9rem;
        padding: 0 1.5rem;
    }

    /* Location Section */
    .location-section {
        padding: 3rem 1.5rem;
    }

    .branch-nav a {
        font-size: 0.95rem;
        padding: 8px 14px;
    }

    .location-img-wrapper {
        min-height: 380px;
        margin-bottom: 1.5rem;
    }

    .branch-title {
        font-size: 2rem;
    }

    .branch-address {
        font-size: 0.95rem;
    }

    .info-card {
        padding: 1.5rem 1.25rem;
        margin-bottom: 1rem;
    }

    .info-card-title {
        font-size: 1.1rem;
    }

    .hour-row {
        font-size: 0.88rem;
    }

    /* Payment Section */
    .simplified-payment-section {
        padding: 3rem 0;
    }

    .simplified-payment-section .heading2 {
        font-size: 2rem;
    }

    .simplified-payment-section .col-md-4 {
        margin-bottom: 2rem;
    }

    .subheading2 {
        font-size: 1.5rem;
    }

    /* Contact Section */
    .contact-mini-card {
        min-height: 165px;
        padding: 1.5rem 1rem;
    }

    .contact-mini-icon {
        width: 56px;
        height: 56px;
    }

    .contact-mini-icon i {
        font-size: 1.4rem;
    }

    /* Social Media */
    .social-circle {
        width: 72px;
        height: 72px;
        font-size: 1.4rem;
    }

    .more-p {
        font-size: 0.9rem;
    }

    /* Google Reviews */
    .google-reviews-container {
        padding: 2rem;
        min-height: 380px;
    }

    /* Footer */
    .bg-footer {
        padding: 2rem 0 1rem;
    }

    .accordion-item {
        margin-bottom: 0.5rem;
    }

    .accordion-button {
        padding: 1rem;
        font-size: 0.95rem;
    }

    .accordion-body {
        padding: 1rem;
        font-size: 0.88rem;
    }
}

/* Tablet Portrait (600px - 767px) */
@media (min-width: 600px) and (max-width: 767px) {
    body {
        padding-top: 28px;
    }

    .coffee-banner {
        height: 550px;
        padding: 35px 25px;
        flex-direction: column;
        text-align: center;
        gap: 25px;
    }

    .coffee-text h1 {
        font-size: 2rem;
    }

    .coffee-text p {
        font-size: 0.88rem;
        text-align: center;
        margin-right: 0;
        margin-left: 0;
    }

    .coffee-buttons .btn {
        width: 135px;
        height: 45px;
        font-size: 0.9rem;
    }

    .coffee-img img {
        width: 280px;
    }

    /* Welcome Carousel */
    #welcomeCarousel {
        margin: 2.5rem 0;
    }

    .custom-img {
        width: 100%;
        height: 400px;
    }

    .custom-card {
        padding: 1.5rem;
    }

    .title2 {
        font-size: 2rem;
    }

    .custom-card p {
        font-size: 0.88rem;
    }

    /* Popular Menu */
    .menu-container {
        padding: 2rem 1.25rem;
    }

    .scroll-container {
        padding: 0 1rem;
    }

    .scroll-container .popular-item {
        width: 280px;
    }

    .scroll-container .popular-item img {
        height: 160px;
    }

    .menu-name1 {
        font-size: 1rem;
    }

    /* About Section */
    .about-us-section {
        padding: 2rem 0;
    }

    .about-us-section h2 {
        font-size: 2rem;
    }

    .about-us-section p {
        font-size: 0.88rem;
    }

    .about-us-section img {
        width: 180px;
    }

    /* Centered Carousel */
    .carousel__container {
        padding: 2rem 0.75rem;
    }

    .heading2 {
        font-size: 1.8rem;
    }

    .centered-carousel-container {
        height: 340px;
    }

    .centered-carousel-slide {
        width: 260px;
        height: 340px;
    }

    .centered-carousel-slide.prev {
        transform: translateX(-160px) scale(0.68) rotateY(28deg);
    }

    .centered-carousel-slide.next {
        transform: translateX(160px) scale(0.68) rotateY(-28deg);
    }

    .carousel-nav-btn {
        width: 40px;
        height: 40px;
    }

    .carousel-nav-prev {
        left: 12px;
    }

    .carousel-nav-next {
        right: 12px;
    }

    .lead2 {
        font-size: 0.88rem;
        padding: 0 1.25rem;
    }

    /* Location Section */
    .location-section {
        padding: 2.5rem 1.25rem;
    }

    .location-img-wrapper {
        min-height: 350px;
    }

    .info-card {
        padding: 1.35rem 1.15rem;
    }

    /* Contact Cards */
    .contact-mini-card {
        min-height: 160px;
    }

    /* Social Media */
    .social-circle {
        width: 70px;
        height: 70px;
    }
}

/* Landscape Tablets (any height, wide aspect) */
@media (min-width: 768px) and (max-width: 1024px) and (orientation: landscape) {
    .coffee-banner {
        height: 550px;
        flex-direction: row !important;
        text-align: left !important;
        padding: 50px 40px;
        justify-content: space-between;
        align-items: center;
    }

    .coffee-text {
        order: 1 !important;
        max-width: 50%;
        text-align: left !important;
    }

    .coffee-text h1 {
        text-align: left !important;
    }

    .coffee-text p {
        text-align: left !important;
        margin-right: 0 !important;
        margin-left: 0 !important;
    }

    .coffee-buttons {
        justify-content: flex-start !important;
    }

    .coffee-img {
        order: 2 !important;
        margin-top: 0 !important;
    }

    .coffee-img img {
        width: 380px;
    }

    .centered-carousel-container {
        height: 400px;
    }

    .centered-carousel-slide {
        width: 300px;
        height: 380px;
    }

    .location-img-wrapper {
        min-height: 100%;
        margin-bottom: 0;
    }
}

/* iPad Mini specific (744px x 1133px) */
@media (min-width: 744px) and (max-width: 820px) and (min-height: 1000px) {
    .coffee-banner {
        height: 580px;
    }

    .coffee-img img {
        width: 310px;
    }

    .custom-img {
        height: 410px;
    }

    .centered-carousel-slide {
        width: 275px;
        height: 350px;
    }

    .popular-item img {
        height: 160px;
    }
}

/* General Tablet Optimizations */
@media (min-width: 600px) and (max-width: 1024px) {
    /* Improve touch targets */
    .btn,
    .nav-link,
    .carousel-control-prev,
    .carousel-control-next,
    .carousel-nav-btn {
        min-height: 44px;
        min-width: 44px;
    }

    /* Better spacing for readability */
    .container {
        padding-left: 20px;
        padding-right: 20px;
    }

    /* Optimize images */
    img {
        image-rendering: -webkit-optimize-contrast;
    }

    /* Smooth scrolling experience */
    .scroll-container {
        scroll-behavior: smooth;
        -webkit-overflow-scrolling: touch;
    }

    /* Better card hover states for touch */
    .popular-item:active,
    .info-card:active,
    .contact-mini-card:active {
        transform: scale(0.98);
        transition: transform 0.1s ease;
    }

    /* Carousel pagination visibility */
    .carousel-pagination {
        bottom: -55px;
    }

    .carousel-pagination-bullet {
        width: 10px;
        height: 10px;
        margin: 0 5px;
    }

    /* Back to top button */
    .back-to-top-btn {
        width: 55px;
        height: 55px;
        bottom: 25px;
        right: 25px;
        font-size: 1.3rem;
    }

    /* Loading screen adjustments */
    .coffee-cup {
        width: 110px;
        height: 110px;
    }

    .cafe-name {
        font-size: 3rem;
    }

    .tagline {
        font-size: 1rem;
    }
}

/* Prevent horizontal scroll on all devices */
@media (max-width: 1024px) {
    body {
        overflow-x: hidden;
    }

    .container-fluid {
        overflow-x: hidden;
    }

    .row {
        margin-left: 0;
        margin-right: 0;
    }
}