/* Design System Variables */
:root {
    --bg-dark: #0a0c10;
    --bg-surface: #14171f;
    --bg-card: #1c212b;
    --border-color: #2a3140;
    
    --text-primary: #f0f6fc;
    --text-secondary: #8b949e;
    
    --accent: #00e5ff;
    --accent-hover: #00b8cc;
    --accent-glow: rgba(0, 229, 255, 0.2);
    
    --font-main: 'Pretendard', -apple-system, BlinkMacSystemFont, system-ui, Roboto, sans-serif;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset & Base */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    background-color: var(--bg-dark);
    color: var(--text-primary);
    font-family: var(--font-main);
    line-height: 1.6;
    overflow-x: hidden;
}
a { text-decoration: none; color: inherit; }
li { list-style: none; }

/* Layout Utilities */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}
.section-padding { padding: 120px 0; }
.bg-surface { background-color: var(--bg-surface); }

/* Typography */
h1, h2, h3, h4 { font-weight: 700; line-height: 1.3; }
.text-gradient {
    background: linear-gradient(135deg, #ffffff 0%, var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.section-header { text-align: center; margin-bottom: 64px; }
.section-header h2 { font-size: 2.5rem; margin-bottom: 16px; }
.section-header p { color: var(--text-secondary); font-size: 1.1rem; }

/* Navigation */
.navbar {
    position: fixed;
    top: 0; width: 100%;
    background: rgba(10, 12, 16, 0.8);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
    padding: 20px 0;
}
.nav-container {
    max-width: 1200px; margin: 0 auto; padding: 0 24px;
    display: flex; justify-content: space-between; align-items: center;
}
.logo { font-size: 1.5rem; font-weight: 800; color: var(--accent); }
.nav-links { display: flex; gap: 32px; }
.nav-links a { font-weight: 500; transition: var(--transition); }
.nav-links a:hover { color: var(--accent); }

/* Buttons */
.btn {
    display: inline-flex; align-items: center; justify-content: center;
    padding: 14px 28px; border-radius: 8px;
    font-weight: 600; cursor: pointer; transition: var(--transition);
}
.btn-primary {
    background-color: var(--accent); color: var(--bg-dark);
    box-shadow: 0 0 20px var(--accent-glow);
}
.btn-primary:hover { background-color: var(--accent-hover); transform: translateY(-2px); }
.btn-outline { border: 1px solid var(--border-color); color: var(--text-secondary); background: rgba(255, 255, 255, 0.02); }
.btn-outline:hover { border-color: var(--accent); color: var(--text-primary); background: rgba(255, 255, 255, 0.04); }
.btn-small { padding: 10px 20px; font-size: 0.9rem; }

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex; align-items: center;
    padding-top: 80px; /* nav height offset */
}
.hero-subtitle { color: var(--accent); font-size: 1.2rem; margin-bottom: 16px; font-weight: 600;}
.hero-title { font-size: 3.5rem; margin-bottom: 24px; letter-spacing: -0.02em; }
.hero-desc { color: var(--text-secondary); font-size: 1.2rem; margin-bottom: 40px; }
.hero-cta { display: flex; gap: 16px; }

/* Core Strengths (Cards) */
.strengths-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 24px;
}
.card {
    background: var(--bg-card); border: 1px solid var(--border-color);
    padding: 32px; border-radius: 16px; transition: var(--transition);
}
.card:hover { transform: translateY(-8px); border-color: var(--accent); box-shadow: 0 10px 30px rgba(0,0,0,0.5); }
.icon-large { font-size: 2.5rem; color: var(--accent); margin-bottom: 20px; }
.card h3 { margin-bottom: 16px; font-size: 1.25rem; }
.card p { color: var(--text-secondary); font-size: 0.95rem; }

/* Tech Stack (Chips) */
.skills-wrapper { display: flex; flex-direction: column; gap: 32px; max-width: 800px; margin: 0 auto;}
.skill-category h3 { font-size: 1.1rem; color: var(--text-secondary); margin-bottom: 16px; text-align: center;}
.chip-group { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.chip {
    background: rgba(255,255,255,0.05); border: 1px solid var(--border-color);
    padding: 10px 20px; border-radius: 30px; font-size: 0.9rem;
    transition: var(--transition);
}
.chip:hover { background: var(--accent-glow); border-color: var(--accent); color: var(--accent); }

/* Projects */
.project-showcase {
    display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center;
    margin-bottom: 120px;
}
.project-showcase.reverse { direction: rtl; }
.project-showcase.reverse .project-content { direction: ltr; }
.project-tags { display: flex; gap: 8px; margin-bottom: 16px; flex-wrap: wrap; }
.tag { background: var(--bg-card); color: var(--accent); font-size: 0.8rem; padding: 4px 12px; border-radius: 4px; font-weight: 600;}
.project-title { font-size: 2rem; margin-bottom: 16px; }
.project-summary { color: var(--text-secondary); margin-bottom: 24px; font-size: 1.1rem; }
.project-features { margin-bottom: 32px; }
.project-features li { margin-bottom: 12px; padding-left: 20px; position: relative; color: var(--text-secondary); }
.project-features li::before {
    content: "▹"; color: var(--accent); position: absolute; left: 0; font-weight: bold;
}
/* Visual Placeholders (Replace with real images later) */
.project-visual {
    height: 400px; border-radius: 16px; display: flex; align-items: center; justify-content: center;
    background-size: cover; background-position: center; border: 1px solid var(--border-color);
    position: relative; overflow: hidden;
}
.mockup-bg-1 { 
    background: linear-gradient(45deg, #1a2332, #0d1b2a); 
    background-image: url('../images/FMCS/FMCS_Cover.png');
    background-size: cover; /* 이미지가 요소를 꽉 채우도록 설정 */
    background-position: center; /* 이미지의 위치를 중앙으로 설정 */
    background-repeat: no-repeat; /* 이미지 반복 방지 */
}
.mockup-bg-2 { background: linear-gradient(45deg, #2b1d32, #1a0f2e); }
.mockup-bg-3 { background: linear-gradient(45deg, #1c3329, #0d211c); }
.mockup-content { text-align: center; color: rgba(255,255,255,0.3); }
.mockup-content i { font-size: 4rem; margin-bottom: 16px; display: block;}

.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
}
.project-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: var(--transition);
    cursor: pointer;
}
.project-card:hover {
    transform: translateY(-8px);
    border-color: var(--accent);
    box-shadow: 0 20px 40px rgba(0,0,0,0.35);
}
.project-card-image {
    min-height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-size: cover;
    background-position: center;
    padding: 28px;
}
.project-card-icon {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: rgba(0,229,255,0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    font-size: 2rem;
}
.project-card-body {
    padding: 28px;
    display: flex;
    flex-direction: column;
    gap: 18px;
    flex: 1;
}
.card-period {
    color: var(--accent);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}
.card-title {
    font-size: 1.6rem;
    line-height: 1.25;
}
.card-desc {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.75;
    min-height: 88px;
}
.card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.project-card-large {
    grid-column: span 2;
}
.project-mini-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}
.project-card-mini {
    background: rgba(255,255,255,0.04);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 16px;
}
.project-card-mini strong {
    display: block;
    margin-bottom: 6px;
    color: var(--text-primary);
}
.project-card-mini small {
    display: block;
    margin-bottom: 10px;
    color: var(--text-secondary);
    font-size: 0.82rem;
}

/* Experience Timeline */
.timeline { max-width: 800px; margin: 0 auto; position: relative; }
.timeline::before {
    content: ''; position: absolute; top: 0; left: 24px; height: 100%; width: 2px; background: var(--border-color);
}
.timeline-item { position: relative; padding-left: 64px; margin-bottom: 48px; }
.timeline-item::before {
    content: ''; position: absolute; left: 19px; top: 0; width: 12px; height: 12px;
    background: var(--bg-dark); border: 2px solid var(--accent); border-radius: 50%;
}
.timeline-date { color: var(--accent); font-weight: 600; margin-bottom: 8px; }
.timeline-content h3 { font-size: 1.25rem; margin-bottom: 4px; }
.timeline-content h4 { color: var(--text-secondary); font-weight: 400; margin-bottom: 12px; font-size: 0.95rem;}
.timeline-content p { color: var(--text-secondary); }

/* Footer */
.footer { text-align: center; padding: 80px 0 40px; border-top: 1px solid var(--border-color); }
.footer h2 { margin-bottom: 16px; }
.footer p { color: var(--text-secondary); margin-bottom: 32px; }
.contact-links { display: flex; justify-content: center; gap: 24px; margin-bottom: 48px; flex-wrap: wrap;}
.contact-item { display: flex; align-items: center; gap: 8px; color: var(--text-secondary); transition: var(--transition); }
.contact-item:hover { color: var(--accent); }
.copyright { color: var(--text-secondary); font-size: 0.9rem; opacity: 0.5; }

/* Utilities & Animations */
.reveal { opacity: 0; transform: translateY(30px); transition: all 0.8s cubic-bezier(0.5, 0, 0, 1); }
.reveal.active { opacity: 1; transform: translateY(0); }
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }

/* Responsive Media Queries */
@media (max-width: 768px) {
    .nav-links { display: none; } /* 모바일에선 심플하게 숨김 처리 또는 햄버거 메뉴로 확장 가능 */
    .hero-title { font-size: 2.5rem; }
    .hero-cta { flex-direction: column; }
    .project-showcase, .project-showcase.reverse { grid-template-columns: 1fr; gap: 32px; text-align: left; }
    .timeline::before { left: 16px; }
    .timeline-item { padding-left: 48px; }
    .timeline-item::before { left: 11px; }
}
/* Project 4 Visual Background */
.mockup-bg-4 { background: linear-gradient(45deg, #321d23, #2e0f18); }

/* Resume Section (Two Columns) */
.resume-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
}
.resume-category {
    display: flex; align-items: center; gap: 8px;
    font-size: 1.5rem; color: var(--text-primary);
    margin-bottom: 32px; padding-bottom: 16px;
    border-bottom: 1px solid var(--border-color);
}
.resume-category i { color: var(--accent); }

@media (max-width: 768px) {
    .resume-grid { grid-template-columns: 1fr; gap: 48px; }
}

/* Modal System */
.modal {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    z-index: 9999; display: flex; align-items: center; justify-content: center;
    opacity: 0; pointer-events: none; transition: opacity 0.3s ease;
}
.modal.active { opacity: 1; pointer-events: auto; }

.modal-backdrop {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(10, 12, 16, 0.85); backdrop-filter: blur(10px);
}

.modal-content {
    position: relative; width: 90%; max-width: 800px; max-height: 85vh;
    background: var(--bg-card); border: 1px solid var(--border-color);
    border-radius: 16px; padding: 40px; overflow-y: auto;
    transform: translateY(30px); transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
    box-shadow: 0 20px 40px rgba(0,0,0,0.5), 0 0 0 1px rgba(0, 229, 255, 0.1);
}
.modal.active .modal-content { transform: translateY(0); }

.modal-close {
    position: absolute; top: 24px; right: 24px;
    background: transparent; border: none; color: var(--text-secondary);
    font-size: 1.5rem; cursor: pointer; transition: color 0.2s;
}
.modal-close:hover { color: var(--accent); }

/* Modal Inner Content Styles */
.modal-body h2 { font-size: 2rem; margin-bottom: 8px; color: var(--accent); }
.modal-body .role { font-size: 1.1rem; color: var(--text-secondary); margin-bottom: 32px; }
.modal-section { margin-bottom: 24px; }
.modal-section h4 { font-size: 1.2rem; margin-bottom: 12px; border-left: 3px solid var(--accent); padding-left: 12px;}
.modal-section p { color: var(--text-primary); line-height: 1.7; }
.modal-section ul { padding-left: 20px; color: var(--text-secondary); }
.modal-section ul li { margin-bottom: 8px; }

/* Body scroll lock */
body.modal-open { overflow: hidden; }