.case-studies-section {
    padding: 40px 20px;
    background: #000;
    color: #fff;
    font-family: 'Montserrat', sans-serif;
    margin-bottom: 20px;
}

/* HERO */
.case-hero {
    text-align: center;
    max-width: 900px;
    margin: auto;
}

.case-hero h1 {
    font-size: 56px;
    font-weight: 800;
    background: linear-gradient(90deg, #ff6a00, #ff9a3c);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.case-hero h2 {
    font-size: 26px;
    margin: 10px 0;
}

.case-hero h2 span {
    color: #ff6a00;
}

.case-hero p {
    opacity: 0.6;
    font-size: 14px;
    margin-top: 10px;
}

/* FILTER */
.case-filters {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin: 50px 0;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 10px 18px;
    border: 1px solid rgba(255,106,0,0.5);
    background: transparent;
    color: #fff;
    cursor: pointer;
    transition: 0.3s;
}

.filter-btn.active,
.filter-btn:hover {
    background: linear-gradient(135deg, #ff6a00, #ff8c2a);
    border: none;
}

/* GRID - CLEAN 3 COLUMN */
.case-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 35px;
}

/* CARD - FIXED HEIGHT = NO MORE BROKEN LAYOUT */
.case-card {
    position: relative;
    height: 420px;
    border-radius: 14px;
    overflow: hidden;
    cursor: pointer;
    background: #111;
    transition: 0.4s ease;
}

/* IMAGE FULL FIT */
.case-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.5s ease;
}

/* OVERLAY GRADIENT */
.case-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(0,0,0,0.95) 10%,
        rgba(0,0,0,0.6) 40%,
        transparent 80%
    );
}

/* CONTENT */
.case-overlay {
    position: absolute;
    bottom: 0;
    padding: 20px;
    z-index: 2;
}

/* TAG */
.case-tag {
    display: inline-block;
    padding: 5px 10px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 1px;
    background: linear-gradient(135deg, #ff6a00, #ff8c2a);
    margin-bottom: 10px;
}

/* TITLE */
.case-overlay h3 {
    font-size: 18px;
    font-weight: 600;
    line-height: 1.4;
}

/* HOVER EFFECT */
.case-card:hover img {
    transform: scale(1.1);
}

.case-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 25px 60px rgba(255,106,0,0.25);
}

/* BORDER GLOW */
.case-card:hover::before {
    content: "";
    position: absolute;
    inset: 0;
    border: 1px solid rgba(255,106,0,0.6);
    border-radius: 14px;
    z-index: 3;
}

/* ENTRY ANIMATION */
.case-card {
    opacity: 0;
    transform: translateY(60px);
}

.case-card.show {
    opacity: 1;
    transform: translateY(0);
    transition: 0.6s ease;
}
@media (max-width: 1024px) {

    .case-studies-section {
        padding: 60px 20px;
    }

    /* HERO */
    .case-hero h1 {
        font-size: 44px;
    }

    .case-hero h2 {
        font-size: 22px;
    }

    .case-hero p {
        font-size: 13px;
        max-width: 700px;
        margin: 10px auto 0;
    }

    /* FILTER */
    .case-filters {
        gap: 10px;
        margin: 40px 0;
    }

    .filter-btn {
        padding: 8px 14px;
        font-size: 13px;
    }

    /* GRID */
    .case-grid {
        gap: 25px;
    }

    /* CARD */
    .case-card {
        height: 360px; /* reduced from 420 */
        border-radius: 12px;
    }

    /* CONTENT */
    .case-overlay {
        padding: 16px;
    }

    .case-tag {
        font-size: 10px;
        padding: 4px 8px;
    }

    .case-overlay h3 {
        font-size: 16px;
        line-height: 1.3;
    }

    /* HOVER (reduce intensity for smaller screens) */
    .case-card:hover {
        transform: translateY(-8px);
        box-shadow: 0 15px 40px rgba(255,106,0,0.2);
    }
}
@media (max-width: 768px) {

    .case-studies-section {
        padding: 60px 15px;
    }

    /* HERO */
    .case-hero h1 {
        font-size: 36px;
    }

    .case-hero h2 {
        font-size: 20px;
    }

    .case-hero p {
        font-size: 13px;
        padding: 0 10px;
    }

    /* FILTER */
    .case-filters {
        gap: 8px;
        margin: 30px 0;
    }

    .filter-btn {
        padding: 7px 12px;
        font-size: 12px;
    }

    /* 🔥 GRID CHANGE (MAIN PART) */
    .case-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    /* CARD */
    .case-card {
        height: 300px; /* important */
        border-radius: 10px;
    }

    /* IMAGE */
    .case-card img {
        height: 100%;
    }

    /* CONTENT */
    .case-overlay {
        padding: 14px;
    }

    .case-tag {
        font-size: 9px;
        padding: 3px 7px;
    }

    .case-overlay h3 {
        font-size: 14px;
        line-height: 1.3;
    }

    /* HOVER (tone it down for touch devices) */
    .case-card:hover {
        transform: none;
        box-shadow: none;
    }
}
@media (max-width: 480px) {

    .case-studies-section {
        padding: 50px 12px;
    }

    /* HERO */
    .case-hero {
        text-align: center;
    }

    .case-hero h1 {
        font-size: 28px;
        line-height: 1.2;
    }

    .case-hero h2 {
        font-size: 16px;
        margin: 8px 0;
    }

    .case-hero p {
        font-size: 12px;
        line-height: 1.5;
        padding: 0 5px;
    }

    /* FILTER (MAKE SCROLLABLE INSTEAD OF WRAPPING UGLY) */
    .case-filters {
        display: flex;
        overflow-x: auto;
        gap: 8px;
        padding-bottom: 10px;
        margin: 25px 0;
    }

    .case-filters::-webkit-scrollbar {
        display: none;
    }

    .filter-btn {
        flex: 0 0 auto;
        font-size: 11px;
        padding: 6px 10px;
        white-space: nowrap;
    }

    /* 🔥 GRID → SINGLE COLUMN */
    .case-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    /* CARD */
    .case-card {
        height: 240px; /* tighter for mobile */
        border-radius: 10px;
    }

    /* IMAGE */
    .case-card img {
        height: 100%;
    }

    /* OVERLAY */
    .case-overlay {
        padding: 12px;
    }

    /* TAG */
    .case-tag {
        font-size: 9px;
        padding: 3px 6px;
    }

    /* TITLE */
    .case-overlay h3 {
        font-size: 13px;
        line-height: 1.3;
    }

    /* REMOVE HOVER COMPLETELY (MOBILE DOESN’T NEED IT) */
    .case-card:hover {
        transform: none;
        box-shadow: none;
    }

    .case-card:hover img {
        transform: none;
    }
}