/* ==========================================================
   PROJECTS PAGE
   ========================================================== */

.projects-hero {
    position: relative;
    overflow: hidden;
    padding: 125px 0 95px;
    background:
        radial-gradient(
            circle at 80% 20%,
            rgba(37, 99, 235, 0.28),
            transparent 35%
        ),
        radial-gradient(
            circle at 20% 70%,
            rgba(124, 58, 237, 0.18),
            transparent 35%
        ),
        #071426;
}

.projects-hero::before {
    content: "";
    position: absolute;
    width: 500px;
    height: 500px;
    right: -180px;
    top: -230px;
    border-radius: 50%;
    background: rgba(56, 189, 248, 0.08);
    filter: blur(5px);
}

.projects-hero-content {
    position: relative;
    max-width: 760px;
}

.projects-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 22px;
    color: #7dd3fc;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.13em;
    text-transform: uppercase;
}

.projects-eyebrow span {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #38bdf8;
    box-shadow: 0 0 15px rgba(56, 189, 248, 0.8);
}

.projects-hero h1 {
    max-width: 720px;
    margin: 0;
    color: #ffffff;
    font-family: var(--font-heading);
    font-size: clamp(2.7rem, 5vw, 4.7rem);
    font-weight: 700;
    line-height: 1.03;
    letter-spacing: -0.045em;
}

.projects-hero h1 span {
    display: block;
    background:
        linear-gradient(
            90deg,
            #38bdf8,
            #8b5cf6,
            #ec4899
        );
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.projects-hero p {
    max-width: 600px;
    margin: 25px 0 0;
    color: #a8b7cc;
    font-size: 0.98rem;
    line-height: 1.75;
}


/* ==========================================================
   SHOWCASE
   ========================================================== */

.projects-showcase {
    padding: 95px 0;
    background: #f8fafc;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 25px;
}

.project-card {
    overflow: hidden;
    border: 1px solid #e5eaf2;
    border-radius: 22px;
    background: #ffffff;
    box-shadow: 0 12px 35px rgba(15, 23, 42, 0.055);
    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease;
}

.project-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 22px 55px rgba(15, 23, 42, 0.1);
}

.project-card-featured {
    grid-column: span 2;
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
}

.project-card-image {
    position: relative;
    min-height: 280px;
    overflow: hidden;
    background: #0b1b33;
}

.project-card-featured .project-card-image {
    min-height: 390px;
}

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

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

.project-image-placeholder {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background:
        linear-gradient(
            135deg,
            #071426,
            #12336a,
            #34206b
        );
    color: #ffffff;
}

.project-image-placeholder i {
    position: relative;
    z-index: 2;
    margin-bottom: 10px;
    font-size: 2.7rem;
    color: #7dd3fc;
}

.project-image-placeholder span {
    position: relative;
    z-index: 2;
    font-family: var(--font-heading);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
}

.project-placeholder-glow {
    position: absolute;
    width: 250px;
    height: 250px;
    border-radius: 50%;
    background: #2563eb;
    opacity: 0.2;
    filter: blur(65px);
}

.project-featured-badge {
    position: absolute;
    top: 17px;
    left: 17px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 11px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 999px;
    background: rgba(7, 20, 38, 0.78);
    backdrop-filter: blur(10px);
    color: #ffffff;
    font-size: 0.64rem;
    font-weight: 700;
}

.project-featured-badge i {
    color: #fbbf24;
}

.project-card-body {
    display: flex;
    flex-direction: column;
    padding: 27px;
}

.project-card-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 15px;
}

.project-category {
    display: inline-flex;
    padding: 6px 9px;
    border-radius: 7px;
    background: #eff6ff;
    color: #2563eb;
    font-size: 0.61rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.project-external-link {
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #e2e8f0;
    border-radius: 9px;
    color: #64748b;
    text-decoration: none;
    transition: all 0.2s ease;
}

.project-external-link:hover {
    border-color: #bfdbfe;
    background: #eff6ff;
    color: #2563eb;
}

.project-card-body h2 {
    margin: 0 0 10px;
    color: #0f172a;
    font-family: var(--font-heading);
    font-size: 1.35rem;
    font-weight: 700;
    letter-spacing: -0.025em;
}

.project-card-body p {
    margin: 0;
    color: #64748b;
    font-size: 0.77rem;
    line-height: 1.7;
}

.project-technologies {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 20px;
}

.project-technologies span {
    padding: 6px 8px;
    border-radius: 6px;
    background: #f1f5f9;
    color: #475569;
    font-size: 0.59rem;
    font-weight: 700;
}

.project-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: auto;
    padding-top: 24px;
}

.project-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #64748b;
    text-decoration: none;
    font-size: 0.67rem;
    font-weight: 700;
    transition: color 0.2s ease;
}

.project-link:hover {
    color: #2563eb;
}

.project-link-primary {
    color: #2563eb;
}

.project-link-primary:hover {
    color: #1d4ed8;
}


/* ==========================================================
   EMPTY STATE
   ========================================================== */

.projects-empty {
    max-width: 650px;
    margin: 0 auto;
    padding: 75px 25px;
    text-align: center;
}

.projects-empty-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 20px;
    background: linear-gradient(
        135deg,
        #eff6ff,
        #f5f3ff
    );
    color: #2563eb;
    font-size: 1.5rem;
}

.projects-empty h2 {
    margin: 0;
    color: #0f172a;
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
}

.projects-empty p {
    max-width: 500px;
    margin: 12px auto 25px;
    color: #64748b;
    font-size: 0.8rem;
    line-height: 1.7;
}


/* ==========================================================
   CTA
   ========================================================== */

.projects-cta {
    padding: 0 0 95px;
    background: #f8fafc;
}

.projects-cta-card {
    position: relative;
    overflow: hidden;
    min-height: 350px;
    display: flex;
    align-items: center;
    border-radius: 28px;
    background:
        radial-gradient(
            circle at 80% 30%,
            rgba(56, 189, 248, 0.2),
            transparent 28%
        ),
        radial-gradient(
            circle at 15% 80%,
            rgba(139, 92, 246, 0.24),
            transparent 30%
        ),
        #071426;
}

.projects-cta-content {
    position: relative;
    z-index: 2;
    max-width: 650px;
    padding: 60px;
}

.projects-cta-content > span {
    display: block;
    margin-bottom: 13px;
    color: #7dd3fc;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.projects-cta-content h2 {
    margin: 0;
    color: #ffffff;
    font-family: var(--font-heading);
    font-size: clamp(2rem, 4vw, 3.3rem);
    font-weight: 700;
    line-height: 1.08;
}

.projects-cta-content h2 em {
    color: #38bdf8;
    font-style: normal;
}

.projects-cta-content p {
    max-width: 520px;
    margin: 18px 0 25px;
    color: #9fb0c7;
    font-size: 0.82rem;
    line-height: 1.7;
}

.projects-cta-glow {
    position: absolute;
    width: 300px;
    height: 300px;
    right: 8%;
    top: 20%;
    border-radius: 50%;
    background: #7c3aed;
    opacity: 0.16;
    filter: blur(70px);
}


/* ==========================================================
   RESPONSIVE
   ========================================================== */

@media (max-width: 991px) {

    .projects-hero {
        padding: 100px 0 75px;
    }

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

    .project-card-featured {
        grid-column: auto;
        display: block;
    }

    .project-card-featured .project-card-image {
        min-height: 300px;
    }

}

@media (max-width: 767px) {

    .projects-showcase {
        padding: 65px 0;
    }

    .projects-hero h1 {
        font-size: 2.7rem;
    }

    .project-card-image,
    .project-card-featured .project-card-image {
        min-height: 230px;
    }

    .project-card-body {
        padding: 21px;
    }

    .projects-cta-card {
        min-height: 300px;
        border-radius: 20px;
    }

    .projects-cta-content {
        padding: 38px 25px;
    }

}