/* Filter Section Styles */
.filter-section {
    padding: 4rem 0 0 0;
    background-color: var(--light-bg);
}

.filter-section .section-header {
    text-align: center;
    margin-bottom: 2rem;
}

.filter-controls {
    display: flex;
    justify-content: center;
    margin-bottom: 0;
}

.filter-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
}

.filter-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border: 2px solid var(--primary-color);
    border-radius: 50px;
    background: transparent;
    color: var(--text-color);
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-btn i {
    font-size: 1.1rem;
}

.filter-btn:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

.filter-btn.active {
    background-color: var(--primary-color);
    color: white;
    box-shadow: 0 4px 15px rgba(var(--primary-rgb), 0.2);
}

/* Responsive Styles */
@media (max-width: 768px) {
    .filter-buttons {
        flex-direction: column;
        width: 100%;
        max-width: 300px;
    }

    .filter-btn {
        width: 100%;
        justify-content: center;
    }
}

/* Animation for filter buttons */
.filter-btn {
    animation: fadeInUp 0.5s ease forwards;
    opacity: 0;
}

.filter-btn:nth-child(1) { animation-delay: 0.1s; }
.filter-btn:nth-child(2) { animation-delay: 0.2s; }
.filter-btn:nth-child(3) { animation-delay: 0.3s; }
.filter-btn:nth-child(4) { animation-delay: 0.4s; }

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Case Studies Grid Styles */
.case-studies-grid {
    padding: 0 0 4rem 0;
}

.case-studies-wrapper {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 0;
}

.case-study-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.case-study-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.case-study-image {
    position: relative;
    width: 100%;
    padding-top: 56.25%; /* 16:9 Aspect Ratio */
    overflow: hidden;
}

.case-study-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.case-study-card:hover .case-study-image img {
    transform: scale(1.05);
}

.category-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--primary-color);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 500;
}

.case-study-content {
    padding: 2rem;
}

.case-study-content h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--heading-color);
}

.case-study-content .client {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

.case-study-details {
    margin-bottom: 2rem;
}

.detail-item {
    margin-bottom: 1.5rem;
}

.detail-item h4 {
    font-size: 1.1rem;
    color: var(--heading-color);
    margin-bottom: 0.5rem;
}

.detail-item p {
    color: var(--text-color);
    line-height: 1.6;
}

.detail-item ul {
    list-style: none;
    padding: 0;
}

.detail-item ul li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    color: var(--text-color);
}

.detail-item ul li i {
    color: var(--primary-color);
}

.tech-stack {
    margin-top: 1.5rem;
}

.tech-stack h4 {
    font-size: 1.1rem;
    color: var(--heading-color);
    margin-bottom: 1rem;
}

.tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tech-tag {
    background: var(--light-bg);
    color: var(--text-color);
    padding: 0.4rem 0.8rem;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 500;
}

.case-study-content .btn {
    width: 100%;
    text-align: center;
    margin-top: 1.5rem;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .case-studies-wrapper {
        grid-template-columns: 1fr;
    }

    .case-study-image {
        height: 200px;
    }
}

/* Animation for case study cards */
.case-study-card {
    animation: fadeInUp 0.5s ease forwards;
    opacity: 0;
}

.case-study-card:nth-child(1) { animation-delay: 0.1s; }
.case-study-card:nth-child(2) { animation-delay: 0.2s; }
.case-study-card:nth-child(3) { animation-delay: 0.3s; }
.case-study-card:nth-child(4) { animation-delay: 0.4s; }

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
} 