/* =========================================
   Base
========================================= */

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family:
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        Roboto,
        Helvetica,
        Arial,
        sans-serif;

    background: #0f1117;
    color: #f5f5f5;
    line-height: 1.6;
}

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

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

.container {
    width: min(1100px, 90%);
    margin: 0 auto;
}


/* =========================================
   Typography
========================================= */

h1,
h2,
h3 {
    line-height: 1.2;
}

h1 {
    font-size: clamp(3rem, 8vw, 6rem);
    letter-spacing: -0.04em;
}

h2 {
    font-size: clamp(2rem, 5vw, 3rem);
}

h3 {
    font-size: 1.4rem;
}

p {
    color: #b4b8c2;
}

.eyebrow {
    color: #7dd3fc;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    margin-bottom: 1rem;
}


/* =========================================
   Navigation
========================================= */

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

    background: rgba(15, 17, 23, 0.9);
    backdrop-filter: blur(12px);

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

.navbar {
    min-height: 70px;

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

.logo {
    font-size: 1.25rem;
    font-weight: 800;
}

.nav-links {
    list-style: none;

    display: flex;
    gap: 2rem;
}

.nav-links a {
    color: #b4b8c2;
    transition: color 0.2s ease;
}

.nav-links a:hover {
    color: #ffffff;
}

.menu-toggle {
    display: none;

    border: none;
    background: transparent;
    color: white;

    font-size: 1.5rem;
    cursor: pointer;
}


/* =========================================
   Hero
========================================= */

.hero {
    min-height: 100vh;

    display: flex;
    align-items: center;

    padding: 100px 0 60px;
}

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

.hero h2 {
    margin-top: 1rem;
    color: #b4b8c2;
    font-weight: 500;
}

.hero-description {
    max-width: 650px;
    margin-top: 2rem;

    font-size: 1.1rem;
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;

    margin-top: 2rem;
}


/* =========================================
   Buttons
========================================= */

.button {
    display: inline-block;

    padding: 0.8rem 1.4rem;

    border-radius: 8px;

    font-weight: 700;

    transition:
        transform 0.2s ease,
        background 0.2s ease;
}

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

.primary-button {
    background: #7dd3fc;
    color: #0f1117;
}

.primary-button:hover {
    background: #bae6fd;
}

.secondary-button {
    border: 1px solid #3f4450;
    color: #ffffff;
}

.secondary-button:hover {
    background: #1a1d25;
}


/* =========================================
   Sections
========================================= */

.section {
    padding: 100px 0;
}

.section-alt {
    background: #151821;
}

.section-heading {
    margin-bottom: 3rem;
}


/* =========================================
   About
========================================= */

.about-content {
    max-width: 750px;
}

.about-text {
    display: grid;
    gap: 1.2rem;

    font-size: 1.05rem;
}


/* =========================================
   Skills
========================================= */

.skills-grid {
    display: grid;

    grid-template-columns:
        repeat(4, 1fr);

    gap: 1.5rem;
}

.skill-card {
    padding: 1.5rem;

    background: #1a1d25;

    border: 1px solid #292d38;
    border-radius: 12px;

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

.skill-card:hover {
    transform: translateY(-5px);
    border-color: #7dd3fc;
}

.skill-card p {
    margin-top: 0.75rem;
}


/* =========================================
   Projects
========================================= */

.projects-grid {
    display: grid;

    grid-template-columns:
        repeat(3, 1fr);

    gap: 1.5rem;
}

.project-card {
    overflow: hidden;

    background: #151821;

    border: 1px solid #292d38;
    border-radius: 12px;

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

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

.project-image {
    height: 200px;

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

    background: #20242e;

    color: #7dd3fc;

    font-weight: 700;
}

.project-content {
    padding: 1.5rem;
}

.project-content p {
    margin-top: 1rem;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;

    margin-top: 1.2rem;
}

.project-tags span {
    padding: 0.3rem 0.7rem;

    background: #242936;

    border-radius: 999px;

    color: #b4b8c2;

    font-size: 0.8rem;
}

.project-link {
    display: inline-block;

    margin-top: 1.5rem;

    color: #7dd3fc;

    font-weight: 700;
}


/* =========================================
   Contact
========================================= */

.contact-content {
    text-align: center;
}

.contact-content .section-heading {
    margin-bottom: 1rem;
}

.contact-content > p {
    max-width: 550px;
    margin: 0 auto 2rem;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;

    margin-top: 2rem;
}

.social-links a {
    color: #b4b8c2;
}

.social-links a:hover {
    color: #7dd3fc;
}


/* =========================================
   Footer
========================================= */

.site-footer {
    padding: 2rem 0;

    border-top: 1px solid #292d38;

    text-align: center;
}

.site-footer p {
    font-size: 0.9rem;
}


/* =========================================
   Mobile
========================================= */

@media (max-width: 768px) {

    .menu-toggle {
        display: block;
    }

    .nav-links {
        position: absolute;

        top: 70px;
        left: 0;

        width: 100%;

        display: none;
        flex-direction: column;

        padding: 1.5rem;

        background: #151821;

        border-bottom: 1px solid #292d38;
    }

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

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

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

}


@media (max-width: 500px) {

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

    .hero-buttons {
        flex-direction: column;
    }

    .button {
        text-align: center;
    }

}
