/* ===== WhatsApp Floating Button ===== */
.whatsapp-float {
    position: fixed;
    bottom: 80px;
    right: 25px;
    width: 60px;
    height: 60px;
    background: #25D366;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
    z-index: 9999;
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    text-decoration: none;
    animation: whatsappPulse 2s infinite;
}

.whatsapp-float:hover {
    background: #128C7E;
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.6);
    color: white;
}

@keyframes whatsappPulse {

    0%,
    100% {
        box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
    }

    50% {
        box-shadow: 0 4px 20px rgba(37, 211, 102, 0.7);
    }
}

@media (max-width: 768px) {
    .whatsapp-float {
        bottom: 90px;
        right: 20px;
        width: 55px;
        height: 55px;
        font-size: 28px;
    }

    /* Fix hero button positioning on mobile */
    .hero-section .btn {
        margin-top: 20px !important;
    }

    .hero-section .d-flex.gap-3 {
        margin-top: 30px !important;
    }
}

/* ===== Mobile Gallery Enhancements ===== */
.gallery-view-more-btn {
    display: none;
    margin: 30px auto 0;
    padding: 12px 30px;
    background: linear-gradient(45deg, #ffc107, #ff9800);
    border: none;
    color: #000;
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
}

.gallery-view-more-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}


/* Mobile Gallery: Show only 5 images initially */
@media (max-width: 768px) {
    .gallery-view-more-btn {
        display: block;
    }

    /* Initial state: show first 5 images in single column */
    #recent-gallery-container .col-highlight {
        width: 100% !important;
        flex: 0 0 100% !important;
        max-width: 100% !important;
    }

    #recent-gallery-container .col-highlight .gallery-item-alt {
        height: 280px !important;
        cursor: pointer !important;
    }

    #recent-gallery-container .col-highlight .gallery-item-alt img {
        height: 280px !important;
        object-fit: cover !important;
        width: 100% !important;
    }

    /* Hide images after the 5th one */
    #recent-gallery-container .col-highlight:nth-child(n+6) {
        display: none;
    }

    /* When expanded, show all in 2-column grid */
    #recent-gallery-container.show-all {
        display: flex !important;
        flex-wrap: wrap !important;
    }

    #recent-gallery-container.show-all .col-highlight {
        display: block !important;
        width: 50% !important;
        flex: 0 0 50% !important;
        max-width: 50% !important;
        padding: 4px !important;
    }

    #recent-gallery-container.show-all .gallery-item-alt {
        height: 200px !important;
        cursor: pointer !important;
        margin-bottom: 0 !important;
    }

    #recent-gallery-container.show-all .gallery-item-alt img {
        height: 200px !important;
        object-fit: cover !important;
        width: 100% !important;
    }
}

/* ===== Hero Carousel Indicators (Dots) ===== */
.hero-section .carousel-indicators {
    bottom: 30px;
    z-index: 15;
    margin-bottom: 0;
}

.hero-section .carousel-indicators button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    border: 2px solid rgba(255, 255, 255, 0.8);
    margin: 0 6px;
    transition: all 0.3s ease;
    opacity: 1;
}

.hero-section .carousel-indicators button.active {
    background-color: #ffc107;
    border-color: #ffc107;
    transform: scale(1.2);
}

.hero-section .carousel-indicators button:hover {
    background-color: rgba(255, 255, 255, 0.8);
}

/* Ensure carousel controls are visible on mobile */
.hero-section .carousel-control-prev,
.hero-section .carousel-control-next {
    width: 50px;
    opacity: 0.8;
    z-index: 15;
}

.hero-section .carousel-control-prev:hover,
.hero-section .carousel-control-next:hover {
    opacity: 1;
}

@media (max-width: 768px) {
    .hero-section .carousel-indicators {
        bottom: 20px;
    }

    .hero-section .carousel-indicators button {
        width: 10px;
        height: 10px;
        margin: 0 4px;
    }

    .hero-section .carousel-control-prev,
    .hero-section .carousel-control-next {
        width: 40px;
    }
}