/* Global Styles */
:root {
    --bg-color: #ffffff;
    --text-color: #333333;
    --text-light: #666666;
    --accent-color: #000000;
    --border-color: #e0e0e0;
    --hover-bg: #f9f9f9;
    --font-main: 'Noto Sans KR', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

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

body {
    font-family: var(--font-main);
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a {
    color: var(--text-color);
    text-decoration: none;
    transition: color 0.2s;
}

a:hover {
    color: var(--text-light);
    text-decoration: underline;
}

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

/* Header */
.header {
    padding: 80px 0 40px;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 60px;
}

.header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.header .subtitle {
    font-size: 1.2rem;
    color: var(--text-light);
    font-weight: 300;
}

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

.section-title {
    font-size: 1.5rem;
    border-bottom: 2px solid var(--accent-color);
    padding-bottom: 10px;
    margin-bottom: 30px;
    display: inline-block;
}

/* Profile Grid */
.about-container {
    display: flex;
    gap: 40px;
    align-items: center;
}

.profile-image-container {
    flex-shrink: 0;
}

.profile-image {
    width: 200px;
    height: 250px;
    /* Adjust aspect ratio as needed */
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.profile-grid {
    display: grid;
    grid-template-columns: 1fr;
    /* Stack vertically by default in this layout */
    gap: 15px;
    flex-grow: 1;
}

.profile-item {
    display: flex;
    align-items: center;
    border-bottom: 1px solid #f0f0f0;
    padding-bottom: 10px;
}

@media (max-width: 768px) {
    .about-container {
        flex-direction: column;
        text-align: center;
    }

    .profile-grid {
        width: 100%;
        text-align: left;
    }
}


.profile-item .label {
    width: 100px;
    font-weight: 500;
    color: var(--text-light);
}

.profile-item .value {
    font-weight: 400;
}

/* Resume Grid (Education) */
.resume-grid {
    display: grid;
    gap: 30px;
}

.resume-item h3 {
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.resume-item .date {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 10px;
}

.list {
    list-style: none;
    padding-left: 0;
}

.list li::before {
    content: "•";
    margin-right: 8px;
    color: var(--text-light);
}

/* Skills */
.skill-table {
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: flex-start;
}

.skill-row {
    display: flex;
    align-items: flex-start;
    gap: 0;
    width: 100%;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    overflow: hidden;
}

.skill-row-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 90px;
    padding: 20px 16px;
    background-color: var(--hover-bg);
    border-right: 1px solid var(--border-color);
    flex-shrink: 0;
    align-self: stretch;
}

.skill-category-icon {
    font-size: 1.3rem;
    line-height: 1;
}

.skill-row-label span:last-child {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: var(--text-light);
}

.skill-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 16px 20px;
    align-content: center;
}

.skill-chip {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 6px 12px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background-color: var(--bg-color);
    transition: transform 0.15s, box-shadow 0.15s;
}

.skill-chip:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.07);
}

.skill-chip i {
    font-size: 1.2rem;
    flex-shrink: 0;
}

.skill-chip span {
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--text-color);
    white-space: nowrap;
}

@media (max-width: 600px) {
    .skill-row {
        flex-direction: column;
    }

    .skill-row-label {
        flex-direction: row;
        min-width: unset;
        width: 100%;
        align-self: auto;
        border-right: none;
        border-bottom: 1px solid var(--border-color);
        padding: 12px 16px;
        justify-content: flex-start;
    }
}

/* Timeline */
.timeline {
    border-left: 2px solid var(--border-color);
    padding-left: 30px;
    position: relative;
}

.timeline-item {
    margin-bottom: 40px;
    position: relative;
}

.timeline-item::before {
    content: "";
    position: absolute;
    left: -37px;
    top: 5px;
    width: 12px;
    height: 12px;
    background-color: var(--bg-color);
    border: 2px solid var(--accent-color);
    border-radius: 50%;
}

.timeline-date {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 5px;
}

.award {
    margin-top: 10px;
    color: #d35400;
    /* Bronze/Gold color for emphasis */
    font-weight: 500;
}

/* Projects */
.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
}

.project-card {
    border: 1px solid var(--border-color);
    padding: 25px;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    background-color: var(--bg-color);
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
}

.project-institution {
    font-size: 0.8rem;
    color: var(--accent-color);
    /* Or a specific color like blue or gray */
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 5px;
    display: block;
}

.project-card h3 {
    font-size: 1.1rem;
    margin-bottom: 5px;
    /* Reduced since we have institution above and no summary below */
}

.project-date {
    font-size: 0.85rem;
    color: var(--text-light);
    margin-bottom: 15px;
}

.project-summary {
    font-size: 0.95rem;
    color: var(--text-color);
}

/* Footer */
.footer {
    border-top: 1px solid var(--border-color);
    padding: 40px 0;
    margin-top: 80px;
    text-align: center;
    color: var(--text-light);
    font-size: 0.9rem;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(255, 255, 255, 0.95);
    /* White overlay */
    backdrop-filter: blur(5px);
}

.modal-content {
    background-color: #fff;
    margin: 10% auto;
    padding: 40px;
    border: 1px solid var(--border-color);
    width: 80%;
    max-width: 800px;
    border-radius: 12px;
    position: relative;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.close-button {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close-button:hover,
.close-button:focus {
    color: #000;
    text-decoration: none;
    cursor: pointer;
}

.modal-meta {
    color: var(--text-light);
    margin-bottom: 20px;
    font-size: 0.9rem;
}

.project-detail-section {
    margin-bottom: 30px;
}

.project-detail-section h4,
.meta-item h4,
.tab-content-section h4 {
    border-left: 3px solid var(--accent-color);
    padding-left: 10px;
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.feature-list li {
    margin-bottom: 5px;
}

.architecture-placeholder {
    width: 100%;
    min-height: 200px;
    background-color: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #888;
    border: 2px dashed #ccc;
    border-radius: 8px;
    margin-top: 10px;
    padding: 20px;
    text-align: center;
}

.architecture-image {
    width: 100%;
    height: auto;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    display: block;
    margin-top: 10px;
    cursor: pointer;
    transition: opacity 0.3s;
}

.architecture-image:hover {
    opacity: 0.85;
}

/* Link Styling */
.profile-item .value a {
    color: #0066cc;
    /* Standard link blue for clarity */
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s;
    border-bottom: 1px solid transparent;
}

.profile-item .value a:hover {
    color: #004499;
    text-decoration: underline;
    background-color: rgba(0, 102, 204, 0.05);
    border-radius: 4px;
}

@media (max-width: 600px) {
    .header h1 {
        font-size: 2rem;
    }
}

/* Image Zoom Modal */
.image-zoom-modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(5px);
    align-items: center;
    justify-content: center;
}

.image-zoom-content {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.5);
}

.close-zoom-button {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s;
    z-index: 2001;
}

.close-zoom-button:hover,
.close-zoom-button:focus {
    color: #bbb;
    text-decoration: none;
    cursor: pointer;
}

/* Modal Tabs */
.modal-tabs {
    display: flex;
    border-bottom: 2px solid var(--border-color);
    margin-bottom: 25px;
    flex-wrap: wrap;
}

.tab-btn {
    padding: 10px 20px;
    border: none;
    background: none;
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-light);
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    transition: all 0.2s;
    font-family: var(--font-main);
}

.tab-btn.active {
    color: var(--accent-color);
    border-bottom-color: var(--accent-color);
}

.tab-btn:hover:not(.active) {
    color: var(--text-color);
    background-color: var(--hover-bg);
}

.tab-panel {
    display: none;
}

.tab-panel.active {
    display: block;
}

/* Project meta grid */
.project-meta-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

/* Background Tab */
.tab-content-section {
    margin-bottom: 30px;
}

.bg-paragraph {
    margin-bottom: 16px;
    line-height: 1.8;
    color: var(--text-color);
}

.pain-point-list {
    list-style: none;
    padding-left: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 15px;
}

.pain-point-list li {
    background-color: var(--hover-bg);
    border: 1px solid var(--border-color);
    border-left: 3px solid var(--accent-color);
    padding: 12px 15px;
    border-radius: 4px;
    font-size: 0.9rem;
}

/* Features Tab */
.feature-cards-grid {
    display: grid;
    gap: 12px;
}

.feature-card {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding: 18px 20px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background-color: var(--hover-bg);
    transition: transform 0.15s, box-shadow 0.15s;
}

.feature-card:hover {
    transform: translateX(4px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.feature-number {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--border-color);
    min-width: 36px;
    line-height: 1;
    padding-top: 2px;
    flex-shrink: 0;
}

.feature-info h5 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--text-color);
}

.feature-info p {
    font-size: 0.9rem;
    color: var(--text-light);
    line-height: 1.6;
}

/* Troubleshooting */
.ts-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.ts-item {
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
}

.ts-placeholder {
    border-style: dashed;
}

.ts-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px 20px;
    background-color: var(--hover-bg);
    border-bottom: 1px solid var(--border-color);
}

.ts-number {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--text-light);
    background-color: var(--border-color);
    padding: 3px 8px;
    border-radius: 4px;
    flex-shrink: 0;
}

.ts-header h5 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-color);
}

.ts-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding: 10px 20px;
    border-bottom: 1px solid var(--border-color);
}

.ts-tag {
    font-size: 0.78rem;
    padding: 3px 10px;
    background-color: #f0f0f0;
    border-radius: 20px;
    color: var(--text-light);
    font-weight: 500;
}

.ts-body {
    padding: 20px;
    display: grid;
    gap: 20px;
}

.ts-section {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.ts-label {
    display: inline-block;
    font-size: 0.78rem;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 4px;
    width: fit-content;
}

.ts-label.problem {
    background-color: #fff0f0;
    color: #c0392b;
}

.ts-label.solution {
    background-color: #f0f8ff;
    color: #2980b9;
}

.ts-label.result {
    background-color: #f0fff4;
    color: #27ae60;
}

.ts-section p {
    font-size: 0.9rem;
    line-height: 1.7;
    color: var(--text-color);
}

.ts-placeholder-body {
    padding: 30px 20px;
    text-align: center;
    color: var(--text-light);
    font-style: italic;
}

/* Visual Troubleshooting Styles */
.ts-section-wrapper {
    padding-top: 10px;
    border-top: 1px solid var(--border-color);
}

.ts-visual-item {
    border: 1px solid var(--border-color);
    border-radius: 10px;
    overflow: hidden;
    background: var(--bg-color);
}

.ts-visual-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 13px 18px;
    background: var(--hover-bg);
    border-bottom: 1px solid var(--border-color);
}

.ts-visual-header h5 {
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--text-color);
}

.ts-visual-body {
    padding: 16px 18px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.ts-row {
    display: flex;
    gap: 10px;
    align-items: flex-start;
}

.ts-row-label {
    min-width: 40px;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 0.73rem;
    font-weight: 700;
    text-align: center;
    flex-shrink: 0;
    margin-top: 2px;
}

.problem-label {
    background: #fff0f0;
    color: #c0392b;
}

.solution-label {
    background: #f0f8ff;
    color: #2980b9;
}

.ts-row-text {
    font-size: 0.87rem;
    line-height: 1.65;
    color: var(--text-color);
    flex: 1;
}

.ts-row-content {
    flex: 1;
}

.ts-row-content .ts-row-text {
    margin: 0;
}

.ts-text-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.ts-text-list li {
    font-size: 0.87rem;
    line-height: 1.6;
    color: var(--text-color);
    padding-left: 14px;
    position: relative;
}

.ts-text-list li::before {
    content: "·";
    position: absolute;
    left: 2px;
    color: var(--text-light);
    font-size: 1rem;
}

.ts-flow-compare {
    background: #f7f8fa;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 11px 14px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.flow-row {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.flow-label {
    font-size: 0.7rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 3px;
    min-width: 48px;
    text-align: center;
    flex-shrink: 0;
}

.flow-before {
    background: #fff0f0;
    color: #c0392b;
}

.flow-after {
    background: #f0fff4;
    color: #27ae60;
}

.flow-chain {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 3px;
}

.flow-box {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    padding: 3px 9px;
    font-size: 0.76rem;
    color: var(--text-color);
    white-space: nowrap;
}

.flow-arrow {
    color: #aaa;
    font-size: 0.8rem;
    font-weight: 700;
    padding: 0 1px;
}

.ts-metric-bar {
    display: flex;
    align-items: center;
    gap: 14px;
    background: #f7f8fa;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 11px 16px;
    flex-wrap: wrap;
}

.metric-side {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
}

.metric-val {
    font-size: 1.0rem;
    font-weight: 700;
    line-height: 1;
}

.metric-before-side .metric-val {
    color: #c0392b;
}

.metric-after-side .metric-val {
    color: #27ae60;
}

.metric-lbl {
    font-size: 0.7rem;
    color: var(--text-light);
}

.metric-arrow-icon {
    font-size: 1.4rem;
    color: #bbb;
    font-weight: 700;
}

.metric-badge {
    margin-left: auto;
    background: #e8f5e9;
    color: #27ae60;
    border: 1px solid #c8e6c9;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
}

/* Confidential Notice */
.confidential-notice {
    background-color: #fffbf0;
    border: 1px solid #f0d080;
    border-left: 4px solid #e6a817;
    padding: 12px 16px;
    border-radius: 6px;
    font-size: 0.88rem;
    color: #7a5c00;
    margin-bottom: 20px;
    line-height: 1.6;
}