::root {
    --bg: #ffffff;
    --fg: #00ff00;
}

* {
    font-family:
        "Trebuchet MS", "Lucida Sans Unicode", "Lucida Grande", "Lucida Sans",
        Arial, sans-serif;
}

html {
    margin: 0;
    padding: 0;
}

h1,
p,
li,
a {
    color: var(--fg);
    background-color: var(--bg);
}

body {
    padding: 2vh 2vw;
}

header,
main,
footer {
    max-width: 650px;
    margin: 0 auto;
}

header h1 {
    letter-spacing: 0.03em;
}

main {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

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

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

nav a {
    text-decoration: none;
    text-transform: lowercase;
    letter-spacing: 0.05em;
    opacity: 0.6;
}

nav a:hover {
    opacity: 1;
    text-decoration: underline;
}

.section-title {
    font-size: 1.4rem;
    font-weight: 600;
    letter-spacing: -0.01em;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 18px;
    margin-top: 18px;
}

.skill-card {
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 14px;
    padding: 18px;
    background: #fff;
}

.skill-title {
    margin: 0 0 12px 0;
    font-size: 18px;
    font-weight: 700;
}

.skill-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.skill-list li {
    font-size: 14px;
    padding: 6px 0;
    color: var(--fg);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.skill-list li:last-child {
    border-bottom: none;
}

.links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.1rem;
}

.links a {
    padding: 0.5rem 0.7rem;
    border-radius: 999px;

    background: #f4f4f4;
    color: #343434;
    text-decoration: none;

    font-size: 0.95rem;
    font-weight: 100;

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

.links a:hover {
    background: #000;
    color: white;
    transform: translateY(-1px);
}

footer {
    margin-top: 5vh;
    border-top: 1px solid #333;
    display: flex;
    justify-content: space-between;
}

@media (max-width: 600px) {
    header {
        flex-direction: column-reverse;
    }

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

    .section-title {
        font-size: 24px;
    }
}
