/* =========================================
   NAMEER HUSSAIN PORTFOLIO
   PROJECTS PAGE
========================================= */

:root {
    --bg: #0a0a0a;
    --bg-secondary: #111111;
    --card: #121212;
    --card-hover: #171717;

    --text: #f5f5f5;
    --text-secondary: #969696;

    --accent: #4f7cff;
    --accent-hover: #6d94ff;

    --border: #262626;

    --heading-font: "Space Grotesk", sans-serif;
    --body-font: "Inter", sans-serif;
    --mono-font: "JetBrains Mono", monospace;
}


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

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

html {
    scroll-behavior: smooth;
}

body {
    background: var(--bg);
    color: var(--text);

    font-family: var(--body-font);

    line-height: 1.6;

    overflow-x: hidden;
}

a {
    color: inherit;
    text-decoration: none;
}

ul {
    list-style: none;
}

button {
    font: inherit;
}

.container {
    width: min(1180px, 90%);
    margin: 0 auto;
}

h1,
h2,
h3 {
    font-family: var(--heading-font);
}

.eyebrow {
    color: var(--accent);

    font-family: var(--mono-font);

    font-size: 0.75rem;
    font-weight: 600;

    letter-spacing: 2px;

    text-transform: uppercase;
}


/* =========================================
   SCROLL REVEAL
========================================= */

.reveal {
    opacity: 0;

    transform: translateY(35px);

    transition:
        opacity 0.8s ease,
        transform 0.8s ease;
}

.reveal.active {
    opacity: 1;

    transform: translateY(0);
}


/* =========================================
   NAVBAR
========================================= */

.header {
    position: fixed;

    top: 0;
    left: 0;

    width: 100%;

    z-index: 1000;

    background: rgba(10, 10, 10, 0.82);

    backdrop-filter: blur(18px);

    border-bottom: 1px solid transparent;

    transition: 0.3s ease;
}

.header.scrolled {
    border-color: var(--border);
}

.navbar {
    height: 78px;

    display: flex;

    align-items: center;
    justify-content: space-between;
}

.logo {
    font-family: var(--heading-font);

    font-size: 1.35rem;
    font-weight: 700;

    letter-spacing: -1px;
}

.logo span {
    color: var(--accent);
}


/* NAV LINKS */

.nav-links {
    display: flex;

    gap: 36px;
}

.nav-links a {
    position: relative;

    color: var(--text-secondary);

    font-size: 0.87rem;

    transition: 0.3s ease;
}

.nav-links a::after {
    content: "";

    position: absolute;

    left: 0;
    bottom: -8px;

    width: 0;
    height: 2px;

    background: var(--accent);

    transition: width 0.3s ease;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--text);
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}


/* SOCIALS */

.nav-socials {
    display: flex;

    align-items: center;

    gap: 18px;
}

.nav-socials a {
    color: var(--text-secondary);

    transition: 0.3s ease;
}

.nav-socials a:hover {
    color: var(--accent);

    transform: translateY(-2px);
}


/* MOBILE BUTTON */

.menu-btn {
    display: none;

    border: none;

    background: transparent;

    color: var(--text);

    font-size: 1.35rem;

    cursor: pointer;
}


/* =========================================
   PROJECT HERO
========================================= */

.projects-hero {
    padding:
        180px
        0
        70px;

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

.projects-hero-top {
    display: grid;

    grid-template-columns:
        1.3fr
        0.7fr;

    align-items: flex-end;

    gap: 80px;
}

.projects-hero h1 {
    margin-top: 15px;

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

    line-height: 0.85;

    letter-spacing: -8px;
}

.projects-hero h1 span {
    color: var(--accent);
}

.projects-hero-description {
    max-width: 500px;

    padding-bottom: 12px;

    color: var(--text-secondary);

    font-size: 0.95rem;

    line-height: 1.9;
}


/* PROJECT COUNT */

.project-count {
    display: flex;

    align-items: center;

    gap: 18px;

    margin-top: 70px;

    color: var(--text-secondary);

    font-family: var(--mono-font);

    font-size: 0.68rem;
}

.project-count .line {
    flex: 1;

    height: 1px;

    background: var(--border);
}


/* =========================================
   PROJECT FILTERS
========================================= */

.projects-filter-section {
    position: sticky;

    top: 78px;

    z-index: 100;

    padding: 30px 0;

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

    backdrop-filter: blur(18px);

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

.project-filters {
    display: flex;

    align-items: center;

    flex-wrap: wrap;

    gap: 12px;
}

.filter-btn {
    padding: 10px 16px;

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

    background: transparent;

    color: var(--text-secondary);

    font-family: var(--mono-font);

    font-size: 0.68rem;

    cursor: pointer;

    transition: 0.3s ease;
}

.filter-btn:hover {
    color: var(--text);

    border-color: #555;
}

.filter-btn.active {
    background: var(--accent);

    border-color: var(--accent);

    color: white;
}


/* =========================================
   PROJECTS CONTAINER
========================================= */

.all-projects {
    padding:
        80px
        0
        120px;
}

.portfolio-grid {
    display: grid;

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

    gap:
        80px
        28px;
}


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

.portfolio-card {
    transition:
        opacity 0.4s ease,
        transform 0.4s ease;
}

.portfolio-card.hide {
    display: none;
}


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

.portfolio-image {
    position: relative;

    min-height: 390px;

    display: flex;

    justify-content: center;
    align-items: center;

    overflow: hidden;

    background:
        radial-gradient(
            circle at center,
            rgba(79, 124, 255, 0.07),
            transparent 42%
        ),
        linear-gradient(
            135deg,
            #111,
            #151515
        );

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


/* CIRCLE EFFECT */

.portfolio-image::before {
    content: "";

    position: absolute;

    width: 280px;
    height: 280px;

    border-radius: 50%;

    border:
        1px solid
        rgba(79, 124, 255, 0.08);

    transform: scale(0.9);

    transition: 0.5s ease;
}

.portfolio-card:hover
.portfolio-image::before {
    transform: scale(1.2);
}


/* PROJECT NUMBER */

.portfolio-number {
    position: absolute;

    top: 25px;
    left: 27px;

    z-index: 3;

    color: var(--text-secondary);

    font-family: var(--mono-font);

    font-size: 0.7rem;
}


/* PROJECT ICON */

.portfolio-icon {
    position: relative;

    z-index: 2;

    color: var(--accent);

    font-size: 4rem;

    transition:
        transform 0.45s ease;
}

.portfolio-card:hover
.portfolio-icon {
    transform: scale(1.12);
}


/* =========================================
   IMAGE HOVER OVERLAY
========================================= */

.portfolio-image-overlay {
    position: absolute;

    inset: 0;

    z-index: 5;

    display: flex;

    align-items: flex-end;
    justify-content: flex-end;

    padding: 25px;

    background:
        linear-gradient(
            to top,
            rgba(0, 0, 0, 0.45),
            transparent 40%
        );

    opacity: 0;

    transition: opacity 0.35s ease;
}

.portfolio-card:hover
.portfolio-image-overlay {
    opacity: 1;
}

.project-circle-btn {
    width: 48px;
    height: 48px;

    display: flex;

    align-items: center;
    justify-content: center;

    background: var(--accent);

    color: white;

    font-size: 0.8rem;

    transform: translateY(10px);

    transition: 0.35s ease;
}

.portfolio-card:hover
.project-circle-btn {
    transform: translateY(0);
}

.project-circle-btn:hover {
    background: white;

    color: #111;
}


/* =========================================
   REAL PROJECT SCREENSHOTS
========================================= */

.actual-project-image img {
    position: absolute;

    inset: 0;

    width: 100%;
    height: 100%;

    object-fit: cover;

    transition:
        transform 0.55s ease;
}

.actual-project-image::after {
    content: "";

    position: absolute;

    inset: 0;

    background:
        linear-gradient(
            to bottom,
            transparent 55%,
            rgba(0, 0, 0, 0.35)
        );

    pointer-events: none;
}

.portfolio-card:hover
.actual-project-image img {
    transform: scale(1.04);
}


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

.portfolio-content {
    padding-top: 23px;
}

.portfolio-title-row {
    display: flex;

    align-items: center;
    justify-content: space-between;

    gap: 20px;
}

.portfolio-title-row h2 {
    font-size: 1.45rem;

    letter-spacing: -0.7px;
}

.portfolio-title-row > span {
    color: var(--accent);

    font-family: var(--mono-font);

    font-size: 0.6rem;

    white-space: nowrap;
}

.portfolio-content > p {
    max-width: 580px;

    margin-top: 14px;

    color: var(--text-secondary);

    font-size: 0.87rem;

    line-height: 1.8;
}


/* =========================================
   TAGS
========================================= */

.tags {
    display: flex;

    flex-wrap: wrap;

    gap: 8px;
}

.tags span {
    padding: 6px 10px;

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

    color: var(--text-secondary);

    font-family: var(--mono-font);

    font-size: 0.63rem;

    transition: 0.3s ease;
}

.tags span:hover {
    border-color:
        rgba(79, 124, 255, 0.5);

    color: var(--text);
}


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

.portfolio-footer {
    display: flex;

    align-items: center;
    justify-content: space-between;

    gap: 20px;

    margin-top: 21px;
}

.project-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 9px;
}

.project-action-btn {
    min-height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 9px 12px;
    border: 1px solid var(--border);
    color: var(--text-secondary);
    font-family: var(--mono-font);
    font-size: 0.64rem;
    font-weight: 600;
    white-space: nowrap;
    transition: 0.3s ease;
}

.project-action-btn:hover {
    color: white;
    border-color: var(--accent);
    background: var(--accent);
    transform: translateY(-2px);
}

.project-action-btn--github:hover {
    color: var(--text);
    border-color: #4a4a4a;
    background: #1a1a1a;
}

.project-action-btn i {
    font-size: 0.72rem;
}


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

.projects-cta {
    padding: 120px 0;

    text-align: center;

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

    background:
        radial-gradient(
            circle at center,
            rgba(79, 124, 255, 0.07),
            transparent 45%
        );
}

.projects-cta h2 {
    margin-top: 20px;

    font-size: clamp(
        3.8rem,
        7vw,
        7rem
    );

    line-height: 0.9;

    letter-spacing: -5px;
}

.projects-cta h2 span {
    display: block;

    color: var(--text-secondary);
}


/* =========================================
   BUTTON
========================================= */

.btn {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    gap: 10px;

    padding: 14px 22px;

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

    font-size: 0.87rem;
    font-weight: 600;

    transition: 0.3s ease;
}

.btn-primary {
    margin-top: 40px;

    background: var(--accent);

    border-color: var(--accent);

    color: white;
}

.btn-primary:hover {
    background: var(--accent-hover);

    border-color: var(--accent-hover);

    transform: translateY(-3px);
}


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

.footer {
    padding: 34px 0;

    background: #070707;

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

.footer-content {
    display: flex;

    align-items: center;
    justify-content: space-between;

    gap: 20px;
}

.footer-links {
    display: flex;

    gap: 28px;
}

.footer-links a,
.footer p {
    color: var(--text-secondary);

    font-size: 0.73rem;
}

.footer-links a {
    transition: 0.3s ease;
}

.footer-links a:hover {
    color: var(--accent);
}


/* =========================================
   TABLET
========================================= */

@media (max-width: 950px) {

    .projects-hero-top {
        grid-template-columns: 1fr;

        gap: 35px;
    }

    .projects-hero-description {
        max-width: 650px;
    }

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

}


/* =========================================
   MOBILE NAVIGATION
========================================= */

@media (max-width: 750px) {

    .nav-socials {
        display: none;
    }

    .menu-btn {
        display: block;
    }

    .nav-links {
        position: absolute;

        top: 78px;
        left: 0;

        width: 100%;

        display: flex;

        flex-direction: column;

        gap: 0;

        padding:
            10px
            5%
            25px;

        background: #0b0b0b;

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

        opacity: 0;

        visibility: hidden;

        transform:
            translateY(-15px);

        transition: 0.3s ease;
    }

    .nav-links.show {
        opacity: 1;

        visibility: visible;

        transform: translateY(0);
    }

    .nav-links li {
        width: 100%;
    }

    .nav-links a {
        display: block;

        padding: 16px 0;

        border-bottom:
            1px solid
            #171717;
    }

    .nav-links a::after {
        display: none;
    }

}


/* =========================================
   MOBILE PROJECTS
========================================= */

@media (max-width: 700px) {

    .container {
        width: 92%;
    }


    /* HERO */

    .projects-hero {
        padding:
            140px
            0
            55px;
    }

    .projects-hero h1 {
        font-size:
            clamp(
                4rem,
                18vw,
                6rem
            );

        letter-spacing: -5px;
    }

    .projects-hero-description {
        font-size: 0.88rem;
    }

    .project-count {
        margin-top: 45px;
    }


    /* FILTERS */

    .projects-filter-section {
        top: 77px;

        padding: 20px 0;
    }

    .project-filters {
        flex-wrap: nowrap;

        overflow-x: auto;

        padding-bottom: 5px;

        scrollbar-width: none;
    }

    .project-filters::-webkit-scrollbar {
        display: none;
    }

    .filter-btn {
        white-space: nowrap;
    }


    /* PROJECT GRID */

    .all-projects {
        padding:
            55px
            0
            90px;
    }

    .portfolio-grid {
        gap: 60px;
    }

    .portfolio-image {
        min-height: 290px;
    }

    .portfolio-title-row {
        flex-direction: column;

        align-items: flex-start;

        gap: 7px;
    }

    .portfolio-footer {
        flex-direction: column;

        align-items: flex-start;
    }

    .project-actions {
        width: 100%;
        justify-content: flex-start;
    }


    /* CTA */

    .projects-cta {
        padding: 90px 0;
    }

    .projects-cta h2 {
        letter-spacing: -3px;
    }


    /* FOOTER */

    .footer-content {
        flex-direction: column;

        text-align: center;
    }

}


/* =========================================
   SMALL MOBILE
========================================= */

@media (max-width: 480px) {

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

    .portfolio-image {
        min-height: 245px;
    }

    .portfolio-icon {
        font-size: 3.2rem;
    }

    .projects-cta h2 {
        font-size: 3.3rem;
    }

}