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

html {
    scroll-behavior: smooth;
}

body {
    font-family: Inter, Arial, sans-serif;
    background: #0b0d10;
    color: #f4f4f5;
    line-height: 1.6;
}

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

/* ---------------- NAVIGATION ---------------- */

nav {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 100;
    background: rgba(11, 13, 16, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid #22262c;
}

.nav-container {
    max-width: 1150px;
    margin: auto;
    padding: 20px 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.logo span {
    color: #8b9cff;
}

.nav-links {
    display: flex;
    gap: 30px;
    list-style: none;
    font-size: 0.9rem;
    color: #a9adb5;
}

.nav-links a:hover,
.nav-links a:focus-visible {
    color: white;
}

.menu-toggle {
    display: none;
    background: none;
    border: 1px solid #30343b;
    color: #f4f4f5;
    width: 42px;
    height: 42px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1.2rem;
    line-height: 1;
}

.menu-toggle:focus-visible {
    outline: 2px solid #8b9cff;
    outline-offset: 2px;
}

/* ---------------- HERO ---------------- */

.hero {
    min-height: 100vh;
    max-width: 1150px;
    margin: auto;
    padding: 160px 25px 100px;
    display: flex;
    align-items: center;
}

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

.eyebrow {
    color: #8b9cff;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 20px;
}

h1 {
    font-size: clamp(3.5rem, 8vw, 7rem);
    line-height: 0.95;
    letter-spacing: -5px;
    margin-bottom: 30px;
}

h1 span {
    color: #8b9cff;
}

.hero-description {
    max-width: 650px;
    font-size: 1.2rem;
    color: #a9adb5;
    margin-bottom: 40px;
}

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

.button {
    padding: 13px 22px;
    border-radius: 8px;
    font-weight: 600;
    border: 1px solid #30343b;
    transition: 0.2s ease;
    display: inline-block;
}

.button.primary {
    background: #f4f4f5;
    color: #0b0d10;
}

.button:hover,
.button:focus-visible {
    transform: translateY(-2px);
}

/* ---------------- SECTIONS ---------------- */

section {
    max-width: 1150px;
    margin: auto;
    padding: 100px 25px;
}

.section-label {
    color: #8b9cff;
    font-size: 0.8rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 12px;
}

h2 {
    font-size: 2.8rem;
    letter-spacing: -2px;
    margin-bottom: 50px;
}

/* ---------------- PROJECTS ---------------- */

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

.project {
    background: #111419;
    border: 1px solid #252a31;
    border-radius: 14px;
    overflow: hidden;
    transition: 0.25s ease;
}

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

.project-image {
    height: 220px;
    background: #181c22;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #737984;
    font-size: 0.9rem;
}

.project-content {
    padding: 25px;
}

.project h3 {
    margin-bottom: 10px;
    font-size: 1.3rem;
}

.project p {
    color: #9297a0;
    font-size: 0.95rem;
    margin-bottom: 20px;
}

.tags {
    display: flex;
    gap: 7px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.tag {
    font-size: 0.75rem;
    padding: 5px 9px;
    background: #20252c;
    border-radius: 5px;
    color: #bfc3ca;
}

.project-link {
    color: #8b9cff;
    font-weight: 600;
    font-size: 0.9rem;
}

/* ---------------- ABOUT ---------------- */

.about {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: start;
}

.about p {
    color: #a9adb5;
    margin-bottom: 20px;
    font-size: 1.05rem;
}

.skills {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.skill {
    border: 1px solid #30343b;
    padding: 9px 13px;
    border-radius: 7px;
    font-size: 0.85rem;
    color: #c5c8ce;
}

/* ---------------- CONTACT ---------------- */

.contact {
    text-align: center;
    max-width: 750px;
}

.contact h2 {
    margin-bottom: 20px;
}

.contact p {
    color: #9da2aa;
    margin-bottom: 30px;
}

/* ---------------- FOOTER ---------------- */

footer {
    border-top: 1px solid #22262c;
    padding: 30px 25px;
    text-align: center;
    color: #666b74;
    font-size: 0.85rem;
}

/* ---------------- MOBILE ---------------- */

@media (max-width: 800px) {
    .menu-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        gap: 0;
        background: rgba(11, 13, 16, 0.97);
        border-bottom: 1px solid #22262c;
        padding: 10px 25px 20px;
    }

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

    .nav-links li {
        border-top: 1px solid #22262c;
    }

    .nav-links a {
        display: block;
        padding: 14px 0;
    }

    h1 {
        letter-spacing: -3px;
    }

    h2 {
        font-size: 2.1rem;
    }

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

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