/* =========================================================
   1. VARIABLES
   ========================================================= */

:root {
    --bg: #080808;
    --surface: #111111;
    --surface-2: #171717;

    --text: #f5f5f5;
    --muted: #a3a3a3;

    --line: #292929;
    --accent: #f5f5f5;

    --highlight: #6488d4;

    --max-width: 1120px;
}


/* =========================================================
   2. RESET & BASE
   ========================================================= */

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background:
        radial-gradient(
            circle at top right,
            #171717 0,
            var(--bg) 32rem
        ),
        var(--bg);
    color: var(--text);
    font-family: Inter, system-ui, sans-serif;
    line-height: 1.6;
}

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

img {
    max-width: 100%;
    display: block;
}


/* =========================================================
   3. LAYOUT
   ========================================================= */

.container {
    width: min(var(--max-width), calc(100% - 40px));
    margin: 0 auto;
}

section {
    padding: 88px 0;
    border-top: 1px solid var(--line);
}


/* =========================================================
   4. NAVIGATION
   ========================================================= */

nav {
    position: sticky;
    top: 0;
    z-index: 10;

    backdrop-filter: blur(14px);
    background: rgba(8, 8, 8, 0.78);

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

.nav-inner {
    height: 70px;

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

    gap: 24px;
}

.brand {
    font-family: "Space Grotesk", sans-serif;
    font-weight: 700;
    letter-spacing: -0.03em;
}

.nav-links {
    display: flex;
    gap: 24px;

    color: var(--muted);
    font-size: 0.94rem;
}

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


/* =========================================================
   5. HERO
   ========================================================= */

header {
    min-height: 78vh;

    display: grid;
    place-items: center;
}

.hero {
    max-width: 900px;
    padding: 100px 0 90px;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;

    padding: 7px 11px;

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

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

    color:  #5cda08;
    font-size: 0.82rem;

    margin-bottom: 22px;
}

.dot {
    width: 7px;
    height: 7px;

    border-radius: 50%;
    background: #5cda08;
}

h1 {
    max-width: 900px;

    margin: 0;

    font-family: "Space Grotesk", sans-serif;
    font-size: clamp(3rem, 8vw, 6.8rem);
    font-weight: 700;
    line-height: 0.95;

    letter-spacing: -0.065em;
}

.hero p {
    max-width: 780px;

    margin: 26px 0 32px;

    color: var(--muted);
    font-size: clamp(1.05rem, 2vw, 1.25rem);
}


/* =========================================================
   6. REUSABLE COMPONENTS
   ========================================================= */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 17px;

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

    font-weight: 600;

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

.btn:hover {
    transform: translateY(-2px);
    border-color: #454545;
}

.btn.primary {
    background: var(--text);
    color: #080808;
    border-color: var(--text);
}

.btn.primary:hover {
    background: #ddd;
}

.cta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.tag {
    color: var(--highlight);

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

    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.tech {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;

    margin-top: 20px;
}

.chip {
    padding: 5px 9px;

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

    color: #c8c8c8;
    font-size: 0.75rem;
}


/* =========================================================
   7. SECTION HEADERS
   ========================================================= */

.section-head {
    display: flex;
    justify-content: space-between;
    align-items: end;

    gap: 30px;
    margin-bottom: 34px;
}

.section-kicker {
    color: #777;

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

    text-transform: uppercase;
    letter-spacing: 0.14em;
}

h2 {
    margin: 7px 0 0;

    font-family: "Space Grotesk", sans-serif;
    font-size: clamp(2rem, 5vw, 3.2rem);
    line-height: 1.1;

    letter-spacing: -0.045em;
}

.section-head p {
    max-width: 450px;
    margin: 0;

    color: var(--muted);
}


/* =========================================================
   8. PROJECTS
   ========================================================= */

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

    gap: 18px;
}

.card {
    min-height: 280px;

    display: flex;
    flex-direction: column;
    justify-content: space-between;

    padding: 24px;

    background: linear-gradient(
        180deg,
        var(--surface-2),
        var(--surface)
    );

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

.card:hover {
    border-color: #414141;
}

.card h3 {
    margin: 10px 0;

    font-family: "Space Grotesk", sans-serif;
    font-size: 1.5rem;

    letter-spacing: -0.025em;
}

.card p {
    margin: 0;
    color: var(--muted);
}

.card-link {
    margin-top: 24px;
    font-weight: 700;
}


/* =========================================================
   9. EXPERIENCE
   ========================================================= */

.experience {
    position: relative;
}

.experience-item {
    position: relative;

    display: grid;
    grid-template-columns: 28px 1fr;

    gap: 22px;
}

.experience-marker {
    position: relative;

    display: flex;
    justify-content: center;
}

.experience-marker::before {
    content: "";

    position: absolute;
    top: 8px;
    bottom: 0;

    width: 1px;

    background: var(--line);
}

.experience-marker span {
    position: relative;
    z-index: 1;

    width: 12px;
    height: 12px;

    margin-top: 6px;

    border-radius: 50%;

    background: var(--text);

    box-shadow: 0 0 0 5px var(--bg);
}

.experience-content {
    padding-bottom: 10px;
}

.experience-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;

    gap: 24px;
}

.experience-content h3 {
    margin: 8px 0 4px;

    font-family: "Space Grotesk", sans-serif;
    font-size: 1.65rem;

    letter-spacing: -0.025em;
}

.experience-company {
    margin: 0;

    color: var(--muted);
    font-size: 0.92rem;
}

.experience-date {
    margin: 0;

    color: #777;
    font-size: 0.92rem;

    white-space: nowrap;
}

.experience-description {
    max-width: 820px;

    margin: 22px 0 0;

    color: var(--muted);
    font-size: 1rem;
}


/* =========================================================
   10. ABOUT & EDUCATION
   ========================================================= */

.about {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;

    gap: 50px;
    align-items: start;
}

.about-copy p {
    margin: 0 0 16px;

    color: var(--muted);
    font-size: 1.04rem;
}

.education {
    display: grid;
    gap: 14px;
}

.info {
    padding: 2px 0 2px 17px;

    border-left: 2px solid #363636;
}

.info strong {
    display: block;
}

.info span {
    display: block;

    color: var(--muted);
    font-size: 0.9rem;
}


/* =========================================================
   11. SKILLS
   ========================================================= */

.skills {
    display: grid;
    grid-template-columns: repeat(4, 1fr);

    gap: 18px;
}

.skill-group {
    padding: 22px;

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

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

.skill-group h3 {
    margin: 0 0 13px;

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

.skill-group p {
    margin: 0;
    color: var(--muted);
}


/* =========================================================
   12. CONTACT
   ========================================================= */

.contact {
    display: grid;
    grid-template-columns: 1fr auto;

    gap: 24px;
    align-items: end;
}

.contact p {
    max-width: 620px;
    color: var(--muted);
}

.links {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;

    gap: 10px;
}


/* =========================================================
   13. FOOTER
   ========================================================= */

footer {
    padding: 24px 0 40px;

    color: #707070;
    font-size: 0.85rem;
}

.footer-inner {
    display: flex;
    justify-content: space-between;

    gap: 20px;
}


/* =========================================================
   14. RESPONSIVE
   ========================================================= */

@media (max-width: 800px) {
    .nav-links {
        display: none;
    }

    header {
        min-height: auto;
    }

    .hero {
        padding-top: 72px;
    }

    .projects,
    .about,
    .skills,
    .contact {
        grid-template-columns: 1fr;
    }

    .links {
        justify-content: flex-start;
    }

    .experience-top {
        flex-direction: column;
        gap: 8px;
    }

    .experience-date {
        padding-top: 0;
    }
}