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

:root {
    --bg: #1d2021;
    --bg-soft: #282828;
    --fg: #ebdbb2;
    --orange: #fe8019;
    --yellow: #fabd2f;
    --aqua: #8ec07c;
    --red: #fb4934;
    --purple: #d3869b;
    --pattern-opacity: 0.03;
}

[data-theme="light"] {
    --bg: #fbf1c7;
    --bg-soft: #ebdbb2;
    --fg: #3c3836;
    --orange: #d65d0e;
    --yellow: #b57614;
    --aqua: #427b58;
    --red: #cc241d;
    --purple: #8f3f71;
    --pattern-opacity: 0.06;
}

body {
    background: var(--bg);
    color: var(--fg);
    font-family: 'Courier New', monospace;
    line-height: 1.6;
    padding: 2rem 1rem;
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    transition: background 0.3s ease, color 0.3s ease;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: var(--pattern-opacity);
    z-index: -1;
    background-size: 100px 100px, 120px 120px, 80px 80px, 90px 90px;
    background-position: 0 0, 40px 40px, 20px 20px, 60px 60px;
}

.theme-toggle {
    position: fixed;
    top: 1rem;
    right: 1rem;
    background: var(--bg-soft);
    border: 2px solid var(--orange);
    color: var(--fg);
    padding: 0.5rem 1rem;
    cursor: pointer;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    border-radius: 4px;
    transition: all 0.3s ease;
    z-index: 100;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.theme-toggle svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
    -webkit-transition: fill 0.3s ease;
    transition: fill 0.3s ease;
}

.theme-toggle:hover {
    background: var(--orange);
    color: var(--bg);
    transform: scale(1.05);
}

header {
    margin-bottom: 4rem;
    padding-bottom: 2rem;
    border-bottom: 2px solid var(--orange);
}

h1 {
    font-size: 4rem;
    font-weight: 900;
    color: var(--orange);
    margin-bottom: 0.5rem;
    font-family: 'Righteous', 'Impact', 'Arial Black', sans-serif;
    text-shadow: 3px 3px 0 var(--bg-soft);
}

.tagline {
    font-size: 1.2rem;
    color: var(--yellow);
    font-style: italic;
}

section {
    margin-bottom: 4rem;
}

h2 {
    font-size: 1.8rem;
    color: var(--aqua);
    margin-bottom: 1rem;
    font-family: 'Righteous', 'Impact', 'Arial Black', sans-serif;
    position: relative;
    display: inline-block;
}

h2::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, var(--aqua), transparent);
}

p {
    margin-bottom: 1rem;
    font-size: 1rem;
}

a {
    color: var(--orange);
    text-decoration: none;
    border-bottom: 1px dotted var(--orange);
    transition: all 0.3s ease;
}

a:hover {
    color: var(--yellow);
    border-bottom: 1px solid var(--yellow);
}

.projects {
    display: grid;
    gap: 2rem;
}

.project {
    background: var(--bg-soft);
    padding: 1.5rem;
    border-left: 4px solid var(--orange);
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.project:hover {
    transform: translateX(8px);
    border-color: var(--yellow);
}

.project h3 {
    color: var(--yellow);
    margin-bottom: 0.5rem;
    font-size: 1.3rem;
}

.project .status {
    color: var(--aqua);
    font-size: 0.9rem;
    font-style: italic;
}

.interests {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 1rem;
}

.interest-tag {
    background: var(--bg-soft);
    color: var(--purple);
    padding: 0.4rem 0.8rem;
    border-radius: 4px;
    font-size: 0.9rem;
    border: 1px solid var(--purple);
}

footer {
    margin-top: 6rem;
    padding-top: 2rem;
    border-top: 1px solid var(--bg-soft);
    text-align: center;
    color: var(--aqua);
}

.contact-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 1rem;
    flex-wrap: wrap;
}

@media (max-width: 600px) {
    h1 {
        font-size: 2.5rem;
    }
    
    body {
        padding: 1.5rem 0.5rem;
    }

    .theme-toggle {
        top: 0.5rem;
        right: 0.5rem;
        padding: 0.4rem 0.8rem;
        font-size: 0.85rem;
    }
}

