﻿* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: #ffffff;
    font-family: Arial, Helvetica, sans-serif;
    color: #111111;
}

/* =========================
   PAGE WRAPPER
========================= */

.project-page {
    width: 100%;
    min-height: 100vh;
    background: linear-gradient(rgba(255,255,255,0.94), rgba(255,255,255,0.98)), url('../Images/industrial-texture.jpg');
    background-size: cover;
    background-position: center;
    position: relative;
    overflow: hidden;
}

    .project-page::before {
        content: "";
        position: absolute;
        inset: 0;
        background-image: linear-gradient(rgba(0,0,0,0.025) 1px, transparent 1px), linear-gradient(90deg, rgba(0,0,0,0.025) 1px, transparent 1px);
        background-size: 42px 42px;
        pointer-events: none;
    }

/* =========================
   HERO
========================= */

.projects-hero {
    position: relative;
    z-index: 2;
    padding: 105px 42px 55px;
}

.projects-hero-inner {
    max-width: 1180px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 0.75fr;
    gap: 60px;
    align-items: center;
}

.projects-label {
    color: #d2161a;
    font-size: 13px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 18px;
}

    .projects-label::after {
        content: "";
        display: block;
        width: 62px;
        height: 3px;
        background: #d2161a;
        border-radius: 999px;
        margin-top: 14px;
    }

.projects-hero-content h1 {
    font-size: 72px;
    line-height: 0.96;
    letter-spacing: -3px;
    font-weight: 900;
    margin-bottom: 28px;
}

    .projects-hero-content h1 span {
        color: #d2161a;
    }

.projects-intro {
    max-width: 540px;
    font-size: 16px;
    line-height: 1.75;
    color: #333333;
}

/* =========================
   HERO VISUAL
========================= */

.projects-hero-visual {
    position: relative;
    height: 300px;
    transition: transform 0.25s ease-out;
    will-change: transform;
}

.hero-circle {
    position: absolute;
    width: 270px;
    height: 270px;
    right: 10px;
    top: 10px;
    border-radius: 50%;
    border: 45px solid rgba(210,22,26,0.9);
}

    .hero-circle::before {
        content: "";
        position: absolute;
        inset: -72px;
        border-radius: 50%;
        border: 1px solid rgba(210,22,26,0.15);
    }

.hero-line-card {
    position: absolute;
    left: 0;
    bottom: 30px;
    width: 285px;
    background: rgba(255,255,255,0.9);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(230,230,230,0.9);
    border-left: 5px solid #d2161a;
    border-radius: 20px;
    padding: 22px 24px;
    box-shadow: 0 18px 38px rgba(0,0,0,0.10);
}

    .hero-line-card span {
        display: block;
        width: 54px;
        height: 3px;
        background: #d2161a;
        border-radius: 999px;
        margin-bottom: 16px;
    }

    .hero-line-card p {
        color: #777777;
        font-size: 11px;
        font-weight: 900;
        text-transform: uppercase;
        letter-spacing: 1px;
        margin-bottom: 7px;
    }

    .hero-line-card strong {
        color: #111111;
        font-size: 20px;
        font-weight: 900;
    }

/* =========================
   PROJECT PAGE STATS
========================= */

.project-stats {
    max-width: 1180px;
    margin: 0 auto 82px;
    padding: 0 42px;
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 26px;
}

    .project-stats .stat-box {
        background: rgba(255,255,255,0.94);
        border-radius: 22px;
        padding: 28px 30px;
        border: 1px solid rgba(230,230,230,0.95);
        box-shadow: 0 16px 36px rgba(0,0,0,0.08);
        display: flex;
        align-items: center;
        gap: 20px;
    }

.stat-icon {
    width: 58px;
    height: 58px;
    border-radius: 18px;
    background: #fff0f0;
    color: #d2161a;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    font-weight: 900;
    flex-shrink: 0;
}

    .stat-icon svg {
        width: 30px;
        height: 30px;
        stroke: #d2161a;
        stroke-width: 1.8;
        fill: none;
    }

.project-stats .stat-box h3 {
    color: #d2161a;
    font-size: 34px;
    font-weight: 900;
    margin-bottom: 4px;
    transition: transform 0.25s ease;
}

.project-stats .stat-box:hover h3 {
    transform: scale(1.05);
}

.project-stats .stat-box p {
    color: #333333;
    font-size: 14px;
}

/* =========================
   TIMELINE
========================= */

.project-timeline {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 42px 92px;
    position: relative;
    z-index: 2;
}

.timeline-header {
    text-align: center;
    margin-bottom: 72px;
}

    .timeline-header p {
        color: #d2161a;
        font-size: 13px;
        font-weight: 900;
        letter-spacing: 1.8px;
        text-transform: uppercase;
        margin-bottom: 12px;
    }

    .timeline-header h2 {
        color: #111111;
        font-size: 46px;
        font-weight: 900;
        margin-bottom: 16px;
    }

    .timeline-header span {
        display: block;
        width: 72px;
        height: 3px;
        background: #d2161a;
        border-radius: 999px;
        margin: 0 auto;
    }

/* =========================
   YEAR BLOCK
========================= */

.year-block {
    display: grid;
    grid-template-columns: 115px 1fr;
    gap: 34px;
    margin-bottom: 62px;
    position: relative;
}

.year-heading {
    position: sticky;
    top: 90px;
    align-self: start;
    padding-top: 8px;
    transition: transform 0.25s ease, opacity 0.25s ease;
}

    .year-heading h2 {
        color: #111111;
        font-size: 34px;
        font-weight: 900;
        margin-bottom: 12px;
    }

    .year-heading span {
        display: block;
        width: 44px;
        height: 3px;
        background: #d2161a;
        border-radius: 999px;
    }

    .year-heading::before {
        content: "";
        display: block;
        width: 34px;
        height: 34px;
        margin-bottom: 16px;
        border-radius: 12px;
        background: linear-gradient(135deg, #d2161a, #b90f13);
        box-shadow: 0 12px 24px rgba(210,22,26,0.22);
    }

    .year-heading::after {
        content: "";
        position: absolute;
        left: 17px;
        top: 62px;
        bottom: -560px;
        width: 1px;
        background: linear-gradient(rgba(210,22,26,0.22), transparent);
    }

    .year-heading.is-active-year {
        transform: translateX(6px);
    }

        .year-heading.is-active-year h2 {
            color: #d2161a;
        }

/* =========================
   PROJECT GRID
========================= */

.project-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
}

/* =========================
   PROJECT CARD
========================= */

.project-card {
    background: rgba(255,255,255,0.96);
    border: 1px solid rgba(230,230,230,0.95);
    border-radius: 22px;
    box-shadow: 0 12px 28px rgba(0,0,0,0.07);
    overflow: hidden;
    position: relative;
    will-change: opacity;
    transition: opacity 0.7s ease, box-shadow 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}

    .project-card::before {
        content: "";
        position: absolute;
        inset: 0 auto 0 0;
        width: 5px;
        background: #d2161a;
    }

    .project-card:hover,
    .project-card.is-hovered {
        transform: none;
        border-color: rgba(210,22,26,0.32);
        box-shadow: 0 20px 42px rgba(210,22,26,0.16);
        background: #ffffff;
    }

/* Hide old number panel but keep ASPX unchanged */
.project-icon-panel {
    display: none;
}

.project-content {
    padding: 26px 26px 24px;
}

.project-type {
    display: inline-flex;
    width: fit-content;
    color: #d2161a;
    background: #fff0f0;
    border-radius: 999px;
    padding: 7px 12px;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    margin-bottom: 16px;
}

.project-content h3 {
    color: #111111;
    font-size: 17px;
    line-height: 1.4;
    font-weight: 900;
    margin-bottom: 24px;
    text-transform: uppercase;
}

/* =========================
   PROJECT INFO
========================= */

.project-info {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
    border-top: 1px solid #eeeeee;
    padding-top: 18px;
}

    .project-info small {
        display: block;
        color: #888888;
        font-size: 10px;
        font-weight: 900;
        text-transform: uppercase;
        letter-spacing: 0.8px;
        margin-bottom: 7px;
    }

    .project-info strong {
        color: #111111;
        font-size: 13px;
        font-weight: 800;
        line-height: 1.35;
        display: block;
    }

    .project-info .red {
        color: #d2161a;
        font-weight: 900;
    }

/* =========================
   CTA
========================= */

.project-cta {
    max-width: 1180px;
    margin: 0 auto 90px;
    padding: 52px 48px;
    position: relative;
    z-index: 2;
    background: linear-gradient(135deg, #d2161a, #c90f14);
    border-radius: 34px;
    box-shadow: 0 18px 40px rgba(0,0,0,0.12);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 34px;
    overflow: hidden;
}

    .project-cta::before {
        content: "";
        position: absolute;
        width: 340px;
        height: 340px;
        background: rgba(255,255,255,0.06);
        border-radius: 50%;
        top: -140px;
        right: -80px;
        filter: blur(10px);
    }

.project-cta-content {
    position: relative;
    z-index: 2;
    text-align: center;
}

.project-cta h2 {
    color: #ffffff;
    font-size: 34px;
    line-height: 1.12;
    font-weight: 900;
    letter-spacing: -1.5px;
}

    .project-cta h2 span {
        color: #ffffff;
    }

.project-cta a {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 760px;
    background: #ffffff;
    color: #d2161a;
    text-decoration: none;
    padding: 18px 24px;
    border-radius: 999px;
    font-size: 15px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-align: center;
    transition: 0.25s ease;
}

    .project-cta a:hover {
        background: #111111;
        color: #ffffff;
        transform: translateY(-2px);
    }

/* =========================
   REVEAL ANIMATION
========================= */

.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.75s ease, transform 0.75s ease;
}

    .reveal.is-visible {
        opacity: 1;
        transform: translateY(0);
    }

/* =========================
   PROJECT CARD FADE ONLY
========================= */

.project-card-hidden {
    opacity: 0;
}

.project-card-visible {
    opacity: 1;
}

/* =========================
   RESPONSIVE
========================= */

@media (max-width: 1050px) {
    .projects-hero-inner {
        grid-template-columns: 1fr;
    }

    .projects-hero-visual {
        display: none;
    }

    .projects-hero-content h1 {
        font-size: 54px;
    }

    .project-stats {
        grid-template-columns: 1fr;
    }

    .year-block {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .year-heading {
        position: relative;
        top: 0;
    }

        .year-heading::after {
            display: none;
        }

    .project-grid {
        grid-template-columns: 1fr;
    }

    .project-cta {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .project-cta-icon {
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    .project-cta {
        margin-left: 18px;
        margin-right: 18px;
        padding: 42px 22px;
        border-radius: 24px;
        gap: 26px;
    }

        .project-cta h2 {
            font-size: 24px;
            line-height: 1.2;
        }

        .project-cta a {
            font-size: 14px;
            padding: 16px 18px;
        }
}

@media (max-width: 600px) {
    .projects-hero {
        padding: 86px 18px 44px;
    }

    .projects-hero-content h1 {
        font-size: 40px;
        letter-spacing: -1px;
    }

    .projects-intro {
        font-size: 14px;
    }

    .project-stats,
    .project-timeline {
        padding-left: 18px;
        padding-right: 18px;
    }

    .timeline-header h2 {
        font-size: 34px;
    }

    .project-info {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .project-content {
        padding: 24px 22px;
    }

        .project-content h3 {
            font-size: 15px;
        }

    .project-cta {
        margin-left: 18px;
        margin-right: 18px;
        padding: 36px 24px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .project-card-hidden,
    .project-card-visible,
    .reveal,
    .reveal.is-visible,
    .projects-hero-visual,
    .project-card {
        transition: none !important;
        transform: none !important;
        opacity: 1 !important;
    }
}

/* =========================
   FIX FOOTER ON PROJECTS PAGE
========================= */

.site-footer {
    margin-top: 0 !important;
    background: #ffffff !important;
}

.footer-stats {
    width: 100% !important;
    padding: 26px 6% !important;
    background: #f4f4f4 !important;
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 0 !important;
    border-top: 1px solid #dddddd !important;
    border-bottom: 1px solid #dddddd !important;
    box-shadow: none !important;
}

    .footer-stats .stat-box {
        background: transparent !important;
        border-radius: 0 !important;
        box-shadow: none !important;
        text-align: center !important;
        padding: 18px 20px !important;
        border-right: 1px solid #d8d8d8 !important;
        display: block !important;
    }

        .footer-stats .stat-box:last-child {
            border-right: none !important;
        }

        .footer-stats .stat-box h2 {
            color: #d71920 !important;
            font-size: 34px !important;
            line-height: 1 !important;
            font-weight: 900 !important;
            margin: 0 0 4px !important;
        }

        .footer-stats .stat-box p {
            color: #000000 !important;
            font-size: 15px !important;
            font-weight: 800 !important;
            margin: 0 !important;
        }

.footer-main {
    background: #ffffff !important;
}

.footer-bottom {
    background: #d71920 !important;
}

@media (max-width: 700px) {
    .footer-stats {
        grid-template-columns: 1fr !important;
    }

        .footer-stats .stat-box {
            border-right: none !important;
            border-bottom: 1px solid #d8d8d8 !important;
        }

            .footer-stats .stat-box:last-child {
                border-bottom: none !important;
            }
}
