:root {
    --background-color: #ffffff;
    --text-color: #1a1a1a;
    --border-color: #eaeaea;
    --accent-color: #888888;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: var(--background-color);
    color: var(--text-color);
    margin: 0;
    padding: 0;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem 4rem;
    border-bottom: 1px solid var(--border-color);
}

h1 {
    font-size: 1.5rem;
    font-weight: 500;
    letter-spacing: 0.5px;
}

nav a {
    color: var(--text-color);
    text-decoration: none;
    margin-left: 2rem;
    font-weight: 400;
    transition: color 0.3s ease;
}

nav a:hover {
    color: var(--accent-color);
}

main {
    padding: 4rem;
}

section {
    margin-bottom: 4rem;
    max-width: 800px;
}

h2 {
    font-size: 1.2rem;
    font-weight: 500;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 0.5rem;
    margin-bottom: 1.5rem;
}

p {
    font-size: 1rem;
    font-weight: 300;
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 2rem;
}

.project-card {
    border: 1px solid var(--border-color);
    padding: 1.5rem;
    cursor: pointer;
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

.project-card:hover {
    background-color: #f9f9f9;
    border-color: var(--text-color);
}

.project-card h3 {
    margin: 0 0 0.5rem 0;
    font-size: 1.1rem;
    font-weight: 500;
}

.project-card p {
    font-size: 0.9rem;
    color: var(--accent-color);
    margin: 0;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(255, 255, 255, 0.95);
    animation: fadeIn 0.5s;
}

.modal-content {
    position: relative;
    margin: 5% auto;
    padding: 4rem;
    max-width: 700px;
}

.close-button {
    color: var(--text-color);
    position: absolute;
    top: 2rem;
    right: 3rem;
    font-size: 2rem;
    font-weight: 300;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.close-button:hover {
    transform: scale(1.2);
}

.modal-content h2 {
    font-size: 2rem;
    margin-bottom: 2rem;
    border: none;
}

.modal-content p {
    margin-bottom: 1rem;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@media (max-width: 768px) {
    header {
        padding: 1.5rem 2rem;
        flex-direction: column;
        align-items: flex-start;
    }

    header h1 {
        margin-bottom: 1rem;
    }

    nav a {
        margin-left: 0;
        margin-right: 1.5rem;
    }

    main {
        padding: 2rem;
    }
}