/* ==============================
   CASES SECTION
============================== */

.cases {
    padding: 100px 0;
    background: linear-gradient(180deg, #0f172a 0%, #0C1623 100%);
    color: var(--default-color);
}

/* ==============================
   HEADER (Left Side)
============================== */

.cases .cases-header {
    padding-right: 40px;
}

.cases .section-badge {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(22, 165, 244, 0.15);
    color: var(--accent-color);
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 15px;
    letter-spacing: 0.5px;
}

.cases h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
    color: var(--accent-color);
}

.cases .lead {
    font-size: 1rem;
    color: var(--nav-color);
    line-height: 1.6;
    margin-bottom: 30px;
}

.cases .btn-primary:hover {
    gap: 12px;
}

.cases .btn-primary i {
    transition: transform 0.3s ease;
}

.cases .btn-primary:hover i {
    transform: translateX(4px);
}

/* ==============================
   CAROUSEL CONTAINER
============================== */

.cases-carousel-container {
    position: relative;
    padding: 0 50px;
    overflow: hidden;
}

.cases-carousel {
    display: flex;
    gap: 20px;
    transition: transform 0.5s ease-in-out;
    will-change: transform;
}

/* ==============================
   CASE CARD (Horizontal/Thin)
============================== */

.case-card {
    min-width: 350px;
    max-width: 350px;
    flex-shrink: 0;
    background: var(--surface-color);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    flex-direction: column;
}

.case-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(22, 165, 244, 0.2);
    border-color: rgba(22, 165, 244, 0.3);
}

.case-image {
    width: 100%;
    height: 260px;
    overflow: hidden;
    position: relative;
}

.case-image > a {
    display: block;
    width: 100%;
    height: 100%;
    position: relative;
}

.case-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, transparent 0%, rgba(12, 22, 35, 0.3) 100%);
    pointer-events: none;
    z-index: 1;
}

.case-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.case-card:hover .case-image img {
    transform: scale(1.05);
}

/* Image Overlay (Zoom Icon) */
.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(22, 165, 244, 0.9);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 2;
    cursor: pointer;
}

.case-image > a:hover .image-overlay {
    opacity: 1;
}

.image-overlay i {
    font-size: 2.5rem;
    color: white;
    margin-bottom: 8px;
}

.image-overlay .gallery-count {
    font-size: 0.9rem;
    color: white;
    font-weight: 600;
    background: rgba(0, 0, 0, 0.3);
    padding: 4px 12px;
    border-radius: 12px;
}

.case-content {
    padding: 25px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.case-content h3 {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--heading-color);
    margin-bottom: 12px;
}

.case-content p {
    font-size: 0.88rem;
    line-height: 1.6;
    color: var(--nav-color);
    margin-bottom: 18px;
    flex: 1;
}

.case-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--accent-color);
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.case-link i {
    transition: transform 0.3s ease;
}

.case-link:hover {
    color: var(--accent-color);
    gap: 12px;
}

.case-link:hover i {
    transform: translateX(4px);
}

/* ==============================
   CAROUSEL NAVIGATION
============================== */

.carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background: rgba(32, 139, 244, 0.2);
    border: 1px solid rgba(32, 139, 244, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
    color: var(--accent-color);
}

.carousel-nav:hover {
    background: var(--accent-color);
    color: white;
    transform: translateY(-50%) scale(1.1);
}

.carousel-nav.prev {
    left: 0;
}

.carousel-nav.next {
    right: 0;
}

.carousel-nav i {
    font-size: 1.2rem;
}

/* ==============================
   CAROUSEL INDICATORS
============================== */

.carousel-indicators {
    display: flex;
    gap: 8px;
    justify-content: center;
    margin-top: 25px;
}

.carousel-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(32, 139, 244, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
}

.carousel-indicator.active {
    width: 24px;
    border-radius: 4px;
    background: var(--accent-color);
}

/* ==============================
   RESPONSIVE
============================== */

@media (max-width: 992px) {
    .cases {
        padding: 80px 0;
    }

    .cases .cases-header {
        padding-right: 0;
        margin-bottom: 40px;
        text-align: center;
    }

    .cases h2 {
        font-size: 2.2rem;
    }

    .case-card {
        min-width: 300px;
        max-width: 300px;
    }
}

@media (max-width: 768px) {
    .cases-carousel-container {
        padding: 0 40px;
    }

    .carousel-nav {
        width: 35px;
        height: 35px;
    }

    .carousel-nav i {
        font-size: 1rem;
    }
}

@media (max-width: 576px) {
    .cases {
        padding: 60px 0;
    }

    .cases h2 {
        font-size: 1.8rem;
    }

    .cases-carousel-container {
        padding: 0 30px;
    }

    .case-card {
        min-width: 280px;
        max-width: 280px;
    }

    .case-content {
        padding: 20px;
    }

    .case-image {
        height: 160px;
    }

    .carousel-nav {
        width: 32px;
        height: 32px;
    }
}
