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

/* Base */
html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: #000000;
    color: #ffffff;
    line-height: 1.6;
    font-size: 15px;
    font-weight: 400;
}

.page {
    max-width: 520px;
    margin: 0 auto;
    padding: 60px 32px;
}

/* Hero */
.hero {
    margin-bottom: 48px;
}

.hero-line {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
}

.name {
    font-size: 28px;
    font-weight: 500;
    color: #ffffff;
    letter-spacing: -0.02em;
}

.role {
    font-size: 14px;
    font-weight: 400;
    color: #666666;
}

/* Sections */
section {
    margin-bottom: 48px;
}

.section-title {
    font-size: 16px;
    font-weight: 500;
    color: #ffffff;
    margin-bottom: 20px;
    letter-spacing: -0.01em;
}

.subsection {
    margin-top: 32px;
}

.subsection-title {
    font-size: 15px;
    font-weight: 500;
    color: #ffffff;
    margin-bottom: 16px;
    letter-spacing: -0.01em;
}

/* Tech Icons */
.tech-icons {
    display: flex;
    gap: 9px;
    margin-bottom: 32px;
    flex-wrap: wrap;
}

.tech-icon {
    width: 68px;
    height: 68px;
    background: #0a0a0a;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.tech-icon:hover {
    background: #1a1a1a;
}

.tech-icon svg {
    width: 29px;
    height: 29px;
    color: #404040;
}

.tech-icon img {
    width: 29px;
    height: 29px;
    object-fit: contain;
}

/* Item Lists */
.item-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.list-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 18px;
    background: #0a0a0a;
    border-radius: 10px;
    transition: all 0.2s ease;
    text-decoration: none;
}

.list-item.clickable {
    cursor: pointer;
}

.list-item:hover {
    background: #1a1a1a;
}

.list-item:hover .item-name {
    color: #e6e6e6;
    transform: scale(1.03);
}

.list-item:hover .item-detail {
    color: #808080;
    transform: scale(1.03);
}

.item-name {
    font-size: 14px;
    font-weight: 400;
    color: #b3b3b3;
    transition: all 0.2s ease;
    display: inline-block;
}

.item-detail {
    font-size: 13px;
    font-weight: 400;
    color: #595959;
    transition: all 0.2s ease;
    display: inline-block;
}

/* Work Grid - Collage Style */
.work-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    grid-template-rows: repeat(4, 140px);
    gap: 12px;
}

.work-item {
    border-radius: 12px;
    overflow: hidden;
    background: #0a0a0a;
    transition: all 0.2s ease;
    cursor: pointer;
}

.work-item:hover {
    transform: scale(1.03);
}

/* Collage layout */
.work-item:nth-child(1) {
    grid-column: 1 / 4;
    grid-row: 1 / 3;
}

.work-item:nth-child(2) {
    grid-column: 4 / 7;
    grid-row: 1 / 2;
}

.work-item:nth-child(3) {
    grid-column: 4 / 7;
    grid-row: 2 / 3;
}

.work-item:nth-child(4) {
    grid-column: 1 / 3;
    grid-row: 3 / 5;
}

.work-item:nth-child(5) {
    grid-column: 3 / 5;
    grid-row: 3 / 5;
}

.work-item:nth-child(6) {
    grid-column: 5 / 7;
    grid-row: 3 / 5;
}

.work-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Contact Icons */
.contact-icons {
    display: flex;
    gap: 10px;
}

.contact-icon {
    height: 56px;
    background: #0a0a0a;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    text-decoration: none;
}

.contact-icon:first-child {
    flex: 1;
}

.contact-icon:last-child {
    width: 56px;
}

.contact-icon svg {
    width: 22px;
    height: 22px;
    color: #404040;
    transition: all 0.2s ease;
}

.contact-icon:hover {
    background: #1a1a1a;
}

.contact-icon:hover svg {
    color: #888888;
    transform: scale(1.03);
}

/* Image Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    padding: 40px;
    cursor: pointer;
}

.modal.active {
    display: flex;
}

.modal-content {
    max-width: 90%;
    max-height: 90%;
    border-radius: 12px;
    object-fit: contain;
    animation: modalZoom 0.2s ease;
}

@keyframes modalZoom {
    from {
        transform: scale(0.8);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 40px;
    color: #666666;
    cursor: pointer;
    transition: color 0.2s ease;
}

.modal-close:hover {
    color: #ffffff;
}

/* Font Styles */
.font-inter .item-name {
    font-family: 'Inter', sans-serif;
}

.font-petrona .item-name {
    font-family: 'Petrona', serif;
}

.font-whitney .item-name {
    font-family: 'Whitney', -apple-system, BlinkMacSystemFont, sans-serif;
}

.font-plus-jakarta .item-name {
    font-family: 'Plus Jakarta Sans', sans-serif;
}

.font-google-sans .item-name {
    font-family: 'Google Sans', -apple-system, BlinkMacSystemFont, sans-serif;
}

.font-gilroy .item-name {
    font-family: 'Gilroy', -apple-system, BlinkMacSystemFont, sans-serif;
}

.font-gambarino .item-name {
    font-family: 'Gambarino', serif;
}

.font-fraunces .item-name {
    font-family: 'Fraunces', serif;
}

.font-recoleta .item-name {
    font-family: 'Recoleta', serif;
}

.font-craftwork .item-name {
    font-family: 'Craftwork Grotesk', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* Responsive */
@media (max-width: 768px) {
    .page {
        padding: 48px 24px;
    }

    .hero {
        margin-bottom: 40px;
    }

    section {
        margin-bottom: 40px;
    }

    .hero-line {
        flex-direction: column;
        gap: 4px;
    }

    .name {
        font-size: 24px;
    }

    .role {
        font-size: 13px;
    }

    .section-title {
        font-size: 15px;
        margin-bottom: 16px;
    }

    .subsection {
        margin-top: 28px;
    }

    .tech-icons {
        gap: 8px;
    }

    .tech-icon {
        width: 60px;
        height: 60px;
    }

    .tech-icon svg {
        width: 24px;
        height: 24px;
    }

    .work-grid {
        grid-template-columns: repeat(4, 1fr);
        grid-template-rows: repeat(6, 120px);
        gap: 10px;
    }

    .work-item:nth-child(1) {
        grid-column: 1 / 3;
        grid-row: 1 / 3;
    }

    .work-item:nth-child(2) {
        grid-column: 3 / 5;
        grid-row: 1 / 2;
    }

    .work-item:nth-child(3) {
        grid-column: 3 / 5;
        grid-row: 2 / 3;
    }

    .work-item:nth-child(4) {
        grid-column: 1 / 3;
        grid-row: 3 / 5;
    }

    .work-item:nth-child(5) {
        grid-column: 3 / 5;
        grid-row: 3 / 5;
    }

    .work-item:nth-child(6) {
        grid-column: 1 / 5;
        grid-row: 5 / 7;
    }

    .list-item {
        padding: 12px 16px;
    }

    .item-name {
        font-size: 13px;
    }

    .item-detail {
        font-size: 12px;
    }

    .contact-icon {
        height: 52px;
    }

    .contact-icon:last-child {
        width: 52px;
    }

    .contact-icon svg {
        width: 20px;
        height: 20px;
    }
}

@media (max-width: 480px) {
    .page {
        padding: 40px 20px;
    }

    .name {
        font-size: 22px;
    }

    .tech-icons {
        gap: 8px;
    }

    .tech-icon {
        width: 56px;
        height: 56px;
    }

    .tech-icon svg {
        width: 22px;
        height: 22px;
    }

    .work-grid {
        grid-template-columns: 1fr;
        grid-template-rows: repeat(6, 200px);
        gap: 10px;
    }

    .work-item:nth-child(1),
    .work-item:nth-child(2),
    .work-item:nth-child(3),
    .work-item:nth-child(4),
    .work-item:nth-child(5),
    .work-item:nth-child(6) {
        grid-column: 1 / 2;
    }

    .work-item:nth-child(1) { grid-row: 1 / 2; }
    .work-item:nth-child(2) { grid-row: 2 / 3; }
    .work-item:nth-child(3) { grid-row: 3 / 4; }
    .work-item:nth-child(4) { grid-row: 4 / 5; }
    .work-item:nth-child(5) { grid-row: 5 / 6; }
    .work-item:nth-child(6) { grid-row: 6 / 7; }
}