.projects-hero {
    width: 100%;
    padding: 7rem 2rem 6rem;
    background: #ffffff;
}

.projects-hero-content {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.projects-eyebrow,
.section-label {
    display: inline-block;
    margin-bottom: 1.2rem;
    color: #6e07f3;
    font-family: "Eurostile", "EuroStyle", sans-serif;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.projects-hero h1 {
    margin: 0 auto 1.5rem;
    color: #141c3a;
    font-family: "Eurostile", "EuroStyle", sans-serif;
    font-size: clamp(3.2rem, 8vw, 6rem);
    font-weight: 700;
    line-height: 0.98;
    letter-spacing: -0.05em;
}

.projects-hero h1 span {
    color: #6e07f3;
}

.projects-hero-content > p {
    max-width: 680px;
    margin: 0 auto;
    color: #667085;
    font-family: "Manrope", sans-serif;
    font-size: 0.95rem;
    line-height: 1.8;
}

.projects-section {
    width: 100%;
    padding: 7rem 2rem;
    background: #f8f9fc;
}

.projects-container {
    max-width: 1150px;
    margin: 0 auto;
}

.projects-intro {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 3rem;
    margin-bottom: 3.5rem;
}

.projects-intro h2 {
    margin: 0;
    color: #141c3a;
    font-family: "Eurostile", "EuroStyle", sans-serif;
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    line-height: 1;
}

.projects-intro > p {
    max-width: 420px;
    margin: 0;
    color: #667085;
    font-family: "Manrope", sans-serif;
    font-size: 0.82rem;
    line-height: 1.8;
}

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

.project-card {
    position: relative;
    overflow: hidden;
    min-height: 560px;
    border-radius: 18px;
    background: #141c3a;
    isolation: isolate;
    box-shadow: 0 12px 35px rgba(20, 28, 58, 0.08);

    transition:
        transform 0.5s cubic-bezier(0.22, 1, 0.36, 1),
        box-shadow 0.5s ease;
}

.project-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 60px rgba(20, 28, 58, 0.18);
}

.project-image-wrapper {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.project-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    opacity: 0.78;
    transition:
        transform 0.8s cubic-bezier(0.22, 1, 0.36, 1),
        opacity 0.6s ease;
}

.project-card:hover .project-image {
    transform: scale(1.06);
    opacity: 0.58;
}

.project-image-wrapper::after {
    position: absolute;
    inset: 0;
    content: "";

    background:
        linear-gradient(
            to bottom,
            rgba(20, 28, 58, 0.08) 0%,
            rgba(20, 28, 58, 0.18) 30%,
            rgba(20, 28, 58, 0.94) 100%
        );
}

.project-number {
    position: absolute;
    top: 1.4rem;
    right: 1.5rem;
    z-index: 3;

    color: rgba(255, 255, 255, 0.65);

    font-family: "Eurostile", "EuroStyle", sans-serif;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.12em;
}

.project-content {
    position: relative;
    z-index: 4;

    display: flex;
    flex-direction: column;
    justify-content: flex-end;

    width: 100%;
    min-height: 560px;
    padding: 2rem;

    color: #ffffff;
}

.project-top {
    display: flex;
    align-items: center;
    justify-content: space-between;

    margin-bottom: auto;
}

.project-type {
    padding: 0.35rem 0.7rem;

    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 999px;

    color: rgba(255, 255, 255, 0.8);
    background: rgba(255, 255, 255, 0.08);

    font-family: "Manrope", sans-serif;
    font-size: 0.58rem;
    font-weight: 700;

    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.project-top > i {
    color: #5be9b9;
    font-size: 1rem;
}

.project-content h3 {
    margin: 0 0 0.8rem;

    color: #ffffff;

    font-family: "Eurostile", "EuroStyle", sans-serif;
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    line-height: 1;
    letter-spacing: -0.03em;
}

.project-content p {
    max-width: 480px;
    margin: 0;

    color: rgba(255, 255, 255, 0.72);

    font-family: "Manrope", sans-serif;
    font-size: 0.78rem;
    line-height: 1.8;
}


.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin-top: 1.2rem;
}

.project-tags span {
    padding: 0.35rem 0.65rem;

    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 999px;

    color: rgba(255, 255, 255, 0.72);
    background: rgba(255, 255, 255, 0.06);

    font-family: "Manrope", sans-serif;
    font-size: 0.58rem;
    font-weight: 600;

    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

.project-actions {
    display: flex;
    align-items: center;
    gap: 0.6rem;

    margin-top: 1.5rem;
}

.project-actions a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;

    min-height: 40px;
    padding: 0 0.95rem;

    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 999px;

    color: #ffffff;
    background: rgba(255, 255, 255, 0.08);

    font-family: "Manrope", sans-serif;
    font-size: 0.65rem;
    font-weight: 700;

    text-decoration: none;

    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);

    transition:
        transform 0.25s ease,
        background-color 0.25s ease,
        border-color 0.25s ease;
}

.project-actions a:hover {
    border-color: #6e07f3;
    background: #6e07f3;
    transform: translateY(-3px);
}

.project-actions .project-github {
    width: 40px;
    padding: 0;
}

.projects-cta {
    width: 100%;
    padding: 8rem 2rem;
    background: #ffffff;
    text-align: center;
}

.projects-cta-content {
    max-width: 800px;
    margin: 0 auto;
}

.projects-cta-content > span {
    display: block;
    margin-bottom: 1rem;

    color: #6e07f3;

    font-family: "Eurostile", "EuroStyle", sans-serif;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.15em;
}

.projects-cta h2 {
    margin: 0 0 1.2rem;

    color: #141c3a;

    font-family: "Eurostile", "EuroStyle", sans-serif;
    font-size: clamp(2.4rem, 6vw, 4rem);
    line-height: 1;
}

.projects-cta h2 em {
    color: #6e07f3;
    font-style: normal;
}

.projects-cta p {
    max-width: 600px;
    margin: 0 auto;

    color: #667085;

    font-family: "Manrope", sans-serif;
    font-size: 0.85rem;
    line-height: 1.8;
}


/* CTA Buttons */

.projects-cta-actions {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.7rem;

    margin-top: 2rem;
}

.projects-contact-button,
.projects-github-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;

    min-height: 44px;
    padding: 0 1.2rem;

    border-radius: 999px;

    font-family: "Manrope", sans-serif;
    font-size: 0.7rem;
    font-weight: 700;

    text-decoration: none;

    transition:
        transform 0.25s ease,
        background-color 0.25s ease,
        color 0.25s ease;
}

.projects-contact-button {
    color: #ffffff;
    background: #6e07f3;
}

.projects-contact-button:hover {
    background: #5b05ca;
    transform: translateY(-3px);
}

.projects-github-button {
    border: 1px solid rgba(20, 28, 58, 0.15);
    color: #141c3a;
    background: #ffffff;
}

.projects-github-button:hover {
    color: #ffffff;
    background: #141c3a;
    transform: translateY(-3px);
}


@media (max-width: 800px) {

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

    .projects-intro {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.2rem;
    }

}

@media (max-width: 600px) {

    .projects-hero {
        padding: 5rem 1.2rem 4rem;
    }

    .projects-section {
        padding: 5rem 1.2rem;
    }

    .project-card,
    .project-content {
        min-height: 500px;
    }

    .project-content {
        padding: 1.5rem;
    }

    .projects-cta {
        padding: 6rem 1.2rem;
    }

    .projects-cta-actions {
        flex-direction: column;
    }

    .projects-contact-button,
    .projects-github-button {
        width: 100%;
        max-width: 240px;
    }

}

@media (max-width: 420px) {

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

    .project-card,
    .project-content {
        min-height: 480px;
    }

}