/* Work Page Styles */

/* Work Hero Section */
.work-hero {
    padding: 6rem 0 4rem;
    background: linear-gradient(180deg, #F0F4FF 0%, var(--white) 100%);
    position: relative;
}

.work-hero-content {
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}

.breadcrumb {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 2rem;
    font-size: 0.9rem;
    color: var(--text-gray);
}

.breadcrumb a {
    color: var(--primary-color);
    transition: color 0.3s;
}

.breadcrumb a:hover {
    color: var(--secondary-color);
}

.breadcrumb i {
    font-size: 0.7rem;
}

.work-hero-title {
    font-size: 3.5rem;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    color: #0A0E27;
    font-weight: 800;
    font-family: 'Montserrat', sans-serif;
}

.work-hero-description {
    font-size: 1.15rem;
    color: #6B7280;
    margin-bottom: 3rem;
    line-height: 1.8;
}

.work-stats {
    display: flex;
    justify-content: center;
    gap: 4rem;
    flex-wrap: wrap;
}

.work-stat-item {
    text-align: center;
}

.work-stat-item h3 {
    font-size: 2.5rem;
    color: var(--primary-color);
    font-weight: 900;
    margin-bottom: 0.3rem;
}

.work-stat-item p {
    font-size: 0.95rem;
    color: var(--text-gray);
}

/* Filter Section */
.work-filter-section {
    padding: 3rem 0;
    background: var(--white);
    border-bottom: 1px solid #E5E7EB;
}

.filter-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.filter-left h2 {
    font-size: 1.8rem;
    color: #0A0E27;
    font-weight: 800;
    margin-bottom: 0.3rem;
}

.filter-left p {
    color: var(--text-gray);
    font-size: 0.95rem;
}

.filter-buttons {
    display: flex;
    gap: 0.8rem;
    flex-wrap: wrap;
}

.work-filter-btn {
    padding: 0.7rem 1.5rem;
    background: #F3F4F6;
    border: 2px solid transparent;
    border-radius: 10px;
    color: var(--text-gray);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    justify-content: center;
}

.work-filter-btn i {
    font-size: 1rem;
}

.work-filter-btn:hover,
.work-filter-btn.active {
    background: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

.work-filter-btn:hover {
    background: var(--secondary-color);
}

/* Projects Grid */
.work-projects-section {
    padding: 4rem 0;
    background: #F9FAFB;
}

.work-projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 3rem;
}

.work-project-card {
    background: var(--white);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.4s;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.work-project-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
}

.work-project-image {
    position: relative;
    /* height: 280px; */
    overflow: hidden;
    background: linear-gradient(135deg, #f0f4ff 0%, #e5e7eb 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.work-project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.5s;
    background: #F3F4F6;
    position: relative;
    z-index: 2;
}

/* Handle logo images differently */
.work-project-image img[src*="logo"] {
    object-fit: contain;
    padding: 40px;
    background: linear-gradient(135deg, #ffffff 0%, #f9fafb 100%);
}

.work-project-image img:not([src]),
.work-project-image img[src=""] {
    opacity: 0;
}

.work-project-card:hover .work-project-image img {
    transform: scale(1.1);
}

.work-project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(45, 91, 255, 0.95) 0%, rgba(91, 141, 239, 0.95) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.4s;
}

.work-project-card:hover .work-project-overlay {
    opacity: 1;
}

.view-project-btn {
    padding: 0.9rem 2rem;
    background: var(--white);
    color: var(--primary-color);
    border: none;
    border-radius: 10px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    transition: all 0.3s;
    font-size: 0.95rem;
    text-decoration: none;
}

.view-project-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    color: var(--primary-color);
}

.work-project-info {
    padding: 1.8rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.project-category {
    display: inline-block;
    padding: 0.4rem 1rem;
    background: rgba(45, 91, 255, 0.1);
    color: var(--primary-color);
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 1rem;
    width: max-content;
}

.work-project-info h3 {
    font-size: 1.4rem;
    color: #0A0E27;
    font-weight: 700;
    margin-bottom: 0.8rem;

}

.work-project-info p {
    font-size: 0.95rem;
    color: var(--text-gray);
    line-height: 1.6;
    margin-bottom: 1.2rem;
    flex-grow: 1;
}

.project-tags {
    display: flex;
    gap: 0.6rem;
    flex-wrap: wrap;
    margin-bottom: 1.2rem;
}

.project-tags span {
    padding: 0.4rem 0.9rem;
    background: #F3F4F6;
    color: #6B7280;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 500;
}

/* View Site Button */
.view-site-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.7rem 1.5rem;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: var(--white);
    text-decoration: none;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.3s;
    margin-top: auto;
    box-shadow: 0 2px 8px rgba(45, 91, 255, 0.2);
    width: 100%;
}

.view-site-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(45, 91, 255, 0.3);
    color: var(--white);
}

.view-site-btn i {
    font-size: 0.85rem;
}

/* Load More Button */
.load-more-wrapper {
    text-align: center;
    margin-top: 3rem;
}

.btn-load-more {
    padding: 1rem 2.5rem;
    background: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: 10px;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    transition: all 0.3s;
    font-size: 1rem;
}

.btn-load-more:hover {
    background: var(--secondary-color);
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(45, 91, 255, 0.3);
}

.btn-load-more .remaining-count {
    font-size: 0.85rem;
    opacity: 0.9;
    font-weight: 500;
}

/* Work CTA Section */
.work-cta-section {
    padding: 5rem 0;
    background: linear-gradient(135deg, #0A1628 0%, #1E3A8A 100%);
    position: relative;
    overflow: hidden;
}

.work-cta-section::before {
    content: '';
    position: absolute;
    top: -100px;
    right: -100px;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(45, 91, 255, 0.2) 0%, transparent 70%);
    border-radius: 50%;
}

.work-cta-content {
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.work-cta-content h2 {
    font-size: 2.8rem;
    color: var(--white);
    font-weight: 800;
    margin-bottom: 1rem;
}

.work-cta-content p {
    font-size: 1.15rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2.5rem;
}

.work-cta-buttons {
    display: flex;
    justify-content: center;
    gap: 1.2rem;
    flex-wrap: wrap;
}

.btn-outline-white {
    background: transparent;
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: var(--white);
}

.btn-outline-white:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--white);
}

/* Responsive Design */
@media (max-width: 1200px) {
    .work-projects-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 1024px) {
    .work-hero-title {
        font-size: 3rem;
    }
    
    .filter-wrapper {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .filter-buttons {
        width: 100%;
        justify-content: flex-start;
    }
}

@media (max-width: 768px) {
    .work-hero {
        padding: 4rem 0 3rem;
    }
    
    .work-hero-title {
        font-size: 2.2rem;
    }
    
    .work-hero-description {
        font-size: 1rem;
    }
    
    .work-stats {
        gap: 2.5rem;
    }
    
    .work-stat-item h3 {
        font-size: 2rem;
    }
    
    .filter-wrapper {
        flex-direction: column;
        align-items: stretch;
        gap: 1.5rem;
    }
    
    .filter-left {
        text-align: center;
    }
    
    .filter-buttons {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 0.8rem;
        width: 100%;
    }
    
    .work-filter-btn {
        width: 100%;
        padding: 0.9rem 1rem;
        font-size: 0.85rem;
        text-align: center;
        justify-content: center;
        border-radius: 12px;
        font-weight: 700;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    }
    
    .work-filter-btn.active {
        box-shadow: 0 4px 12px rgba(45, 91, 255, 0.3);
        transform: scale(1.02);
    }
    
    .work-projects-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .work-project-image {
        height: 240px;
    }
    
    .work-cta-content h2 {
        font-size: 2.2rem;
    }
    
    .work-cta-buttons {
        flex-direction: column;
        align-items: stretch;
    }
    
    .work-cta-buttons .btn {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .work-hero {
        padding: 3rem 0 2rem;
    }
    
    .work-hero-title {
        font-size: 1.8rem;
        line-height: 1.3;
    }
    
    .work-hero-description {
        font-size: 0.95rem;
    }
    
    .work-stats {
        gap: 2rem;
    }
    
    .work-stat-item h3 {
        font-size: 1.8rem;
    }
    
    .work-stat-item p {
        font-size: 0.85rem;
    }
    
    .filter-left h2 {
        font-size: 1.5rem;
    }
    
    .filter-buttons {
        grid-template-columns: 1fr;
        gap: 0.7rem;
    }
    
    .work-filter-btn {
        padding: 1rem;
        font-size: 0.9rem;
        border-radius: 10px;
    }
    
    .work-project-image {
        height: 200px;
    }
    
    .work-project-info {
        padding: 1.5rem;
    }
    
    .work-project-info h3 {
        font-size: 1.2rem;
    }
    
    .work-project-info p {
        font-size: 0.9rem;
    }
    
    .work-cta-content h2 {
        font-size: 1.8rem;
    }
    
    .work-cta-content p {
        font-size: 1rem;
    }
    
    .btn-load-more {
        width: 100%;
        justify-content: center;
    }
}

/* Animation for cards on load */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.work-project-card {
    animation: fadeInUp 0.6s ease forwards;
    opacity: 0;
}

.work-project-card:nth-child(1) { animation-delay: 0.1s; }
.work-project-card:nth-child(2) { animation-delay: 0.2s; }
.work-project-card:nth-child(3) { animation-delay: 0.3s; }
.work-project-card:nth-child(4) { animation-delay: 0.4s; }
.work-project-card:nth-child(5) { animation-delay: 0.5s; }
.work-project-card:nth-child(6) { animation-delay: 0.6s; }
.work-project-card:nth-child(7) { animation-delay: 0.1s; }
.work-project-card:nth-child(8) { animation-delay: 0.2s; }
.work-project-card:nth-child(9) { animation-delay: 0.3s; }
