/* ==========================================================================
   MMD RUSSIA STEEL – PROJECTS PAGE STYLES (css/projects.css)
   Alternating showcase layout, filterable cards grid, and pagination
   ========================================================================== */

/* ─── PROJECTS HERO SECTION ─────────────────────────────────────── */
.projects-hero {
    position: relative;
    background: linear-gradient(135deg, #070d18 0%, #0f1c33 60%, #172a4a 100%);
    padding: 75px 0 65px;
    color: #ffffff;
    overflow: hidden;
}

.projects-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 80% 20%, rgba(0, 91, 181, 0.18) 0%, transparent 40%),
        radial-gradient(circle at 20% 80%, rgba(14, 165, 233, 0.12) 0%, transparent 40%);
    pointer-events: none;
}

.projects-hero-content {
    position: relative;
    z-index: 2;
    max-width: 850px;
}

.projects-breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #38bdf8;
    margin-bottom: 16px;
}

.projects-breadcrumb a {
    color: #94a3b8;
    text-decoration: none;
    transition: color 0.2s ease;
}

.projects-breadcrumb a:hover {
    color: #ffffff;
}

.projects-title-wrapper {
    position: relative;
    display: block;
    margin-bottom: 20px;
}

.projects-title-frame-box {
    display: none;
}

.projects-main-title {
    position: relative;
    z-index: 2;
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(2.8rem, 5vw, 4.2rem);
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #ffffff;
    line-height: 1.05;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.projects-hero-desc {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #cbd5e1;
    margin-bottom: 30px;
}


/* ─── ALTERNATING FEATURED SHOWCASE (Inspired by Reference Image) ── */
.featured-projects-section {
    padding: 90px 0;
    background-color: #ffffff;
}

.featured-project-row {
    display: grid;
    grid-template-columns: 1fr 1.15fr;
    gap: 60px;
    align-items: center;
    margin-bottom: 100px;
    position: relative;
}

.featured-project-row:last-child {
    margin-bottom: 0;
}

/* Reverse layout for alternating zig-zag look */
.featured-project-row.reverse {
    grid-template-columns: 1.15fr 1fr;
}

.featured-project-row.reverse .featured-project-info {
    order: 2;
}

.featured-project-row.reverse .featured-project-visual {
    order: 1;
}

/* Text Content Column */
.featured-project-info {
    position: relative;
}

.featured-project-title-box {
    position: relative;
    margin-bottom: 24px;
}

.featured-title-frame {
    position: absolute;
    bottom: -15px;
    left: -15px;
    width: 90px;
    height: 90px;
    border: 3px solid rgba(217, 119, 6, 0.5);
    border-radius: 4px;
    pointer-events: none;
    z-index: 1;
}

.featured-project-title {
    position: relative;
    z-index: 2;
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(2rem, 3.2vw, 3rem);
    font-weight: 800;
    text-transform: uppercase;
    color: #005bb5;
    line-height: 1.15;
    letter-spacing: 0.03em;
}

.featured-project-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 20px;
}

.meta-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.82rem;
    font-weight: 700;
    padding: 6px 14px;
    border-radius: 999px;
    background: #e6f0fa;
    color: #005bb5;
}

.meta-chip.gold {
    background: #fffbe6;
    color: #b45309;
    border: 1px solid #fef3c7;
}

.featured-project-desc {
    font-size: 1.02rem;
    line-height: 1.8;
    color: #475569;
    margin-bottom: 24px;
}

.featured-project-specs {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    padding: 20px;
    background: #f8fafc;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
}

.spec-item {
    display: flex;
    flex-direction: column;
}

.spec-value {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.3rem;
    font-weight: 800;
    color: #0f172a;
}

.spec-label {
    font-size: 0.78rem;
    font-weight: 600;
    color: #64748b;
    text-transform: uppercase;
}

/* Image Visual Column */
.featured-project-visual {
    position: relative;
}

.project-img-frame {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 
        0 20px 40px -10px rgba(0, 0, 0, 0.15),
        0 0 0 1px rgba(0, 0, 0, 0.05);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.project-img-frame:hover {
    transform: translateY(-5px);
    box-shadow: 
        0 30px 60px -15px rgba(0, 91, 181, 0.25),
        0 0 0 1px rgba(0, 91, 181, 0.2);
}

.project-img-frame img {
    width: 100%;
    height: 380px;
    object-fit: cover;
    display: block;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.project-img-frame:hover img {
    transform: scale(1.04);
}

.project-img-overlay-tag {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(7, 13, 24, 0.82);
    backdrop-filter: blur(8px);
    color: #ffffff;
    font-size: 0.8rem;
    font-weight: 700;
    padding: 6px 16px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    gap: 8px;
}


/* ─── ALL PROJECTS GRID & FILTER TABS (Inspired by 3-Col Card Grid) ─ */
.all-projects-section {
    padding: 90px 0;
    background-color: #f8fafc;
    border-top: 1px solid #e2e8f0;
}

/* Category Filter Controls */
.project-filters {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 45px;
}

.filter-btn {
    font-family: var(--font-main);
    font-size: 0.88rem;
    font-weight: 700;
    padding: 10px 22px;
    border-radius: 999px;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    color: #475569;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.filter-btn:hover {
    border-color: #005bb5;
    color: #005bb5;
    background: #e6f0fa;
}

.filter-btn.active {
    background: #005bb5;
    border-color: #005bb5;
    color: #ffffff;
    box-shadow: 0 4px 14px rgba(0, 91, 181, 0.3);
}

/* 3-Column Card Grid (Directly matching Reference Image structure) */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 50px;
}

.project-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 32px 28px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    position: relative;
}

.project-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 36px rgba(0, 91, 181, 0.12);
    border-color: #005bb5;
}

.project-card-badge {
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #005bb5;
    background: #e6f0fa;
    padding: 4px 12px;
    border-radius: 6px;
    align-self: flex-start;
    margin-bottom: 16px;
}

.project-card-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.35rem;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.3;
    margin-bottom: 14px;
}

.project-card-desc {
    font-size: 0.94rem;
    line-height: 1.75;
    color: #475569;
    flex: 1;
    margin-bottom: 20px;
}

.project-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 16px;
    border-top: 1px solid #f1f5f9;
    font-size: 0.85rem;
    color: #64748b;
    font-weight: 600;
}

.project-card-footer i {
    color: #005bb5;
    margin-right: 6px;
}

/* Pagination Control (Matching Reference Site `1 2 >`) */
.pagination-wrapper {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 8px;
    margin-top: 20px;
}

.page-btn {
    width: 38px;
    height: 38px;
    border-radius: 6px;
    border: 1px solid #cbd5e1;
    background: #ffffff;
    color: #005bb5;
    font-family: var(--font-main);
    font-size: 0.9rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.page-btn:hover {
    background: #e6f0fa;
    border-color: #005bb5;
}

.page-btn.active {
    background: #005bb5;
    border-color: #005bb5;
    color: #ffffff;
}

.page-btn.disabled {
    opacity: 0.4;
    cursor: not-allowed;
}


/* ─── RESPONSIVE BREAKPOINTS ────────────────────────────────────── */
@media (max-width: 1024px) {
    .featured-project-row,
    .featured-project-row.reverse {
        grid-template-columns: 1fr;
        gap: 35px;
        margin-bottom: 70px;
    }

    .featured-project-row.reverse .featured-project-info {
        order: 1;
    }

    .featured-project-row.reverse .featured-project-visual {
        order: 2;
    }

    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .projects-hero {
        padding: 50px 0;
    }

    .projects-main-title {
        font-size: 2.5rem;
    }

    .projects-grid {
        grid-template-columns: 1fr;
    }

    .featured-project-specs {
        grid-template-columns: 1fr;
    }

    .pagination-wrapper {
        justify-content: center;
    }
}
