:root {
    --bg: #0d1117;
    --panel: #161b22;
    --panel-light: #21262d;
    --text: #f0f6fc;
    --muted: #8b949e;
    --line: #30363d;
    --accent: #58a6ff;
    --accent-soft: rgba(88, 166, 255, 0.12);
    --sans: "Manrope", sans-serif;
    --mono: "DM Mono", monospace;
    --nav-height: 88px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    background: var(--bg);
    color: var(--text);
    font-family: var(--sans);
    line-height: 1.6;
    overflow-x: hidden;
}

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

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

ul {
    padding-left: 1.2rem;
}

/* PAGE WRAPPER */
.section-wrap {
    width: min(1180px, calc(100% - 64px));
    margin-inline: auto;
}

/* NAVIGATION */
.site-header {
    width: 100%;
    height: var(--nav-height);
    display: flex;
    align-items: center;
    justify-content: center;
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(13, 17, 23, 0.92);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--line);
}

.nav-links {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(24px, 5vw, 64px);
}

.nav-links a {
    position: relative;
    color: var(--muted);
    font-family: var(--sans);
    font-size: 1.05rem;
    font-weight: 400;
    transition:
        color 0.2s ease,
        opacity 0.2s ease;
}

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

.nav-links a.active::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -14px;
    height: 2px;
    background: var(--accent);
}

.menu-toggle {
    display: none;
    border: 0;
    background: transparent;
    cursor: pointer;
}

/* GENERAL SECTIONS */
section {
    padding: 100px 0;
    scroll-margin-top: var(--nav-height);
}

.section-label {
    display: flex;
    align-items: center;
    gap: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--line);
    color: var(--muted);
    font-family: var(--mono);
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

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

/* HOME */
.home {
    min-height: calc(100svh - var(--nav-height));
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 50px;
    padding-top: 100px;
    padding-bottom: 100px;
    position: relative;
}

.home-content {
    flex: 1;
    max-width: 600px;
}

.home-greeting {
    font-family: var(--mono);
    color: var(--accent);
    font-size: 1rem;
    margin-bottom: 15px;
}

.home-name {
    font-size: clamp(2.8rem, 5vw, 4.5rem);
    font-weight: 700;
    color: var(--text);
    line-height: 1.05;
    margin-bottom: 10px;
}

.home-title {
    font-family: var(--mono);
    font-size: 1.2rem;
    color: var(--muted);
    margin-bottom: 20px;
}

.home-description {
    max-width: 600px;
    color: var(--muted);
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 30px;
}

.highlight {
    color: var(--accent);
    font-weight: 500;
}

.home-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

/* ABOUT */
.about-section {
    min-height: auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.about-grid {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 10%;
    padding-top: 50px;
}

.about-heading h1 {
    font-family: var(--mono);
    font-size: clamp(3rem, 8vw, 7rem);
    font-weight: 500;
    line-height: 0.95;
    letter-spacing: -0.07em;
}

.about-pic {
    width: min(100%, 280px);
    margin-bottom: 30px;
}

.about-pic img {
    width: 100%;
    height: auto;
    display: block;
    clip-path: ellipse(34.3% 46.5% at 41.6% 48%);
}

.about-intro {
    max-width: 550px;
    margin-top: 30px;
    color: var(--muted);
    font-size: 1.05rem;
}

.about-body {
    max-width: 520px;
    color: var(--muted);
    font-size: 1rem;
}

.about-body p + p {
    margin-top: 24px;
}

/* SKILLS */
.skills-section {
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    background: var(--panel);
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 50px;
    padding-top: 50px;
}

.skill-category {
    padding-top: 20px;
    border-top: 1px solid var(--line);
}

.skill-category h3 {
    margin-bottom: 24px;
    font-size: 1.35rem;
    font-weight: 600;
}

.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tags span {
    padding: 5px 10px;
    border: 1px solid var(--line);
    border-radius: 999px;
    color: var(--accent);
    font-family: var(--mono);
    font-size: 0.68rem;
    text-transform: uppercase;
}

/* EXPERIENCE */
.experience-list {
    padding-top: 50px;
}

.experience-item {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 50px;
    padding: 40px 0;
    border-bottom: 1px solid var(--line);
}

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

.experience-date,
.experience-organization {
    color: var(--muted);
    font-family: var(--mono);
    font-size: 0.75rem;
}

.experience-content {
    max-width: 700px;
}

.experience-content h3 {
    font-size: 1.6rem;
    letter-spacing: -0.03em;
}

.experience-content p {
    margin-top: 10px;
    color: var(--muted);
}

.experience-content ul {
    margin-top: 18px;
    color: var(--muted);
}

.experience-content li + li {
    margin-top: 8px;
}

.experience-content .tags {
    margin-top: 22px;
}

/* PROJECTS */
.projects-grid {
    margin-top: 50px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
}

.project-card {
    overflow: hidden;
    border: 1px solid var(--line);
    background: var(--panel);
    transition:
        transform 0.25s ease,
        border-color 0.25s ease,
        background 0.25s ease;
}

.project-card:hover {
    transform: translateY(-6px);
    border-color: var(--accent);
    background: var(--panel-light);
}

.project-content {
    padding: 28px;
}

.project-category {
    color: var(--accent);
    font-family: var(--mono);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.project-content h3 {
    margin-top: 8px;
    font-size: 1.7rem;
    letter-spacing: -0.04em;
}

.project-description {
    margin-top: 10px;
    color: var(--muted);
    font-size: 0.95rem;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 20px;
}

.project-tech span {
    padding: 5px 9px;
    border: 1px solid var(--line);
    border-radius: 999px;
    color: var(--accent);
    font-family: var(--mono);
    font-size: 0.65rem;
}

.project-links {
    display: flex;
    gap: 22px;
    margin-top: 26px;
}

.project-links a {
    padding-bottom: 2px;
    border-bottom: 1px solid var(--accent);
    font-family: var(--mono);
    font-size: 0.75rem;
    text-transform: uppercase;
}

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

/* ACHIEVEMENTS */
.achievements-section {
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    background: var(--panel);
}

.achievements-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 50px;
    padding-top: 50px;
}

.achievement-item {
    display: grid;
    grid-template-columns: 90px 1fr;
    gap: 25px;
    padding-top: 20px;
    border-top: 1px solid var(--line);
}

.achievement-date {
    color: var(--accent);
    font-family: var(--mono);
    font-size: 0.75rem;
}

.achievement-item h3 {
    font-size: 1.4rem;
}

.achievement-item p {
    margin-top: 10px;
    color: var(--muted);
}

/* CONTACT */
.contact-section {
    min-height: auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.social-links {
    display: flex;
    flex-wrap: wrap;
    gap: 16px clamp(24px, 4vw, 48px);
    margin-top: 50px;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    color: var(--text);
    font-family: var(--mono);
    font-size: clamp(1.125rem, 0.95rem + 0.75vw, 1.5rem);
    font-weight: 500;
    line-height: 1.4;
    text-transform: uppercase;
    transition: color 0.2s ease;
}

.social-links a:hover,
.social-links a:focus-visible {
    color: var(--accent);
}

.social-links a:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 6px;
    border-radius: 2px;
}

/* FOOTER */
.site-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 0 30px;
    border-top: 1px solid var(--line);
    color: var(--muted);
    font-family: var(--mono);
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

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

/* OPTIONAL REVEAL ANIMATION */
.reveal {
    opacity: 0;
    transform: translateY(20px);
    transition:
        opacity 0.7s ease,
        transform 0.7s ease;
}

.reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* TABLET */
@media (max-width: 900px) {
    section {
        padding: 60px 0;
    }

    .home {
        padding-top: 60px;
        padding-bottom: 60px;
    }

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

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

    .about-grid {
        grid-template-columns: 1fr;
        gap: 50px;
    }

    .experience-item {
        grid-template-columns: 160px 1fr;
    }

    .achievements-list {
        grid-template-columns: 1fr;
    }

    .nav-links {
        gap: 28px;
    }

    .nav-links a {
        font-size: 0.95rem;
    }

}

/* MOBILE */
@media (max-width: 700px) {
    :root {
        --nav-height: 72px;
    }

    .section-wrap {
        width: calc(100% - 40px);
    }

    /* NAV */
    .site-header {
        justify-content: flex-end;
        padding: 0 20px;
    }

    .menu-toggle {
        display: flex;
        flex-direction: column;
        gap: 6px;
    }

    .menu-toggle span {
        width: 25px;
        height: 2px;
        background: var(--accent);
    }

    .nav-links {
        display: none;
        position: absolute;
        top: var(--nav-height);
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
        padding: 24px 20px;
        border-bottom: 1px solid var(--line);
        background: var(--panel);
    }

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

    .nav-links a {
        width: 100%;
        font-size: 1rem;
    }

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

    /* ABOUT */

    .about-heading h1 {
        font-size: clamp(3rem, 16vw, 5rem);
    }

    /* SKILLS */
    .skills-grid {
        grid-template-columns: 1fr;
        gap: 35px;
    }

    /* EXPERIENCE */
    .experience-item {
        grid-template-columns: 1fr;
        gap: 20px;
    }


    /* ACHIEVEMENTS */
    .achievement-item {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    /* CONTACT */
    .social-links {
        gap: 12px 24px;
    }

    /* FOOTER */
    .site-footer {
        display: block;
    }

    .site-footer a {
        display: inline-block;
        margin-top: 10px;
    }

}
