* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 0;

    background: #0f0f0f;
    color: #f5f5f5;

    font-family: Arial, Helvetica, sans-serif;
    line-height: 1.6;
}


nav {
    position: sticky;
    top: 0;

    display: flex;
    justify-content: center;
    gap: 2rem;

    padding: 1rem;

    background: rgba(15, 15, 15, 0.9);
    border-bottom: 1px solid #252525;

    backdrop-filter: blur(10px);
    z-index: 100;
}

nav a {
    color: #aaa;
    text-decoration: none;

    transition: color 0.2s ease;
}

nav a:hover {
    color: #fff;
}


main {
    width: min(900px, 90%);
    margin: 0 auto;
}


section {
    padding: 6rem 0;

    border-bottom: 1px solid #252525;
}


.hero {
    min-height: 70vh;

    display: flex;
    flex-direction: column;
    justify-content: center;
}


h1 {
    margin: 0;

    font-size: clamp(2.5rem, 8vw, 5rem);
    line-height: 1.1;
}

h2 {
    margin-bottom: 0.5rem;

    font-size: 2rem;
}

h3 {
    margin-bottom: 0.25rem;
}


p {
    color: #aaa;
}


#hero-text {
    max-width: 600px;
    font-size: 1.1rem;
}


#site-links-list,
#links-list,
#projects-list {
    display: grid;
    gap: 1rem;

    margin-top: 2rem;
}


#site-links-list {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}


#links-list {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}


#projects-list {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}


#site-links-list a,
#links-list a,
.project-card {
    display: block;

    padding: 1.25rem;

    color: #fff;
    text-decoration: none;

    background: #171717;
    border: 1px solid #282828;
    border-radius: 10px;

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


#site-links-list a:hover,
#links-list a:hover,
.project-card:hover {
    transform: translateY(-3px);

    background: #1d1d1d;
    border-color: #444;
}


#links-list a p {
    margin: 0.25rem 0 0;
}


.project-card {
    color: #fff;
}


.project-card p {
    margin-top: 0.5rem;
}


.project-card a {
    color: #aaa;
}


#contact-email {
    display: inline-block;

    margin-top: 1rem;
    padding: 0.75rem 1.25rem;

    color: #fff;
    text-decoration: none;

    background: #171717;
    border: 1px solid #333;
    border-radius: 8px;

    transition: background 0.2s ease;
}

#contact-email:hover {
    background: #242424;
}


footer {
    padding: 2rem;

    text-align: center;
    color: #666;
}


@media (max-width: 600px) {
    nav {
        gap: 1rem;
        font-size: 0.9rem;
    }

    section {
        padding: 4rem 0;
    }
}