/* 기본 스타일 */
@font-face {
    font-family: 'SchoolSafetyStarrySky';
    src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/2408-5@1.0/HakgyoansimByeolbichhaneulTTF-L.woff2') format('woff2');
    font-weight: 300;
    font-display: swap;
}

@font-face {
    font-family: 'SchoolSafetyStarrySky';
    src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/2408-5@1.0/HakgyoansimByeolbichhaneulTTF-B.woff2') format('woff2');
    font-weight: 700;
    font-display: swap;
}

@font-face {
    font-family: 'Waguri';
    src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/2403@1.0/WAGURITTF.woff2') format('woff2');
    font-weight: normal;
    font-display: swap;
}

@font-face {
    font-family: 'OmuDaye';
    src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/noonfonts_2304-01@1.0/omyu_pretty.woff2') format('woff2');
    font-weight: normal;
    font-display: swap;
}

/* 드래그 방지 */
* {
    -webkit-user-drag: none;
    -khtml-user-drag: none;
    -moz-user-drag: none;
    -o-user-drag: none;
    user-drag: none;
}

img {
    -webkit-user-drag: none;
    -khtml-user-drag: none;
    -moz-user-drag: none;
    -o-user-drag: none;
    user-drag: none;
    pointer-events: none;
}
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'SchoolSafetyStarrySky', 'Waguri', sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    overflow-x: hidden;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    cursor: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 25 25"><text y="18" font-size="18">⭐</text></svg>'), auto;
}

/* 게임기 프레임 */
.game-console {
    max-width: 1200px;
    margin: 0 auto;
    background: #2c3e50;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
    overflow: hidden;
    position: relative;
}

.game-console::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #ff6b6b, #4ecdc4, #45b7d1, #96ceb4, #feca57);
    z-index: 10;
}

/* 메뉴바 */
.menu-bar {
    background: linear-gradient(135deg, #ff6b6b, #ee5a24);
    padding: 15px 0;
    position: relative;
    z-index: 5;
}

.menu-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 30px;
}

.logo h1 {
    color: white;
    font-family: 'SchoolSafetyStarrySky', cursive;
    font-weight: 700;
    font-size: 28px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    letter-spacing: 1px;
}

.menu-list {
    display: flex;
    list-style: none;
    gap: 30px;
}

.menu-item {
    color: white;
    text-decoration: none;
    font-family: 'Waguri', sans-serif;
    font-weight: normal;
    padding: 12px 24px;
    border-radius: 25px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    letter-spacing: 0.5px;
    display: block;
    text-align: center;
    min-width: 80px;
}

.menu-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255,255,255,0.2);
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 25px;
}

.menu-item:hover::before {
    opacity: 1;
}

.menu-item:hover,
.menu-item.active {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.menu-item.active::before {
    opacity: 1;
}

/* 메인 화면 */
.main-screen {
    background: linear-gradient(135deg, #74b9ff, #0984e3);
    min-height: 600px;
    position: relative;
    overflow: hidden;
}

.main-screen::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="20" cy="20" r="2" fill="rgba(255,255,255,0.1)"/><circle cx="80" cy="40" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="40" cy="80" r="1.5" fill="rgba(255,255,255,0.1)"/></svg>');
    animation: float 20s infinite linear;
}

@keyframes float {
    0% { transform: translateY(0px); }
    100% { transform: translateY(-100px); }
}

.section {
    display: none;
    padding: 40px;
    min-height: 600px;
    position: relative;
    z-index: 2;
}

.section.active {
    display: block;
}

/* Home 섹션 */
.home-content {
    display: flex;
    align-items: center;
    margin-top: 150px;
    justify-content: space-between;
    height: 100%;
    cursor: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="25" height="25" viewBox="0 0 35 35"><text y="22" font-size="22">✨</text></svg>'), auto;
}

.welcome-message {
    flex: 1;
    color: white;
    text-align: center;
}

.welcome-message h2 {
    font-family: 'SchoolSafetyStarrySky', cursive;
    font-weight: 700;
    font-size: 3em;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    animation: bounce 2s infinite;
    letter-spacing: 2px;
    line-height: 1.2;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-10px); }
    60% { transform: translateY(-5px); }
}

.welcome-message p {
    font-family: 'Waguri', sans-serif;
    font-size: 1.3em;
    margin-bottom: 30px;
    opacity: 0.9;
    letter-spacing: 0.5px;
}

.start-button button {
    background: linear-gradient(135deg, #ff6b6b, #ee5a24);
    color: white;
    border: none;
    padding: 18px 35px;
    font-family: 'Waguri', sans-serif;
    font-size: 1.2em;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    letter-spacing: 0.5px;
}

.start-button button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.3);
}

.mario-character {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.character {
    font-size: 8em;
    animation: jump 3s infinite;
}

@keyframes jump {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    25% { transform: translateY(-20px) rotate(-5deg); }
    75% { transform: translateY(-10px) rotate(5deg); }
}

/* About 섹션 */
.about-content {
    color: white;
}

.about-content h2 {
    text-align: center;
    font-family: 'SchoolSafetyStarrySky', cursive;
    font-weight: 700;
    font-size: 3em;
    margin-bottom: 40px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    letter-spacing: 2px;
}

.profile-section {
    display: flex;
    align-items: center;
    margin-bottom: 40px;
    background: rgba(255,255,255,0.1);
    padding: 30px;
    border-radius: 20px;
    backdrop-filter: blur(10px);
}

.profile-image img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    border: 5px solid white;
    margin-right: 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.profile-info h3 {
    font-family: 'SchoolSafetyStarrySky', cursive;
    font-weight: 700;
    font-size: 2.2em;
    margin-bottom: 10px;
    letter-spacing: 1px;
}

.profile-info p {
    font-family: 'OmuDaye';
    font-size: 1.5em;
    opacity: 0.9;
    letter-spacing: 0.5px;
}

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

.info-card {
    background: rgba(255,255,255,0.1);
    padding: 25px;
    border-radius: 15px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
    transition: transform 0.3s ease;
}

.info-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.info-card h4 {
    font-family: 'SchoolSafetyStarrySky', cursive;
    font-weight: 700;
    font-size: 1.4em;
    margin-bottom: 15px;
    color: #feca57;
    letter-spacing: 1px;
}

.info-card ul {
    list-style: none;
}

.info-card li {
    font-family: 'OmuDaye';
    font-size: 1.3em;
    margin-bottom: 8px;
    padding-left: 20px;
    position: relative;
    letter-spacing: 0.3px;
}

.info-card li::before {
    content: '';
    position: absolute;
    left: 0;
}

.skills {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.skill-tag {
    background: linear-gradient(135deg, #feca57, #ff9ff3);
    color: white;
    padding: 10px 18px;
    border-radius: 20px;
    font-family: 'Waguri', sans-serif;
    font-size: 0.95em;
    box-shadow: 0 3px 10px rgba(0,0,0,0.2);
    letter-spacing: 0.3px;
}

/* Design/Motion 섹션 */
.design-content,
.motion-content {
    color: white;
}

.design-content h2,
.motion-content h2 {
    text-align: center;
    font-family: 'SchoolSafetyStarrySky', cursive;
    font-weight: 700;
    font-size: 3em;
    margin-bottom: 40px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    letter-spacing: 2px;
}

.game-board {
    position: relative;
    background: rgba(255,255,255,0.1);
    border-radius: 20px;
    padding: 40px;
    backdrop-filter: blur(10px);
    min-height: 500px;
}

.board-path {
    position: absolute;
    top: 50%;
    left: 50px;
    right: 50px;
    height: 8px;
    background: linear-gradient(90deg, #feca57, #ff9ff3, #54a0ff, #5f27cd);
    border-radius: 4px;
    transform: translateY(-50%);
    z-index: 1;
}

.path-segment {
    height: 100%;
    background: inherit;
    border-radius: inherit;
}

.work-spots {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
    min-height: 400px;
}

.work-spot {
    position: relative;
    cursor: pointer;
    transition: all 0.3s ease;
}

.spot-circle {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #ff6b6b, #ee5a24);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 5px 20px rgba(0,0,0,0.3);
    transition: all 0.3s ease;
    border: 4px solid white;
}

.work-spot:hover .spot-circle {
    transform: scale(1.2);
    box-shadow: 0 10px 30px rgba(0,0,0,0.4);
    background: linear-gradient(135deg, #feca57, #ff9ff3);
}

.work-icon {
    font-size: 2em;
    filter: drop-shadow(2px 2px 4px rgba(0,0,0,0.3));
}

.work-tooltip {
    position: absolute;
    bottom: 100px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0,0,0,0.9);
    color: white;
    padding: 15px;
    border-radius: 10px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 10;
    min-width: 200px;
    text-align: center;
}

.work-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 8px solid transparent;
    border-top-color: rgba(0,0,0,0.9);
}

.work-spot:hover .work-tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(-10px);
}

.work-tooltip h4 {
    font-family: 'SchoolSafetyStarrySky', cursive;
    font-weight: 700;
    font-size: 1.2em;
    margin-bottom: 5px;
    color: #feca57;
    letter-spacing: 0.5px;
}

.work-tooltip p {
    font-family: 'OmuDaye';
    font-size: 1em;
    margin-bottom: 5px;
    opacity: 0.9;
    letter-spacing: 0.3px;
}

.contribution {
    font-family: 'Waguri', sans-serif;
    font-size: 0.85em;
    color: #4ecdc4;
    letter-spacing: 0.3px;
}

/* Contact 섹션 */
.contact-content {
    color: white;
    text-align: center;
}

.contact-content h2 {
    font-family: 'SchoolSafetyStarrySky', cursive;
    font-weight: 700;
    font-size: 3em;
    margin-bottom: 40px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    letter-spacing: 2px;
}

.contact-info {
    display: flex;
    justify-content: center;
    gap: 50px;
    margin-bottom: 40px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 15px;
    background: rgba(255,255,255,0.1);
    padding: 20px 30px;
    border-radius: 15px;
    backdrop-filter: blur(10px);
    transition: transform 0.3s ease;
    font-family: 'Waguri', sans-serif;
    font-size: 1.1em;
    letter-spacing: 0.3px;
}

.contact-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.contact-icon {
    font-size: 1.5em;
}

.future-plans {
    background: rgba(255,255,255,0.1);
    padding: 30px;
    border-radius: 20px;
    backdrop-filter: blur(10px);
    max-width: 800px;
    margin: 0 auto;
}

.future-plans h3 {
    font-family: 'SchoolSafetyStarrySky', cursive;
    font-weight: 700;
    font-size: 1.6em;
    margin-bottom: 20px;
    color: #feca57;
    letter-spacing: 1px;
}

.future-plans p {
    font-family: 'OmuDaye';
    line-height: 1.8;
    font-size: 1.3em;
    opacity: 0.9;
    letter-spacing: 0.3px;
}

/* Footer */
.footer {
    background: linear-gradient(135deg, #2c3e50, #34495e);
    color: white;
    text-align: center;
    padding: 20px;
}

.footer-content p {
    font-family: 'Waguri', sans-serif;
    opacity: 0.8;
    letter-spacing: 0.3px;
}

/* 모달 창 */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.8);
    backdrop-filter: blur(5px);
}

.modal-content {
    background: white;
    margin: 2% auto;
    padding: 0;
    border-radius: 20px;
    width: 95%;
    max-width: 900px;
    max-height: 90vh;
    position: relative;
    box-shadow: 0 20px 60px rgba(0,0,0,0.5);
    animation: modalSlideIn 0.3s ease;
    overflow-y: auto;
    overflow-x: hidden;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.close {
    position: absolute;
    right: 20px;
    top: 20px;
    color: #aaa;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    z-index: 1001;
    background: rgba(0,0,0,0.5);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.close:hover {
    color: white;
    background: #ff6b6b;
    transform: scale(1.1);
}

.modal-body {
    padding: 40px;
    color: #333;
    max-height: calc(90vh - 80px);
    overflow-y: auto;
}

.modal-body h3 {
    font-family: 'SchoolSafetyStarrySky', cursive;
    font-weight: 700;
    font-size: 2.2em;
    margin-bottom: 20px;
    color: #2c3e50;
    text-align: center;
    letter-spacing: 1px;
}

#modalImage {
    text-align: center;
    margin-bottom: 20px;
}

#modalImage img,
#modalImage video,
#modalImage #figma_modal {
    /*max-width: 100%;
    height: auto;*/
    max-height: 400px;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    display: block;
    margin: 0 auto;
}

#modalImage iframe {
    width: 100%;
    height: 7000vh;     /* 또는 100%로 둘 경우, 부모가 충분히 커야 함 */
    min-height: 400px;
    max-height: 80vh;
    display: block;
    margin: 0 auto;
}

#iframe_scale {
    width: 160vh;
    height: 80vh;
}

#figma_modal {
    text-align: center;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-height: 1200px;
    padding-top: 20px;
}

#modalImage {
    max-height: 60vh;
    /*overflow-y: auto;
    overflow-x: hidden;*/
    margin-bottom: 20px;
}

#modalImage video {
    background: #000;
}

/* 스크롤바 스타일링 */
.modal-content::-webkit-scrollbar,
.modal-body::-webkit-scrollbar,
#modalImage::-webkit-scrollbar {
    width: 8px;
}

.modal-content::-webkit-scrollbar-track,
.modal-body::-webkit-scrollbar-track,
#modalImage::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.modal-content::-webkit-scrollbar-thumb,
.modal-body::-webkit-scrollbar-thumb,
#modalImage::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 4px;
}

.modal-content::-webkit-scrollbar-thumb:hover,
.modal-body::-webkit-scrollbar-thumb:hover,
#modalImage::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

.modal-body p {
    font-family: 'Waguri', sans-serif;
    font-size: 1.15em;
    line-height: 1.6;
    margin-bottom: 20px;
    text-align: center;
    letter-spacing: 0.3px;
}

#modalContribution {
    text-align: center;
    font-family: 'Waguri', sans-serif;
    color: #4ecdc4;
    font-size: 1.15em;
    letter-spacing: 0.3px;
}

/* 반응형 디자인 */
@media (max-width: 768px) {
    .menu-container {
        flex-direction: column;
        gap: 20px;
    }
    
    .menu-list {
        gap: 15px;
    }
    
    .home-content {
        flex-direction: column;
        text-align: center;
        padding-top: 100px;
        margin: auto;
    }
    
    .character {
        font-size: 4em;
        margin-top: 30px;
    }
    
    .profile-section {
        flex-direction: column;
        text-align: center;
    }
    
    .profile-image img {
        margin-right: 0;
        margin-bottom: 20px;
    }
    
    .contact-info {
        flex-direction: column;
        gap: 20px;
    }
    
    .work-spots {
        flex-direction: column;
        gap: 30px;
        height: auto;
    }
    
    .board-path {
        display: none;
    }
    
    .work-spot {
        margin: 10px 0;
    }
    
    .work-tooltip {
        position: static;
        transform: none;
        opacity: 1;
        visibility: visible;
        margin-top: 10px;
        white-space: normal;
    }
    
    .work-tooltip::after {
        display: none;
    }
}
