/*=====================================
  1. BASE & UTILITIES
=====================================*/
:root {
    --color-primary: #0297ae;     /* 주요 색상 */
    --color-secondary: #333;      /* 텍스트 및 기본 요소 */
    --color-background: #f4f4f4;  /* 밝은 배경 */
    --color-light-gray: #ddd;     /* 구분선 및 테두리 */
    --color-white: #fff;
    --font-primary: Arial, sans-serif;
}

/* Basic Reset & Box Model */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-primary);
    line-height: 1.6;
    color: var(--color-secondary);
    background-color: var(--color-background);
}

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

a:hover {
    color: #007bff;
}

/* No Underline Link Utility */
.no-style-link {
    color: inherit;
    text-decoration: none;
}

/*=====================================
  2. LAYOUT & HEADER
=====================================*/
header {
    background: var(--color-secondary);
    color: var(--color-white);
    padding: 1rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

nav ul {
    list-style: none;
    text-align: center;
}

nav ul li {
    display: inline;
    margin: 0 20px;
}

nav a {
    color: var(--color-white);
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
}

section {
    padding: 2.5rem 2rem 2rem;
    max-width: 900px;
    margin: auto;
    background-color: var(--color-white); /* 섹션 배경을 흰색으로 통일 */
    border-radius: 8px;
    margin-top: 2rem; /* 섹션 간 간격 추가 */
    box-shadow: 0 0 10px rgba(0,0,0,0.05); /* 은은한 그림자 추가 */
}

/*=====================================
  3. TYPOGRAPHY & HEADINGS
=====================================*/
h1 {
    font-size: 2.5rem;
    color: var(--color-secondary);
}

h2 {
    color: var(--color-primary);
    text-align: center;
    margin-top: 0;
    margin-bottom: 2rem;
    border-bottom: 3px solid var(--color-light-gray);
    padding-bottom: 10px;
}

h3 {
    color: var(--color-secondary);
    margin-top: 1.5rem; /* H3 위 간격 확대 */
    margin-bottom: 0.8rem;
    font-size: 1.4rem; 
    border-bottom: 1px solid var(--color-light-gray); /* H3 아래 얇은 구분선 */
    padding-bottom: 5px;
}

/* Education과 Research Interests 분리 */
#about h3:nth-of-type(2) {
    /* Research Interests 제목에 해당 - Education과 분리 */
    padding-top: 30px;            
    margin-top: 30px;             
    border-top: 1px solid var(--color-light-gray); 
    border-bottom: 1px solid var(--color-light-gray); /* H3 아래 선 유지 */
}

/*=====================================
  4. SPECIFIC SECTIONS
=====================================*/

/* Hero Section */
#hero {
    padding-top: 150px;
    text-align: center;
    background-color: transparent;
    box-shadow: none;
    margin-top: 0;
}

.contact-info a {
    color: var(--color-primary);
    font-size: 28px; /* 아이콘 크기 확대 */
    margin: 0 15px;
}

/* Education/Experience Detail Items */
.university-name {
    margin-top: 20px; 
    display: block; 
    font-size: 1.15rem;
    color: var(--color-secondary);
    font-weight: bold;
}

.experience-item {
    margin-bottom: 30px; /* 항목 간 간격 확대 */
    padding-top: 5px;
}

/* List Styles */
.nested-list {
    list-style: disc; /* 점 리스트 스타일 명확화 */
    margin-top: 8px;
}

.nested-list li {
    margin-left: 30px; /* 들여쓰기 확대 */
    margin-bottom: 8px; /* 항목 간 세로 간격 추가 */
}

/* Github Link */
.github-link {
    color: var(--color-secondary);
    margin-left: 10px;
    font-size: 20px;
}

.github-link:hover {
    color: var(--color-primary);
}

/* Footer */
footer {
    text-align: center;
    padding: 20px;
    background: var(--color-secondary);
    color: var(--color-white);
    margin-top: 3rem;
}


.contact-info a {
    color: #029bb3; 
    font-size: 2em; 
    margin: 0 10px;
    text-decoration: none;
    transition: color 0.3s;
}

.contact-info .cv-link {
    font-size: 1.5em; 
    font-weight: bold;
    padding: 5px 10px; 
    border: 2px solid currentColor; 
    border-radius: 5px;
    display: inline-block; 
    line-height: 1; 
    color: #0297ae;
}

.contact-info a:hover {
    color: #01798b;
}