/**
 * Mobile Carousel Styles for About & Gallery Sections
 * Desktop: Grid view | Mobile: Swiper carousel
 */

/* ===== RESPONSIVE BEHAVIOR ===== */

/* Desktop: Show grid, hide carousel */
@media (min-width: 769px) {
    .features-mobile,
    .gallery-mobile {
        display: none;
    }

    .features-desktop,
    .gallery-desktop {
        display: grid;
    }
}

/* Mobile: Show carousel, hide grid */
@media (max-width: 768px) {
    .features-desktop,
    .gallery-desktop {
        display: none;
    }

    .features-mobile,
    .gallery-mobile {
        display: block;
    }
}

/* ===== FEATURES CAROUSEL STYLES ===== */
.features-mobile {
    margin-top: var(--spacing-xl);
    padding: 0 var(--spacing-md);
}

.features-swiper {
    padding-bottom: 50px; /* Space for pagination */
}

.features-swiper .swiper-slide {
    height: auto;
    display: flex;
}

.features-swiper .feature-card {
    width: 100%;
    min-height: 280px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.features-swiper .swiper-pagination {
    bottom: 10px;
}

.features-swiper .swiper-pagination-bullet {
    width: 10px;
    height: 10px;
    background: var(--primary-color);
    opacity: 0.3;
}

.features-swiper .swiper-pagination-bullet-active {
    opacity: 1;
    width: 25px;
    border-radius: 5px;
}

/* ===== GALLERY CAROUSEL STYLES ===== */
.gallery-mobile {
    margin-top: var(--spacing-xl);
    padding: 0 var(--spacing-md);
}

.gallery-swiper {
    padding-bottom: 50px; /* Space for pagination */
}

.gallery-swiper .swiper-slide {
    height: auto;
}

.gallery-swiper .gallery-item {
    width: 100%;
    height: 300px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    position: relative;
    box-shadow: var(--shadow-md);
}

.gallery-swiper .gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-normal);
}

.gallery-swiper .gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    color: var(--white);
    padding: var(--spacing-lg);
    transform: translateY(0);
    transition: var(--transition-normal);
}

.gallery-swiper .gallery-overlay h4 {
    margin: 0 0 var(--spacing-xs);
    font-size: 1.2rem;
}

.gallery-swiper .gallery-overlay p {
    margin: 0;
    font-size: 0.9rem;
    opacity: 0.9;
}

.gallery-swiper .swiper-pagination {
    bottom: 10px;
}

.gallery-swiper .swiper-pagination-bullet {
    width: 8px;
    height: 8px;
    background: var(--white);
    opacity: 0.5;
}

.gallery-swiper .swiper-pagination-bullet-active {
    opacity: 1;
    width: 20px;
    border-radius: 4px;
}

/* ===== MOBILE TOUCH INDICATORS ===== */
@media (max-width: 768px) {
    .features-mobile::before,
    .gallery-mobile::before {
        content: '← Swipe →';
        display: block;
        text-align: center;
        color: var(--text-light);
        font-size: 0.85rem;
        margin-bottom: var(--spacing-md);
        padding-top: var(--spacing-xs);
        opacity: 0.7;
        animation: fadeInOut 2s ease-in-out infinite;
    }

    /* Remove bottom indicator that was covering content */
    .features-mobile::after,
    .gallery-mobile::after {
        display: none;
    }
}

@keyframes fadeInOut {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.7; }
}

/* ===== SMOOTH SCROLLING ON MOBILE ===== */
@media (max-width: 768px) {
    .section {
        padding: var(--spacing-xl) 0;
    }

    .section-header {
        padding: 0 var(--spacing-md);
    }

    .features-swiper .feature-card,
    .gallery-swiper .gallery-item {
        user-select: none;
        -webkit-user-select: none;
        -moz-user-select: none;
    }
}

/* ===== TABLET ADJUSTMENTS ===== */
@media (min-width: 641px) and (max-width: 768px) {
    .features-swiper .feature-card {
        min-height: 250px;
    }

    .gallery-swiper .gallery-item {
        height: 250px;
    }
}
