.projects-modern-section {
    padding: 50px 0;
    background: #ffffff;
    position: relative;
    overflow: hidden;
}

/* Background overlay effect */
.projects-modern-section::before {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.section-header-modern {
    margin-bottom: 60px;
    color: #1e293b;
    position: relative;
    z-index: 2;
}

.section-header-modern .section-title {
    font-size: 28px;
    font-weight: 900;
    letter-spacing: 1px;
    margin-bottom: 35px;
    text-transform: uppercase;
}

.section-header-modern .section-subtitle {
    font-size: 16px;
    opacity: 0.9;
    max-width: 700px;
    margin: 0 auto 40px;
    font-weight: 500;
}

.project-filters {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.filter-btn {
    background: #fff;
    border: none;
    padding: 12px 24px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 14px;
    color: #2e4190;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.filter-btn.active {
    background: #2e4190;
    color: #fff;
}

.filter-btn:not(.active):hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
}

.projects-carousel-modern {
    position: relative;
    z-index: 2;
}

.project-card-modern {
    background: #fff;
    border: 1px solid #f1f5f9;
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    height: 100%;
    display: flex;
    flex-direction: column;
    margin: 10px 5px;
}

.project-card-modern:hover {
    transform: translateY(-10px);
    border-color: #2e4190;
    box-shadow: 0 20px 40px rgb(46 65 143 / 10%);
}

.project-image-wrapper {
    height: 180px;
    overflow: hidden;
    padding: 10px;
}

.project-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 15px;
    transition: transform 0.8s ease;
}

.project-card-modern:hover .project-img {
    transform: scale(1.1);
}

.project-content-modern {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.project-title {
    font-size: 14px;
    font-weight: 700;
    color: #1e293b;
    text-transform: uppercase;
    line-height: 1.4;
    margin-bottom: 10px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    height: 35px;
}

.project-location-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 15px;
    border-top: 1px solid #f1f5f9;
}

.location-text {
    font-size: 11px;
    color: #64748b;
    font-weight: 700;
    text-transform: uppercase;
}

.location-icon {
    width: 32px;
    height: 32px;
    background: #f1f5f9;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #2e4190;
    font-size: 14px;
}

.projects-footer-action {
    margin-top: 30px;
    display: flex;
    justify-content: center;
    position: relative;
    z-index: 2;
}

.action-wrapper {
    display: flex;
    align-items: center;
    gap: 20px;
    color: #1e293b;
}

.btn-all-projects {
    border: 1.5px solid #2e4190;
    padding: 12px 35px;
    border-radius: 10px;
    color: #2e4190;
    font-weight: 800;
    font-size: 13px;
    text-decoration: none !important;
    transition: all 0.3s;
}

.btn-all-projects:hover {
    background: #2e4190;
    color: #fff;
}

.nav-arrow-btn {
    background: transparent;
    border: none;
    font-size: 24px;
    opacity: 0.7;
    cursor: pointer;
    transition: 0.3s;
    color: #2e4190;
}

.nav-arrow-btn:hover {
    opacity: 1;
    transform: scale(1.2);
}

@media (max-width: 991px) {
    .projects-modern-section { padding: 60px 0; }
    .project-filters {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    .filter-btn {
        padding: 10px 12px;
        font-size: 12px;
        justify-content: center;
    }
}

@media (max-width: 576px) {
    .section-header-modern .section-title { font-size: 22px; margin-bottom: 25px;}
}
