/* ========================================
   RESET
======================================== */

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

html {
    scroll-behavior: smooth;
}

body {
    font-family:
        Inter,
        ui-sans-serif,
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;

    background: #08090d;
    color: #f5f5f5;
    line-height: 1.6;
}

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

ul {
    list-style: none;
}


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

.header {
    position: sticky;
    top: 0;
    z-index: 1000;

    width: 100%;

    background: rgba(8, 9, 13, 0.78);

    backdrop-filter: blur(16px);

    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.navbar {
    max-width: 1200px;

    margin: auto;

    padding: 20px 24px;

    display: flex;

    align-items: center;

    justify-content: space-between;
}

.logo {
    font-size: 21px;

    font-weight: 700;

    letter-spacing: -0.5px;
}

.nav-links {
    display: flex;

    align-items: center;

    gap: 32px;
}

.nav-links a {
    color: #a7a7b0;

    font-size: 14px;

    font-weight: 500;

    transition: color 0.25s ease;
}

.nav-links a:hover,
.nav-links a.active {
    color: #ffffff;
}

.menu-button {
    display: none;

    border: none;

    background: transparent;

    color: white;

    font-size: 24px;

    cursor: pointer;
}


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

.projects-hero {
    max-width: 1100px;

    margin: auto;

    padding: 120px 24px 80px;

    text-align: center;
}

.section-label {
    color: #8b8bff;

    font-size: 12px;

    font-weight: 700;

    letter-spacing: 2px;

    margin-bottom: 15px;
}

.projects-hero h1 {
    font-size: clamp(52px, 8vw, 90px);

    line-height: 1;

    letter-spacing: -4px;

    margin-bottom: 30px;

    background: linear-gradient(
        135deg,
        #ffffff 20%,
        #8b8bff 100%
    );

    -webkit-background-clip: text;

    -webkit-text-fill-color: transparent;
}

.projects-intro {
    max-width: 700px;

    margin: auto;

    color: #92929d;

    font-size: 18px;

    line-height: 1.8;
}


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

.projects-section {
    max-width: 1100px;

    margin: auto;

    padding: 40px 24px 120px;
}

.projects-grid {
    display: grid;

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

    gap: 24px;
}


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

.project-card {
    overflow: hidden;

    border-radius: 18px;

    background: rgba(255, 255, 255, 0.035);

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

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

.project-card:hover {
    transform: translateY(-8px);

    border-color: rgba(139, 139, 255, 0.35);

    background: rgba(255, 255, 255, 0.05);
}


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

.project-image {
    width: 100%;

    aspect-ratio: 16 / 10;

    overflow: hidden;

    background: #111218;
}

.project-image img {
    width: 100%;

    height: 100%;

    display: block;

    object-fit: cover;

    transition: transform 0.5s ease;
}

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


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

.project-content {
    padding: 30px;
}

.project-category {
    color: #8b8bff;

    font-size: 11px;

    font-weight: 700;

    letter-spacing: 1.5px;

    margin-bottom: 12px;
}

.project-content h2 {
    font-size: 28px;

    line-height: 1.2;

    letter-spacing: -1px;

    margin-bottom: 15px;
}

.project-description {
    color: #92929d;

    font-size: 15px;

    line-height: 1.7;

    margin-bottom: 22px;
}


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

.tech-stack {
    display: flex;

    flex-wrap: wrap;

    gap: 8px;

    margin-bottom: 25px;
}

.tech-stack span {
    padding: 6px 10px;

    border-radius: 6px;

    background: rgba(139, 139, 255, 0.08);

    border: 1px solid rgba(139, 139, 255, 0.15);

    color: #b8b8ff;

    font-size: 12px;

    font-weight: 500;
}


/* ========================================
   PROJECT LINK
======================================== */

.project-link {
    display: inline-block;

    color: #ffffff;

    font-size: 14px;

    font-weight: 600;

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

.project-link:hover {
    color: #9d9dff;

    transform: translateX(5px);
}


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

.projects-cta {
    max-width: 1100px;

    margin: auto;

    padding: 120px 24px;

    text-align: center;

    border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.projects-cta h2 {
    font-size: clamp(34px, 5vw, 52px);

    line-height: 1.1;

    letter-spacing: -2px;

    margin-bottom: 18px;
}

.projects-cta > p:not(.section-label) {
    color: #92929d;

    margin-bottom: 30px;
}


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

.btn {
    display: inline-flex;

    align-items: center;

    justify-content: center;

    padding: 13px 22px;

    border-radius: 8px;

    background: #ffffff;

    color: #08090d;

    font-size: 14px;

    font-weight: 600;

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

.btn:hover {
    transform: translateY(-3px);

    background: #dddddd;
}


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

.footer {
    border-top: 1px solid rgba(255, 255, 255, 0.07);

    padding: 30px 24px;

    text-align: center;

    color: #6f6f79;

    font-size: 13px;
}


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

@media (max-width: 850px) {

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

}


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

@media (max-width: 700px) {

    .navbar {
        padding: 18px 20px;
    }

    .nav-links {
        display: none;

        position: absolute;

        top: 70px;

        left: 20px;

        right: 20px;

        padding: 20px;

        flex-direction: column;

        gap: 18px;

        background: #111218;

        border: 1px solid rgba(255, 255, 255, 0.1);

        border-radius: 12px;
    }

    .nav-links.show {
        display: flex;
    }

    .menu-button {
        display: block;
    }


    .projects-hero {
        padding-top: 80px;

        padding-bottom: 60px;
    }

    .projects-hero h1 {
        letter-spacing: -3px;
    }

    .projects-intro {
        font-size: 16px;
    }


    .projects-section {
        padding-bottom: 80px;
    }


    .project-content {
        padding: 24px;
    }


    .project-content h2 {
        font-size: 24px;
    }


    .projects-cta {
        padding-top: 80px;

        padding-bottom: 80px;
    }

}