/* ═══════════════════════════════════════════════════════════
   MOBILE WORK SLIDER  — premium glassmorphism card carousel
   Only active on < 768px.
   ═══════════════════════════════════════════════════════════ */

/* Outer wrapper — subtle dark navy zone */
.ws-mobile-wrap {
    padding: 0 0 32px;
    overflow: visible;
    background: transparent;
    margin: 0;
}

/* Swiper Container for Mobile */
.ws-mobile-swiper {
    padding: 20px 0 45px !important;
    overflow: visible !important;
    /* Allow peek effect */
}

/* Individual card — borderless with dark navy gradient */
.ws-mobile-card {
    width: 85vw !important;
    max-width: 340px;
    border-radius: 24px;
    overflow: visible;
    background: linear-gradient(145deg, #111e3b, #0a1125);
    box-shadow: 0 0 15px rgba(59, 130, 246, 0.06);
    border: none;
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    display: flex;
    flex-direction: column;
    opacity: 0.6;
    transform: scale(0.9);
    pointer-events: auto !important;
}

.ws-mobile-card.swiper-slide-active {
    opacity: 1;
    transform: scale(1);
}

/* Image area */
.ws-mobile-img {
    width: 100%;
    height: 310px;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
    border-radius: 24px 24px 0 0;
}

.ws-mobile-img img {
    width: auto;
    height: 100%;
    max-width: 100%;
    max-height: 300px;
    object-fit: contain;
    display: block;
    filter: drop-shadow(0 12px 25px rgba(31, 101, 230, 0.12));
}

/* Gradient fade at bottom of image */
.ws-mobile-img::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 80px;
    background: linear-gradient(to bottom, transparent, #111e3b);
    pointer-events: none;
}

/* Subtle glowing divider line */
.ws-mobile-img::before {
    content: '';
    position: absolute;
    left: 10%;
    right: 10%;
    bottom: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(100, 160, 255, 0.35), transparent);
    z-index: 2;
}

/* Card body */
.ws-mobile-body {
    padding: 18px 20px 22px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
    background: transparent;
}

/* Title row + year badge */
.ws-mobile-meta {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
}

.ws-mobile-title {
    font-size: 1.12rem;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: 0.01em;
    margin: 0;
    line-height: 1.3;
}

.ws-mobile-year {
    font-size: 11px;
    font-weight: 700;
    color: #f59e0b;
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid rgba(245, 158, 11, 0.4);
    border-radius: 20px;
    padding: 3px 11px;
    white-space: nowrap;
    flex-shrink: 0;
    letter-spacing: 0.06em;
    margin-top: 2px;
}

/* Description */
.ws-mobile-desc-wrap {
    position: relative;
}

.ws-mobile-desc {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.58);
    line-height: 1.75;
    margin: 0 0 6px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: all 0.4s ease;
}

.ws-mobile-desc.expanded {
    -webkit-line-clamp: unset;
    line-clamp: unset;
    overflow: visible;
}

/* Read more button */
.ws-mobile-readmore {
    background: none;
    border: none;
    padding: 0;
    font-size: 13px;
    font-weight: 600;
    color: #f59e0b;
    cursor: pointer;
    position: relative;
    z-index: 10;
    pointer-events: auto !important;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-top: 2px;
    opacity: 0.85;
    transition: opacity 0.2s;
}

.ws-mobile-readmore:hover {
    opacity: 1;
}

.ws-mobile-readmore span {
    display: inline-block;
    transition: transform 0.25s;
}

.ws-mobile-readmore.open span {
    transform: rotate(90deg);
}

/* Custom Pagination for Mobile Swiper */
.ws-mobile-pagination {
    bottom: 0px !important;
    display: flex;
    justify-content: center;
    gap: 8px;
}

.ws-mobile-pagination .swiper-pagination-bullet {
    width: 8px;
    height: 8px;
    background: rgba(15, 23, 42, 0.3);
    opacity: 1;
    margin: 0 !important;
    transition: all 0.3s ease;
}

.ws-mobile-pagination .swiper-pagination-bullet-active {
    width: 28px;
    border-radius: 4px;
    background: linear-gradient(90deg, #f59e0b, #fbbf24) !important;
    box-shadow: 0 0 12px rgba(245, 158, 11, 0.4);
}

/* ─── Mobile: tighten Portfolio section + heading gap ─── */
@media (max-width: 767px) {
    #portfolio {
        padding: 10px 0 0 !important;
    }

    #portfolio .section-header .h-padding20 {
        padding: 10px 0 8px !important;
    }
}

/* Dark mode tweaks */
body.dark-mode .ws-mobile-wrap {
    background: transparent;
}

body.dark-mode .ws-mobile-card {
    background: linear-gradient(145deg, #18181b, #09090b);
}

body.dark-mode .ws-mobile-img::after {
    background: linear-gradient(to bottom, transparent, #0f172a);
}