:root {
    --bg: #0a0a0a;
    --surface: #111111;
    --surface-2: #171717;
    --border: #262626;
    --text: #f5f5f5;
    --muted: #a3a3a3;
    --accent: #3b82f6;
    --accent-hover: #2563eb;
    --max-width: 1100px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Inter", sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
}

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

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

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

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

header {
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(10, 10, 10, 0.88);
    backdrop-filter: blur(12px);
}

.navbar {
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    font-size: 20px;
    font-weight: 800;
    letter-spacing: -0.04em;
}

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

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

nav a {
    color: var(--muted);
    font-size: 14px;
    font-weight: 500;
    transition: color 0.2s ease;
}

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

.menu-button {
    display: none;
    background: none;
    border: 0;
    color: white;
    font-size: 25px;
    cursor: pointer;
}

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

.hero {
    min-height: 650px;
    display: flex;
    align-items: center;
    padding: 100px 0;
}

.hero-content {
    max-width: 800px;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #93c5fd;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 24px;
}

.eyebrow::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #22c55e;
}

.hero h1 {
    font-size: clamp(48px, 8vw, 86px);
    line-height: 0.98;
    letter-spacing: -0.07em;
    max-width: 850px;
    margin-bottom: 28px;
}

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

.hero-description {
    max-width: 650px;
    color: var(--muted);
    font-size: 19px;
    line-height: 1.7;
    margin-bottom: 36px;
}

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

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 13px 21px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    border: 1px solid var(--border);
    transition: all 0.2s ease;
}

.button-primary {
    background: var(--accent);
    border-color: var(--accent);
    color: white;
}

.button-primary:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
}

.button-secondary:hover {
    background: var(--surface-2);
    transform: translateY(-2px);
}

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

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

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

.section-label {
    color: var(--accent);
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    margin-bottom: 10px;
}

.section-heading h2 {
    font-size: clamp(32px, 5vw, 48px);
    letter-spacing: -0.05em;
    margin-bottom: 15px;
}

.section-heading p {
    color: var(--muted);
    max-width: 650px;
}

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

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

.about-text p {
    color: var(--muted);
    margin-bottom: 18px;
    font-size: 16px;
}

.about-details {
    display: grid;
    gap: 16px;
}

.detail {
    padding: 22px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 10px;
}

.detail strong {
    display: block;
    margin-bottom: 5px;
}

.detail span {
    color: var(--muted);
    font-size: 14px;
}

/* =========================
           SKILLS
        ========================= */

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

.skill {
    padding: 22px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 10px;
    font-weight: 600;
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.skill:hover {
    transform: translateY(-4px);
    border-color: #404040;
}

.skill small {
    display: block;
    color: var(--muted);
    font-weight: 400;
    margin-top: 5px;
}

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

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

.project {
    display: flex;
    flex-direction: column;
    min-height: 330px;
    padding: 28px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    transition: transform 0.25s ease, border-color 0.25s ease;
}

.project:hover {
    transform: translateY(-5px);
    border-color: #404040;
}

.project-number {
    color: var(--accent);
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 45px;
}

.project h3 {
    font-size: 25px;
    letter-spacing: -0.03em;
    margin-bottom: 12px;
}

.project p {
    color: var(--muted);
    font-size: 14px;
    margin-bottom: 22px;
}

.technologies {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: auto;
    margin-bottom: 22px;
}

.technologies span {
    padding: 6px 10px;
    border-radius: 5px;
    background: var(--surface-2);
    color: #d4d4d4;
    font-size: 12px;
}

.project-links {
    display: flex;
    gap: 20px;
}

.project-links a {
    color: #93c5fd;
    font-size: 13px;
    font-weight: 600;
}

.project-links a:hover {
    text-decoration: underline;
}

/* =========================
           CURRENTLY LEARNING
        ========================= */

.learning {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.learning-item {
    padding: 25px;
    border: 1px solid var(--border);
    background: var(--surface);
    border-radius: 10px;
}

.learning-item h3 {
    margin-bottom: 8px;
    font-size: 17px;
}

.learning-item p {
    color: var(--muted);
    font-size: 14px;
}

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

.contact {
    text-align: center;
}

.contact-content {
    max-width: 700px;
    margin: auto;
}

.contact h2 {
    font-size: clamp(38px, 6vw, 62px);
    letter-spacing: -0.06em;
    margin-bottom: 20px;
}

.contact p {
    color: var(--muted);
    margin-bottom: 30px;
}

.socials {
    display: flex;
    justify-content: center;
    gap: 25px;
    margin-top: 35px;
}

.socials a {
    color: var(--muted);
    font-size: 14px;
}

.socials a:hover {
    color: white;
}

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

footer {
    border-top: 1px solid var(--border);
    padding: 30px 0;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    color: var(--muted);
    font-size: 13px;
}

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

@media (max-width: 800px) {

    nav {
        position: absolute;
        top: 72px;
        left: 0;
        width: 100%;
        display: none;
        flex-direction: column;
        gap: 0;
        background: #0a0a0a;
        border-bottom: 1px solid var(--border);
    }

    nav.active {
        display: flex;
    }

    nav a {
        padding: 16px 20px;
        border-top: 1px solid var(--border);
    }

    .menu-button {
        display: block;
    }

    .hero {
        min-height: auto;
        padding: 90px 0;
    }

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

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

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

@media (max-width: 500px) {

    .container {
        width: min(100% - 28px, var(--max-width));
    }

    section {
        padding: 75px 0;
    }

    .hero h1 {
        font-size: 48px;
    }

    .hero-description {
        font-size: 16px;
    }

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

    .footer-content {
        flex-direction: column;
    }
}