
/* =====================================================
   GLOBAL
===================================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}


html {
    scroll-behavior: smooth;
}


body {

    font-family: "Poppins", sans-serif;

    background: #080b0a;

    color: #f5f5f5;

    overflow-x: hidden;

}



/* =====================================================
   ROOT VARIABLES
===================================================== */

:root {

    --bg-color: #080b0a;

    --secondary-bg: #151a14;

    --lemon: #d9ff00;

    --text-color: #f5f5f5;

    --muted-text: #a9aaa5;

    --border-color: rgba(255,255,255,0.1);

}



/* =====================================================
   PROJECT HEADER
===================================================== */

.project-header {

    width: 100%;

    padding: 25px 8%;

    display: flex;

    align-items: center;

    justify-content: space-between;

    border-bottom: 1px solid var(--border-color);

    background: rgba(8,11,10,0.95);

    position: relative;

    z-index: 100;

}


.logo {

    display: flex;

    align-items: center;

    gap: 10px;

    color: var(--text-color);

    text-decoration: none;

    font-size: 1.2rem;

    font-weight: 600;

}


.logo span {

    width: 42px;

    height: 32px;

    display: flex;

    align-items: center;

    justify-content: center;

    border: 2px solid var(--lemon);

    border-radius: 10px;

    color: var(--lemon);

    font-weight: 700;

}


.back-btn {

    display: inline-flex;

    align-items: center;

    gap: 8px;

    padding: 10px 18px;

    border: 1px solid var(--lemon);

    border-radius: 6px;

    color: var(--lemon);

    text-decoration: none;

    font-size: .9rem;

    transition: .3s ease;

}


.back-btn:hover {

    background: var(--lemon);

    color: #080b0a;

}



/* =====================================================
   HERO SECTION
===================================================== */

.projects-hero {

    min-height: 55vh;

    display: grid;

    grid-template-columns: 1.05fr .95fr;

    align-items: center;

    gap: 60px;

    padding: 80px 8%;

    background:
        linear-gradient(
            rgba(8,11,10,.95),
            rgba(8,11,10,.9)
        );

    position: relative;

    overflow: hidden;

}


.projects-hero::before {

    content: "";

    position: absolute;

    inset: 0;

    background-image:

        linear-gradient(
            rgba(255,255,255,.035) 1px,
            transparent 1px
        ),

        linear-gradient(
            90deg,
            rgba(255,255,255,.035) 1px,
            transparent 1px
        );

    background-size: 65px 65px;

    pointer-events: none;

}


.hero-content {

    max-width: 700px;

    position: relative;

    z-index: 1;

}


.section-tag {

    color: var(--lemon);

    font-size: .9rem;

    font-weight: 600;

    letter-spacing: 3px;

}


.hero-content h1 {

    margin-top: 15px;

    font-size: clamp(2.5rem, 6vw, 5rem);

    line-height: 1.1;

}


.hero-line {

    width: 80px;

    height: 3px;

    background: var(--lemon);

    margin: 25px 0;

}


.hero-content p {

    max-width: 650px;

    color: var(--muted-text);

    line-height: 1.8;

}



/* =====================================================
   HERO IMAGE
===================================================== */

.hero-image {

    width: 100%;

    max-width: 560px;

    height: 390px;

    position: relative;

    z-index: 1;

    overflow: hidden;

    border-radius: 16px;

    border: 1px solid var(--border-color);

    background: #10140f;

}


.hero-image img {

    width: 100%;

    height: 100%;

    object-fit: cover;

    display: block;

}



/* =====================================================
   PROJECT SECTIONS
===================================================== */

.projects-section {

    padding: 90px 8%;

}


.upcoming-section {

    background: var(--secondary-bg);

}


.section-heading {

    text-align: center;

    max-width: 700px;

    margin: 0 auto 55px;

}


.section-heading span {

    color: var(--lemon);

    font-size: .85rem;

    font-weight: 600;

    letter-spacing: 3px;

}


.section-heading h2 {

    font-size: 2.5rem;

    margin-top: 10px;

}


.heading-line {

    width: 60px;

    height: 3px;

    background: var(--lemon);

    margin: 18px auto;

}


.section-heading p {

    color: var(--muted-text);

    line-height: 1.7;

}



/* =====================================================
   PROJECT GRID
===================================================== */

.projects-grid {

    width: 100%;

    max-width: 1200px;

    margin: auto;

    display: grid;

    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap: 30px;

}



/* =====================================================
   PROJECT CARD
===================================================== */

.project-card {

    background: #10140f;

    border: 1px solid var(--border-color);

    border-radius: 14px;

    overflow: hidden;

    transition:
        transform .35s ease,
        border-color .35s ease;

    position: relative;

}


.project-card:hover {

    transform: translateY(-8px);

    border-color: var(--lemon);

}



/* =====================================================
   PROJECT IMAGE
===================================================== */

.project-image {

    width: 100%;

    height: 280px;

    position: relative;

    overflow: hidden;

    background: #0d100c;

}


.project-image img {

    width: 100%;

    height: 100%;

    object-fit: cover;

    display: block;

    transition: transform .5s ease;

}


.project-card:hover .project-image img {

    transform: scale(1.05);

}



/* =====================================================
   PROJECT STATUS
===================================================== */

.project-status {

    position: absolute;

    top: 15px;

    right: 15px;

    padding: 6px 12px;

    border-radius: 30px;

    font-size: .75rem;

    font-weight: 600;

    background: rgba(8,11,10,.9);

}


.project-status.upcoming {

    color: #fff;

    border: 1px solid rgba(255,255,255,.3);

}



/* =====================================================
   PROJECT CONTENT
===================================================== */

.project-content {

    padding: 28px;

}


.project-category {

    color: var(--lemon);

    font-size: .75rem;

    font-weight: 600;

    letter-spacing: 2px;

}


.project-content h3 {

    font-size: 1.5rem;

    margin: 8px 0 12px;

}


.project-content p {

    color: var(--muted-text);

    font-size: .9rem;

    line-height: 1.7;

    margin-bottom: 20px;

}



/* =====================================================
   TECHNOLOGIES
===================================================== */

.technologies {

    display: flex;

    flex-wrap: wrap;

    gap: 8px;

}


.technologies span {

    padding: 6px 10px;

    background: rgba(217,255,0,.06);

    border: 1px solid rgba(217,255,0,.2);

    border-radius: 4px;

    color: #dce0d6;

    font-size: .72rem;

}



/* =====================================================
   POP-IN ANIMATION ON SCROLL
===================================================== */

.pop-in {

    opacity: 0;

    transform: scale(.75);

    transition:
        opacity .6s ease,
        transform .6s cubic-bezier(.34,1.56,.64,1);

}


.pop-in.show {

    opacity: 1;

    transform: scale(1);

}



/* =====================================================
   FOOTER
===================================================== */

.project-footer {

    padding: 30px 8%;

    border-top: 1px solid var(--border-color);

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 20px;

}


.project-footer p {

    color: var(--muted-text);

    font-size: .8rem;

}


.project-footer a {

    color: var(--lemon);

    text-decoration: none;

    font-size: .85rem;

}



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

@media(max-width: 1000px) {

    .projects-hero {

        grid-template-columns: 1fr;

        text-align: center;

        gap: 40px;

    }


    .hero-content {

        max-width: 800px;

        margin: auto;

    }


    .hero-line {

        margin: 25px auto;

    }


    .hero-content p {

        margin: auto;

    }


    .hero-image {

        width: 100%;

        max-width: 650px;

        height: 360px;

        margin: auto;

    }

}


@media(max-width: 900px) {

    .projects-grid {

        grid-template-columns: 1fr;

        max-width: 650px;

    }


    .projects-hero {

        min-height: 45vh;

    }

}


@media(max-width: 600px) {

    .project-header {

        padding: 18px 5%;

    }


    .logo {

        font-size: 1rem;

    }


    .logo span {

        width: 38px;

        height: 30px;

    }


    .back-btn {

        padding: 8px 12px;

        font-size: .75rem;

    }


    .projects-hero {

        padding: 70px 5%;

    }


    .hero-content h1 {

        font-size: 2.4rem;

    }


    .hero-content p {

        font-size: .85rem;

    }


    .hero-image {

        height: 250px;

    }


    .projects-section {

        padding: 70px 5%;

    }


    .section-heading h2 {

        font-size: 2rem;

    }


    .project-image {

        height: 220px;

    }


    .project-content {

        padding: 22px;

    }


    .project-footer {

        flex-direction: column;

        text-align: center;

    }

}

