@font-face {
    font-family: "Inter";
    src: url("fonts/Inter/Inter-VariableFont_opsz,wght.ttf") format("truetype");
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Inter";
    src: url("fonts/Inter/Inter-Italic-VariableFont_opsz,wght.ttf") format("truetype");
    font-weight: 100 900;
    font-style: italic;
    font-display: swap;
}

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

body {
    font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background-color: white;
    color: black;
    line-height: 1.6;
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

nav {
    margin-bottom: 40px;
    padding-bottom: 10px;
    border-bottom: 1px solid #ccc;
}

nav a {
    margin-right: 20px;
    color: black;
    text-decoration: none;
}

nav a:hover {
    text-decoration: underline;
}

main {
    min-height: calc(100vh - 200px);
}

h1, h2, h3 {
    margin-bottom: 20px;
}

p {
    margin-bottom: 15px;
}

a {
    color: #0066cc;
}

footer {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #ccc;
    text-align: center;
    font-size: 0.9em;
    color: #666;
}

.profile-img {
    grid-area: profile;
    width: 100%;
    max-width: 200px;
    border-radius: 5px;
}

.about-container {
    display: grid;
    grid-template-columns: 200px minmax(0, 1fr);
    grid-template-areas:
        "profile bio"
        "contact bio";
    column-gap: 40px;
    row-gap: 20px;
    align-items: start;
    margin-top: 20px;
}

.about-right {
    grid-area: bio;
    min-width: 0;
}

.contact-info {
    grid-area: contact;
}

.contact-info h3 {
    margin-bottom: 10px;
    font-size: 1em;
}

.contact-info p {
    margin-bottom: 5px;
    font-size: 0.95em;
}

.bunny-img {
    width: 80px;
    margin-top: 15px;
}

.project {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.project:last-child {
    border-bottom: none;
}

.project h3 {
    margin-bottom: 0;
}

.project .meta {
    color: #6b7280;
    font-size: 0.95em;
    margin: 0 0 12px 0;
}

.project .description {
    color: #1f2937;
    font-size: 1rem;
    margin-bottom: 12px;
}

.project h3 {
    font-weight: 700;
    color: #0b2540;
    margin-bottom: 0;
}

.project-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 12px;
    margin-bottom: 0;
}

.project .dates {
    color: #000;
    font-size: 0.9rem;
    font-weight: 400;
    white-space: nowrap;
}

.course-section {
    margin-top: 30px;
}

.course-section h3 {
    font-weight: 700;
    color: #0b2540;
    margin-bottom: 10px;
}

.course-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr));
    column-gap: 20px;
    row-gap: 8px;
    list-style: none;
}

.course-grid li {
    min-width: 0;
    padding-bottom: 6px;
    border-bottom: 1px solid #eee;
    overflow-wrap: anywhere;
}

@media (max-width: 600px) {
    .about-container {
        grid-template-columns: minmax(0, 1fr);
        grid-template-areas:
            "profile"
            "bio"
            "contact";
        gap: 24px;
    }
    .profile-img {
        margin: 0;
    }
    .about-right p:last-child,
    .contact-info p:last-child {
        margin-bottom: 0;
    }
    .project-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }
    .project .dates {
        order: 2;
    }
}

.project-images {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-bottom: 15px;
}

.project-images img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 4px;
}

@media (max-width: 600px) {
    .project-images {
        grid-template-columns: 1fr;
    }
    .project-images img {
        height: auto;
    }
}

.blog-list {
    list-style: none;
}

.blog-list li {
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.blog-list a {
    font-size: 1.1em;
}

.blog-date {
    color: #666;
    font-size: 0.9em;
}

.blog-content img {
    max-width: 100%;
    margin: 20px 0;
}

.blog-content pre {
    background-color: #f5f5f5;
    padding: 15px;
    overflow-x: auto;
    margin: 15px 0;
}

.blog-content code {
    background-color: #f5f5f5;
    padding: 2px 5px;
}

.blog-content blockquote {
    border-left: 3px solid #ccc;
    padding-left: 15px;
    margin: 15px 0;
    color: #555;
}

.gallery {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-top: 20px;
}

.gallery-item {
    overflow: hidden;
}

.gallery-item img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
}

.gallery-item img:hover {
    transform: scale(1.02);
}
