/* Mobile Responsiveness Improvements for Dora Catering */

/* Gallery improvements */
.gallery-row {
    margin: 0 -5px;
}

.gallery-col {
    padding: 5px;
    margin-bottom: 10px;
}

.gallery-image {
    border-radius: 8px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    height: 200px;
    object-fit: cover;
}

.gallery-image:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

/* Carousel controls improvements */
.carousel-control-prev,
.carousel-control-next {
    width: 40px;
    opacity: 0.8;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    background-color: rgba(0, 0, 0, 0.7);
    border-radius: 50%;
    padding: 20px;
}

/* Mobile-specific styles */
@media (max-width: 767px) {
    /* Header adjustments */
    .intro-paragraph {
        font-size: 20px !important;
        padding: 0 15px;
    }

    .intro-paragraph a {
        word-break: break-all;
    }

    /* Navigation improvements */
    #menu.navbar-default .navbar-nav > li > a {
        margin: 5px 20px;
        font-size: 14px;
    }

    /* Gallery mobile adjustments */
    .gallery-image {
        height: 150px;
    }

    .gallery-col {
        padding: 3px;
    }

    /* Section title adjustments */
    h2 {
        font-size: 28px !important;
    }

    h3 {
        font-size: 20px !important;
    }

    /* Menu section mobile */
    #restaurant-menu .menu-section {
        margin: 0 10px 40px;
    }

    #restaurant-menu .menu-item-description {
        font-size: 15px;
    }

    /* Chef section mobile */
    #team .chef-row {
        flex-direction: column;
        margin-bottom: 60px;
    }

    #team .team-img img {
        width: 100%;
        height: auto;
        max-height: 400px;
    }

    /* Contact section mobile */
    #contact {
        padding: 60px 0;
    }

    #contact .col-md-4 {
        margin-bottom: 30px;
    }

    /* Footer social icons */
    #footer .social {
        text-align: center;
        margin-top: 20px;
    }

    #footer .col-md-6 {
        text-align: center !important;
    }
}

/* Tablet adjustments */
@media (min-width: 768px) and (max-width: 991px) {
    .gallery-image {
        height: 180px;
    }

    #menu.navbar-default .navbar-nav > li > a {
        margin: 0 20px;
        font-size: 14px;
    }

    h2 {
        font-size: 32px;
    }
}

/* Large mobile / Small tablet */
@media (min-width: 576px) and (max-width: 767px) {
    .gallery-image {
        height: 180px;
    }

    .intro-paragraph {
        font-size: 24px !important;
    }
}

/* Very small mobile devices */
@media (max-width: 375px) {
    .intro-paragraph {
        font-size: 18px !important;
    }

    .gallery-image {
        height: 120px;
    }

    h2 {
        font-size: 24px !important;
    }
}

/* Loading state for gallery */
.gallery-loading {
    text-align: center;
    padding: 40px;
    color: #777;
}

.gallery-loading::after {
    content: "Loading gallery...";
    display: block;
    margin-top: 10px;
    animation: blink 1.5s infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* Improve touch targets for mobile */
@media (max-width: 767px) {
    .navbar-nav > li > a {
        padding: 15px 10px !important;
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .btn-custom {
        padding: 16px 24px;
        font-size: 16px;
        min-height: 48px;
    }

    /* Make carousel controls easier to tap */
    .carousel-control-prev,
    .carousel-control-next {
        width: 50px;
    }

    .carousel-control-prev-icon,
    .carousel-control-next-icon {
        padding: 25px;
    }
}

/* Smooth scrolling for all devices */
html {
    scroll-behavior: smooth;
}

/* Improve image loading performance */
img {
    max-width: 100%;
    height: auto;
}

/* Ensure proper spacing on all sections */
section {
    overflow-x: hidden;
}
