
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}
body {
    background-color: #f9f9fb;
    color: #1d1d1f;
    line-height: 1.6;
    padding: 20px;
}
header {
    max-width: 1000px;
    margin: 0 auto 60px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    padding: 20px 0;
}
.logo {
    font-weight: 700;
    font-size: 1.2rem;
    letter-spacing: -0.5px;
}
.header-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}
.status-badge {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    border: 1px solid transparent;
    transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}
.status-badge:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}
.status-badge--github {
    background-color: #e3fcef;
    color: #00875a;
}
.status-badge--github:hover {
    background-color: #c6f6e0;
    border-color: #00875a33;
}
.status-badge--linkedin {
    background-color: #e8f4fc;
    color: #0a66c2;
}
.status-badge--linkedin:hover {
    background-color: #d0e8f7;
    border-color: #0a66c233;
}
.status-badge:focus-visible, .card:focus-visible, .close-button:focus-visible {
    outline: 2px solid #1d1d1f;
    outline-offset: 3px;
}
main {
    max-width: 1000px;
    margin: 0 auto;
}
.hero {
    margin-bottom: 60px;
}
.hero h1 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 10px;
    letter-spacing: -1px;
}
.hero p {
    font-size: 1.2rem;
    color: #686b77;
    max-width: 600px;
}
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
    gap: 30px;
}
.card {
    display: block;
    width: 100%;
    text-align: left;
    color: inherit;
    font: inherit;
    background: #fff;
    border: 1px solid #e1e4ea;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.02);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    cursor: pointer;
}
.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
}
.card-placeholder {
    position: relative;
    background-color: #eceef2;
    height: 308px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.card-thumbnail {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.card-logo {
    position: absolute;
    bottom: 15px;
    left: 15px;
    z-index: 1;
    max-height: 52px;
    max-width: min(45%, 160px);
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 10px;
    pointer-events: none;
    filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.35));
}
.card-content {
    padding: 20px;
}
.card-content h3 {
    margin-bottom: 8px;
    font-size: 1.15rem;
}
.card-content p {
    color: #686b77;
    font-size: 0.95rem;
}
.modal {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    background: rgba(0, 0, 0, 0.65);
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}
.modal.modal-open {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
}
.modal-content {
    position: relative;
    width: min(1000px, 90vw);
    height: min(850px, 90vh);
    background: #303030;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
    opacity: 0;
    transform: scale(0.92) translateY(15px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}
.modal.modal-open .modal-content {
    opacity: 1;
    transform: scale(1) translateY(0);
}
#project-frame {
    display: block;
    width: 100%;
    height: 100%;
    border: none;
    background: #1e1e1e;
}
.close-button {
    position: absolute;
    top: 25px;
    right: 25px;
    z-index: 10;
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.92);
    color: #333;
    font-size: 27px;
    line-height: 1;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
}
.close-button:hover {
    background: #fff;
    transform: scale(1.08);
}
@media (max-width: 600px) {
    body {
        padding: 14px;
    }
    header {
        margin-bottom: 40px;
        align-items: flex-start;
        flex-direction: column;
    }
    .hero {
        margin-bottom: 35px;
    }
    .hero h1 {
        font-size: 2rem;
    }
    .card-placeholder {
        height: 240px;
    }
    .modal {
        padding: 10px;
    }
    .modal-content {
        width: 100%;
        height: 90vh;
        max-height: 850px;
        border-radius: 14px;
    }
}
/* @media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
    }
} */
