:root {
    --primary-purple: #4b0082;
    --accent-purple: #6a1b9a;
    --bg-light: #f8f9fa;
    --text-dark: #1a1a1a;
    --text-muted: #666;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: #ffffff;
    
}
main{
overflow-x: hidden;
}

/* ================= HERO SECTION ================= */
.portfolio-hero {
    background: linear-gradient(135deg, #2a004a 0%, var(--primary-purple) 100%);
    padding: 100px 0 160px;
    color: white;
    position: relative;
    text-align: center;
}

/* Badge */
.sub-badge {
    background: rgba(255, 255, 255, 0.15);
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 2px;
    margin-bottom: 20px;
    display: inline-block;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

/* Title */
.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 16px;
}

/* Subtitle */
.hero-subtitle {
    font-size: 1.1rem;
    opacity: 0.85;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Wave */
.hero-wave {
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    line-height: 0;
    overflow: hidden;
}

.hero-wave svg {
    width: 100%;
    height: auto;
    display: block;
}

/* ================= TABLET ================= */
@media (max-width: 991px) {
    .portfolio-hero {
        padding: 80px 0 130px;
    }

    .hero-title {
        font-size: 2.7rem;
    }

    .hero-subtitle {
        font-size: 1rem;
        max-width: 520px;
    }

    .sub-badge {
        font-size: 0.75rem;
        letter-spacing: 1.6px;
    }
}

/* ================= MOBILE ================= */
@media (max-width: 576px) {
    .portfolio-hero {
        padding: 65px 15px 100px;
    }

    .hero-title {
        font-size: 2.1rem;
        line-height: 1.25;
    }

    .hero-subtitle {
        font-size: 0.95rem;
        max-width: 100%;
        padding: 0 10px;
    }

    .sub-badge {
        padding: 6px 16px;
        font-size: 0.7rem;
        letter-spacing: 1.3px;
    }
}


/* ================= FILTER SECTION ================= */
.filter-section {
    padding: 20px 0;
    background: #fff;
    border-bottom: 1px solid #eee;
    margin-top: -30px;
    position: relative;
    z-index: 10;
}

/* Wrapper */
.filter-wrapper {
    display: flex;
    justify-content: center;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none; /* Firefox */
}

.filter-wrapper::-webkit-scrollbar {
    display: none; /* Chrome */
}

/* Filter list */
.filter-list {
    list-style: none;
    display: flex;
    gap: 12px;
    padding: 4px 0;
    margin: 0;
}

/* Filter item */
.filter-item {
    padding: 10px 22px;
    background: var(--bg-light);
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    color: var(--text-dark);
    border: 1px solid transparent;
}

/* Hover */
.filter-item:hover {
    border-color: var(--primary-purple);
    color: var(--primary-purple);
}

/* Active */
.filter-item.active {
    background: var(--primary-purple);
    color: #fff;
    box-shadow: 0 4px 15px rgba(75, 0, 130, 0.2);
}

/* ================= TABLET ================= */
@media (max-width: 991px) {
    .filter-section {
        padding: 18px 0;
        margin-top: -20px;
    }

    .filter-item {
        padding: 9px 20px;
        font-size: 0.85rem;
    }
}

/* ================= MOBILE ================= */
@media (max-width: 576px) {
    .filter-section {
        padding: 14px 0;
        margin-top: -10px;
    }

    .filter-wrapper {
        justify-content: flex-start;
    }

    .filter-list {
        padding-left: 10px;
        padding-right: 10px;
    }

    .filter-item {
        padding: 8px 18px;
        font-size: 0.8rem;
    }
}



.case-grid-section { padding: 60px 0; }

.enhanced-case-card {
    background: #fff;
    border-radius: 24px;
    overflow: hidden;
    border: 1px solid #f0f0f0;
    transition: 0.4s;
    height: 100%;
}

.enhanced-case-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 50px rgba(0,0,0,0.08);
}

.card-img-wrapper { position: relative; height: 300px; overflow: hidden; }
.card-img { width: 100%; height: 100%; object-fit: cover; transition: 0.6s; }
.enhanced-case-card:hover .card-img { transform: scale(1.1); }

.tag {
    position: absolute; top: 20px; left: 20px;
    background: #fff; color: var(--primary-purple);
    padding: 5px 15px; border-radius: 50px; font-size: 0.7rem; font-weight: 700;
}

.card-content { padding: 35px; }
.card-heading { font-size: 1.8rem; font-weight: 700; color: var(--primary-purple); font-family: 'Caveat', cursive; }
.card-snippet { color: var(--text-muted); font-size: 0.95rem; line-height: 1.6; }

.card-footer-info {
    display: flex; justify-content: space-between; align-items: center;
    border-top: 1px solid #f8f8f8; padding-top: 20px;
}

.read-more-btn { color: var(--accent-purple); font-weight: 700; text-decoration: none !important; font-size: 0.8rem; }
.read-more-btn:hover{
    text-decoration: none;
    color: black;
}
.stats-mini { background: var(--bg-light); padding: 4px 10px; border-radius: 6px; font-size: 0.8rem; color: var(--primary-purple); }

.custom-pagination .page-item .page-link {
    width: 45px; height: 45px; margin: 0 5px;
    border-radius: 50% !important; border: 1px solid #eee;
    color: var(--text-dark); display: flex; align-items: center; justify-content: center;
    cursor: pointer; font-weight: 600;
}

.custom-pagination .page-item.active .page-link {
    background: var(--primary-purple); border-color: var(--primary-purple); color: #fff;
}

.portfolio-footer { padding: 80px 0; background: var(--bg-light); border-radius: 50px 50px 0 0; }
.btn-main { background: var(--primary-purple); color: white; padding: 12px 35px; border-radius: 50px; font-weight: 600; display: inline-block; text-decoration: none !important; }

@media (max-width: 991px) {
    .hero-title { font-size: 2.5rem; }
    .filter-wrapper { justify-content: flex-start; padding-left: 15px; }
}