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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 70px;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: #e0e0e0;
    background: #0a0a0a;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.loading {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #0d1117 0%, #161b22 25%, #21262d 50%, #161b22 75%, #0d1117 100%);
    background-size: 400% 400%;
    animation: gradientShift 3s ease infinite;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    opacity: 1;
    transition: opacity 0.5s ease;
    animation: loadingFadeOut 3s ease-in-out forwards;
    font-family: 'JetBrains Mono', 'Courier New', monospace;
}

.loading::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 30%, rgba(0, 255, 127, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(0, 191, 255, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.03) 0%, transparent 70%);
    pointer-events: none;
}

@keyframes loadingFadeOut {
    0%, 80% { 
        opacity: 1; 
        visibility: visible;
    }
    100% { 
        opacity: 0; 
        visibility: hidden;
        pointer-events: none;
    }
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.loading-content {
    text-align: left;
    color: #00ff7f;
    position: relative;
    z-index: 2;
    background: rgba(13, 17, 23, 0.8);
    border: 1px solid #30363d;
    border-radius: 8px;
    padding: 2rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
    min-width: 400px;
}

.loading-text {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #00ff7f;
    font-family: 'JetBrains Mono', monospace;
}

.loading-text::before {
    content: '$ ';
    color: #58a6ff;
}

.loading-subtitle {
    font-size: 1rem;
    margin-bottom: 1.5rem;
    color: #7d8590;
    font-family: 'JetBrains Mono', monospace;
}

.loading-spinner {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
    font-family: 'JetBrains Mono', monospace;
}

.spinner {
    width: 20px;
    height: 20px;
    margin-right: 10px;
    position: relative;
}

.spinner::before {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    border: 2px solid transparent;
    border-top: 2px solid #00ff7f;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.loading-status {
    color: #f0f6fc;
    font-size: 0.9rem;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* 터미널 스타일 진행률 */
.loading-progress {
    width: 100%;
    margin-bottom: 1rem;
    font-family: 'JetBrains Mono', monospace;
}

.progress-label {
    color: #7d8590;
    font-size: 0.8rem;
    margin-bottom: 0.5rem;
}

.progress-bar {
    width: 100%;
    height: 20px;
    background: #21262d;
    border: 1px solid #30363d;
    border-radius: 4px;
    overflow: hidden;
    position: relative;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #00ff7f 0%, #58a6ff 100%);
    width: 0%;
    animation: progressFill 2.5s ease-in-out forwards;
    position: relative;
}

.progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: progressShine 1s ease-in-out infinite;
}

@keyframes progressFill {
    0% { width: 0%; }
    20% { width: 15%; }
    40% { width: 35%; }
    60% { width: 60%; }
    80% { width: 85%; }
    100% { width: 100%; }
}

@keyframes progressShine {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* 코드 라인 애니메이션 */
.loading-code {
    margin-top: 1rem;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.8rem;
}

.code-line {
    color: #7d8590;
    margin-bottom: 0.3rem;
    opacity: 0;
    animation: typewriter 0.5s ease-in-out forwards;
}

.code-line:nth-child(1) { animation-delay: 0.5s; }
.code-line:nth-child(2) { animation-delay: 1s; }
.code-line:nth-child(3) { animation-delay: 1.5s; }

.code-line .keyword { color: #ff7b72; }
.code-line .string { color: #a5d6ff; }
.code-line .comment { color: #8b949e; }

@keyframes typewriter {
    from { 
        opacity: 0; 
        transform: translateX(-10px); 
    }
    to { 
        opacity: 1; 
        transform: translateX(0); 
    }
}

/* Full Page Sections */
.section-fullpage {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 80px 0 30px 0;
    position: relative;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #1e1e2e 100%);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 1000;
    transition: all 0.3s ease;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
    border-bottom: 1px solid rgba(102, 126, 234, 0.3);
    height: 70px;
}

.nav-container {
    max-width: 100%;
    margin: 0;
    padding: 0 60px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
    width: 100%;
}

.nav-logo {
    flex: 0 0 auto;
    margin-left: 0;
}

.logo-text {
    font-size: 1.8rem;
    font-weight: 700;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #667eea 100%);
    background-size: 200% 200%;
    animation: gradientShift 4s ease infinite;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 3rem;
    margin: 0;
    padding: 0;
    flex: 0 0 auto;
    margin-right: 0;
}

.nav-menu li {
    animation: navFadeIn 0.6s ease forwards;
    opacity: 0;
    transform: translateY(-10px);
}

.nav-menu li:nth-child(1) { animation-delay: 0.1s; }
.nav-menu li:nth-child(2) { animation-delay: 0.2s; }
.nav-menu li:nth-child(3) { animation-delay: 0.3s; }
.nav-menu li:nth-child(4) { animation-delay: 0.4s; }
.nav-menu li:nth-child(5) { animation-delay: 0.5s; }

@keyframes navFadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.nav-link {
    text-decoration: none;
    color: #cdd6f4;
    font-weight: 500;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    position: relative;
    padding: 10px 0;
    white-space: nowrap;
}

.nav-link:hover {
    color: #667eea;
    transform: translateY(-2px);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 5px;
}

.bar {
    width: 25px;
    height: 3px;
    background: #e0e0e0;
    margin: 3px 0;
    transition: 0.3s;
    border-radius: 2px;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #1e1e2e 0%, #1a1a3e 25%, #16213e 50%, #1e1e2e 75%, #1a1a3e 100%);
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite;
    color: white;
    position: relative;
    overflow: hidden;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 30% 20%, rgba(102, 126, 234, 0.1) 0%, transparent 40%),
        radial-gradient(circle at 70% 80%, rgba(118, 75, 162, 0.08) 0%, transparent 40%);
    pointer-events: none;
}

.hero-container {
    max-width: 95%;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 2;
    width: 100%;
}

/* IntelliJ IDE Window */
.ide-window-simplified {
    background: linear-gradient(145deg, #1e1e2e 0%, #2a2a3e 100%);
    border-radius: 16px;
    box-shadow: 
        0 25px 80px rgba(0, 0, 0, 0.5),
        0 0 0 1px rgba(255, 255, 255, 0.1);
    overflow: hidden;
    font-family: 'JetBrains Mono', monospace;
    animation: fadeInUp 1s ease;
    height: 90vh;
    min-height: 700px;
    max-height: 800px;
    display: flex;
    flex-direction: column;
    position: relative;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* IDE Title Bar */
.ide-title-bar {
    background: linear-gradient(135deg, #2a2a3e 0%, #313244 100%);
    height: 45px;
    display: flex;
    align-items: center;
    padding: 0 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    flex-shrink: 0;
    position: relative;
}

.ide-controls {
    display: flex;
    gap: 12px;
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    align-items: center;
}

.ide-button {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.ide-button:hover {
    transform: scale(1.1);
}

.ide-button.close {
    background: #ff5f57;
    width: 14px; /* 명시적으로 크기 재선언 */
    height: 14px; /* 명시적으로 크기 재선언 */
}

.ide-button.minimize {
    background: #ffbd2e;
}

.ide-button.maximize {
    background: #28ca42;
}

.ide-title {
    color: #cdd6f4;
    font-size: 14px;
    flex: 1;
    font-weight: 500;
    text-align: center;
    margin: 0 60px;
}

.ide-menu {
    display: flex;
    gap: 25px;
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
}

.ide-menu span {
    color: #cdd6f4;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 8px 12px;
    border-radius: 6px;
}

.ide-menu span:hover {
    color: #ffffff;
    background: rgba(102, 126, 234, 0.2);
}

/* IDE Toolbar */
.ide-toolbar {
    background: #313244;
    height: 40px;
    display: flex;
    align-items: center;
    padding: 0 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    flex-shrink: 0;
}

.toolbar-buttons {
    display: flex;
    gap: 15px;
    margin-right: 25px;
    align-items: center;
}

.toolbar-icon {
    color: #cdd6f4;
    font-size: 16px;
    cursor: pointer;
    padding: 8px;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.toolbar-icon:hover {
    background: rgba(102, 126, 234, 0.2);
    color: #ffffff;
    transform: scale(1.1);
}

.toolbar-icon.run {
    color: #a6e3a1;
}

.toolbar-icon.debug {
    color: #fab387;
}

.toolbar-icon.stop {
    color: #f38ba8;
}

.toolbar-separator {
    width: 1px;
    height: 24px;
    background: rgba(255, 255, 255, 0.2);
    margin: 0 8px;
}

.breadcrumb {
    color: #9399b2;
    font-size: 13px;
}

/* IDE Main Content */
.ide-main-content-simplified {
    display: flex;
    flex: 1;
    overflow: hidden;
}

/* File Tabs */
.file-tabs {
    background: #2a2a3e;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    flex-shrink: 0;
}

.file-tab {
    background: #1e1e2e;
    color: #cdd6f4;
    padding: 12px 20px;
    font-size: 14px;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
}

.file-tab.active {
    background: #1e1e2e;
    color: #ffffff;
    border-bottom: 2px solid #667eea;
}

.file-tab:hover {
    background: #313244;
}

.tab-close {
    margin-left: 15px;
    opacity: 0.7;
    transition: opacity 0.3s ease;
    font-size: 16px;
}

.tab-close:hover {
    opacity: 1;
    color: #f38ba8;
}

/* IDE Editor Area */
.ide-editor-area-simplified {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

/* IDE Content */
.ide-content {
    display: flex;
    background: #1e1e2e;
    flex: 1;
    overflow: hidden;
}

.line-numbers {
    background: #313244;
    padding: 20px 15px 20px 20px;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    user-select: none;
    flex-shrink: 0;
    min-width: 60px;
    font-family: 'JetBrains Mono', monospace;
}

.line-number {
    color: #6c7086;
    font-size: 15px;
    line-height: 1.8;
    text-align: right;
    min-width: 30px;
    font-family: 'JetBrains Mono', monospace;
}

/* Code Editor */
.code-editor {
    flex: 1;
    padding: 20px 20px 20px 20px;
    overflow-x: auto;
    overflow-y: hidden;
    font-size: 15px;
    background: #1e1e2e;
    font-family: 'JetBrains Mono', monospace;
    text-align: left;
}

.code-line {
    font-size: 15px;
    line-height: 1.8;
    min-height: 27px;
    white-space: pre;
    padding: 0;
    margin: 0;
    display: block;
    width: 100%;
    font-family: 'JetBrains Mono', monospace;
    text-align: left;
    position: relative;
    left: 0;
}

/* Code Syntax Highlighting */
.keyword {
    color: #cba6f7;
    font-weight: bold;
}

.package {
    color: #f9e2af;
}

.class-name {
    color: #fab387;
}

.method {
    color: #89b4fa;
}

.type {
    color: #89dceb;
}

.parameter {
    color: #f78c6c;
}

.string {
    color: #a6e3a1;
}

.variable {
    color: #f9e2af;
}

.comment {
    color: #6c7086;
    font-style: italic;
}

.punctuation {
    color: #cdd6f4;
}

.operator {
    color: #89dceb;
}

/* Right Panel - Profile */
.ide-right-panel {
    width: 320px;
    background: #313244;
    border-left: 1px solid rgba(255, 255, 255, 0.1);
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
}

.panel-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 12px 20px;
    color: #ffffff;
    font-size: 13px;
    font-weight: bold;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.profile-section {
    padding: 25px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    flex: 1;
    justify-content: center;
}

.profile-card {
    background: rgba(102, 126, 234, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 2rem;
    text-align: center;
    border: 1px solid rgba(102, 126, 234, 0.3);
    transition: all 0.3s ease;
    width: 100%;
}

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

.profile-img {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    margin-bottom: 1rem;
    border: 4px solid #667eea;
    transition: transform 0.3s ease;
}

.profile-img:hover {
    transform: scale(1.05);
}

.profile-info h3 {
    color: #ffffff;
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.profile-info p {
    color: #cdd6f4;
    font-size: 0.95rem;
}

.hero-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    width: 100%;
}

/* Premium Buttons */
.btn {
    padding: 14px 24px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 15px;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #667eea 100%);
    background-size: 200% 200%;
    animation: gradientShift 4s ease infinite;
    color: white;
    border: none;
    box-shadow: 
        0 8px 25px rgba(102, 126, 234, 0.3),
        0 0 0 1px rgba(255, 255, 255, 0.1);
}

.btn-primary:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 
        0 15px 35px rgba(102, 126, 234, 0.4),
        0 0 0 1px rgba(255, 255, 255, 0.2);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: #ffffff;
    border: 2px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}

/* IDE Status Bar */
.ide-status-bar {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    height: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    flex-shrink: 0;
}

.status-left,
.status-right {
    display: flex;
    gap: 20px;
    align-items: center;
}

.status-item {
    color: rgba(255, 255, 255, 0.9);
    font-size: 12px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.status-item i {
    font-size: 11px;
}

/* Section Titles */
.section-title {
    font-size: 3rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #ffffff 0%, #e0e0e0 50%, #ffffff 100%);
    background-size: 200% 200%;
    animation: gradientShift 4s ease infinite, titleFadeIn 1s ease forwards;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    opacity: 0;
    transform: translateY(-30px);
    text-shadow: 0 0 30px rgba(255, 255, 255, 0.3);
}

@keyframes titleFadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.section-subtitle {
    text-align: center;
    font-size: 1.3rem;
    color: #9399b2;
    margin-bottom: 3rem;
    font-weight: 500;
    animation: subtitleFadeIn 1s ease forwards;
    opacity: 0;
    transform: translateY(20px);
    animation-delay: 0.3s;
}

@keyframes subtitleFadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* About Section */
.about {
    background: linear-gradient(135deg, #16213e 0%, #1e1e2e 25%, #1a1a3e 50%, #16213e 75%, #1e1e2e 100%);
    background-size: 400% 400%;
    animation: gradientShift 20s ease infinite;
    width: 100%;
    padding: 50px 0;
    position: relative;
    overflow: hidden;
}

.about::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 30%, rgba(102, 126, 234, 0.08) 0%, transparent 60%),
        radial-gradient(circle at 80% 70%, rgba(118, 75, 162, 0.06) 0%, transparent 60%);
    pointer-events: none;
}

.about .container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 1;
}

.about-content {
    width: 100%;
    margin-top: 1rem;
}

.about-header {
    text-align: center;
    margin-bottom: 3rem;
}

.about-header h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: #ffffff;
    text-shadow: 0 2px 10px rgba(255, 255, 255, 0.2);
}

.about-header p {
    font-size: 1.2rem;
    line-height: 1.6;
    color: #9399b2;
    max-width: 600px;
    margin: 0 auto;
}

.about-main {
    display: flex;
    gap: 3rem;
    align-items: flex-start;
    width: 100%;
    margin-bottom: 3rem;
}

.about-left {
    flex: 2;
    display: flex;
    flex-direction: column;
    height: 100%;
    gap: 2rem;
}

.about-right {
    flex: 1;
    min-width: 320px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    height: 100%;
    align-self: flex-start;
}

.about-stats {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    height: 100%;
    justify-content: stretch;
    align-items: stretch;
}

.stat-item {
    text-align: center;
    padding: 2rem 1rem;
    background: linear-gradient(145deg, #1e1e2e 0%, #2a2a3e 50%, #313244 100%);
    border-radius: 20px;
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.3),
        0 0 0 1px rgba(102, 126, 234, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-top: 4px solid transparent;
    background-clip: padding-box;
    position: relative;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 160px;
    overflow: hidden;
    animation: statSlideIn 0.8s ease forwards;
    opacity: 0;
    transform: translateX(30px);
}

.stat-item:nth-child(1) { animation-delay: 0.3s; }
.stat-item:nth-child(2) { animation-delay: 0.5s; }
.stat-item:nth-child(3) { animation-delay: 0.7s; }

@keyframes statSlideIn {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.stat-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 20px 20px 0 0;
    z-index: 1;
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.stat-item:hover::before {
    transform: scaleX(1);
}

.stat-item:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: 
        0 30px 60px rgba(102, 126, 234, 0.2),
        0 0 0 1px rgba(102, 126, 234, 0.3);
}

.stat-item h4 {
    font-size: 1.9rem;
    margin-bottom: 0.6rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
    animation: statIconBounce 2s ease-in-out infinite;
}

@keyframes statIconBounce {
    0%, 100% { transform: scale(1) rotate(0deg); }
    25% { transform: scale(1.1) rotate(-5deg); }
    75% { transform: scale(1.05) rotate(5deg); }
}

.stat-item p {
    font-size: 0.98rem;
    margin: 0;
    line-height: 1.5;
    color: #cdd6f4;
}

.stat-item small {
    font-size: 0.85rem;
    opacity: 0.8;
    margin-top: 0.5rem;
    display: block;
    color: #9399b2;
}

/* Sports Background Section */
.sports-background {
    background: linear-gradient(145deg, #1e1e2e 0%, #2a2a3e 100%);
    border-radius: 20px;
    padding: 1.5rem;
    margin-bottom: 0;
    border-left: 5px solid transparent;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    box-shadow: 
        0 8px 25px rgba(0, 0, 0, 0.3),
        0 0 0 1px rgba(102, 126, 234, 0.2);
    width: 100%;
}

.sports-background::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    width: 5px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 20px 0 0 20px;
}

.sports-background h4 {
    font-size: 1.3rem;
    color: #ffffff;
    margin-bottom: 1rem;
    text-align: center;
    text-shadow: 0 2px 8px rgba(255, 255, 255, 0.2);
}

.sports-skills {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    flex: 1;
}

.sport-item {
    display: flex;
    align-items: flex-start;
    gap: 0.8rem;
    padding: 1rem;
    background: linear-gradient(145deg, #313244 0%, #3a3a4e 100%);
    border-radius: 16px;
    box-shadow: 
        0 8px 25px rgba(0, 0, 0, 0.2),
        0 0 0 1px rgba(102, 126, 234, 0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    animation: sportFadeIn 0.8s ease forwards;
    opacity: 0;
    transform: translateX(-30px);
}

.sport-item:nth-child(1) { animation-delay: 0.2s; }
.sport-item:nth-child(2) { animation-delay: 0.4s; }
.sport-item:nth-child(3) { animation-delay: 0.6s; }
.sport-item:nth-child(4) { animation-delay: 0.8s; }

@keyframes sportFadeIn {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.sport-item:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 
        0 15px 35px rgba(102, 126, 234, 0.2),
        0 0 0 1px rgba(102, 126, 234, 0.3);
}

.sport-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
    animation: iconFloat 3s ease-in-out infinite;
}

@keyframes iconFloat {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-5px) rotate(5deg); }
}

.sport-text strong {
    color: #667eea;
    font-size: 1rem;
    display: block;
    margin-bottom: 0.3rem;
}

.sport-text p {
    color: #cdd6f4;
    font-size: 0.85rem;
    line-height: 1.5;
    margin: 0;
}

/* Skill Tree Section */
.skill-tree-section {
    background: linear-gradient(145deg, #1e1e2e 0%, #2a2a3e 100%);
    border-radius: 20px;
    padding: 1.5rem;
    margin-bottom: 0;
    border-left: 5px solid transparent;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    box-shadow: 
        0 8px 25px rgba(0, 0, 0, 0.3),
        0 0 0 1px rgba(102, 126, 234, 0.2);
    width: 100%;
}

.skill-tree-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    width: 5px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 20px 0 0 20px;
}

.skill-tree-section h4 {
    font-size: 1.3rem;
    color: #ffffff;
    margin-bottom: 1.5rem;
    text-align: center;
    font-weight: 600;
    text-shadow: 0 2px 8px rgba(255, 255, 255, 0.2);
}

.skills {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-top: 0;
    flex: 1;
}

.skill-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem;
    background: linear-gradient(145deg, #313244 0%, #3a3a4e 100%);
    border-radius: 16px;
    box-shadow: 
        0 8px 25px rgba(0, 0, 0, 0.2),
        0 0 0 1px rgba(102, 126, 234, 0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-left: 4px solid transparent;
    position: relative;
    animation: skillFadeIn 0.6s ease forwards;
    opacity: 0;
    transform: translateY(20px);
}

.skill-item:nth-child(1) { animation-delay: 0.1s; }
.skill-item:nth-child(2) { animation-delay: 0.2s; }
.skill-item:nth-child(3) { animation-delay: 0.3s; }
.skill-item:nth-child(4) { animation-delay: 0.4s; }
.skill-item:nth-child(5) { animation-delay: 0.5s; }
.skill-item:nth-child(6) { animation-delay: 0.6s; }
.skill-item:nth-child(7) { animation-delay: 0.7s; }
.skill-item:nth-child(8) { animation-delay: 0.8s; }

@keyframes skillFadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.skill-item:hover {
    transform: translateY(-6px) scale(1.02);
    box-shadow: 
        0 15px 35px rgba(102, 126, 234, 0.2),
        0 0 0 1px rgba(102, 126, 234, 0.3);
}

.skill-item span:last-child {
    font-weight: 600;
    color: #e0e0e0;
    transition: color 0.3s ease;
}

.skill-item:hover span:last-child {
    color: #667eea;
}

.skill-icon {
    font-size: 1.5rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: skillPulse 2s ease-in-out infinite;
    transition: all 0.3s ease;
}

.skill-item:hover .skill-icon {
    animation: skillBounce 0.6s ease;
    transform: scale(1.2);
}

@keyframes skillPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

@keyframes skillBounce {
    0%, 20%, 50%, 80%, 100% { transform: scale(1.2); }
    40% { transform: scale(1.3); }
    60% { transform: scale(1.25); }
}

/* Journey Section */
.journey {
    background: linear-gradient(135deg, #1a1a3e 0%, #16213e 25%, #1e1e2e 50%, #1a1a3e 75%, #16213e 100%);
    background-size: 400% 400%;
    animation: gradientShift 25s ease infinite;
    width: 100%;
    padding: 50px 0;
    position: relative;
    overflow: hidden;
}

.journey::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 80% 20%, rgba(102, 126, 234, 0.06) 0%, transparent 70%),
        radial-gradient(circle at 20% 80%, rgba(118, 75, 162, 0.05) 0%, transparent 70%);
    pointer-events: none;
}

.journey .container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 1;
}

.journey-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.journey-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    animation: journeyFadeIn 0.8s ease forwards;
    opacity: 0;
    transform: translateY(30px);
    min-height: 200px;
    width: 100%;
}

.journey-item:nth-child(1) { animation-delay: 0.1s; }
.journey-item:nth-child(2) { animation-delay: 0.2s; }
.journey-item:nth-child(3) { animation-delay: 0.3s; }
.journey-item:nth-child(4) { animation-delay: 0.4s; }
.journey-item:nth-child(5) { animation-delay: 0.5s; }
.journey-item:nth-child(6) { animation-delay: 0.6s; }
.journey-item:nth-child(7) { animation-delay: 0.7s; }

@keyframes journeyFadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.journey-year {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    font-weight: bold;
    font-size: 0.9rem;
    margin-bottom: 1rem;
    box-shadow: 
        0 8px 25px rgba(102, 126, 234, 0.3),
        0 0 0 1px rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

.journey-card {
    background: linear-gradient(145deg, #1e1e2e 0%, #2a2a3e 100%);
    padding: 2rem;
    border-radius: 20px;
    text-align: center;
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.3),
        0 0 0 1px rgba(102, 126, 234, 0.2);
    transition: all 0.4s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 180px;
    width: 100%;
    box-sizing: border-box;
}

.journey-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 
        0 30px 60px rgba(102, 126, 234, 0.2),
        0 0 0 1px rgba(102, 126, 234, 0.3);
}

.journey-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    animation: iconBounce 2s ease-in-out infinite;
}

@keyframes iconBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.journey-card h3 {
    color: #e0e0e0;
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.journey-card p {
    color: #cdd6f4;
    line-height: 1.6;
    flex: 1;
}

.journey-card a {
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
}

.journey-card a:hover {
    color: #764ba2;
}

/* Projects Section */
.projects {
    background: linear-gradient(135deg, #16213e 0%, #1e1e2e 25%, #1a1a3e 50%, #16213e 75%, #1e1e2e 100%);
    background-size: 400% 400%;
    animation: gradientShift 30s ease infinite;
    width: 100%;
    padding: 50px 0;
    position: relative;
    overflow: hidden;
}

.projects::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 25% 25%, rgba(102, 126, 234, 0.08) 0%, transparent 60%),
        radial-gradient(circle at 75% 75%, rgba(118, 75, 162, 0.06) 0%, transparent 60%);
    pointer-events: none;
}

.projects .container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 1;
}

.projects-grid {
    display: grid;
    /* 카드의 최소 너비를 320px로 설정하여 한 줄에 3개가 들어갈 수 있도록 유도 */
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); 
    gap: 2rem;
    margin-top: 2rem;
}

.project-card {
    background: linear-gradient(145deg, #1e1e2e 0%, #2a2a3e 100%);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.3),
        0 0 0 1px rgba(102, 126, 234, 0.2);
    transition: all 0.4s ease;
    animation: projectFadeIn 0.8s ease forwards;
    opacity: 0;
    transform: translateY(30px);
}

.project-card:nth-child(1) { animation-delay: 0.2s; }
.project-card:nth-child(2) { animation-delay: 0.4s; }
.project-card:nth-child(3) { animation-delay: 0.6s; }

@keyframes projectFadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.project-card:hover {
    transform: translateY(-15px) scale(1.03);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.4); /* 더 강조된 그림자 */
}

.project-content {
    padding: 25px;
    display: flex; /* Flexbox 레이아웃 적용 */
    flex-direction: column; /* 세로 방향 정렬 */
    height: 100%; /* 부모 요소 높이만큼 채우도록 설정 */
}

.project-period {
    color: #667eea;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 1rem;
    padding: 0.5rem 1rem;
    background: rgba(102, 126, 234, 0.1);
    border-radius: 20px;
    display: inline-block;
}

.project-content h3 {
    font-size: 1.4rem; /* 제목 줄바꿈 방지를 위해 크기 약간 감소 */
    color: #e0e0e0; /* 밝은 회색으로 변경 */
    margin-bottom: 12px; /* 간격 조정 */
}

.project-content p {
    font-size: 0.95rem; /* 가독성 향상 */
    color: #b0b0b0; /* 약간 더 밝은 회색 */
    margin-bottom: 20px; /* 간격 증가 */
    flex-grow: 1; /* 남은 공간을 모두 차지하도록 설정 */
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem; /* 버튼과의 간격 확보 */
}

.tech-tag {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 500;
}

.project-links-section,
.project-readme {
    margin-top: auto; /* 위쪽 자동 마진으로 하단 정렬 */
    padding-top: 15px; /* 위쪽 패딩 추가 */
    border-top: 1px solid #30363d; /* 구분선 추가 */
    display: flex; /* Flexbox 레이아웃 적용 */
    flex-direction: column; /* 세로 방향 정렬 */
    gap: 0.75rem; /* 버튼 사이 간격 추가 */
}

/* IMSOHIT 카드(project-readme를 사용)의 버튼 아래에만 추가 공간 확보 */
.project-readme {
    padding-bottom: 3.9125rem; /* 계산된 새 값: 약 62.6px, 다른 카드들과 전체 높이를 맞추기 위함 */
}

/* 다른 프로젝트 카드들(project-links-section 사용)의 버튼 아래 기본 패딩 */
.project-links-section {
    padding-bottom: 15px; /* 또는 gap과 일치하는 0.75rem 등으로 조정 가능 */
}

.readme-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: #ffffff;
    text-decoration: none;
    font-weight: 600;
    padding: 0.6rem 1.2rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 10px;
    transition: all 0.3s ease;
    box-shadow: 0 3px 12px rgba(102, 126, 234, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
}

.readme-link:hover {
    background: linear-gradient(135deg, #5a6fd8 0%, #6a4190 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
    color: #ffffff;
}

/* Contact Section */
.contact {
    background: linear-gradient(135deg, #1a1a3e 0%, #16213e 25%, #1e1e2e 50%, #1a1a3e 75%, #16213e 100%);
    background-size: 400% 400%;
    animation: gradientShift 35s ease infinite;
    width: 100%;
    padding: 50px 0;
    position: relative;
    overflow: hidden;
}

.contact::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 30% 70%, rgba(102, 126, 234, 0.08) 0%, transparent 60%),
        radial-gradient(circle at 70% 30%, rgba(118, 75, 162, 0.06) 0%, transparent 60%);
    pointer-events: none;
}

.contact .container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 1;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    margin-top: 2rem;
}

.contact-info h3,
.social-links h3 {
    color: #ffffff;
    margin-bottom: 2rem;
    font-size: 1.5rem;
    text-shadow: 0 2px 10px rgba(255, 255, 255, 0.2);
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: linear-gradient(145deg, #1e1e2e 0%, #2a2a3e 100%);
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.contact-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(102, 126, 234, 0.2);
}

.contact-item i {
    color: #667eea;
    font-size: 1.2rem;
    width: 20px;
    text-align: center;
}

/* 소셜미디어가 아닌 일반 연락처 아이콘만 기본 색상 적용 */
.contact-item:not(.social-item) i {
    color: #667eea;
    font-size: 1.2rem;
    width: 20px;
    text-align: center;
}

/* 소셜미디어 아이콘은 기본 색상 제거 */
.contact-item.social-item i {
    font-size: 1.2rem;
    width: 20px;
    text-align: center;
}

.contact-item span {
    color: #cdd6f4;
    font-weight: 500;
}

.social-buttons {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.social-item {
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.social-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
    z-index: 1;
}

.social-item:hover::before {
    left: 100%;
}

.social-item i {
    transition: transform 0.3s ease;
}

.social-item:hover {
    transform: translateX(10px);
    box-shadow: 0 15px 35px rgba(102, 126, 234, 0.2);
}

.social-item:hover i {
    transform: rotate(15deg);
}

.social-item a {
    color: #cdd6f4;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.social-item:hover a {
    color: #667eea;
}

.social-item span {
    color: inherit;
    font-weight: 500;
}

/* GitHub 아이콘 색상 */
.contact-item.social-item .fa-github {
    color: #f0f6fc !important;
}

.contact-item.social-item:hover .fa-github {
    color: #58a6ff !important;
}

/* LinkedIn 아이콘 색상 */
.contact-item.social-item .fa-linkedin {
    color: #0a66c2 !important;
}

.contact-item.social-item:hover .fa-linkedin {
    color: #378fe9 !important;
}

/* Instagram 아이콘 색상 */
.contact-item.social-item .fa-instagram {
    color: #fd5949 !important;
}

.contact-item.social-item:hover .fa-instagram {
    color: #ff8a80 !important;
}

/* Twitter 아이콘 색상 */
.contact-item.social-item .fa-twitter {
    color: #1d9bf0 !important;
}

.contact-item.social-item:hover .fa-twitter {
    color: #4fc3f7 !important;
}

/* Email 아이콘 색상 */
.contact-item.social-item .fa-envelope {
    color: #ff6b6b !important;
}

.contact-item.social-item:hover .fa-envelope {
    color: #ff8a80 !important;
}

.fun-fact {
    text-align: center;
    margin-top: 3rem;
    padding: 2rem;
    background: linear-gradient(145deg, #1e1e2e 0%, #2a2a3e 100%);
    border-radius: 20px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.fun-fact p {
    color: #cdd6f4;
    font-size: 1.1rem;
    line-height: 1.6;
}

/* Footer */
.footer {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f0f23 100%);
    padding: 2rem 0;
    text-align: center;
    border-top: 1px solid rgba(102, 126, 234, 0.3);
    box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.3);
}

.footer p {
    color: #cdd6f4;
    font-size: 0.9rem;
}

/* Portfolio Detail Modal - E-commerce Style */
.modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    animation: modalFadeIn 0.3s ease-out;
}

.modal-content {
    position: relative;
    background: linear-gradient(145deg, #1e1e2e 0%, #2a2a3e 100%);
    margin: 2% auto;
    padding: 0;
    border: none;
    border-radius: 20px;
    width: 90%;
    max-width: 1000px;
    max-height: 90vh;
    overflow: hidden;
    box-shadow: 
        0 25px 50px rgba(0, 0, 0, 0.5),
        0 0 0 1px rgba(102, 126, 234, 0.2);
    animation: modalSlideIn 0.4s ease-out;
}

.modal-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 2rem 2.5rem;
    border-radius: 20px 20px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.modal-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 80%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.modal-title {
    color: #ffffff;
    font-size: 1.8rem;
    font-weight: 700;
    margin: 0;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    position: relative;
    z-index: 1;
}

.close {
    color: #ffffff;
    font-size: 2rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    position: relative;
    z-index: 1;
}

.close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg) scale(1.1);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.modal-body {
    padding: 2.5rem;
    max-height: calc(90vh - 120px);
    overflow-y: auto;
    color: #cdd6f4;
    line-height: 1.7;
    font-size: 1rem;
}

.modal-body::-webkit-scrollbar {
    width: 8px;
}

.modal-body::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}

.modal-body::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 10px;
    transition: all 0.3s ease;
}

.modal-body::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
}

.modal-body h3 {
    color: #ffffff;
    font-size: 1.4rem;
    font-weight: 600;
    margin: 2rem 0 1rem 0;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid rgba(102, 126, 234, 0.3);
    position: relative;
}

.modal-body h3::before {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 60px;
    height: 2px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 2px;
}

.modal-body h3:first-child {
    margin-top: 0;
}

.modal-body p {
    margin-bottom: 1.2rem;
    text-align: justify;
}

.modal-body strong {
    color: #667eea;
    font-weight: 600;
}

.modal-body a {
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
}

.modal-body a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    transition: width 0.3s ease;
}

.modal-body a:hover {
    color: #764ba2;
    text-shadow: 0 0 10px rgba(102, 126, 234, 0.3);
}

.modal-body a:hover::after {
    width: 100%;
}

/* 모달 애니메이션 */
@keyframes modalFadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

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

/* 반응형 모달 */
@media (max-width: 768px) {
    .modal-content {
        width: 95%;
        margin: 5% auto;
        max-height: 85vh;
    }
    
    .modal-header {
        padding: 1.5rem 1.5rem;
    }
    
    .modal-title {
        font-size: 1.4rem;
    }
    
    .modal-body {
        padding: 1.5rem;
        max-height: calc(85vh - 100px);
        font-size: 0.9rem;
    }
    
    .modal-body h3 {
        font-size: 1.2rem;
    }
}

@media (max-width: 480px) {
    .modal-content {
        width: 98%;
        margin: 2% auto;
        border-radius: 15px;
    }
    
    .modal-header {
        padding: 1rem 1rem;
        border-radius: 15px 15px 0 0;
    }
    
    .modal-title {
        font-size: 1.2rem;
    }
    
    .modal-body {
        padding: 1rem;
        font-size: 0.85rem;
    }
    
    .close {
        width: 35px;
        height: 35px;
        font-size: 1.5rem;
    }
}

/* Responsive Design */
@media (max-width: 1200px) {
    .nav-container {
        padding: 0 40px;
    }
    
    .nav-menu {
        gap: 2rem;
    }
    
    .ide-window-simplified {
        height: 85vh;
        min-height: 600px;
        max-height: 700px;
    }
    
    .about-main {
        gap: 2.5rem;
    }
    
    .about-right {
        min-width: 280px;
    }
    
    .stat-item {
        min-height: 150px;
        padding: 1.8rem 1rem;
    }
    
    .sports-skills {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 1024px) {
    .nav-container {
        padding: 0 30px;
    }
    
    .nav-menu {
        gap: 1.8rem;
    }
    
    .nav-link {
        font-size: 1rem;
    }
    
    .section-fullpage {
        padding: 80px 0 30px 0;
    }
    
    .ide-window-simplified {
        height: 82vh;
        min-height: 680px;
        max-height: 780px;
        margin: 0 auto;
        width: 96%;
    }
    
    .ide-right-panel {
        width: 340px;
        min-width: 300px;
    }
    
    .profile-section {
        padding: 25px 20px;
        gap: 1.8rem;
        justify-content: center;
    }
    
    .profile-card {
        padding: 1.8rem;
        width: 100%;
    }
    
    .profile-img {
        width: 130px;
        height: 130px;
    }
    
    .skills {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .section-title {
        font-size: 2.5rem;
    }
    
    .section-subtitle {
        font-size: 1.1rem;
        margin-bottom: 2rem;
    }
    
    .journey-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .about-header h3 {
        font-size: 2rem;
    }
    
    .about-main {
        flex-direction: column;
        gap: 2rem;
    }
    
    .about-left {
        flex-direction: column;
        gap: 2rem;
        width: 100%;
    }
    
    .sports-background {
        flex: none;
        width: 100%;
        min-width: 0;
    }
    
    .skill-tree-section {
        flex: none;
        width: 100%;
        min-width: 0;
    }
    
    .about-right {
        min-width: auto;
        width: 100%;
    }
    
    .about-stats {
        flex-direction: row;
        justify-content: space-between;
        gap: 1.2rem;
        width: 100%;
        align-items: stretch;
    }
    
    .stat-item {
        flex: 1;
        width: calc(33.333% - 0.8rem);
        min-width: 0;
        max-width: none;
        height: 180px;
        min-height: 180px;
        padding: 1.5rem 1rem;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

@media (max-width: 900px) {
    .about-main {
        flex-direction: column;
        gap: 2rem;
    }
    
    .about-right {
        min-width: auto;
        width: 100%;
    }
    
    .about-stats {
        flex-direction: row;
        justify-content: space-between;
        gap: 1.5rem;
        width: 100%;
    }
    
    .stat-item {
        flex: 1;
        width: calc(33.333% - 1rem);
        min-width: 0;
        max-width: none;
        min-height: 140px;
        padding: 1.5rem 0.8rem;
    }
}

@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #1e1e2e 100%);
        backdrop-filter: blur(10px);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.5);
        padding: 2rem 0;
        gap: 1rem;
        margin-right: 0;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-container {
        padding: 0 20px;
    }
    
    .logo-text {
        font-size: 1.5rem;
    }
    
    .hero-container {
        max-width: 98%;
        padding: 0 10px;
    }
    
    .ide-window-simplified {
        height: auto;
        min-height: auto;
        max-height: none;
        font-size: 12px;
    }
    
    .ide-main-content-simplified {
        flex-direction: column;
    }
    
    .ide-right-panel {
        order: -1;
        width: 100%;
        height: auto;
        min-height: auto;
    }
    
    .profile-section {
        flex-direction: column;
        padding: 20px;
        gap: 1.5rem;
        text-align: center;
    }
    
    .profile-card {
        width: 100%;
        padding: 1.5rem;
    }
    
    .profile-img {
        width: 120px;
        height: 120px;
        margin: 0 auto 1rem auto;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 1rem;
        width: 100%;
    }
    
    .btn {
        width: 100%;
        padding: 12px 20px;
        font-size: 14px;
    }
    
    .ide-editor-area-simplified {
        display: none;
    }
    
    .journey-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .journey-item {
        width: 100%;
        min-height: auto;
    }
    
    .journey-card {
        width: 100%;
        min-height: 160px;
        padding: 1.5rem;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .about-left .skills {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.8rem;
    }
    
    .skill-item {
        padding: 0.8rem;
        font-size: 0.9rem;
    }
    
    .skill-item i {
        font-size: 1.2rem;
    }
    
    .sports-skills {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .sport-item {
        flex-direction: column;
        text-align: center;
        padding: 1.2rem;
        gap: 1rem;
        align-items: center;
    }
    
    .sport-icon {
        font-size: 2.5rem;
        flex-shrink: 0;
        margin-bottom: 0.5rem;
    }
    
    .sport-text {
        text-align: center;
    }
    
    .sport-text strong {
        display: block;
        margin-bottom: 0.5rem;
        font-size: 1rem;
    }
    
    .sport-text p {
        font-size: 0.9rem;
        line-height: 1.5;
        margin: 0;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .section-subtitle {
        font-size: 1rem;
        margin-bottom: 2rem;
    }
    
    .about-main {
        flex-direction: column;
        gap: 2rem;
    }
    
    .about-left {
        flex-direction: column;
        gap: 2rem;
        width: 100%;
    }
    
    .sports-background {
        flex: none;
        width: 100%;
        min-width: 0;
    }
    
    .skill-tree-section {
        flex: none;
        width: 100%;
        min-width: 0;
    }
    
    .about-stats {
        flex-direction: column;
        gap: 1.5rem;
        align-items: center;
        width: 100%;
    }
    
    .stat-item {
        padding: 1.8rem 1.5rem;
        margin: 0;
        width: 100%;
        max-width: 450px;
        min-height: 160px;
        flex: none;
    }
    
    .stat-item h4 {
        font-size: 1.6rem;
    }
    
    .about-header h3 {
        font-size: 1.8rem;
    }
    
    .social-buttons {
        flex-direction: column;
        gap: 0;
    }
}

@media (max-width: 480px) {
    .nav-container {
        padding: 0 15px;
    }
    
    .logo-text {
        font-size: 1.3rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .container {
        padding: 0 15px;
    }
    
    .profile-img {
        width: 100px;
        height: 100px;
    }
    
    .btn {
        font-size: 13px;
        padding: 10px 18px;
    }
    
    .about-left .skills {
        grid-template-columns: 1fr;
        gap: 0.8rem;
    }
    
    .skill-item {
        padding: 1rem;
        font-size: 0.9rem;
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }
    
    .skill-item i {
        font-size: 1.5rem;
    }
    
    .sports-skills {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .sport-item {
        flex-direction: column;
        text-align: center;
        padding: 1.5rem;
        gap: 1rem;
        align-items: center;
    }
    
    .sport-icon {
        font-size: 3rem;
        margin-bottom: 0.8rem;
        flex-shrink: 0;
    }
    
    .sport-text {
        text-align: center;
        width: 100%;
    }
    
    .sport-text strong {
        font-size: 1.1rem;
        margin-bottom: 0.8rem;
        display: block;
        color: #667eea;
    }
    
    .sport-text p {
        font-size: 0.9rem;
        line-height: 1.6;
        margin: 0;
        color: #cdd6f4;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .project-card {
        margin: 0;
    }
    
    .about-stats {
        flex-direction: column;
        gap: 1.2rem;
        align-items: center;
        width: 100%;
    }
    
    .stat-item {
        padding: 1.6rem 1.2rem;
        width: 100%;
        max-width: 380px;
    }
    
    .stat-item h4 {
        font-size: 1.5rem;
    }
    
    .stat-item p {
        font-size: 0.95rem;
    }
    
    .about-header h3 {
        font-size: 1.6rem;
    }
    
    .hero {
        padding: 40px 0;
    }
    
    .ide-window-simplified {
        background: transparent;
        box-shadow: none;
        border: none;
        height: auto;
        display: block;
    }
    
    .ide-title-bar,
    .ide-toolbar,
    .ide-status-bar {
        display: none;
    }
    
    .ide-main-content-simplified {
        background: transparent;
        flex-direction: column;
    }
    
    .profile-section {
        background: rgba(30, 30, 46, 0.8);
        backdrop-filter: blur(10px);
        border-radius: 20px;
        padding: 2rem;
        margin-bottom: 2rem;
    }
}

/* 소셜미디어 각각의 그라데이션 배경 */
#github-social {
    background: linear-gradient(135deg, #24292e 0%, #1a1e22 50%, #0d1117 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

#github-social:hover {
    background: linear-gradient(135deg, #2f363d 0%, #24292e 50%, #1a1e22 100%);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

#linkedin-social {
    background: linear-gradient(135deg, #0077b5 0%, #005885 50%, #004066 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

#linkedin-social:hover {
    background: linear-gradient(135deg, #0088cc 0%, #0077b5 50%, #005885 100%);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

#instagram-social {
    background: linear-gradient(135deg, #e4405f 0%, #c13584 25%, #833ab4 50%, #5851db 75%, #405de6 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

#instagram-social:hover {
    background: linear-gradient(135deg, #f56040 0%, #d63384 25%, #9146ff 50%, #6366f1 75%, #4f46e5 100%);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

#email-social {
    background: linear-gradient(135deg, #ea4335 0%, #d33b2c 50%, #b52d20 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

#email-social:hover {
    background: linear-gradient(135deg, #f55145 0%, #ea4335 50%, #d33b2c 100%);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* 소셜미디어 아이콘과 텍스트 색상 조정 */
#github-social i,
#linkedin-social i,
#instagram-social i,
#email-social i {
    color: #ffffff !important;
}

#github-social a,
#linkedin-social a,
#instagram-social a,
#email-social a {
    color: #ffffff !important;
}

#github-social:hover i,
#linkedin-social:hover i,
#instagram-social:hover i,
#email-social:hover i {
    color: #ffffff !important;
}

#github-social:hover a,
#linkedin-social:hover a,
#instagram-social:hover a,
#email-social:hover a {
    color: #ffffff !important;
}

@keyframes whiteGradientShift {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

@keyframes blink {
    0%, 50% {
        opacity: 1;
    }
    51%, 100% {
        opacity: 0;
    }
}

/* Typing Container Styling */
.typing-container {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 0.3rem;
    min-height: 120px;
    position: relative;
    width: 100%;
}

.typing-text {
    font-family: 'JetBrains Mono', monospace;
    text-align: center;
    line-height: 1.4;
    min-height: 80px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    flex: 1;
}

.typing-text .backend-line {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, #ffffff 0%, #f0f0f0 25%, #ffffff 50%, #e8e8e8 75%, #ffffff 100%);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: whiteGradientShift 4s ease-in-out infinite;
    letter-spacing: 0.05em;
    text-shadow: 0 0 30px rgba(255, 255, 255, 0.5);
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.3));
    transition: all 0.3s ease;
    display: block;
    width: 100%;
}

.typing-text .name-line {
    font-size: 1.8rem;
    font-weight: 700;
    background: linear-gradient(135deg, #ffffff 0%, #f8f8f8 25%, #ffffff 50%, #f0f0f0 75%, #ffffff 100%);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: whiteGradientShift 3s ease-in-out infinite;
    letter-spacing: 0.1em;
    text-shadow: 0 0 40px rgba(255, 255, 255, 0.6);
    filter: drop-shadow(0 0 15px rgba(255, 255, 255, 0.4));
    transition: all 0.3s ease;
    display: block;
    width: 100%;
}

.typing-text.typing .backend-line,
.typing-text.typing .name-line {
    text-shadow: 0 0 50px rgba(255, 255, 255, 0.9);
    filter: drop-shadow(0 0 20px rgba(255, 255, 255, 0.6));
}

.typing-cursor {
    color: #ffffff;
    font-weight: 300;
    animation: blink 1s infinite;
    font-size: 1.6rem;
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.8);
    filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.5));
    transition: opacity 0.5s ease;
    position: absolute;
    bottom: 0;
    right: -0.5rem;
    height: 1.6rem;
    display: flex;
    align-items: flex-end;
    }

.typing-cursor.hide {
        opacity: 0;
    }

.typing-cursor.typing {
    animation: blink 0.8s infinite;
}
  