@font-face {
    font-family: 'Space Mono';
    src: url('./SpaceMono-Regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Space Mono';
    src: url('./SpaceMono-Bold.ttf') format('truetype');
    font-weight: bold;
    font-style: normal;
}

:root {
    --background-color: #fff;
    --text-color: #333;
    --link-color: #333;
    --border-color: #eee;
    --secondary-text-color: #888;
    --form-background-color: #fafafa;
    --form-border-color: #ddd;
    --button-background-color: #333;
    --button-text-color: #fff;
}

/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Space Mono', monospace;
    line-height: 1.8;
    color: var(--text-color);
    background-color: var(--background-color);
    -webkit-font-smoothing: antialiased;
}

a {
    text-decoration: none;
    color: var(--link-color);
    border-bottom: 1px solid var(--link-color);
    padding-bottom: 2px;
    transition: opacity 0.2s;
}

a:hover {
    opacity: 0.7;
}

ul {
    list-style: none;
}

main {
    display: flex;
    justify-content: center;
    padding: 2rem 1rem;
}

.container {
    width: 100%;
    max-width: 680px;
}

section {
    margin: 5rem 0;
}

h1 {
    font-size: 1.8rem;
    line-height: 1.4;
    margin-bottom: 1.5rem;
    font-weight: 700;
}

h2 {
    font-size: 1.4rem;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border-color);
}

h3 {
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

p {
    margin-bottom: 1.5rem;
}

/* Header styles */
header {
    margin-bottom: 4rem;
}

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

.logo {
    font-weight: 700;
    font-size: 1.1rem;
}

/* About section */
#about {
    margin-bottom: 5rem;
}

/* Services section */
.services-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem 2rem;
}

.service-category h3 {
    font-size: 1rem;
    margin-bottom: 1rem;
}

.service-category ul li {
    margin-bottom: 0.7rem;
    font-size: 0.9rem;
    position: relative;
    padding-left: 1rem;
}

.service-category ul li:before {
    content: "—";
    position: absolute;
    left: 0;
    color: var(--secondary-text-color);
}

/* Portfolio section */
.portfolio-list {
    margin-top: 2rem;
}

.portfolio-item {
    margin-bottom: 3rem;
}

.portfolio-item h3 {
    margin-bottom: 0.5rem;
}

.tech-stack {
    font-size: 0.8rem;
    color: var(--secondary-text-color);
    margin-top: 0.5rem;
    margin-bottom: 0;
}

/* Contact section */
.form-group {
    margin-bottom: 1.5rem;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

input, textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid var(--form-border-color);
    font-family: 'Space Mono', monospace;
    font-size: 0.9rem;
    background-color: var(--form-background-color);
    color: var(--text-color);
}

input:focus, textarea:focus {
    outline: none;
    border-color: var(--link-color);
    background-color: var(--background-color);
}

textarea {
    height: 150px;
    resize: vertical;
}

.btn {
    display: inline-block;
    background-color: var(--button-background-color);
    color: var(--button-text-color);
    padding: 0.8rem 1.5rem;
    border: none;
    font-family: 'Space Mono', monospace;
    font-size: 0.9rem;
    cursor: pointer;
    transition: opacity 0.2s;
}

.btn:hover {
    opacity: 0.9;
}

/* Footer */
footer {
    margin-top: 5rem;
    padding: 2rem 0;
    border-top: 1px solid var(--border-color);
    font-size: 0.8rem;
    color: var(--secondary-text-color);
}

[name="_email"] {
	opacity: 0;
	position: absolute;
	top: 0;
	left: 0;
	height: 0;
	width: 0;
	z-index: -1;
}

/* Responsive design */
@media (max-width: 768px) {
    .services-list {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .portfolio-item {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }

    .project-year {
        margin-bottom: 0.5rem;
    }

    h1 {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    body {
        line-height: 1.6;
    }

    h1 {
        font-size: 1.3rem;
    }

    h2 {
        font-size: 1.2rem;
    }
}

@media (prefers-color-scheme: dark) {
    :root {
        --background-color: #121212;
        --text-color: #eee;
        --link-color: #eee;
        --border-color: #333;
        --secondary-text-color: #aaa;
        --form-background-color: #222;
        --form-border-color: #444;
        --button-background-color: #eee;
        --button-text-color: #121212;
    }
}
