/* ========================================
   PROJECTS LISTING PAGE STYLING
   For the projects/index.html page
   ======================================== */

.project-listing-section {
    padding: 80px 0;
    background: var(--bg-dark);
}

.project-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
    margin-bottom: 50px;
}

.filter-btn {
    padding: 14px 28px;
    font-size: 0.95rem;
    border-radius: 50px;
    border: 1px solid var(--gold-primary);
    background: transparent;
    color: var(--gold-primary);
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: var(--font-primary);
    font-weight: 600;
}

.filter-btn:hover {
    background: rgba(209, 160, 4, 0.1);
}

.filter-btn.active {
    background: linear-gradient(135deg, #d4af37 0%, #f2d06b 100%);
    color: var(--bg-dark);
    border-color: transparent;
    box-shadow: 0 4px 15px rgba(209, 160, 4, 0.4);
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.project-card {
    display: flex;
    flex-direction: column;
    background: var(--bg-card);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-card);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-decoration: none;
    position: relative;
    border: 1px solid rgba(209, 160, 4, 0.1);
}

.project-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(209, 160, 4, 0.2);
}

.project-card-image-wrapper {
    position: relative;
    width: 100%;
    height: 250px;
    overflow: hidden;
}

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

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

.project-category-badge {
    position: absolute;
    top: 20px;
    left: 20px;
    background: linear-gradient(135deg, var(--gold-primary) 0%, var(--gold-dark) 100%);
    color: var(--bg-dark);
    padding: 8px 18px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.project-card-content {
    padding: 30px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.project-card-content h3 {
    font-family: var(--font-secondary);
    font-size: 1.6rem;
    color: var(--text-primary);
    margin-bottom: 12px;
    line-height: 1.3;
}

.project-card-content p {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 20px;
    flex-grow: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3; /* Limit to 3 lines */
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.project-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-top: auto; /* Pushes meta to the bottom */
}

.project-meta span {
    display: flex;
    align-items: center;
    gap: 8px;
}

.project-meta i {
    color: var(--gold-primary);
    font-size: 1rem;
}


/* CTA Section for Projects Listing Page */
.cta-section {
    background: var(--bg-secondary);
    padding: 60px 0;
    text-align: center;
    margin-top: 60px;
    border-radius: 20px;
    box-shadow: var(--shadow-card);
    border: 1px solid rgba(209, 160, 4, 0.1);
}

.cta-section .cta-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

.cta-section h2 {
    font-family: var(--font-secondary);
    font-size: clamp(2rem, 4vw, 3rem);
    color: var(--text-primary);
    margin-bottom: 20px;
}

.cta-section p {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 30px;
}

.cta-section .cta-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 18px 40px;
    background: linear-gradient(135deg, var(--gold-primary) 0%, var(--gold-dark) 100%);
    color: var(--bg-dark);
    font-size: 1.1rem;
    font-weight: 700;
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(209, 160, 4, 0.3);
}

.cta-section .cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 50px rgba(209, 160, 4, 0.4);
}

.cta-section .cta-phone {
    margin-top: 25px;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-primary);
}

.cta-section .cta-phone i {
    color: var(--gold-primary);
    margin-right: 8px;
}

.cta-section .cta-phone span a {
    color: var(--text-primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.cta-section .cta-phone span a:hover {
    color: var(--gold-light);
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 1200px) {
    .project-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 25px;
    }
}

@media (max-width: 992px) {
    .project-listing-section {
        padding: 60px 0;
    }
    .project-filters {
        margin-bottom: 40px;
        gap: 10px;
    }
    .filter-btn {
        padding: 12px 22px;
        font-size: 0.9rem;
    }
    .project-grid {
        gap: 20px;
    }
    .project-card-image-wrapper {
        height: 220px;
    }
    .project-card-content {
        padding: 25px;
    }
    .project-card-content h3 {
        font-size: 1.4rem;
    }
    .project-card-content p {
        font-size: 0.95rem;
    }
    .project-meta {
        gap: 10px;
        font-size: 0.8rem;
    }
    .cta-section {
        padding: 50px 0;
        margin-top: 50px;
    }
    .cta-section h2 {
        font-size: 2.2rem;
    }
    .cta-section p {
        font-size: 1rem;
    }
    .cta-section .cta-button {
        padding: 16px 30px;
        font-size: 1rem;
    }
}

@media (max-width: 768px) {
    .project-grid {
        grid-template-columns: 1fr;
    }
    .project-card-image-wrapper {
        height: 200px;
    }
    .project-card-content h3 {
        font-size: 1.3rem;
    }
    .cta-section .cta-phone {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .project-filters {
        flex-direction: column;
        align-items: center;
    }
    .filter-btn {
        width: 90%;
        max-width: 250px;
    }
    .project-card-content h3 {
        font-size: 1.2rem;
    }
    .project-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
}
