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

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600;700;800;900&display=swap');

html, body {
    width: 100%;
    min-height: 100%;
    margin: 0;
    padding: 0;
    background-color: black;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* Header */
.site-header {
    display: flex;
    align-items: baseline;
    gap: 30px;
    padding: 30px 30px 0;
}

.header-name {
    font-weight: 800;
    font-size: 1.5em;
    color: white;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.header-nav {
    display: flex;
    align-items: baseline;
    gap: 15px;
}

.nav-link {
    color: white;
    text-decoration: none;
    font-size: 0.95em;
    font-weight: 400;
    letter-spacing: 0.3px;
    transition: opacity 0.3s ease;
}

.nav-link:hover {
    opacity: 0.5;
}

.separator {
    color: white;
    font-size: 0.9em;
    font-weight: 300;
    user-select: none;
}

/* Main Content */
.main-content {
    padding: 40px 30px;
}

/* Projects Section */
.projects-section {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-width: 1100px;
}

.project-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    transition: transform 0.3s ease;
}

.project-card:hover {
    transform: translateY(-5px);
}

.project-thumb {
    width: 100%;
    aspect-ratio: 1;
    overflow: hidden;
    margin-bottom: 10px;
}

.project-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: opacity 0.3s ease;
}

.project-card:hover .project-thumb img {
    opacity: 0.7;
}

.project-name {
    color: white;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.3px;
    text-align: center;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(5px);
}

.modal-content {
    background-color: #1a1a1a;
    margin: 5% auto;
    padding: 20px;
    border: none;
    width: 90%;
    max-width: 800px;
    max-height: 80vh;
    overflow-y: auto;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.close-button {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close-button:hover {
    color: white;
}

.cv-content {
    line-height: 1.6;
    color: white;
}

.cv-section {
    margin-bottom: 20px;
}

.cv-section-title {
    font-weight: bold;
    margin-bottom: 10px;
    color: white;
}

.cv-entry {
    margin-bottom: 5px;
}

/* Tablet */
@media screen and (min-width: 600px) {
    .header-name {
        font-size: 1.8em;
    }
}

/* Desktop */
@media screen and (min-width: 1024px) {
    .header-name {
        font-weight: 900;
        font-size: 2em;
        letter-spacing: 1px;
    }

    .nav-link {
        font-size: 1em;
    }
}

/* Mobile */
@media screen and (max-width: 599px) {
    .site-header {
        flex-direction: column;
        gap: 10px;
        padding: 20px 20px 0;
    }

    .main-content {
        padding: 30px 20px;
    }

    .projects-section {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}
