* {
    margin: 0;
    padding: 0;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 12px;
    font-weight: 300;
    color: #000;
    background: #fff;
    overflow: hidden;
}

.layout {
    display: grid;
    grid-template-columns: 300px 1fr;
    width: 100vw;
    height: 100vh;
}

.sidebar {
    padding: 1rem 1rem;
    width: 300px;
    flex-shrink: 0;
    overflow-y: auto;
}

.nav-container {
    padding: 1.5rem;
}

.sidebar p {
    margin-bottom: 0.5rem;
    line-height: 1.2;
}

a {
    color: #000;
    text-decoration: none;
}

.social-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 12px;
    font-weight: 300;
    color: #999;
    transition: color 0.3s ease;
}

.social-icon {
    opacity: 0;
    width: 14px;
    height: 14px;
    transition: opacity 0.3s ease;
    color: inherit;
}

.social-link:hover {
    color: #000;
}

.social-link:hover .social-icon {
    opacity: 1;
}

.linkedin-link:hover {
    color: #0a66c2;
}

.github-link:hover {
    color: #24292f;
}

button {
    background: none;
    border: none;
    color: #999;
    cursor: pointer;
    font-size: 12px;
    font-weight: 300;
    padding: 0;
}

button.active-link {
    color: #000;
    font-weight: 400;
}


.nav-link {
    background: none;
    border: none;
    color: #999;
    cursor: pointer;
    font-size: 12px;
    font-weight: 300;
    padding: 0;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: #666;
}

/* Education Top */
.education-top {
    font-size: 10px;
    font-weight: 300;
    margin: 0 0 1.5rem 0;
    line-height: 1.2;
    display: flex;
    flex-wrap: wrap;
    gap: 0.2rem;
    align-items: center;
}

.school-group {
    display: inline-block;
}

.shimmer-char {
    display: inline-block;
    position: relative;
    color: #666;
}

/* UVA - Orange */
.shimmer-char.uva {
    animation: shimmer-uva 8s ease-in-out infinite;
    animation-delay: 0s;
}

@keyframes shimmer-uva {
    0%, 10% { color: #666; }
    20%, 30% { color: #f57c00; }
    40%, 100% { color: #666; }
}

/* Yonsei - Royal Blue */
.shimmer-char.yonsei {
    animation: shimmer-yonsei 8s ease-in-out infinite;
    animation-delay: 0s;
}

@keyframes shimmer-yonsei {
    0%, 35% { color: #666; }
    45%, 55% { color: #1565c0; }
    65%, 100% { color: #666; }
}

/* Sogang - Scarlet/Crimson */
.shimmer-char.sogang {
    animation: shimmer-sogang 8s ease-in-out infinite;
    animation-delay: 0s;
}

@keyframes shimmer-sogang {
    0%, 60% { color: #666; }
    70%, 80% { color: #dc3545; }
    90%, 100% { color: #666; }
}

/* UT Austin - Orange */
.shimmer-char.ut {
    animation: shimmer-ut 8s ease-in-out infinite;
    animation-delay: 0s;
}

@keyframes shimmer-ut {
    0%, 85% { color: #666; }
    92.5%, 97.5% { color: #f57c00; }
    100% { color: #666; }
}

.edu-separator {
    margin: 0 0.3rem;
    color: #ccc;
}

.main-content {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    overflow: auto;
    min-height: 0;
}

.page {
    display: none;
    width: 100%;
    min-height: 0;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
}

#home-page {
    justify-content: center;
    align-items: center;
    height: 100%;
}


.page.active {
    display: flex;
}

.scaled-frame {
    width: 100%;
    max-width: 100%;
    position: relative;
    overflow: visible;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 0;
    cursor: pointer;
    transition: all 0.3s ease;
}

.scaled-frame:hover {
    filter: brightness(0.98);
}

.scaled-frame:hover .seorak-iframe {
    border-color: #00d4ff;
    box-shadow: 0 0 12px rgba(0, 212, 255, 0.3);
}

.seorak-iframe {
    border: 1px solid #e0e0e0;
    display: block;
    border-radius: 4px;
    width: 1280px;
    height: 720px;
    transform-origin: top center;
    flex-shrink: 0;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    pointer-events: none;
}

.seorak-fallback-image {
    display: none;
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin-top: 1.5rem;
}

.seorak-details {
    margin-top: 1.5rem;
    text-align: center;
    max-width: 500px;
}

.seorak-title {
    font-size: 12px;
    font-weight: 400;
    letter-spacing: 0.5px;
    margin-bottom: 0.5rem;
    color: #000;
}

.seorak-description {
    font-size: 12px;
    font-weight: 300;
    color: #666;
    line-height: 1.6;
    margin: 0;
}


/* Desktop - wider sidebar */
@media (min-width: 1200px) {
    .layout {
        grid-template-columns: 380px 1fr;
    }

    .sidebar {
        width: 380px;
    }
}

/* Tablet */
@media (min-width: 768px) and (max-width: 1199px) {
    .layout {
        grid-template-columns: 250px 1fr;
    }

    .sidebar {
        width: 250px;
    }

    .education-top {
        font-size: 9px;
    }
}

/* Mobile */
@media (max-width: 767px) {
    .layout {
        grid-template-columns: 180px 1fr;
    }

    .sidebar {
        width: 180px;
        padding: 0.8rem;
    }

    .main-content {
        padding: 1rem;
    }

    #frameWrapper {
        display: none;
    }

    .seorak-fallback-image {
        display: block;
    }

    .education-top {
        font-size: 8px;
    }
}
