/*===================================================
    Completed Projects Page - Professional & Unique Styling
    Gapat Engineering Pvt. Ltd.
====================================================*/

:root {
    --primary-color: #089fac;
    --primary-hover: #07828d;
    --dark-navy: #141f2b;
    --card-dark: #1a2734;
    --heading-dark: #1e293b;
    --text-body: #475569;
    --border-light: #e2e8f0;
    --accent-gold: #ffaa17;
}

/* ===================================================
   1. Projects Hero Header - Luminous & Modern
=================================================== */
.projects-hero-header {
    position: relative;
    padding: 65px 0 60px;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 50%, #e8edf3 100%);
    border-bottom: 1px solid #e2e8f0;
    overflow: hidden;
    color: #1e293b;
    z-index: 1 !important;
}

.projects-hero-header::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(to right, rgba(8, 159, 172, 0.05) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(8, 159, 172, 0.05) 1px, transparent 1px);
    background-size: 36px 36px;
    pointer-events: none;
    z-index: 1;
}

.projects-hero-header .hero-watermark {
    position: absolute;
    inset: 0;
    background-image: url(../img/page-header.jpg);
    background-size: cover;
    background-position: center;
    opacity: 0.06;
    filter: grayscale(100%);
    z-index: 0;
}

.projects-hero-header .container {
    position: relative;
    z-index: 2;
}

/* Breadcrumb Capsule */
.projects-breadcrumb {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    padding: 7px 18px;
    border-radius: 30px;
    font-size: 13.5px;
    color: #64748b;
    margin-bottom: 18px;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.04);
}

.projects-breadcrumb a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: color 0.25s ease;
}

.projects-breadcrumb a:hover {
    color: #07828d;
}

.projects-breadcrumb i {
    font-size: 11px;
    color: #94a3b8;
}

.projects-breadcrumb span {
    color: #1e293b;
    font-weight: 600;
}

/* Tag Badge */
.projects-badge-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(8, 159, 172, 0.1);
    border: 1px solid rgba(8, 159, 172, 0.35);
    color: var(--primary-color);
    padding: 6px 16px;
    border-radius: 30px;
    font-size: 12.5px;
    font-weight: 700;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    margin-bottom: 14px;
}

.projects-badge-tag i {
    font-size: 15px;
    color: var(--accent-gold);
}

/* Title & Description */
.projects-hero-title {
    font-size: 33px;
    font-weight: 800;
    line-height: 1.25;
    color: #1e293b;
    margin-bottom: 14px;
    letter-spacing: -0.5px;
}

.projects-hero-title span {
    color: var(--primary-color);
}

.projects-hero-desc {
    font-size: 16px;
    line-height: 1.7;
    color: #475569;
    max-width: 780px;
    margin-bottom: 22px;
}

/* Feature Pills in Hero */
.projects-hero-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.projects-hero-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 13.5px;
    font-weight: 600;
    color: #1e293b;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.03);
    transition: all 0.25s ease;
}

.projects-hero-pill:hover {
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

.projects-hero-pill i {
    color: var(--primary-color);
    font-size: 16px;
}

/* ===================================================
   2. Key Milestones Stats Counter Strip
=================================================== */
.projects-stats-section {
    background: #ffffff;
    border-bottom: 1px solid #e2e8f0;
    padding: 30px 0;
    position: relative;
    z-index: 2;
}

.projects-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.project-stat-box {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 10px 15px;
    border-right: 1px solid #eef2f6;
}

.project-stat-box:last-child {
    border-right: none;
}

.project-stat-icon {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    background: rgba(8, 159, 172, 0.1);
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    flex-shrink: 0;
}

.project-stat-info h3 {
    font-size: 26px;
    font-weight: 800;
    color: #1e293b;
    margin: 0 0 2px;
    line-height: 1.1;
    font-family: var(--primary-font, "Space Grotesk", sans-serif);
}

.project-stat-info p {
    font-size: 13px;
    color: #64748b;
    margin: 0;
    font-weight: 500;
}

/* ===================================================
   3. Interactive Category Filter Navigation
=================================================== */
.projects-section-wrapper {
    padding: 65px 0 85px;
    background-color: #f8fafc;
}

.projects-section-header {
    text-align: center;
    margin-bottom: 35px;
}

.sub-heading-capsule {
    display: inline-block;
    background: rgba(8, 159, 172, 0.1);
    color: var(--primary-color);
    font-size: 12.5px;
    font-weight: 700;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    padding: 5px 16px;
    border-radius: 20px;
    margin-bottom: 12px;
}

.projects-section-header h2 {
    font-size: 32px;
    font-weight: 800;
    color: #1e293b;
    margin-bottom: 10px;
}

.accent-separator {
    width: 60px;
    height: 3px;
    background: var(--primary-color);
    margin: 0 auto 16px;
    border-radius: 2px;
}

.projects-section-header p {
    font-size: 15.5px;
    color: #64748b;
    max-width: 680px;
    margin: 0 auto;
    line-height: 1.6;
}

.projects-filter-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 45px;
}

.filter-btn {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    color: #475569;
    padding: 10px 22px;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 10px rgba(15, 23, 42, 0.02);
}

.filter-btn i {
    font-size: 16px;
    color: #64748b;
    transition: color 0.25s ease;
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: #ffffff;
    box-shadow: 0 8px 20px rgba(8, 159, 172, 0.25);
    transform: translateY(-2px);
}

.filter-btn:hover i,
.filter-btn.active i {
    color: #ffffff;
}

/* ===================================================
   4. Premium Project Cards (3 Columns)
=================================================== */
.projects-grid-wrap {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.project-card-premium {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.04);
    transition: all 0.35s ease;
    position: relative;
}

.project-card-premium:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 45px rgba(15, 23, 42, 0.1);
    border-color: var(--primary-color);
}

/* Image Showcase / Carousel */
.project-card-media {
    position: relative;
    height: 240px;
    overflow: hidden;
    background: #f1f5f9;
}

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

.project-card-premium:hover .project-card-media img {
    transform: scale(1.06);
}

/* Floating Location Badge */
.project-location-badge {
    position: absolute;
    top: 14px;
    left: 14px;
    background: rgba(20, 31, 43, 0.88);
    backdrop-filter: blur(6px);
    color: #ffffff;
    padding: 5px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    z-index: 3;
}

.project-location-badge i {
    color: var(--accent-gold);
    font-size: 14px;
}

/* Floating Category Pill */
.project-cat-pill {
    position: absolute;
    top: 14px;
    right: 14px;
    background: rgba(8, 159, 172, 0.92);
    backdrop-filter: blur(6px);
    color: #ffffff;
    padding: 5px 12px;
    border-radius: 6px;
    font-size: 11.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 3;
}

/* Multiple Images Badge */
.project-photos-count {
    position: absolute;
    bottom: 12px;
    right: 14px;
    background: rgba(15, 23, 42, 0.85);
    color: #ffffff;
    padding: 3px 9px;
    border-radius: 4px;
    font-size: 11.5px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    z-index: 3;
}

/* Carousel Control Styles for Cards with Multiple Images */
.project-card-media .carousel,
.project-card-media .carousel-inner,
.project-card-media .carousel-item {
    height: 100%;
}

.project-card-media .carousel-control-prev,
.project-card-media .carousel-control-next {
    width: 32px;
    height: 32px;
    background: rgba(15, 23, 42, 0.65);
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0;
    transition: opacity 0.25s ease;
}

.project-card-premium:hover .carousel-control-prev,
.project-card-premium:hover .carousel-control-next {
    opacity: 0.85;
}

.project-card-media .carousel-control-prev:hover,
.project-card-media .carousel-control-next:hover {
    opacity: 1;
    background: var(--primary-color);
}

.project-card-media .carousel-control-prev {
    left: 10px;
}

.project-card-media .carousel-control-next {
    right: 10px;
}

.project-card-media .carousel-control-prev-icon,
.project-card-media .carousel-control-next-icon {
    width: 14px;
    height: 14px;
}

/* Card Body */
.project-card-body {
    padding: 24px 22px 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.project-client-name {
    font-size: 12.5px;
    font-weight: 700;
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 0.6px;
    margin-bottom: 4px;
}

.project-card-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--heading-dark);
    margin-bottom: 14px;
    line-height: 1.3;
}

/* Key Engineering Metrics Strip (3 stats) */
.project-metrics-strip {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    background: #f8fafc;
    border: 1px solid #eef2f6;
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 16px;
}

.metric-strip-item {
    display: flex;
    flex-direction: column;
}

.metric-strip-label {
    font-size: 11.5px;
    color: #64748b;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    margin-bottom: 2px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.metric-strip-label i {
    color: var(--primary-color);
    font-size: 13px;
}

.metric-strip-value {
    font-size: 15px;
    font-weight: 700;
    color: #1e293b;
    font-family: var(--primary-font, "Space Grotesk", sans-serif);
}

/* Deliverables Checklist */
.project-scope-list {
    list-style: none;
    padding: 0;
    margin: 0 0 16px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.project-scope-list li {
    font-size: 13px;
    color: #334155;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
}

.project-scope-list li i {
    color: var(--primary-color);
    font-size: 14px;
    flex-shrink: 0;
}

/* Card Footer */
.project-card-footer {
    margin-top: auto;
    padding-top: 14px;
    border-top: 1px solid #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.project-inquire-link {
    font-size: 13.5px;
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: gap 0.25s ease;
}

.project-inquire-link:hover {
    color: var(--primary-hover);
    gap: 10px;
}

.project-handover-tag {
    font-size: 11.5px;
    font-weight: 600;
    color: #15803d;
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    padding: 3px 10px;
    border-radius: 20px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.project-handover-tag i {
    font-size: 12px;
}

/* ===================================================
   5. Execution Excellence Section (4 Pillars)
=================================================== */
.projects-standards-section {
    padding: 80px 0 85px;
    background: #ffffff;
    border-top: 1px solid #eef2f6;
    border-bottom: 1px solid #eef2f6;
}

.projects-standards-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-top: 40px;
}

.standard-card-box {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 28px 22px;
    transition: all 0.3s ease;
    height: 100%;
}

.standard-card-box:hover {
    background: #ffffff;
    border-color: var(--primary-color);
    box-shadow: 0 15px 35px rgba(8, 159, 172, 0.1);
    transform: translateY(-5px);
}

.standard-icon-circle {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    background: rgba(8, 159, 172, 0.1);
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    margin-bottom: 18px;
    transition: all 0.3s ease;
}

.standard-card-box:hover .standard-icon-circle {
    background: var(--primary-color);
    color: #ffffff;
}

.standard-card-box h4 {
    font-size: 17px;
    font-weight: 700;
    color: var(--heading-dark);
    margin-bottom: 8px;
}

.standard-card-box p {
    font-size: 13.5px;
    line-height: 1.6;
    color: var(--text-body);
    margin: 0;
}

/* ===================================================
   6. Full-Width Strategic Call-To-Action Banner
=================================================== */
.projects-bottom-cta {
    position: relative;
    padding: 70px 0;
    background: #141f2b;
    color: #ffffff;
    overflow: hidden;
}

.projects-bottom-cta::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(to right, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 35px 35px;
    pointer-events: none;
}

.projects-bottom-cta::after {
    content: "";
    position: absolute;
    top: -50%;
    right: -10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(8, 159, 172, 0.25) 0%, transparent 70%);
    pointer-events: none;
}

.projects-cta-wrap {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 30px;
}

.projects-cta-text h3 {
    font-size: 30px;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 10px;
    line-height: 1.3;
}

.projects-cta-text p {
    font-size: 16px;
    color: #cbd5e1;
    margin: 0;
    max-width: 680px;
}

.projects-cta-btns {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.btn-projects-primary {
    background: var(--primary-color);
    color: #ffffff;
    padding: 15px 28px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 10px 25px rgba(8, 159, 172, 0.35);
}

.btn-projects-primary:hover {
    background: #ffffff;
    color: #141f2b;
    transform: translateY(-2px);
}

.btn-projects-secondary {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: #ffffff;
    padding: 15px 26px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.btn-projects-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    color: var(--accent-gold);
    border-color: var(--accent-gold);
    transform: translateY(-2px);
}

/* ===================================================
   7. Responsive Breakpoints
=================================================== */
@media (max-width: 1199.98px) {
    .projects-grid-wrap {
        grid-template-columns: repeat(2, 1fr);
    }

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

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

    .project-stat-box:nth-child(2) {
        border-right: none;
    }
}

@media (max-width: 767.98px) {
    .projects-hero-title {
        font-size: 28px;
    }

    .projects-grid-wrap {
        grid-template-columns: 1fr;
    }

    .projects-standards-grid {
        grid-template-columns: 1fr;
    }

    .projects-stats-grid {
        grid-template-columns: 1fr;
    }

    .project-stat-box {
        border-right: none;
        border-bottom: 1px solid #eef2f6;
        padding-bottom: 15px;
    }

    .projects-cta-wrap {
        flex-direction: column;
        text-align: center;
    }

    .projects-cta-btns {
        justify-content: center;
        width: 100%;
    }

    .btn-projects-primary,
    .btn-projects-secondary {
        width: 100%;
        justify-content: center;
    }
}