@font-face {
    font-family: 'Optician Sans';
    src: url('./fonts/Optician-Sans.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
}

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

body, html {
    height: 100%;
}

.container {
    min-height: 100vh;
    width: 100%;
    background-color: #f9fafb;
    position: relative;
}

.grid-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 0;
    background-image: 
        linear-gradient(to right, #d1d5db 1px, transparent 1px),
        linear-gradient(to bottom, #d1d5db 1px, transparent 1px);
    background-size: 32px 32px;
    -webkit-mask-image: radial-gradient(ellipse 80% 80% at 0% 0%, #000 50%, transparent 90%);
    mask-image: radial-gradient(ellipse 80% 80% at 0% 0%, #000 50%, transparent 90%);
}

.header {
    position: relative;
    z-index: 1;
    text-align: right;
    padding: 4rem 3rem 0.75rem;
    font-family: 'Optician Sans', sans-serif;
    font-size: 3.5rem;
    color: #374151;
    line-height: 1.1;
}

.nav-links {
    position: relative;
    z-index: 1;
    text-align: right;
    padding: 0 3rem 2rem;
    display: flex;
    justify-content: flex-end;
    gap: 2rem;
    flex-wrap: wrap;
}

.nav-links a {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 1rem;
    color: #6b7280;
    text-decoration: none;
    transition: all 0.2s ease;
    border-bottom: 1px solid transparent;
}

.nav-links a:hover {
    color: #374151;
    border-bottom-color: #d1d5db;
}

.content {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 3rem;
}

.intro-section {
    margin-bottom: 4rem;
}

.lorem-text {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 1rem;
    line-height: 1.6;
    color: #4b5563;
    max-width: 600px;
    text-align: justify;
}

.section {
    margin-bottom: 5rem;
}

.section h2 {
    font-family: 'Optician Sans', sans-serif;
    font-size: 2rem;
    color: #374151;
    margin-bottom: 2rem;
}

.section:last-child {
    margin-bottom: 2rem;
}

.projects-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    margin-bottom: 2rem;
    align-items: stretch;
}

.project-card {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    border-radius: 8px;
    transition: background-color 0.2s ease;
    height: 100%;
}

.project-card:hover {
    background-color: rgba(255, 255, 255, 0.5);
}

.project-thumbnail {
    width: 80px;
    height: 60px;
    background-color: #e5e7eb;
    border-radius: 4px;
    flex-shrink: 0;
    overflow: hidden;
}

.project-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.project-info {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.project-name {
    font-family: 'Optician Sans', sans-serif;
    font-size: 1.25rem;
    color: #374151;
    margin-bottom: 0.25rem;
}

.project-meta {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 0.875rem;
    color: #6b7280;
    margin-bottom: 0.5rem;
}

.project-description {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 0.95rem;
    color: #4b5563;
    line-height: 1.5;
    margin-bottom: 0.75rem;
    flex-grow: 1;
}

.project-link {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 0.875rem;
    color: #3b82f6;
    text-decoration: none;
    margin-top: auto;
}

.project-link:hover {
    text-decoration: underline;
}

/* Mobile responsiveness */
@media (max-width: 640px) {
    .header {
        padding: 3rem 1.5rem 0.75rem;
        font-size: 2.5rem;
        text-align: left;
    }

    .nav-links {
        padding: 0 1.5rem 1.5rem;
        justify-content: flex-start;
        gap: 1.5rem;
    }

    .content {
        padding: 1.5rem;
    }

    .project-thumbnail {
        width: 60px;
        height: 45px;
    }

    .project-name {
        font-size: 1.1rem;
    }
}

/* Tablet responsiveness */
@media (min-width: 641px) and (max-width: 1024px) {
    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
}

/* Desktop responsiveness */
@media (min-width: 1025px) {
    .projects-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 1rem;
    }

    .project-card {
        flex-direction: column;
        text-align: left;
    }

    .project-thumbnail {
        width: 100%;
        height: 120px;
        margin-bottom: 1rem;
    }

    .project-info {
        width: 100%;
        display: flex;
        flex-direction: column;
        flex-grow: 1;
    }

    .project-description {
        flex-grow: 1;
    }

    .project-link {
        margin-top: auto;
    }
}

/* Footer */
.footer {
    background-color: #f3f4f6;
    border-top: 1px solid #e5e7eb;
    padding: 2rem 3rem;
    text-align: center;
    margin-top: 4rem;
}

.footer p {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 0.875rem;
    color: #6b7280;
    line-height: 1.5;
}

/* Mobile footer */
@media (max-width: 640px) {
    .footer {
        padding: 1.5rem;
    }
}