/* ============================================
   MOBILE CAROUSEL LAYOUT
   Different layout for mobile: 2 projects per slide, 6 clients per slide
   ============================================ */

/* ============================================
   PROJECTS - MOBILE LAYOUT (2 per slide)
   Layout separation handled by enforce-layout-separation.css
   This file only handles mobile-specific styling
   ============================================ */
@media screen and (max-width: 1024px) {
    /* Projects mobile pair - 2 rows (stacked vertically) */
    .projects-mobile-pair {
        display: flex !important;
        flex-direction: column !important;
        gap: 16px !important;
        width: 100% !important;
        max-width: 100% !important;
        padding: 20px 15px !important;
    }

    /* Mobile title positioning */
    .projects-mobile-title {
        margin-bottom: 30px !important;
        padding: 0 15px !important;
        width: 100% !important;
    }

    /* Mobile project item - clean professional design */
    .project-mobile-item {
        width: 100%;
        border-radius: 12px;
        overflow: hidden;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
        transition: transform 0.2s ease, box-shadow 0.2s ease;
        background: transparent;
        aspect-ratio: 4/3;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        position: relative;
    }

    .project-mobile-item:active {
        transform: scale(0.98);
        box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
    }

    .project-mobile-image {
        width: 100%;
        height: 100%;
        display: block;
        border-radius: 12px;
        object-fit: cover;
    }

    /* Gallery container and masonry galleries hidden by enforce-layout-separation.css */
}

/* Desktop layout separation handled by enforce-layout-separation.css */

/* ============================================
   CLIENTS - MOBILE LAYOUT (6 per slide)
   Layout separation handled by enforce-layout-separation.css
   This file only handles mobile-specific styling
   ============================================ */
@media screen and (max-width: 1024px) {
    /* Show mobile layout */
    .clients-mobile-layout {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 16px !important;
        padding: 20px 15px !important;
        width: 100% !important;
        max-width: 100% !important;
    }

    /* Mobile client logo items */
    .clients-mobile-layout .client-logo-item {
        background: rgba(255, 255, 255, 0.02);
        border: 1px solid rgba(255, 255, 255, 0.08);
        border-radius: 12px;
        padding: 20px;
        transition: all 0.2s ease;
        backdrop-filter: blur(10px);
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
        aspect-ratio: 1;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .clients-mobile-layout .client-logo-item:active {
        transform: scale(0.97);
        background: rgba(255, 255, 255, 0.04);
        border-color: rgba(78, 205, 196, 0.2);
        box-shadow: 0 1px 4px rgba(0, 0, 0, 0.15);
    }

    .clients-mobile-layout .client-logo-image {
        width: 100%;
        height: auto;
        max-height: 80px;
        object-fit: contain;
        filter: brightness(1.05);
        transition: filter 0.2s ease;
    }

    .clients-mobile-layout .client-logo-item:active .client-logo-image {
        filter: brightness(1.1);
    }

    /* Mobile title positioning */
    .clients-mobile-title {
        margin-bottom: 30px !important;
        padding: 0 15px !important;
        width: 100% !important;
    }

    /* Ensure proper spacing for mobile slides */
    .clients-mobile-slide:not(:first-child) {
        padding-top: 40px !important;
    }

    /* Clients container adjustments for mobile */
    .clients-container {
        height: 100vh !important;
        overflow: hidden !important;
    }
}

/* Desktop layout separation handled by enforce-layout-separation.css */

/* ============================================
   OWL CAROUSEL MOBILE ADJUSTMENTS
   ============================================ */
@media screen and (max-width: 1024px) {
    /* Projects carousel - ensure proper slide display */
    .projects-owl-carousel .owl-item {
        display: flex !important;
        align-items: flex-start;
    }

    .projects-owl-item {
        width: 100% !important;
        padding: 0 !important;
    }

    /* Clients carousel - ensure proper slide display */
    .clients-owl-carousel .owl-item {
        display: flex !important;
        align-items: flex-start;
    }

    .clients-owl-item {
        width: 100% !important;
        padding: 0 !important;
    }

    /* Keep navigation arrows visible on all screens */
    /* Arrows are now always visible for better UX */
}

/* ============================================
   RESPONSIVE GRID ADJUSTMENTS
   ============================================ */
@media screen and (max-width: 768px) {
    /* Projects: Keep stacked vertically */
    .projects-mobile-pair {
        flex-direction: column !important;
        gap: 12px;
    }

    /* Clients: Keep 2 columns (6 items = 3 rows) */
    .clients-mobile-layout {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 12px !important;
        padding: 15px 10px !important;
    }

    /* Ensure 6 clients fit nicely (2 columns x 3 rows) */
    .clients-mobile-layout .client-logo-item {
        aspect-ratio: 1;
        min-height: 120px;
    }
}

@media screen and (max-width: 480px) {
    /* Projects: Keep 2 columns but smaller gap */
    .projects-mobile-pair {
        gap: 10px;
        margin-bottom: 16px;
    }

    .project-mobile-item {
        border-radius: 10px;
    }

    /* Clients: Keep 2 columns */
    .clients-mobile-layout {
        gap: 10px;
        padding: 15px 10px;
    }

    .clients-mobile-layout .client-logo-item {
        padding: 16px;
    }

    .clients-mobile-layout .client-logo-image {
        max-height: 100px;
    }
}
