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

html {
    scroll-behavior: smooth;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    background: #0f172a;
    color: #ffffff;
}


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

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

    padding: 18px 8%;

    background: #0f172a;

    border-bottom: 1px solid #1e293b;

    position: relative;
}

.logo {
    color: #ffffff;
    text-decoration: none;

    font-size: 25px;
    font-weight: bold;
}

.logo span {
    color: #38bdf8;
}

.navlink {
    display: flex;
    align-items: center;
    gap: 30px;
}

.navlink a {
    color: #cbd5e1;

    text-decoration: none;

    font-size: 16px;

    transition: 0.3s;
}

.navlink a:hover {
    color: #38bdf8;
}


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

.menu-btn {
    display: none;

    background: transparent;

    border: none;

    color: #ffffff;

    font-size: 28px;

    cursor: pointer;
}


/* =========================
   PROJECT PAGE
========================= */

.projects-page {
    max-width: 1200px;

    margin: auto;

    padding: 80px 30px;
}


/* =========================
   PROJECT HEADING
========================= */

.projects-heading {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 60px;
    clip-path: inset(0 100% 0 );
    animation: reveal 2s forwards;
}

@keyframes reveal {
  to {
    clip-path: inset(0 0 0 0);
  }
}

.section-label {
    color: #38bdf8;

    font-size: 13px;

    font-weight: bold;

    letter-spacing: 3px;

    margin-bottom: 15px;
}

.projects-heading h1 {
    font-size: clamp(38px, 5vw, 55px);

    margin-bottom: 20px;
}

.projects-heading > p:last-child {
    color: #94a3b8;

    font-size: 17px;

    line-height: 1.7;
}


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

.projects-grid {
    display: grid;

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

    gap: 30px;
}


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

.project-card {
    background: #1e293b;

    border: 1px solid #334155;

    border-radius: 14px;

    overflow: hidden;

    transition: 0.3s;
}

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

    border-color: #38bdf8;
}


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

.project-image {
    height: 200px;

    display: flex;

    align-items: center;

    justify-content: center;

    background: #0b1220;

    color: #64748b;

    font-size: 15px;
}

.project-image img {
    width: 100%;

    height: 100%;

    object-fit: cover;

    display: block;
}


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

.project-content {
    padding: 25px;
}

.project-content h2 {
    color: #ffffff;

    font-size: 23px;

    margin-bottom: 12px;
}

.project-content p {
    color: #94a3b8;

    font-size: 15px;

    line-height: 1.7;

    margin-bottom: 20px;
}


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

.project-tech {
    display: flex;

    flex-wrap: wrap;

    gap: 8px;

    margin-bottom: 25px;
}

.project-tech span {
    background: #0f172a;

    border: 1px solid #334155;

    color: #38bdf8;

    padding: 7px 10px;

    border-radius: 5px;

    font-size: 12px;
}


/* =========================
   PROJECT LINKS
========================= */

.project-links {
    display: flex;

    gap: 15px;
}

.project-links a {
    text-decoration: none;

    font-size: 14px;

    font-weight: bold;

    color: #38bdf8;

    transition: 0.3s;
}

.project-links a:hover {
    color: #7dd3fc;
}


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

@media (max-width: 950px) {

    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
    }

}


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

@media (max-width: 767px) {

    .nav {
        padding: 15px 6%;
    }

    .menu-btn {
        display: block;
    }

    .navlink {
        display: none;

        position: absolute;

        top: 100%;

        right: 0;

        width: 220px;

        flex-direction: column;

        align-items: flex-start;

        gap: 20px;

        padding: 25px;

        background: #1e293b;

        border-left: 1px solid #334155;

        border-bottom: 1px solid #334155;

        z-index: 10;
    }

    .navlink.active {
        display: flex;
    }


    .projects-page {
        padding: 60px 20px;
    }


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

        gap: 25px;
    }


    .project-image {
        height: 180px;
    }

}