/* ========================================
   CSS Reset & Variables
   ======================================== */

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

:root {
    /* Colors */
    --color-dark: #2d2d2d;
    --color-dark-secondary: #1a1a1a;
    --color-light: #ffffff;
    --color-gray: #f5f5f5;
    --color-gray-light: #e8e8e8;
    --color-text-dark: #333333;
    --color-text-gray: #666666;
    --color-accent: #000000;
    --color-hover: #f0f0f0;

    /* Typography */
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-size-base: 16px;
    --font-size-small: 14px;
    --font-size-large: 18px;
    --font-size-h1: 48px;
    --font-size-h2: 32px;
    --font-size-h3: 24px;
    --line-height-base: 1.6;

    /* Spacing */
    --spacing-xs: 8px;
    --spacing-sm: 16px;
    --spacing-md: 24px;
    --spacing-lg: 32px;
    --spacing-xl: 48px;

    /* Layout */
    --sidebar-width: 280px;
    --content-max-width: 1200px;
}

/* ========================================
   Base Styles
   ======================================== */

html {
    font-size: var(--font-size-base);
}

body {
    font-family: var(--font-primary);
    line-height: var(--line-height-base);
    color: var(--color-text-dark);
    background-color: var(--color-light);
}

/* ========================================
   Layout Container
   ======================================== */

.container {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* ========================================
   Top Navigation (GNB)
   ======================================== */

.sidebar {
    width: 100%;
    background-color: #ffffff;
    color: var(--color-text-dark);
    padding: 0 var(--spacing-xl);
    position: fixed;
    height: auto;
    left: 0;
    top: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.sidebar-header {
    padding: var(--spacing-md) 0;
}

.site-title-link {
    text-decoration: none;
    color: inherit;
    display: block;
    transition: opacity 0.2s ease;
}

.site-title-link:hover {
    opacity: 0.7;
}

.site-title {
    font-size: var(--font-size-large);
    font-weight: 500;
    line-height: 1.3;
    letter-spacing: -0.5px;
    margin: 0;
    color: var(--color-text-dark);
}

.sidebar-nav {
    flex: 1;
    display: flex;
    justify-content: flex-end;
}

.sidebar-nav ul {
    list-style: none;
    display: flex;
    gap: var(--spacing-lg);
    margin: 0;
    padding: 0;
}

.sidebar-nav li {
    margin: 0;
}

.sidebar-nav a {
    color: var(--color-text-dark);
    text-decoration: none;
    display: block;
    padding: var(--spacing-md) 0;
    font-size: var(--font-size-base);
    transition: color 0.2s ease;
    white-space: nowrap;
}

.sidebar-nav a:hover {
    color: #2d2d2d;
}

.sidebar-nav a.active {
    font-weight: 500;
    color: #2d2d2d;
    border-bottom: 2px solid #2d2d2d;
}

.sidebar-footer {
    display: none;
}

/* ========================================
   Main Content
   ======================================== */

.content {
    margin-top: 70px;
    flex: 1;
    padding: 0;
    width: 100%;
    background-color: #fafafa;
}

/* ========================================
   About Section (2-column layout)
   ======================================== */

.about-container {
    display: grid;
    grid-template-columns: 400px 1fr;
    gap: var(--spacing-xl);
    max-width: 1400px;
    margin: 0 auto;
    padding: var(--spacing-xl);
    min-height: calc(100vh - 70px);
}

/* Profile Card (Left Column) */
.profile-card {
    background: #ffffff;
    padding: var(--spacing-xl);
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    text-align: center;
    height: fit-content;
    position: sticky;
    top: 90px;
}

.profile-image-wrapper {
    width: 200px;
    height: 200px;
    margin: 0 auto var(--spacing-md);
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid #f5f5f5;
}

.profile-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 20%;
}

.profile-name {
    font-size: var(--font-size-h2);
    font-weight: 600;
    margin-bottom: var(--spacing-xs);
    color: var(--color-text-dark);
}

.profile-title {
    font-size: var(--font-size-base);
    color: var(--color-text-gray);
    margin-bottom: var(--spacing-md);
}

.profile-affiliation {
    font-size: var(--font-size-small);
    color: var(--color-text-gray);
    margin-bottom: var(--spacing-md);
    line-height: 1.6;
}

.profile-affiliation p {
    margin-bottom: var(--spacing-sm);
}

.profile-affiliation a {
    color: #2d2d2d;
    text-decoration: none;
}

.profile-affiliation a:hover {
    text-decoration: underline;
}

.profile-social-links {
    display: flex;
    gap: var(--spacing-sm);
    justify-content: center;
    margin-top: var(--spacing-md);
}

.profile-social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: #2d2d2d;
    color: var(--color-light);
    border-radius: 50%;
    text-decoration: none;
    transition: all 0.2s ease;
}

.profile-social-link:hover {
    transform: translateY(-2px);
    background-color: #1a1a1a;
}

/* About Content (Right Column) */
.about-content {
    background: #ffffff;
    padding: var(--spacing-xl);
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.about-title {
    font-size: var(--font-size-h1);
    font-weight: 700;
    margin-bottom: var(--spacing-lg);
    color: var(--color-text-dark);
}

.about-description {
    font-size: var(--font-size-base);
    line-height: 1.8;
    color: var(--color-text-dark);
    margin-bottom: var(--spacing-xl);
}

.about-description p {
    margin-bottom: var(--spacing-md);
}

.about-description a {
    color: #2d2d2d;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color 0.2s ease;
}

.about-description a:hover {
    border-bottom-color: #2d2d2d;
}

/* Info Grid (Interests & Education) */
.info-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-xl);
    margin-top: var(--spacing-xl);
}

.info-section {
    padding: 0;
}

.info-title {
    font-size: var(--font-size-h3);
    font-weight: 700;
    margin-bottom: var(--spacing-md);
    color: var(--color-text-dark);
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.info-title i {
    color: var(--color-text-gray);
    font-size: 1.2em;
}

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

.info-list li {
    padding: var(--spacing-xs) 0;
    color: var(--color-text-gray);
    position: relative;
    padding-left: 20px;
}

.info-list li:before {
    content: "•";
    position: absolute;
    left: 0;
    color: #2d2d2d;
    font-weight: bold;
}

/* Education Items */
.education-list {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.education-item {
    display: flex;
    gap: var(--spacing-sm);
    align-items: flex-start;
}

.education-icon {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    background-color: #2d2d2d;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}

.education-content {
    flex: 1;
}

.education-degree {
    font-weight: 600;
    color: var(--color-text-dark);
    margin-bottom: 4px;
}

.education-school {
    font-size: var(--font-size-small);
    color: var(--color-text-gray);
}

/* ========================================
   Header Section (Profile) - Legacy styles
   ======================================== */

.header-section {
    background: linear-gradient(to right, #DED3D1 0%, #E8E0DE 50%, #F2EBE9 100%);
    padding: 0;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    min-height: calc(50vh - 80px);
    height: calc(50vh - 80px);
    position: relative;
    overflow: hidden;
}

.header-content {
    max-width: 600px;
    flex: 0 0 auto;
    padding: var(--spacing-xl);
    z-index: 2;
    align-self: center;
}

/* 데스크톱(웹 브라우저)에서만 padding-left 적용 */
@media (min-width: 1025px) {
    .header-content {
        padding-left: 312px;
    }
}

.header-title {
    font-size: var(--font-size-h1);
    font-weight: 600;
    margin-bottom: var(--spacing-sm);
    letter-spacing: -1px;
}

.header-subtitle {
    font-size: var(--font-size-large);
    color: var(--color-text-gray);
    margin-bottom: var(--spacing-md);
}

.social-links {
    display: flex;
    gap: var(--spacing-sm);
    margin-top: var(--spacing-md);
}

.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background-color: var(--color-dark);
    color: var(--color-light);
    border-radius: 50%;
    text-decoration: none;
    transition: transform 0.2s ease, background-color 0.2s ease;
}

.social-link:hover {
    transform: translateY(-2px);
    background-color: var(--color-accent);
}

.header-image-container {
    flex: 0 0 auto;
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
    height: 100%;
    width: 420px;
    position: relative;
    z-index: 1;
    overflow: hidden;
    margin-right: 180px;
}

.header-image {
    height: 100%;
    width: 100%;
    object-fit: cover;
    object-position: center top;
}

/* ========================================
   Section Page Layout
   ======================================== */

.section-page-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: var(--spacing-xl);
    min-height: calc(100vh - 70px);
}

.section-page-content {
    background: #ffffff;
    padding: var(--spacing-xl);
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.section-page-title {
    font-size: var(--font-size-h1);
    font-weight: 700;
    margin-bottom: var(--spacing-lg);
    color: var(--color-text-dark);
    border-bottom: 3px solid #2d2d2d;
    padding-bottom: var(--spacing-md);
}

.section-description {
    font-size: var(--font-size-base);
    line-height: 1.8;
    color: var(--color-text-gray);
    margin-bottom: var(--spacing-xl);
}

.section-description p {
    margin-bottom: var(--spacing-md);
}

/* ========================================
   Work Experience Section (New Layout)
   ======================================== */

.experience-list {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xl);
}

/* New Experience Item */
.experience-item-new {
    padding: var(--spacing-xl);
    background: #fafafa;
    border-radius: 12px;
}

/* Header: Company Name + Logo */
.experience-header {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-lg);
    padding-bottom: var(--spacing-md);
    border-bottom: 2px solid #e8e8e8;
}

.experience-header-logo {
    width: 60px;
    height: 60px;
    object-fit: contain;
    border-radius: 8px;
    background: #ffffff;
    padding: 8px;
}

.experience-header-text {
    flex: 1;
}

.experience-company {
    font-size: var(--font-size-h3);
    font-weight: 700;
    color: var(--color-text-dark);
    margin: 0;
}

.experience-company-link {
    text-decoration: none;
    color: inherit;
    transition: color 0.2s ease;
}

.experience-company-link:hover {
    color: #555;
}

.experience-company-link:hover .experience-company {
    text-decoration: underline;
}

/* Description */
.experience-description-new {
    font-size: var(--font-size-base);
    line-height: 1.8;
    color: var(--color-text-dark);
    margin-bottom: var(--spacing-xl);
}

.experience-description-new p {
    margin-bottom: var(--spacing-md);
}

.experience-description-new ul,
.experience-description-new ol {
    margin-left: var(--spacing-lg);
    margin-bottom: var(--spacing-md);
}

.experience-description-new li {
    margin-bottom: var(--spacing-sm);
    line-height: 1.8;
}

.experience-description-new strong {
    font-weight: 600;
    color: var(--color-text-dark);
}

/* Image Gallery - 3 columns grid */
.experience-gallery-new {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-lg);
    margin-top: var(--spacing-lg);
}

.experience-gallery-item-new {
    border-radius: 8px;
    overflow: hidden;
    background: #ffffff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
}

.experience-gallery-image-new {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    object-position: center;
    display: block;
}

.experience-gallery-caption-new {
    padding: var(--spacing-md);
    font-size: var(--font-size-small);
    color: var(--color-text-gray);
    text-align: center;
    margin: 0;
    background: #ffffff;
}

/* ========================================
   Legacy Experience Styles (kept for backward compatibility)
   ======================================== */

.experience-item {
    display: grid;
    grid-template-columns: 80px 1fr 280px;
    gap: var(--spacing-lg);
    padding: var(--spacing-lg);
    background: #fafafa;
    border-radius: 8px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.experience-item:hover {
    transform: translateX(4px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Logo (Left) */
.experience-logo {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 4px;
}

.experience-logo-img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.experience-icon {
    width: 56px;
    height: 56px;
    background-color: #2d2d2d;
    color: white;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

/* Featured Image (Right) - 16:9 ratio */
.experience-featured {
    width: 280px;
    height: 157.5px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    overflow: hidden;
    background: #ffffff;
}

.experience-featured-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
}

.experience-content {
    flex: 1;
}

.experience-title {
    font-size: var(--font-size-h3);
    font-weight: 600;
    color: var(--color-text-dark);
    margin: 0 0 var(--spacing-sm) 0;
}

.experience-description {
    font-size: var(--font-size-base);
    line-height: 1.6;
    color: var(--color-text-gray);
    margin-top: var(--spacing-md);
}

.experience-description p {
    margin-bottom: var(--spacing-sm);
}

.experience-description ul,
.experience-description ol {
    margin-left: var(--spacing-md);
    margin-bottom: var(--spacing-sm);
}

/* Experience Gallery */
.experience-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: var(--spacing-md);
    margin-top: var(--spacing-lg);
}

.experience-gallery-item {
    border-radius: 8px;
    overflow: hidden;
    background: #ffffff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.experience-gallery-image {
    width: 100%;
    height: 150px;
    object-fit: cover;
    display: block;
}

.experience-gallery-caption {
    padding: var(--spacing-sm);
    font-size: var(--font-size-small);
    color: var(--color-text-gray);
    text-align: center;
    margin: 0;
}

/* ========================================
   Projects List Section (New Design)
   ======================================== */

.projects-list-new {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xl);
}

/* New Project Item */
.project-item-new {
    padding: var(--spacing-xl);
    background: #fafafa;
    border-radius: 12px;
}

/* Project Title */
.project-title-new {
    font-size: var(--font-size-h3);
    font-weight: 700;
    color: var(--color-text-dark);
    margin: 0 0 var(--spacing-sm) 0;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.project-title-link {
    text-decoration: none;
    color: inherit;
    transition: color 0.2s ease;
}

.project-title-link:hover {
    color: #555;
}

.project-title-link:hover .project-title-new {
    text-decoration: underline;
}

/* Organization & Period */
.project-organization {
    font-size: var(--font-size-base);
    color: var(--color-text-dark);
    font-weight: 500;
    margin-bottom: var(--spacing-xs);
}

.project-period {
    font-size: var(--font-size-small);
    color: var(--color-text-gray);
    margin-bottom: var(--spacing-lg);
}

/* Description */
.project-description-new {
    font-size: var(--font-size-base);
    line-height: 1.8;
    color: var(--color-text-dark);
    margin-bottom: var(--spacing-xl);
}

.project-description-new p {
    margin-bottom: var(--spacing-md);
}

.project-description-new ul,
.project-description-new ol {
    margin-left: var(--spacing-lg);
    margin-bottom: var(--spacing-md);
}

.project-description-new li {
    margin-bottom: var(--spacing-sm);
    line-height: 1.8;
}

.project-description-new strong {
    font-weight: 600;
    color: var(--color-text-dark);
}

/* Image Gallery - 2 columns grid */
.project-gallery-new {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-lg);
    margin-top: var(--spacing-lg);
}

.project-gallery-item-new {
    border-radius: 8px;
    overflow: hidden;
    background: #ffffff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
}

.project-gallery-image-new {
    width: 100%;
    display: block;
}

/* 원본 비율 유지 모드 */
.project-gallery-image-original {
    height: auto;
    object-fit: contain;
    background: #ffffff;
}

/* 카드에 맞춤 모드 */
.project-gallery-image-cover {
    aspect-ratio: 16 / 9;
    object-fit: cover;
    object-position: center;
}

.project-gallery-caption-new {
    padding: var(--spacing-md);
    font-size: var(--font-size-small);
    color: var(--color-text-gray);
    text-align: center;
    margin: 0;
    background: #ffffff;
}

/* ========================================
   Legacy Projects List Section
   ======================================== */

.projects-list {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.project-list-item {
    padding: var(--spacing-lg);
    background: #fafafa;
    border-radius: 8px;
    border-left: 4px solid #2d2d2d;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.project-list-item:hover {
    transform: translateX(4px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.project-list-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--spacing-sm);
}

.project-list-title {
    font-size: var(--font-size-large);
    font-weight: 600;
    color: var(--color-text-dark);
}

.project-list-link {
    color: #2d2d2d;
    font-size: 18px;
    transition: transform 0.2s ease;
}

.project-list-link:hover {
    transform: scale(1.1);
}

.project-list-description {
    font-size: var(--font-size-base);
    line-height: 1.6;
    color: var(--color-text-gray);
}

.project-list-description p {
    margin-bottom: var(--spacing-sm);
}

/* ========================================
   Coursework Section
   ======================================== */

.coursework-sections {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xl);
}

.coursework-section {
    padding: var(--spacing-xl);
    background: #fafafa;
    border-radius: 12px;
}

.coursework-section-title {
    font-size: var(--font-size-h2);
    font-weight: 700;
    color: var(--color-text-dark);
    margin-bottom: var(--spacing-lg);
    padding-bottom: var(--spacing-md);
    border-bottom: 3px solid #2d2d2d;
}

.coursework-section-content {
    font-size: var(--font-size-base);
    line-height: 1.8;
    color: var(--color-text-dark);
}

/* Style for h3 category headers (e.g., Research Methods) */
.coursework-section-content h3 {
    font-size: var(--font-size-h3);
    font-weight: 700;
    color: var(--color-text-dark);
    margin-top: var(--spacing-lg);
    margin-bottom: var(--spacing-md);
}

.coursework-section-content h3:first-child {
    margin-top: 0;
}

/* Style for course items */
.coursework-section-content p {
    margin-bottom: var(--spacing-sm);
    line-height: 1.8;
}

/* Style for lists if using ul/li */
.coursework-section-content ul {
    list-style: disc;
    padding-left: var(--spacing-lg);
    margin: 0 0 var(--spacing-md) 0;
}

.coursework-section-content ul li {
    margin-bottom: var(--spacing-sm);
    line-height: 1.8;
}

/* Strong text for course names */
.coursework-section-content strong {
    font-weight: 600;
    color: var(--color-text-dark);
}

/* ========================================
   Activities List Section
   ======================================== */

.activities-list {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-lg);
}

.activity-item {
    padding: var(--spacing-lg);
    background: #fafafa;
    border-radius: 8px;
}

.activity-header {
    margin-bottom: var(--spacing-sm);
}

.activity-title {
    font-size: var(--font-size-base);
    font-weight: 600;
    color: var(--color-text-dark);
    line-height: 1.5;
    white-space: pre-line;
    word-wrap: break-word;
}

.activity-description {
    font-size: var(--font-size-base);
    line-height: 1.8;
    color: var(--color-text-dark);
    margin-bottom: var(--spacing-lg);
}

.activity-description p {
    margin-bottom: var(--spacing-sm);
}

.activity-description ul {
    list-style: disc;
    padding-left: var(--spacing-lg);
    margin: var(--spacing-sm) 0;
}

.activity-description ul li {
    margin-bottom: var(--spacing-xs);
    line-height: 1.8;
}

/* Activity Gallery - dynamic columns grid */
.activity-gallery {
    display: grid;
    gap: var(--spacing-lg);
    margin-top: var(--spacing-lg);
}

.activity-gallery-item {
    border-radius: 8px;
    overflow: hidden;
    background: #ffffff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
}

.activity-gallery-image {
    width: 100%;
    display: block;
}

/* 원본 비율 유지 모드 */
.activity-gallery-image-original {
    height: auto;
    object-fit: contain;
    background: #ffffff;
}

/* 카드에 맞춤 모드 */
.activity-gallery-image-cover {
    aspect-ratio: 16 / 9;
    object-fit: cover;
    object-position: center;
}

.activity-gallery-caption {
    padding: var(--spacing-md);
    font-size: var(--font-size-small);
    color: var(--color-text-gray);
    text-align: center;
    margin: 0;
    background: #ffffff;
}

/* ========================================
   Generic Items (Fallback)
   ======================================== */

.generic-items-list {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-lg);
}

.generic-item {
    padding: var(--spacing-lg);
    background: #fafafa;
    border-radius: 8px;
}

.generic-item-label {
    font-size: var(--font-size-large);
    font-weight: 600;
    margin-bottom: var(--spacing-sm);
    color: var(--color-text-dark);
}

.generic-item-value {
    font-size: var(--font-size-base);
    line-height: 1.6;
    color: var(--color-text-gray);
}

.generic-item-value p {
    margin-bottom: var(--spacing-sm);
}

/* ========================================
   Content Section (Legacy)
   ======================================== */

.content-section {
    padding: var(--spacing-xl);
    max-width: var(--content-max-width);
    margin: 0 auto;
}

.section-title {
    font-size: var(--font-size-h1);
    font-weight: 600;
    margin-bottom: var(--spacing-lg);
    letter-spacing: -1px;
}

.section-subtitle {
    font-size: var(--font-size-h3);
    font-weight: 600;
    margin-bottom: var(--spacing-md);
    margin-top: var(--spacing-lg);
}

.section-content {
    font-size: var(--font-size-base);
    line-height: 1.8;
    margin-bottom: var(--spacing-md);
}

.section-content p {
    margin-bottom: var(--spacing-md);
}

/* ========================================
   Section Items (List)
   ======================================== */

.section-items {
    list-style: none;
    margin-top: var(--spacing-md);
}

.section-item {
    margin-bottom: var(--spacing-sm);
    display: flex;
    gap: var(--spacing-sm);
}

.section-item-label {
    font-weight: 600;
    min-width: 120px;
}

.section-item-value {
    flex: 1;
    color: var(--color-text-gray);
}

/* ========================================
   Projects Grid
   ======================================== */

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: var(--spacing-lg);
    margin-top: var(--spacing-lg);
}

.project-card {
    background-color: var(--color-gray);
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.project-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.project-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.project-content {
    padding: var(--spacing-md);
}

.project-title {
    font-size: var(--font-size-large);
    font-weight: 600;
    margin-bottom: var(--spacing-sm);
}

.project-description {
    color: var(--color-text-gray);
    font-size: var(--font-size-small);
    margin-bottom: var(--spacing-sm);
}

.project-link {
    color: var(--color-accent);
    text-decoration: none;
    font-weight: 500;
    font-size: var(--font-size-small);
}

.project-link:hover {
    text-decoration: underline;
}

/* ========================================
   Mobile Menu Toggle
   ======================================== */

.mobile-menu-toggle {
    display: none;
    position: fixed;
    top: 12px;
    right: var(--spacing-md);
    z-index: 1001;
    background-color: transparent;
    color: var(--color-text-dark);
    border: none;
    width: 48px;
    height: 48px;
    cursor: pointer;
    font-size: 24px;
    transition: transform 0.2s ease;
}

.mobile-menu-toggle:hover {
    transform: scale(1.1);
    color: #2d2d2d;
}

/* ========================================
   Responsive Design
   ======================================== */

/* Tablet */
@media (max-width: 1024px) {
    .sidebar {
        padding: 0 var(--spacing-md);
    }

    .sidebar-nav ul {
        gap: var(--spacing-md);
    }

    /* About Section - Tablet */
    .about-container {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
        padding: var(--spacing-lg);
    }

    .profile-card {
        position: relative;
        top: 0;
    }

    /* Legacy Header Section */
    .header-section {
        flex-direction: column;
        text-align: center;
        padding: var(--spacing-lg);
        height: auto;
        min-height: 50vh;
    }

    .header-content {
        align-self: center;
    }

    .header-image-container {
        display: none;
    }

    .social-links {
        justify-content: center;
    }
}

/* Mobile */
@media (max-width: 768px) {
    :root {
        --font-size-h1: 36px;
        --font-size-h2: 28px;
        --font-size-h3: 20px;
    }

    .sidebar {
        padding: 0 var(--spacing-md);
        flex-direction: column;
        align-items: flex-start;
        height: auto;
        transform: translateY(-100%);
        transition: transform 0.3s ease;
    }

    .sidebar.active {
        transform: translateY(0);
    }

    .sidebar-header {
        width: 100%;
        border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    }

    .sidebar-nav {
        width: 100%;
        justify-content: flex-start;
    }

    .sidebar-nav ul {
        flex-direction: column;
        width: 100%;
        gap: 0;
    }

    .sidebar-nav a {
        padding: var(--spacing-md);
        border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    }

    .mobile-menu-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    /* About Section - Mobile */
    .about-container {
        padding: var(--spacing-md);
    }

    .info-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
    }

    /* Section Page - Mobile */
    .section-page-container {
        padding: var(--spacing-md);
    }

    .section-page-content {
        padding: var(--spacing-md);
    }

    /* Work Experience - Mobile */
    .experience-item {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }

    .experience-logo {
        width: 60px;
        height: 60px;
        justify-content: flex-start;
    }

    .experience-icon {
        width: 48px;
        height: 48px;
        font-size: 20px;
    }

    .experience-featured {
        width: 100%;
        height: auto;
        aspect-ratio: 16 / 9;
    }

    .experience-gallery {
        grid-template-columns: 1fr;
    }

    /* New Experience - Mobile */
    .experience-item-new {
        padding: var(--spacing-lg);
    }

    .experience-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .experience-header-logo {
        width: 50px;
        height: 50px;
    }

    .experience-company {
        font-size: var(--font-size-h3);
    }

    .experience-gallery-new {
        grid-template-columns: 1fr;
    }

    .experience-gallery-image-new {
        height: auto;
    }

    /* New Projects - Mobile */
    .project-item-new {
        padding: var(--spacing-lg);
    }

    .project-gallery-new {
        grid-template-columns: 1fr;
    }

    .project-gallery-image-new {
        height: auto;
    }

    /* Coursework - Mobile */
    .coursework-section {
        padding: var(--spacing-lg);
    }

    .coursework-section-title {
        font-size: var(--font-size-h3);
    }

    .coursework-section-content h3 {
        font-size: var(--font-size-large);
    }

    /* Activities - Mobile */
    .activity-item {
        padding: var(--spacing-lg);
    }

    .activity-gallery {
        grid-template-columns: 1fr;
    }

    /* Legacy Header Section */
    .header-section {
        min-height: 40vh;
        height: 40vh;
        padding: var(--spacing-lg) var(--spacing-md);
        justify-content: center;
    }

    .header-image-container {
        display: none;
    }

    .content-section {
        padding: var(--spacing-md);
    }

    .projects-grid {
        grid-template-columns: 1fr;
    }

    .section-item {
        flex-direction: column;
        gap: var(--spacing-xs);
    }

    .section-item-label {
        min-width: auto;
    }
}

/* Small Mobile */
@media (max-width: 480px) {
    :root {
        --font-size-h1: 28px;
        --font-size-base: 15px;
    }

    .header-section {
        padding: var(--spacing-md);
    }

    .header-image-container {
        display: none;
    }

    .social-link {
        width: 40px;
        height: 40px;
    }
}

/* ========================================
   Utility Classes
   ======================================== */

.text-center {
    text-align: center;
}

.mt-lg {
    margin-top: var(--spacing-lg);
}

.mb-lg {
    margin-bottom: var(--spacing-lg);
}

.hidden {
    display: none;
}
