/* ============================================
   PROJECTS PAGE STYLES
   ============================================ */

:root {
    --primary-blue: #1E65A5;
    --primary-red: #E02A2A;
    --light-gray: #f8f9fa;
    --dark-gray: #343a40;
    --text-light: #ffffff;
    --text-dark: #333333;
    --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    --box-shadow-hover: 0 30px 50px rgba(0, 0, 0, 0.15);
}

/* ============================================
   PROJECTS HERO SECTION WITH BACKGROUND IMAGE
   ============================================ */

.projects-hero {
    position: relative;
    height: 31.25em; /* 500px */
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--text-light);
    overflow: hidden;
}

/* Dark overlay for better text readability */
.projects-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 1;
}

/* Content */
.projects-hero-content {
    position: relative;
    z-index: 2;
    max-width: 50em;
    margin: 0 auto;
    padding: 0 1.25em;
}

/* Heading */
.projects-hero h1 {
    font-size: 4em;
    font-weight: 800;
    margin-bottom: 0.5em;
    text-shadow: 0.125em 0.125em 0.25em rgba(0, 0, 0, 0.3);
    animation: fadeInUp 1s ease;
    line-height: 1.4;
    letter-spacing: 0.001em;
    word-spacing: 0.02em;
    text-transform: uppercase;
}

/* Paragraph */
.projects-hero p {
    font-size: 1.2em;
    line-height: 1.6;
    opacity: 0.95;
    animation: fadeInUp 1s ease 0.3s both;
    letter-spacing: 0.001em;
    word-spacing: 0.02em;
    max-width: 40em;
    margin-left: auto;
    margin-right: auto;
}

/* Animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(1.875em);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

/* Tablet */
@media (max-width: 62em) { /* 992px */

    .projects-hero {
        height: 26em;
        background-attachment: scroll;
    }

    .projects-hero h1 {
        font-size: 3em;
    }

    .projects-hero p {
        font-size: 1.05em;
        max-width: 35em;
    }

}

/* Mobile */
@media (max-width: 48em) { /* 768px */

    .projects-hero {
        height: 22em;
        padding: 0 1em;
    }

    .projects-hero h1 {
        font-size: 2.2em;
    }

    .projects-hero p {
        font-size: 0.95em;
        max-width: 30em;
    }

}

/* Small Mobile */
@media (max-width: 30em) { /* 480px */

    .projects-hero {
        height: 20em;
    }

    .projects-hero h1 {
        font-size: 1.8em;
    }

    .projects-hero p {
        font-size: 0.9em;
        max-width: 26em;
    }

}

/* ============================================
   PROJECT FILTER TABS
   ============================================ */
.project-filter-section {
    padding: 50px 0 20px;
    background: white;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.filter-tabs {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

.filter-btn {
    padding: 12px 30px;
    background: transparent;
    border: 2px solid var(--primary-blue);
    color: var(--primary-blue);
    font-weight: 600;
    font-size: 1rem;
    border-radius: 50px;
    cursor: pointer;
    transition: var(--transition);
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--primary-blue);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(30, 101, 165, 0.3);
}

/* ============================================
   ONGOING PROJECTS SECTION
   ============================================ */
.ongoing-projects {
    padding: 40px 0 60px;
    background: white;
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header h2 {
    font-size: 2.8rem;
    color: var(--primary-blue);
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

.section-header h2:after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: var(--primary-red);
    border-radius: 2px;
}

.section-header .status-badge {
    display: inline-block;
    background: #ffc107;
    color: #000;
    padding: 5px 20px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    margin-top: 20px;
}

/* Ongoing Projects Grid */
.ongoing-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

/* Project Card */
.project-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    position: relative;
    border: 1px solid rgba(30, 101, 165, 0.1);
}

.project-card:hover {
    transform: translateY(-15px);
    box-shadow: var(--box-shadow-hover);
    border-color: var(--primary-red);
}

.project-image {
    position: relative;
    height: 280px;
    overflow: hidden;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1s ease;
}

.project-card:hover .project-image img {
    transform: scale(1.1);
}

.project-status {
    position: absolute;
    top: 20px;
    right: 20px;
    background: #ffc107;
    color: #000;
    padding: 8px 20px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
    z-index: 2;
    box-shadow: 0 5px 15px rgba(255, 193, 7, 0.3);
    display: flex;
    align-items: center;
    gap: 8px;
}

.project-status i {
    font-size: 0.8rem;
}

.project-status.ongoing {
    background: #ffc107;
}

.project-status.completed {
    background: #28a745;
    color: white;
}

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, transparent 0%, rgba(30, 101, 165, 0.9) 100%);
    opacity: 0;
    transition: var(--transition);
    display: flex;
    align-items: flex-end;
    padding: 25px;
}

.project-card:hover .project-overlay {
    opacity: 1;
}

.project-icon {
    position: absolute;
    top: 20px;
    left: 20px;
    width: 50px;
    height: 50px;
    background: var(--primary-red);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    z-index: 2;
    box-shadow: 0 10px 20px rgba(224, 42, 42, 0.3);
}

.project-content {
    padding: 25px;
    position: relative;
    z-index: 3;
    background: white;
}

.project-content h3 {
    font-size: 1.4rem;
    color: var(--primary-blue);
    margin-bottom: 10px;
    font-weight: 700;
}

.project-location {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--dark-gray);
    font-size: 0.95rem;
    margin-bottom: 15px;
}

.project-location i {
    color: var(--primary-red);
}

.project-progress {
    margin: 20px 0;
}

.progress-bar-container {
    height: 8px;
    background: #e9ecef;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 8px;
}

.progress-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-blue), var(--primary-red));
    border-radius: 10px;
    transition: width 1s ease;
    width: 0%;
}

.progress-text {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    color: var(--dark-gray);
}

.progress-text span:last-child {
    font-weight: 600;
    color: var(--primary-blue);
}

.project-meta {
    display: flex;
    gap: 20px;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #e9ecef;
}

.project-meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    color: var(--dark-gray);
}

.project-meta-item i {
    color: var(--primary-red);
}

/* ============================================
   COMPLETED PROJECTS SECTION
   ============================================ */
.completed-projects {
    padding: 60px 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    position: relative;
    overflow: hidden;
}

.completed-projects:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 30%, rgba(30, 101, 165, 0.05) 0%, transparent 30%),
        radial-gradient(circle at 80% 70%, rgba(224, 42, 42, 0.05) 0%, transparent 30%);
}

.completed-projects .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 2;
}

.completed-projects .section-header .status-badge {
    background: #28a745;
    color: white;
}

.completed-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 30px;
    position: relative;
    z-index: 2;
}

/* Last row with 2 cards - maintains grid structure */
.completed-grid:last-child {
    margin-bottom: 0;
}

.completed-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 1px solid rgba(30, 101, 165, 0.1);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.completed-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 25px rgba(224, 42, 42, 0.15);
    border-color: #E02A2A;
}

.completed-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.completed-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s ease;
}

.completed-card:hover .completed-image img {
    transform: scale(1.1);
}

.completed-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: #28a745;
    color: white;
    padding: 5px 15px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    gap: 5px;
    z-index: 2;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.completed-badge i {
    font-size: 0.7rem;
}

.completed-content {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.completed-content h3 {
    font-size: 1.2rem;
    color: #1E65A5;
    margin-bottom: 12px;
    font-weight: 700;
    line-height: 1.4;
    min-height: 50px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Client info styles */
.client-info {
    background: #f8f9fa;
    padding: 12px;
    border-radius: 10px;
    margin-bottom: 15px;
    border-left: 3px solid #E02A2A;
}

.client-info p {
    font-size: 0.9rem;
    margin-bottom: 5px;
    color: #4b5563;
    line-height: 1.4;
}

.client-info p:last-child {
    margin-bottom: 0;
}

.client-info strong {
    color: #1E65A5;
    font-weight: 600;
}

/* Project details styles */
.project-details {
    margin-top: auto;
    padding-top: 10px;
}

.project-details p {
    font-size: 0.9rem;
    margin-bottom: 6px;
    color: #6c757d;
    display: flex;
    align-items: center;
    gap: 8px;
}

.project-details p i {
    width: 16px;
    color: #E02A2A;
    font-size: 0.85rem;
}

.project-details p:last-child {
    margin-bottom: 0;
}

/* Completed footer styles */
.completed-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 15px;
    border-top: 1px solid #e9ecef;
    margin-top: auto;
}

.completed-date {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.85rem;
    color: #6c757d;
}

.completed-date i {
    color: #E02A2A;
    font-size: 0.8rem;
}

.completed-link {
    color: #1E65A5;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: all 0.3s ease;
}

.completed-link:hover {
    color: #E02A2A;
    gap: 10px;
}

/* Responsive Design */
@media (max-width: 992px) {
    .completed-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .completed-image {
        height: 180px;
    }
}

@media (max-width: 768px) {
    .completed-projects {
        padding: 40px 0;
    }
    
    .completed-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .completed-image {
        height: 200px;
    }
    
    .completed-content h3 {
        font-size: 1.1rem;
        min-height: auto;
    }
}

@media (max-width: 480px) {
    .completed-projects {
        padding: 30px 0;
    }
    
    .completed-image {
        height: 180px;
    }
    
    .completed-content {
        padding: 15px;
    }
    
    .client-info {
        padding: 10px;
    }
    
    .client-info p {
        font-size: 0.85rem;
    }
    
    .project-details p {
        font-size: 0.85rem;
    }
}

/* ============================================
   PROJECT STATS SECTION
   ============================================ */
.project-stats {
    padding: 60px 0;
    background: linear-gradient(135deg, var(--primary-blue), #0d4a7a);
    color: white;
    position: relative;
    overflow: hidden;
}

.project-stats:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 30%, rgba(255,255,255,0.1) 0%, transparent 30%),
        radial-gradient(circle at 80% 70%, rgba(224,42,42,0.2) 0%, transparent 30%);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    max-width: 1000px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.stat-item {
    text-align: center;
    padding: 30px 20px;
    background: var(--primary-red);
    border-radius: 15px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: var(--transition);
}

.stat-item:hover {
    transform: translateY(-10px);
    /* background: rgba(255, 255, 255, 0.15); */
    border-color: var(--primary-red);
}

.stat-number {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 10px;
    line-height: 1;
    background: lightgray;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    font-size: 1.1rem;
    font-weight: 500;
    opacity: 0.95;
     color: lightgrey;
}

/* ============================================
   TESTIMONIAL SECTION
   ============================================ */
.project-testimonials {
    padding: 80px 0;
    background: white;
}

.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    max-width: 1000px;
    margin: 40px auto 0;
}

.testimonial-card {
    background: linear-gradient(135deg, #f8f9fa, #ffffff);
    padding: 30px;
    border-radius: 20px;
    box-shadow: var(--box-shadow);
    border-left: 5px solid var(--primary-red);
    transition: var(--transition);
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--box-shadow-hover);
}

.testimonial-content {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--dark-gray);
    font-style: italic;
    margin-bottom: 20px;
    position: relative;
    padding-left: 30px;
}

.testimonial-content:before {
    content: '"';
    position: absolute;
    left: 0;
    top: -10px;
    font-size: 4rem;
    color: var(--primary-red);
    opacity: 0.2;
    font-family: Georgia, serif;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 15px;
}

.author-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid var(--primary-blue);
}

.author-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.author-info h4 {
    font-size: 1.1rem;
    color: var(--primary-blue);
    margin-bottom: 5px;
    font-weight: 700;
}

.author-info p {
    font-size: 0.9rem;
    color: var(--dark-gray);
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */
@media (max-width: 1200px) {
    .completed-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 992px) {
    .projects-hero h1 {
        font-size: 2.8rem;
    }
    
    .section-header h2 {
        font-size: 2.4rem;
    }
    
    .ongoing-grid {
        grid-template-columns: 1fr;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .testimonial-grid {
        grid-template-columns: 1fr;
        max-width: 600px;
    }
}

@media (max-width: 768px) {
    .projects-hero {
        padding: 70px 0;
    }
    
    .projects-hero h1 {
        font-size: 2.2rem;
    }
    
    .projects-hero p {
        font-size: 1rem;
    }
    
    .filter-btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    
    .section-header h2 {
        font-size: 2rem;
    }
    
    .completed-grid {
        grid-template-columns: 1fr;
        max-width: 500px;
        margin: 0 auto;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
    }
    
    .stat-item {
        padding: 20px;
    }
    
    .stat-number {
        font-size: 2.5rem;
    }
}

@media (max-width: 576px) {
    .projects-hero h1 {
        font-size: 1.8rem;
    }
    
    .filter-tabs {
        gap: 10px;
    }
    
    .filter-btn {
        padding: 8px 15px;
        font-size: 0.85rem;
    }
    
    .project-image {
        height: 220px;
    }
    
    .project-content h3 {
        font-size: 1.2rem;
    }
    
    .project-meta {
        flex-direction: column;
        gap: 10px;
    }
    
    .completed-image {
        height: 180px;
    }
    
    .testimonial-card {
        padding: 20px;
    }
}