﻿/* =============================================
   wwwroot/css/projects.css
   Projects Section Styles
   ============================================= */

/* ---------- Section ---------- */
.projects-section {
    background: linear-gradient(180deg, #ffffff 0%, #f8f9fc 100%);
    position: relative;
    overflow: hidden;
}

/* ---------- Header ---------- */
.section-header {
    position: relative;
}

.section-badge {
    display: inline-block;
    padding: 8px 22px;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.12), rgba(240, 147, 251, 0.12));
    color: #764ba2;
    border-radius: 25px;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.section-title {
    color: #1a1a3e;
    font-weight: 800;
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.section-subtitle {
    color: #6c757d;
    font-size: 1.05rem;
    max-width: 620px;
    margin: 0 auto;
    line-height: 1.6;
}

.golden-divider {
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #667eea, #764ba2, #f093fb);
    border-radius: 2px;
    margin-top: 1.5rem;
}

/* ---------- Filter Pills ---------- */
.filter-pills {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.filter-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.7rem 1.5rem;
    background: #ffffff;
    border: 2px solid #e9ecef;
    border-radius: 50px;
    color: #495057;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

    .filter-pill i {
        color: #667eea;
        transition: all 0.3s ease;
    }

    .filter-pill .count {
        background: rgba(102, 126, 234, 0.1);
        color: #667eea;
        padding: 2px 8px;
        border-radius: 12px;
        font-size: 0.75rem;
        font-weight: 700;
    }

    .filter-pill:hover {
        border-color: #667eea;
        transform: translateY(-2px);
        box-shadow: 0 8px 20px rgba(102, 126, 234, 0.15);
    }

    .filter-pill.active {
        background: linear-gradient(135deg, #667eea, #764ba2);
        color: #ffffff;
        border-color: transparent;
        box-shadow: 0 8px 20px rgba(102, 126, 234, 0.35);
    }

        .filter-pill.active i,
        .filter-pill.active .count {
            color: #ffffff;
            background: rgba(255, 255, 255, 0.2);
        }

/* ---------- Project Card ---------- */
.project-card {
    background: #ffffff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    height: 100%;
    display: flex;
    flex-direction: column;
    border: 1px solid #f0f0f5;
}

    .project-card:hover {
        transform: translateY(-8px);
        box-shadow: 0 20px 40px rgba(102, 126, 234, 0.15);
        border-color: rgba(102, 126, 234, 0.3);
    }

/* Image */
.project-image {
    position: relative;
    height: 240px;
    overflow: hidden;
    background: linear-gradient(135deg, #f8f9fc, #eef1f8);
}

    .project-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    }

.project-card:hover .project-image img {
    transform: scale(1.08);
}

/* Category Badge */
.project-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: #ffffff;
    z-index: 2;
}

    .project-badge.commercial {
        background: linear-gradient(135deg, #667eea, #764ba2);
    }

    .project-badge.residential {
        background: linear-gradient(135deg, #ff6b6b, #ff8a65);
    }

    .project-badge.industrial {
        background: linear-gradient(135deg, #25d366, #128c7e);
    }

/* Overlay */
.project-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.85), rgba(118, 75, 162, 0.85));
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.project-card:hover .project-overlay {
    opacity: 1;
}

.overlay-btn {
    width: 48px;
    height: 48px;
    background: #ffffff;
    border: none;
    border-radius: 50%;
    color: #667eea;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s ease;
    transform: scale(0);
}

.project-card:hover .overlay-btn {
    transform: scale(1);
}

    .project-card:hover .overlay-btn:nth-child(2) {
        transition-delay: 0.05s;
    }

.overlay-btn:hover {
    background: #1a1a3e;
    color: #ffffff;
    transform: scale(1.1) rotate(5deg);
}

/* Content */
.project-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.project-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.75rem;
    color: #6c757d;
    margin-bottom: 0.75rem;
}

    .project-meta span {
        display: inline-flex;
        align-items: center;
        gap: 0.35rem;
    }

    .project-meta i {
        color: #667eea;
        font-size: 0.7rem;
    }

.project-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: #1a1a3e;
    margin-bottom: 0.75rem;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.project-description {
    color: #6c757d;
    font-size: 0.85rem;
    line-height: 1.5;
    margin-bottom: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.project-specs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-bottom: 1.25rem;
}

.spec-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 4px 10px;
    background: rgba(102, 126, 234, 0.1);
    color: #667eea;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 600;
}

    .spec-chip.product {
        background: rgba(240, 147, 251, 0.1);
        color: #764ba2;
    }

    .spec-chip i {
        font-size: 0.65rem;
    }

.project-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.85rem;
    margin-top: auto;
    transition: all 0.3s ease;
}

    .project-link i {
        transition: transform 0.3s ease;
    }

    .project-link:hover {
        color: #764ba2;
    }

        .project-link:hover i {
            transform: translateX(5px);
        }

/* ---------- Modal ---------- */
.project-modal {
    border: none;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.3);
}

    .project-modal .modal-header {
        background: linear-gradient(135deg, #667eea, #764ba2);
        color: #ffffff;
        border: none;
        padding: 1.25rem 1.5rem;
    }

    .project-modal .modal-title {
        font-weight: 700;
        font-size: 1.15rem;
    }

    .project-modal .btn-close {
        filter: brightness(0) invert(1);
        opacity: 0.8;
    }

    .project-modal .modal-body {
        padding: 1.75rem;
    }

.info-box {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    padding: 0.85rem 1rem;
    background: #f8f9fc;
    border-radius: 12px;
    border-left: 3px solid #667eea;
}

    .info-box i {
        color: #667eea;
        font-size: 1.2rem;
    }

    .info-box small {
        color: #6c757d;
        font-size: 0.7rem;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        display: block;
    }

    .info-box strong {
        color: #1a1a3e;
        font-size: 0.9rem;
    }

.specs-container {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.project-modal .modal-footer {
    border: none;
    padding: 1rem 1.75rem 1.5rem;
    background: #fafbff;
}

/* ---------- Empty State ---------- */
.empty-state {
    padding: 4rem 1rem;
}

    .empty-state h4 {
        color: #1a1a3e;
    }

/* ---------- CTA ---------- */
.projects-cta {
    padding: 3rem 2rem;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.05), rgba(240, 147, 251, 0.05));
    border-radius: 20px;
    border: 1px solid rgba(102, 126, 234, 0.1);
}

    .projects-cta h4 {
        color: #1a1a3e;
        font-weight: 700;
        margin-bottom: 1rem;
    }

    .projects-cta .btn-primary {
        background: linear-gradient(135deg, #667eea, #764ba2);
        border: none;
        border-radius: 50px;
        padding: 0.9rem 2.5rem;
        font-weight: 600;
        transition: all 0.3s ease;
    }

        .projects-cta .btn-primary:hover {
            transform: translateY(-3px);
            box-shadow: 0 10px 30px rgba(102, 126, 234, 0.4);
        }

/* ---------- Filter Animation ---------- */
.project-item {
    animation: fadeIn 0.4s ease;
}

    .project-item.hidden {
        display: none;
    }

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ---------- Responsive ---------- */
@media (max-width: 991.98px) {
    .section-title {
        font-size: 2rem;
    }

    .section-subtitle {
        font-size: 1rem;
    }
}

@media (max-width: 768px) {
    .section-title {
        font-size: 1.75rem;
    }

    .filter-pill {
        padding: 0.55rem 1.1rem;
        font-size: 0.8rem;
    }

    .filter-pills {
        justify-content: flex-start;
        overflow-x: auto;
        flex-wrap: nowrap;
        padding-bottom: 0.5rem;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

        .filter-pills::-webkit-scrollbar {
            display: none;
        }

    .filter-pill {
        flex-shrink: 0;
    }

    .project-image {
        height: 200px;
    }

    .projects-cta {
        padding: 2rem 1.25rem;
    }
}

@media (max-width: 576px) {
    .project-meta {
        flex-direction: column;
        gap: 0.4rem;
    }

    .info-box {
        padding: 0.65rem 0.85rem;
    }
}
