/* ===== PROJECTS CAROUSEL (3D SWIPER) ===== */

/* Container Setup */
.swiper.mySwiper {
    width: 100%;
    padding-top: 50px;
    padding-bottom: 80px;
    overflow: hidden;
}

.swiper-slide {
    background-position: center;
    background-size: cover;
    width: 320px;
    /* Narrower width */
    height: auto;
    min-height: 500px;
    /* Taller height for portrait look */
    border-radius: 20px;
    /* Smooth corners */
    filter: blur(5px);
    /* Blur inactive slides */
    opacity: 0.6;
    transition: all 0.4s ease;
    user-select: none;
    display: flex;
    /* Ensure card fills height */
}

.swiper-slide-active,
.swiper-slide-prev,
.swiper-slide-next {
    filter: blur(0);
    opacity: 1;
}

.swiper-slide-active {
    box-shadow: 0 20px 50px rgba(37, 99, 235, 0.15);
}

/* Card Styling inside Slide */
.power-case-card {
    background: var(--bg-surface);
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 20px;
    padding: var(--space-4);
    height: 100%;
    /* Ensure card fills slide */
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    /* For glow effects */
}

/* Add a subtle top blue line to cards */
.power-case-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-primary), #60a5fa);
}

.power-case-sector {
    display: inline-block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--accent-primary);
    background: rgba(37, 99, 235, 0.08);
    padding: 6px 12px;
    border-radius: 100px;
    margin-bottom: var(--space-2);
    align-self: flex-start;
}

.power-case-headline {
    font-size: 1.5rem;
    margin-bottom: var(--space-2);
    line-height: 1.3;
}

.power-case-description {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-bottom: var(--space-3);
    line-height: 1.6;
    flex-grow: 1;
}

.power-case-stats {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
    margin-top: auto;
    padding-top: var(--space-4);
    border-top: 1px solid var(--border-light);
}

.power-case-stat {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding-bottom: var(--space-2);
    border-bottom: 1px dashed rgba(0, 0, 0, 0.1);
}

.power-case-stat:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.power-case-stat-value {
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--text-main);
}

.power-case-stat-label {
    font-size: 0.9rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Swiper Pagination Styling */
.swiper-pagination-bullet {
    width: 8px;
    height: 8px;
    background: var(--text-muted);
    opacity: 0.4;
    transition: all 0.3s;
}

.swiper-pagination-bullet-active {
    width: 24px;
    border-radius: 4px;
    background: var(--accent-primary);
    opacity: 1;
}

/* Mobile Adjustments */
@media (max-width: 768px) {
    .swiper-slide {
        width: 85%;
        /* Wider on mobile */
    }

    .power-case-headline {
        font-size: 1.3rem;
    }
}