/* ========================================
   PROJECTS PAGE STYLES - BSL PRO
   Matching design system from about-us page
   ======================================== */

/* ==============================================
   CONTAINER & LAYOUT
   ============================================== */

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}

/* ==============================================
   STATS SECTION
   ============================================== */

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2.5rem;
}

.stat-item {
    text-align: center;
    padding: 2.5rem 2rem;
    background: white;
    border-radius: 1.5rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.stat-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.15);
}

.stat-item:hover::before {
    transform: scaleX(1);
}

.stat-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, var(--secondary-color) 0%, #ffd54f 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    transition: all 0.4s ease;
}

.stat-item:hover .stat-icon {
    transform: scale(1.1) rotate(5deg);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.75rem;
    line-height: 1;
}



.stat-text {
    color: var(--text-light);
    font-size: 1rem;
    font-weight: 500;
}

/* ==============================================
   FILTER SECTION
   ============================================== */

.projects-filter {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 3rem;
}

.filter-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: white;
    color: var(--primary-color);
    border: 2px solid #e9ecef;
    padding: 0.875rem 1.75rem;
    border-radius: 3rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-weight: 600;
    font-size: 0.9375rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.filter-icon {
    font-size: 1.25rem;
    transition: transform 0.3s ease;
}

.filter-btn:hover {
    transform: translateY(-2px);
    border-color: var(--secondary-color);
    box-shadow: 0 4px 12px rgba(241, 196, 15, 0.2);
}

.filter-btn:hover .filter-icon {
    transform: scale(1.2);
}

.filter-btn.active {
    background: var(--gradient-primary);
    color: white;
    border-color: var(--primary-color);
    box-shadow: 0 4px 15px rgba(48, 70, 88, 0.3);
}

/* ==============================================
   PROJECTS GRID
   ============================================== */

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
    gap: 2.5rem;
}

.project-card {
    background: white;
    border-radius: 1.5rem;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 1;
    transform: translateY(0);
}

.project-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.project-image {
    position: relative;
    height: 260px;
    overflow: hidden;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.project-card:hover .project-image img {
    transform: scale(1.1);
}

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 1.25rem;
}

.project-category {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1.25rem;
    border-radius: 2rem;
    font-size: 0.8125rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: white;
    backdrop-filter: blur(10px);
}

.category-icon {
    font-size: 1.125rem;
}

.project-category.installation {
    background: linear-gradient(135deg, #34465a 0%, #4a6477 100%);
    color: #ffffff;
}

.project-category.maintenance {
    background: linear-gradient(135deg, #34465a 0%, #4a6477 100%);
}

.project-category.welding {
    background: linear-gradient(135deg, #34465a 0%, #4a6477 100%);
}

.project-category.electrical {
    background: linear-gradient(135deg, #34465a 0%, #4a6477 100%);
}

.project-country {
    padding: 0.625rem 1.25rem;
    background: rgba(48, 70, 88, 0.95);
    color: white;
    border-radius: 2rem;
    font-size: 0.8125rem;
    font-weight: 600;
    backdrop-filter: blur(10px);
}

.project-content {
    padding: 2rem;
}

.project-title {
    font-size: 1.375rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 1.25rem;
    line-height: 1.3;
}

.project-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: #f8f9fa;
    border-radius: 0.75rem;
    font-size: 0.875rem;
    color: var(--text-light);
    font-weight: 500;
}

.meta-icon {
    font-size: 1.125rem;
}

.project-description {
    color: var(--text-light);
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.625rem;
    margin-bottom: 1.75rem;
}

.tag {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    color: var(--primary-color);
    padding: 0.375rem 1rem;
    border-radius: 1.5rem;
    font-size: 0.8125rem;
    font-weight: 600;
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
}

.tag:hover {
    background: var(--secondary-color);
    border-color: var(--secondary-color);
    transform: translateY(-2px);
}

.project-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: white!important;
    padding: 0.875rem 1.75rem;
    border-radius: 0.75rem;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9375rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.project-btn.installation {
    background: linear-gradient(135deg, var(--primary-color) 0%, #1e3a4d 100%);
}

.project-btn.maintenance {
    background: linear-gradient(135deg, #27ae60 0%, #229954 100%);
}

.project-btn.welding {
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
}

.project-btn.electrical {
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
}

.project-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.btn-arrow {
    font-size: 1.25rem;
    transition: transform 0.3s ease;
}

.project-btn:hover .btn-arrow {
    transform: translateX(5px);
}

/* ==============================================
   CTA SECTION
   ============================================== */

.cta-content {
    text-align: center !important;
    max-width: 800px !important;
    margin: 0 auto !important;
    color: white !important;
}

.cta-title {
    font-family: 'Montserrat', sans-serif !important;
    font-size: 2.75rem !important;
    font-weight: 700 !important;
    color: white !important;
    margin-bottom: 1.5rem !important;
    line-height: 1.2 !important;
}

.cta-description {
    font-size: 1.1875rem !important;
    color: rgba(255, 255, 255, 0.95) !important;
    margin-bottom: 2.5rem !important;
    line-height: 1.6 !important;
}

.cta-actions {
    display: flex !important;
    gap: 1rem !important;
    justify-content: center !important;
    flex-wrap: wrap !important;
}

.cta-button {
    display: inline-flex !important;
    align-items: center !important;
    gap: 0.75rem !important;
    padding: 1.125rem 2.5rem !important;
    border-radius: 0.75rem !important;
    text-decoration: none !important;
    font-weight: 700 !important;
    font-size: 1.0625rem !important;
    text-align: center !important;
    justify-content: center !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.cta-button.primary {
    background: #ffff !important;
    color: #34465a !important;
    box-shadow: 0 10px 25px rgb(217 217 217 / 40%)!important;
    border: none !important;
}

.cta-button.primary:hover {
    transform: translateY(-3px) !important;
    box-shadow: 0 10px 25px rgb(217 217 217 / 40%) !important;
    background: #ffff !important;
}

.cta-button.secondary {
    background: transparent !important;
    color: white !important;
    border: 2px solid rgba(255, 255, 255, 0.3) !important;
}

.cta-button.secondary:hover {
    background: rgba(255, 255, 255, 0.1) !important;
    border-color: rgba(255, 255, 255, 0.5) !important;
    transform: translateY(-3px) !important;
}

.btn-arrow {
    font-size: 1.5rem !important;
    transition: transform 0.3s ease !important;
}

.cta-button:hover .btn-arrow {
    transform: translateX(5px) !important;
}

/* ==============================================
   ANIMATIONS
   ============================================== */

[data-animate] {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-animate].animated {
    opacity: 1;
    transform: translateY(0);
}

[data-animate-delay="100"] {
    transition-delay: 0.1s;
}

[data-animate-delay="200"] {
    transition-delay: 0.2s;
}

[data-animate-delay="300"] {
    transition-delay: 0.3s;
}

/* ==============================================
   RESPONSIVE DESIGN
   ============================================== */

@media (max-width: 1024px) {
    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .projects-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

    .stat-number {
        font-size: 1.5rem !important;
    }

    .stat-text {
        font-size: 0.75rem !important;
    }

    #stats_section {
        padding: 45px 0 !important;
    }

    .stat-icon {
        width: 60px;
        height: 60px;
    }

    .stat-icon svg {
        width: 30px;
        height: 30px;
    }

    .project-meta {
        flex-direction: column;
        gap: 0.75rem;
    }

    .projects-filter {
        flex-direction: column;
    }

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

    .cta-title {
        font-size: 2rem;
    }

    .project-image {
    height: 200px;
}
}

@media (max-width: 480px) {
    .project-content {
        padding: 1.5rem;
    }

    .project-title {
        font-size: 1.25rem;
    }

    .cta-section {
        padding-top: 75px !important;
        padding-bottom: 80px !important;
    }

    .cta-title {
        font-size: 1.5rem !important;
        margin-bottom: 1rem !important;
    }

    .cta-description {
        font-size: 0.9375rem !important;
        margin-bottom: 1.5rem !important;
    }

    .cta-button {
        padding: 1rem 2rem !important;
        font-size: 1rem !important;
    }

    .stat-number {
        font-size: 1.5rem !important;
    }

    .stat-text {
        font-size: 0.75rem !important;
    }

    #stats_section {
        padding: 45px 0 !important;
    }

    .stat-icon {
        width: 52px;
        height: 52px;
    }

    .stat-icon svg {
        width: 26px;
        height: 26px;
    }
}

/* ==============================================
   ACCESSIBILITY
   ============================================== */

@media (prefers-reduced-motion: reduce) {
    *, ::before, ::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
