/* Our Work Section Styles */
.our-work-section {
    position: relative;
    padding: 100px 0;
    background: linear-gradient(135deg, #FFFFFF 0%, #F8F9FA 100%) !important;
    overflow: hidden;
}

.our-work-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, #1e3c72, transparent);
    opacity: 0.3;
}

.our-work-section::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(0, 0, 0, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 0, 0, 0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    pointer-events: none;
    opacity: 0.2;
}

.our-work-container {
    position: relative;
    z-index: 2;
}

.our-work-header {
    text-align: center;
    margin-bottom: 60px;
}

.our-work-subtitle {
    display: inline-block;
    background: linear-gradient(135deg, #1e3c72, #2a5298);
    color: white;
    padding: 10px 25px;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 20px;
    letter-spacing: 0.5px;
    box-shadow: 0 8px 25px rgba(30, 60, 114, 0.2);
}

.our-work-title {
    font-size: 3.5rem;
    font-weight: 900;
    color: #1e3c72;
    margin-bottom: 15px;
    line-height: 1.2;
    font-family: 'Tajawal', sans-serif;
    text-shadow: none;
}

.our-work-description {
    font-size: 1.2rem;
    color: #64748b;
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.8;
    font-weight: 500;
}

/* Filter Navigation */
.work-filters {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 60px;
}

.filter-btn {
    background: rgba(30, 60, 114, 0.08);
    color: #1e3c72;
    border: 2px solid rgba(30, 60, 114, 0.15);
    padding: 12px 25px;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    backdrop-filter: blur(10px);
    font-family: 'Tajawal', sans-serif;
    position: relative;
    overflow: hidden;
}

.filter-btn::before {
    content: "";
    position: absolute;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(30, 60, 114, 0.1), transparent);
    transition: right 0.6s ease;
}

.filter-btn:hover::before {
    right: 100%;
}

.filter-btn:hover {
    background: rgba(30, 60, 114, 0.15);
    border-color: rgba(30, 60, 114, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(30, 60, 114, 0.15);
}

.filter-btn.active {
    background: linear-gradient(135deg, #1e3c72, #2a5298);
    color: #ffffff;
    border-color: #1e3c72;
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(30, 60, 114, 0.25);
}

/* Work Grid */
.work-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.work-item {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
    position: relative;
    cursor: pointer;
}

.work-item::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(30, 60, 114, 0.1), rgba(100, 181, 246, 0.1));
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.work-item:hover::before {
    opacity: 1;
}

.work-item:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
}

.work-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.work-item:hover .work-image {
    transform: scale(1.1);
}

.work-content {
    padding: 25px;
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
}

.work-category {
    display: inline-block;
    background: linear-gradient(135deg, #1e3c72, #2a5298);
    color: #ffffff;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.work-title {
    font-size: 1.4rem;
    font-weight: 800;
    color: #1e3c72;
    margin-bottom: 10px;
    line-height: 1.3;
    font-family: 'Tajawal', sans-serif;
}

.work-description {
    color: #64748b;
    line-height: 1.6;
    margin-bottom: 20px;
    font-size: 0.95rem;
}

.work-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #1e3c72;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
}

.work-link:hover {
    color: #2a5298;
    transform: translateX(-5px);
}

.work-link i {
    transition: transform 0.3s ease;
}

.work-link:hover i {
    transform: translateX(-3px);
}

/* Responsive Design */
@media (max-width: 992px) {
    .our-work-title {
        font-size: 2.8rem;
    }
    
    .work-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 25px;
    }
}

@media (max-width: 768px) {
    .our-work-section {
        padding: 80px 0;
    }
    
    .our-work-title {
        font-size: 2.4rem;
    }
    
    .our-work-description {
        font-size: 1.1rem;
    }
    
    .work-filters {
        gap: 10px;
        margin-bottom: 40px;
    }
    
    .filter-btn {
        padding: 10px 20px;
        font-size: 13px;
    }
    
    .work-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

@media (max-width: 576px) {
    .our-work-section {
        padding: 60px 0;
    }
    
    .our-work-title {
        font-size: 2rem;
    }
    
    .our-work-description {
        font-size: 1rem;
    }
    
    .work-filters {
        justify-content: stretch;
    }
    
    .filter-btn {
        flex: 1;
        min-width: 140px;
        padding: 8px 15px;
        font-size: 12px;
    }
    
    .work-content {
        padding: 20px;
    }
    
    .work-title {
        font-size: 1.2rem;
    }
}

/* Animation Classes */
.work-item {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.work-item.show {
    opacity: 1;
    transform: translateY(0);
}

.work-item.hidden {
    display: none;
}

/* Loading Animation */
.work-loading {
    text-align: center;
    padding: 40px;
    color: #ffffff;
    font-size: 1.1rem;
}

.work-loading::after {
    content: "";
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top: 2px solid #ffffff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-right: 10px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
