:root {
    --background: #ffffff;
    --text: #1f2933;
    --secondary: #4b5563;
    --accent: #2563eb;
    --accent-hover: #1d4ed8;
    --theme-button-bg: #f3f4f6;
    --theme-button-hover: #e5e7eb;
}

body.dark {
    --background: #111827;
    --text: #f9fafb;
    --secondary: #9ca3af;
    --accent: #60a5fa;
    --accent-hover: #93c5fd;
    --theme-button-bg: #374151;
    --theme-button-hover: #4b5563;
}

body {
    font-family: "Inter", sans-serif;
    max-width: 1000px;
    margin: auto;
    padding: 24px 20px;
    line-height: 1.7;
    background: var(--background);
    color: var(--text);
}

nav {
    display: flex;
    justify-content: flex-end;
    gap: 30px;
    margin-bottom: 80px;
    flex-wrap: wrap;
}

nav a {
    text-decoration: none;
    color: var(--secondary);
    font-weight: 500;
}

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

h1 {
    font-size: clamp(2.5rem, 8vw, 4rem);
    letter-spacing: -0.05em;
    margin-bottom: 10px;
}

h2 {
    font-weight: 500;
    color: var(--secondary);
}

p {
    font-size: 1.1rem;
}

.links {
    display: flex;
    gap: 20px;
    margin-top: 40px;
    flex-wrap: wrap;
}

.links a {
    padding: 10px 18px;
    border-radius: 6px;
    background: var(--accent);
    color: white;
    text-decoration: none;
    font-weight: 500;
}

.links a:hover {
    background: var(--accent-hover);
}

section {
    margin-bottom: 70px;
}

footer {
    margin-top: 100px;
    color: var(--secondary);
    font-size: 0.9rem;
}

#theme-toggle {
    border: none;
    background: var(--theme-button-bg);
    border-radius: 50%;
    width: 36px;
    height: 36px;
    cursor: pointer;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

#theme-toggle:hover {
    background: var(--theme-button-hover);
}

a {
    color: var(--accent);
}

a:hover {
    color: var(--accent-hover);
}

.skill-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px 30px;
    list-style-type: none;
    padding: 0;
}

.skill-category {
    margin-bottom: 40px;
}

.skill-category h3 {
    margin-bottom: 15px;
    color: var(--secondary);
}

.hero {
    display: flex;
    align-items: center;
    gap: 40px;

    max-width: 900px;
    margin-bottom: 100px;
}

.headshot {
    width: 180px;
    height: 180px;
    object-fit: cover;
    border-radius: 50%;
    flex-shrink: 0;
}

.hero-content {
    flex: 1;
}

@media (max-width: 768px) {
    .hero {
        flex-direction: column;
        text-align: center;
        gap: 24px;
    }

    .headshot {
        width: 150px;
        height: 150px;
    }

    .links {
        justify-content: center;
        flex-wrap: wrap;
    }
    p {
        font-size: 1rem;
    }
}

@media (max-width: 700px) {
    .skill-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 450px) {
    .skill-grid {
        grid-template-columns: 1fr;
    }
}
