@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Space+Grotesk:wght@400;500;600;700&display=swap');

:root {
    --bg: #0b0d0f;
    --surface: #111417;
    --surface-2: #171b1f;
    --text: #f3f4f2;
    --muted: #92989a;
    --line: #292e32;
    --accent: #c8ff3d;
}

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

html {
    scroll-behavior: smooth;
}

body {
    background: var(--bg);
    color: var(--text);
    font-family: "DM Sans", sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
}

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

::selection {
    background: var(--accent);
    color: #000;
}


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

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;

    background: rgba(11, 13, 15, 0.78);
    backdrop-filter: blur(18px);

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

.nav-inner {
    max-width: 1300px;
    margin: auto;
    padding: 20px 35px;

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

.logo {
    font-family: "Space Grotesk", sans-serif;
    font-size: 24px;
    font-weight: 700;
    letter-spacing: -1px;
}

nav {
    display: flex;
    gap: 32px;
}

nav a {
    font-size: 13px;
    color: #aeb3b5;
    transition: 0.3s;
}

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


/* ================= GENERAL ================= */

.section {
    max-width: 1300px;
    margin: auto;
    padding: 150px 35px;
}

.eyebrow {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 4px;
    color: var(--accent);
    text-transform: uppercase;
}

.section-heading {
    margin-bottom: 80px;
}

.section-heading h2 {
    margin-top: 15px;
    font-family: "Space Grotesk", sans-serif;
    font-size: clamp(60px, 9vw, 125px);
    line-height: 0.85;
    letter-spacing: -6px;
}


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

.hero {
    min-height: 100vh;
    max-width: 1300px;
    margin: auto;

    padding: 150px 35px 80px;

    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    align-items: center;
    gap: 80px;

    position: relative;
}

.hero::before {
    content: "";
    position: absolute;

    width: 500px;
    height: 500px;

    right: -180px;
    top: 120px;

    background:
        radial-gradient(
            circle,
            rgba(200,255,61,0.16),
            transparent 65%
        );

    filter: blur(20px);
    pointer-events: none;
}

.hero h1 {
    margin-top: 25px;

    font-family: "Space Grotesk", sans-serif;

    font-size: clamp(75px, 11vw, 155px);
    line-height: 0.78;

    letter-spacing: -9px;
}

.hero h1 span {
    color: var(--accent);
    font-weight: 400;
}

.hero-title {
    margin-top: 40px;

    font-size: 21px;
    font-weight: 600;
}

.hero-description {
    max-width: 540px;

    margin-top: 18px;

    color: var(--muted);
    font-size: 16px;
}

.hero-button {
    display: inline-flex;

    margin-top: 35px;
    padding: 15px 23px;

    border: 1px solid var(--line);
    border-radius: 100px;

    font-size: 13px;

    transition: 0.35s;
}

.hero-button:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: #000;

    transform: translateY(-3px);
}


/* ================= HERO VISUAL ================= */

.hero-visual {
    height: 600px;

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

    position: relative;
}

.visual-placeholder {
    width: 100%;
    height: 100%;

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

    background:
        linear-gradient(
            135deg,
            rgba(255,255,255,0.04),
            transparent
        );

    position: relative;

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

    overflow: hidden;
}

.visual-placeholder::before {
    content: "";

    position: absolute;

    width: 70%;
    height: 70%;

    border: 1px solid rgba(200,255,61,0.25);

    transform: rotate(45deg);

    box-shadow:
        0 0 80px rgba(200,255,61,0.08);
}

.visual-placeholder::after {
    content: "ELECTRONICS • PCB • EMBEDDED";

    position: absolute;

    bottom: 25px;
    left: 25px;

    font-size: 10px;
    letter-spacing: 3px;

    color: #666c70;
}

.visual-placeholder span {
    position: relative;
    z-index: 2;

    font-size: 10px;
    letter-spacing: 2px;
    color: #666c70;
}


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

.project-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);

    gap: 90px 35px;
}

.project-card {
    position: relative;

    transition: transform 0.45s ease;
}

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

.project-card:nth-child(2),
.project-card:nth-child(4) {
    margin-top: 130px;
}

.project-image {
    height: 500px;

    background:
        linear-gradient(
            135deg,
            #15191c,
            #0e1012
        );

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

    position: relative;

    overflow: hidden;
}

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

    position: absolute;

    width: 180px;
    height: 180px;

    border: 1px solid rgba(200,255,61,0.2);

    transform: rotate(45deg);

    left: 50%;
    top: 50%;

    margin-left: -90px;
    margin-top: -90px;
}

.project-image::after {
    content: "PROJECT IMAGE";

    position: absolute;

    bottom: 20px;
    left: 20px;

    font-size: 10px;
    letter-spacing: 3px;

    color: #62686b;
}

.project-image span {
    font-size: 10px;
    letter-spacing: 2px;
    color: #656b6e;
}

.project-info {
    padding: 25px 5px 0 50px;

    position: relative;
}

.project-number {
    position: absolute;

    left: 5px;
    top: 30px;

    color: var(--accent);

    font-size: 11px;
}

.project-info h3 {
    font-family: "Space Grotesk", sans-serif;

    font-size: clamp(27px, 3vw, 42px);

    line-height: 1;

    letter-spacing: -1.5px;

    margin-bottom: 12px;
}

.project-info p {
    color: var(--muted);

    font-size: 14px;

    max-width: 480px;
}

.project-tag {
    display: inline-block;

    margin-top: 20px;

    padding: 6px 10px;

    border: 1px solid var(--line);
    border-radius: 100px;

    font-size: 9px;

    letter-spacing: 2px;

    color: #8b9193;
    text-transform: uppercase;
}


/* ================= ABOUT ================= */

.about-content {
    display: grid;

    grid-template-columns: 0.8fr 1.2fr;

    gap: 100px;

    align-items: center;
}

.about-image {
    height: 600px;

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

    background:
        linear-gradient(
            135deg,
            #15191c,
            #0d0f11
        );

    position: relative;

    display: flex;
    align-items: center;
    justify-content: center;
}

.about-image::after {
    content: "PARINIYAN GHALEEI";

    position: absolute;

    bottom: 20px;
    left: 20px;

    font-size: 9px;

    letter-spacing: 3px;

    color: #5f6568;
}

.about-image span {
    font-size: 10px;
    letter-spacing: 2px;
    color: #666c70;
}

.large-text {
    font-family: "Space Grotesk", sans-serif;

    font-size: clamp(32px, 4vw, 55px);

    line-height: 1.05;

    letter-spacing: -2px;

    margin-bottom: 35px;
}

.about-text > p:not(.large-text) {
    color: var(--muted);

    max-width: 650px;

    margin-bottom: 20px;
}

.skills {
    display: flex;

    flex-wrap: wrap;

    gap: 8px;

    margin-top: 35px;
}

.skills span {
    padding: 9px 13px;

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

    border-radius: 100px;

    font-size: 11px;

    color: #9ba0a2;

    transition: 0.3s;
}

.skills span:hover {
    border-color: var(--accent);
    color: var(--accent);
}


/* ================= EXPERIENCE ================= */

.timeline {
    border-top: 1px solid var(--line);
}

.timeline-item {
    display: grid;

    grid-template-columns: 230px 1fr;

    gap: 50px;

    padding: 55px 0;

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

.timeline-year {
    font-size: 12px;
    color: var(--accent);
}

.timeline-item h3 {
    font-family: "Space Grotesk", sans-serif;

    font-size: 32px;

    letter-spacing: -1px;

    margin-bottom: 5px;
}

.company {
    color: #d2d5d6 !important;

    font-weight: 600;

    margin-bottom: 15px;
}


/* ================= ACHIEVEMENT ================= */

.achievement {
    max-width: 1400px;

    padding-left: 0;
    padding-right: 0;

    display: grid;

    grid-template-columns: 1fr 1fr;

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

.achievement-image {
    min-height: 650px;

    background:
        linear-gradient(
            135deg,
            #15191c,
            #0d0f11
        );

    display: flex;

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

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

    position: relative;
}

.achievement-image span {
    font-size: 10px;
    letter-spacing: 2px;
    color: #666c70;
}

.achievement-content {
    padding: 90px;

    display: flex;
    flex-direction: column;
    justify-content: center;
}

.achievement-content h2 {
    font-family: "Space Grotesk", sans-serif;

    font-size: clamp(75px, 10vw, 150px);

    line-height: 0.8;

    letter-spacing: -8px;

    margin-top: 20px;

    color: var(--accent);
}

.achievement-title {
    font-family: "Space Grotesk", sans-serif;

    font-size: 25px;

    margin-top: 35px;
}

.achievement-content > p:last-child {
    color: var(--muted);

    margin-top: 15px;
}


/* ================= CONTACT ================= */

.contact {
    text-align: center;

    padding-top: 200px;
    padding-bottom: 200px;
}

.contact h2 {
    font-family: "Space Grotesk", sans-serif;

    font-size: clamp(65px, 10vw, 145px);

    line-height: 0.82;

    letter-spacing: -7px;

    margin-top: 25px;
}

.contact > p:not(.eyebrow) {
    color: var(--muted);

    margin-top: 30px;
}

.contact-links {
    display: flex;

    justify-content: center;

    gap: 30px;

    margin-top: 45px;
}

.contact-links a {
    padding-bottom: 5px;

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

    font-size: 13px;

    transition: 0.3s;
}

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


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

footer {
    max-width: 1300px;

    margin: auto;

    padding: 30px 35px;

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

    color: #606669;

    font-size: 11px;
}


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

@media (max-width: 800px) {

    .nav-inner {
        padding: 18px 20px;
    }

    nav {
        display: none;
    }

    .section {
        padding: 100px 20px;
    }

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

        padding: 130px 20px 70px;

        gap: 50px;
    }

    .hero h1 {
        font-size: 75px;

        letter-spacing: -5px;
    }

    .hero-visual {
        height: 430px;
    }

    .section-heading {
        margin-bottom: 50px;
    }

    .section-heading h2 {
        font-size: 65px;

        letter-spacing: -4px;
    }

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

        gap: 70px;
    }

    .project-card:nth-child(2),
    .project-card:nth-child(4) {
        margin-top: 0;
    }

    .project-image {
        height: 400px;
    }

    .about-content {
        grid-template-columns: 1fr;

        gap: 50px;
    }

    .about-image {
        height: 450px;
    }

    .timeline-item {
        grid-template-columns: 1fr;

        gap: 15px;

        padding: 40px 0;
    }

    .timeline-item h3 {
        font-size: 27px;
    }

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

    .achievement-image {
        min-height: 400px;

        border-right: none;

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

    .achievement-content {
        padding: 70px 20px;
    }

    .achievement-content h2 {
        font-size: 90px;

        letter-spacing: -5px;
    }

    .contact {
        padding-top: 130px;

        padding-bottom: 130px;
    }

    .contact h2 {
        font-size: 65px;

        letter-spacing: -4px;
    }

    .contact-links {
        flex-direction: column;

        align-items: center;
    }

    footer {
        padding: 25px 20px;
    }
}
