/* Aileron 글꼴 정의 */
@font-face {
    font-family: 'Aileron';
    src: url('../fonts/Aileron-Regular.otf') format('opentype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Aileron';
    src: url('../fonts/Aileron-Light.otf') format('opentype');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Aileron';
    src: url('../fonts/Aileron-Bold.otf') format('opentype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Aileron';
    src: url('../fonts/Aileron-Black.otf') format('opentype');
    font-weight: 900;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Aileron';
    src: url('../fonts/Aileron-Italic.otf') format('opentype');
    font-weight: 400;
    font-style: italic;
    font-display: swap;
}

/* 기본 리셋 및 설정 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* 링크 기본 스타일 재정의 */
a {
    text-decoration: none;
}

/* 전체 레이아웃 통일 */
main {
    display: flex;
    flex: 1;
    padding: 0;
    gap: 50px;
    overflow: hidden;
}

/* 왼쪽 컬럼 통일 */
.left-column, .sidebar {
    flex-basis: 35%;
    display: flex;
    flex-direction: column;
    justify-content: center; /* 중앙 정렬 추가 */
    align-items: center;
    text-align: center;
    overflow-y: auto;
    padding: 20px 0;
    height: calc(100vh - 200px);
}

/* 오른쪽 컬럼 통일 */
.right-column, .content {
    flex-basis: 65%;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    height: calc(100vh - 200px);
    padding: 20px 20px 20px 0;
}

/* 페이지 제목 스타일 - 텍스트 너비에 맞는 밑줄 */
.page-title, .contact-title {
    font-size: 40px;
    font-weight: 400;
    margin-bottom: 30px;
    letter-spacing: -0.03em;
    display: inline-block; /* 텍스트 너비에 맞게 설정 */
    border-bottom: 1px solid #000; /* 1px 밑줄 추가 */
    padding-bottom: 5px;
    width: auto; /* 자동 너비 설정으로 텍스트에 맞춤 */
}

/* 모든 페이지 메인 영역 스타일 통일 */
.about-main, .contact-main, main {
    display: flex;
    gap: 50px;
    padding: 0;
    flex: 1;
    overflow: hidden;
}

/* 모든 페이지의 중앙 콘텐츠 영역 통일 */
.content, .contact-form-container {
    flex-basis: 65%;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    padding: 20px 20px 20px 0;
    height: calc(100vh - 200px);
}

/* contact 페이지 조정 */
.contact-form-container {
    max-width: none;
    width: 100%;
    margin: 0;
}

/* Contact 페이지 제목 조정 */
.contact-title {
    text-align: center;
    margin-bottom: 30px;
    display: inline-block;
    width: auto;
}

/* about 페이지 레이아웃 조정 */
.about-main {
    display: flex;
    gap: 50px;
    padding: 0;
    flex: 1;
    overflow: hidden;
}

body.about-page .content {
    font-size: 20px; /* 기존보다 크기 증가 */
    line-height: 1.8; /* 가독성을 높이기 위해 줄 간격도 조정 */
}


/* 프로필 사진 스타일 통일 */
.profile-photo, .sidebar .profile-photo {
    width: 85%;
    max-width: 250px;
    margin: 0 auto 20px;
}

.profile-image, .sidebar .profile-image {
    width: 100%;
    border-radius: 5px;
}

/* 이름 스타일 통일 */
.name, .sidebar-name {
    font-size: 40px;
    font-weight: 700;
    margin: 0px 0;
    letter-spacing: -0.02em;
}

/* 직함 스타일 통일 */
.title, .sidebar-title {
    font-size: 18px;
    color: #333;
    margin: 5px 0 15px;
    letter-spacing: -0.01em;
}

/* 소셜 아이콘 스타일 통일 */
.social-icons, .sidebar .social-icons {
    display: flex;
    gap: 15px;
    margin-top: 15px;
    justify-content: center;
}

.social-icon, .sidebar .social-icon {
    width: 40px;
    height: 40px;
    background-color: #000;
    color: #fff;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 20px;
}

/* 기본 리셋 및 설정 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* 링크 기본 스타일 재정의 */
a {
    text-decoration: none;
}

/* 전체 레이아웃 고정 */
html, body {
    height: 100%;
    margin: 0;
    overflow: hidden;
    padding: 0 60px;
}

body {
    font-family: 'Aileron', sans-serif;
    font-weight: 400;
    color: #000;
    background-color: #fff;
    letter-spacing: -0.01em;
    line-height: 1.5;
    display: flex;
    flex-direction: column;
}

body.homepage {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    max-width: 1700px;
    margin: 0 auto;
    padding: 0 10px;
    border-left: 0px solid #eee;
    border-right: 0px solid #eee;
}

/* 헤더 스타일 */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 30px 0;
    position: relative;
    flex-shrink: 0;
}

/* 상단 헤더 아래 애니메이션 라인 추가 */
.header-line {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 1px;
    background-color: #000;
    width: 0; /* 초기 너비는 0 */
    animation: drawLine 1.2s ease-out forwards; /* 1.5초 동안 선이 그려지는 애니메이션 */
}

/* 선이 그려지는 애니메이션 정의 */
@keyframes drawLine {
    from { width: 0; }
    to { width: 100%; }
}

/* 사이트 이름 스타일 */
.site-name {
    font-size: 29px;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.site-name a {
    text-decoration: none;
    color: #000;
    transition: opacity 0.2s ease;
}

.site-name a:hover {
    opacity: 0.8;
    text-decoration: none;
}

.main-menu ul {
    display: flex;
    list-style: none;
}

.main-menu ul li {
    position: relative;
}

.main-menu ul li:not(:last-child)::after {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    height: 90%;
    width: 1px;
    background-color: #333;
}

.main-menu ul li a {
    text-decoration: none;
    color: #000;
    padding: 0 15px;
    font-size: 27px;
    letter-spacing: -0.02em;
    transition: font-weight 0.1s ease; /* 글꼴 두께 변화에 애니메이션 적용 */
}

.main-menu ul li a:hover {
    text-decoration: none; /* 밑줄 제거 */
    font-weight: 800; /* 호버 시 볼드체로 변경 */
}

/* 다운로드 CV 버튼 */
.download-cv {
    position: fixed;
    top: 120px;
    right: 190px;
    z-index: 100;
}

.cv-button {
    display: inline-block;
    padding: 8px 15px;
    text-decoration: none;
    color: #fff;
    background-color: #000;
    border: 2px solid #000;
    font-weight: 400;
    letter-spacing: -0.02em;
    font-size: 21px;
    transition: all 0.3s ease;
}

.cv-button:hover {
    background-color: #000;
    color: #fff;
}

/* 홈페이지 스크롤 조정 */
.intro {
    margin-bottom: 30px;
    overflow-y: auto;
    padding-right: 15px;
}

.intro-headline {
    font-size: 33px;
    font-weight: 400;
    margin-bottom: 15px;
    letter-spacing: -0.03em;
}

.intro-detail {
    font-size: 27px;
    margin-bottom: 10px;
    line-height: 1.4;
    letter-spacing: -0.02em;
}

.intro-emphasis {
    font-size: 27px;
    margin-bottom: 15px;
    line-height: 1.4;
    letter-spacing: -0.02em;
    font-style: italic;
}

.intro-highlight {
    font-size: 27px;
    font-weight: 700;
    margin: 10px 0;
    letter-spacing: -0.03em;
}

/* 액션 버튼 위치 조정 */
.action-buttons {
    display: flex;
    gap: 25px;
    margin-top: 20px;
    margin-bottom: 20px;
}

.action-button {
    display: inline-block;
    padding: 10px 25px;
    text-decoration: none;
    color: #000;
    border: 1px solid #000;
    border-radius: 50px;
    font-weight: 400;
    font-size: 21px;
    letter-spacing: -0.02em;
    transition: all 0.3s ease;
}

.action-button:hover {
    background-color: #000;
    color: #fff;
}

/* 푸터 */
footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    border-top: 1px solid #000; /* 상단에 선 추가 */
    margin-top: 0;
    flex-shrink: 0;
    color: #666;
}

.copyright {
    color: #666;
}

.contact-info {
    display: flex;
    gap: 30px;
}

.contact-item {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.contact-label {
    font-weight: 400;
    font-size: 19px;
}

.contact-value {
    color: #666;
    font-size: 19px;
}

/* 현재 메뉴 활성화 스타일 */
.main-menu ul li a.active {
    font-weight: 700;
}

/* Research 페이지 스타일 */
.research-content {
    line-height: 1.6;
}

.research-section {
    margin-bottom: 30px;
}

.research-subtitle {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 12px;
    letter-spacing: -0.02em;
    color: #000;
}

.research-text {
    margin-bottom: 10px;
    font-size: 18px;
    letter-spacing: -0.01em;
    line-height: 1.5;
    padding-left: 10px;
}




/* 기존 Research 목록 숨기기 */
#research-main {
    transition: opacity 0.3s ease-out, transform 0.3s ease-out;
}

/* 연구 상세 내용 기본적으로 숨김 */
.research-details-container {
    display: none;
    opacity: 0;
    transform: translateY(30px); /* 아래에서 올라오도록 설정 */
    transition: opacity 2.5s ease-out, transform 1.5s ease-out;
}

/* 연구 상세 내용이 활성화될 때 애니메이션 효과 */
.research-details-container.fade-in {
    opacity: 1;
    transform: translateY(0);
}

/* 연구 상세 설명 기본적으로 숨김 */
.research-details {
    display: none;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 1.5s ease-out, transform 1.5s ease-out;
}

/* 연구 상세 내용 내부의 이미지 스타일 */
.research-details img {
    max-width: 90%; /* 부모 컨테이너 크기 내에서 조정 */
    height: auto; /* 비율 유지하며 크기 조절 */
    display: block; /* 중앙 정렬을 위해 block 요소로 변경 */
    margin: 10px auto; /* 자동 중앙 정렬 */
    border-radius: 8px; /* 모서리 둥글게 (선택 사항) */
}


/* 연구 상세 내용이 활성화될 때 개별 애니메이션 적용 */
.research-details.fade-in {
    opacity: 1;
    transform: translateY(0);
}


/* 연구 항목 리스트 기본 스타일 */
.research-list {
    list-style-type: none;
    padding: 0;
}

/* 연구 항목 기본 스타일 */
.research-item {
    position: relative;
    display: block; /*  세로로 나열되도록 설정 */
    cursor: pointer;
    text-decoration: none;
    padding-bottom: 0.0px;
    line-height: 0.0;
    width: fit-content; /* 텍스트 길이만큼만 너비 지정 */
}

/* 가상 요소 (::after)를 사용하여 밑줄 생성 */
.research-item::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 0;
    height: 1px;
    background-color: black;
    transition: width 0.3s ease-out;
}

/* Hover 시 밑줄이 텍스트 길이만큼만 나타나도록 설정 */
.research-item:hover::after {
    width: 100%;
}


/* 논문 리스트 스타일 */
.publication-list {
    list-style-type: none;
    padding: 0;
    margin-top: 10px;
}

/* 논문 리스트의 개별 항목 스타일 */
.publication-list li {
    margin-bottom: 1px;
}

/* 논문 제목 링크 스타일 */
.publication-list li a {
    text-decoration: none;
    color: #000000;
    font-weight: 500;
    transition: color 0.3s ease;
}

/* 🔹 마우스를 올리면 색상 변경 */
.publication-list li a:hover {
    color: #000000;
    text-decoration: underline;
}


/* ← 뒤로 가기 버튼 스타일 */
.back-button {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 18px;
    font-weight: bold;
    color: #000000;
    margin-bottom: 15px;
}

.back-button i {
    font-size: 20px;
}




/* Publications 페이지 스타일 */
.publications-content {
    line-height: 1.6;
    overflow-y: auto;
    padding-right: 15px;
}

.publication-section {
    margin-bottom: 30px;
}

.publication-item {
    margin-bottom: 35px;
}

.publication-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 8px;
    letter-spacing: -0.02em;
}

.publication-subtitle {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 12px;
    letter-spacing: -0.02em;
    color: #000;
}

.publication-authors {
    font-size: 18px;
    margin-bottom: 10px;
    letter-spacing: -0.01em;
}


.publication-links {
    margin-bottom: 10px;
    font-size: 18px;
}

.pub-link {
    display: inline-block;
    margin-right: 10px;
    color: #000;
    text-decoration: underline;
    font-weight: 700;
}

.pub-link:hover {
    opacity: 0.7;
}



/* 프로젝트 리스트 스타일 */
.projects-list {
    display: flex;
    flex-direction: column; /* 세로 정렬 */
    gap: 20px; /* 각 프로젝트 항목 사이의 간격 */
    max-height: calc(100vh - 250px); /* Set a maximum height for the container */
    overflow-y: auto; /* Enable vertical scrolling */
    padding-right: 15px; /* Add some padding for the scrollbar */
}

/* 페이지 타이틀 (Projects) 고정 */
.content .page-title {
    position: sticky;
    top: 0;
    background-color: #fff;
    padding-bottom: 20px;
    margin-bottom: 20px;
    z-index: 10;
    transition: box-shadow 0.3s ease;
}

/* 스크롤 시 페이지 타이틀에 그림자 효과 추가 */
.content .page-title.scrolled {
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* 개별 프로젝트 항목 스타일 */
.project-item {
    display: flex;
    align-items: center;
    gap: 20px; /* 이미지와 글 사이 간격 */
    background-color: #ffffff; /* 배경색 유지 */
    padding: 15px;
    border-radius: 0px; /* 모서리 둥글게 */
    border: 1px solid black; /* 🔥 검은색 테두리 추가 */
    box-shadow: none; /* 🔥 그림자 제거 */
}

/* 프로젝트 이미지 스타일 */
.project-image img {
    width: 150px; /* 이미지 크기 조정 */
    height: auto;
    border-radius: 8px;
}

/* 프로젝트 정보 스타일 */
.project-info {
    flex: 1; /* 남은 공간을 차지하도록 설정 */
}

/* 프로젝트 제목 스타일 */
.project-title {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 5px;
}

/* 프로젝트 설명 스타일 */
.project-description {
    font-size: 18px;
    color: #000000;
    line-height: 1.5;
}



/* 🔹 프로젝트 제목 & 설명 밑줄 애니메이션 효과 */
.project-title,
.project-description {
    position: relative;
}

/* 🔹 Hover 시 밑줄 효과 */
.project-item:hover .project-title::after{
    content: "";
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 100%;
    height: 1px;
    background-color: black;
    transition: width 0.3s ease-out;
}

/* 🔹 기본 상태에서는 밑줄 숨김 */
.project-title::after{
    content: "";
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 0;
    height: 1px;
    background-color: black;
    transition: width 0.3s ease-out;
}

/* 🔹 Hover 시 밑줄이 텍스트 길이만큼 나타남 */
.project-item:hover .project-title::after {
    width: 100%;
}



/* 반응형 스타일 추가 */
@media (max-width: 768px) {
    .project-row {
        flex-direction: column;
    }
}

/* Contact 페이지 스타일 */
.contact-main {
    display: flex;
    justify-content: center;
    padding: 0;
    flex: 1;
    overflow: hidden;
}

.contact-form-container {
    max-width: 600px;
    width: 100%;
    margin: 30px auto;
    padding: 0 20px;
    overflow-y: auto;
    height: calc(100vh - 200px);
}

.contact-title {
    font-size: 40px;
    font-weight: 400;
    text-align: center;
    margin-bottom: 40px;
    letter-spacing: -0.03em;
    border-bottom: 1px solid #000;
    padding-bottom: 5px;
    display: block;
}

.contact-form {
    width: 100%;
}

.form-group {
    display: flex;
    width: 100%;
    margin-bottom: 20px;
    border: 1px solid #000;
}

.form-group label {
    width: 120px;
    min-width: 80px;
    font-size: 18px;
    font-weight: 400;
    padding: 12px 15px;
    background-color: #fff;
    border-right: 1px solid #000;
    display: flex;
    align-items: center;
}

.form-group input,
.form-group textarea {
    flex: 1;
    padding: 12px 15px;
    font-size: 18px;
    border: none;
    font-family: 'Aileron', sans-serif;
    width: 100%;
}

.form-group textarea {
    min-height: 150px;
    resize: none;
}

.send-button-container {
    display: flex;
    justify-content: center;
    margin-top: 30px;
}

.send-button {
    background-color: #000;
    color: #fff;
    border: none;
    padding: 12px 30px;
    font-size: 18px;
    cursor: pointer;
    font-family: 'Aileron', sans-serif;
    transition: opacity 0.3s;
    width: 100%;
    max-width: 200px;
}

.send-button:hover {
    opacity: 0.8;
}

/* 반응형 스타일 */
@media screen and (max-width: 768px) {
    /* 기존 코드 유지 */
    
    /* 푸터 연락처 정보 조정 - 한 줄로 표시 */
    .contact-info {
        font-size: 16px;
        text-align: center;
        width: 100%;
        display: flex;
        flex-direction: row;
        justify-content: center;
        flex-wrap: wrap;
        gap: 15px;
    }
    
    .contact-item {
        margin: 0;
        display: inline-flex;
        align-items: center;
    }
    
    /* 쉼표 제거 */
    .contact-item:first-child::after {
        content: none;
    }
    
    .contact-label, .contact-value {
        display: inline;
        font-size: 16px;
    }
    
    /* Contact 폼 모바일 스타일 */
    .contact-form-container {
        padding: 0 15px;
        height: auto;
        overflow-y: visible;
        min-height: 300px;
    }
    
    .contact-title {
        font-size: 32px;
        margin-bottom: 30px;
    }
    
    .form-group {
        flex-direction: column;
    }
    
    .form-group label {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid #000;
        padding: 10px;
        font-size: 16px;
    }
    
    .form-group input,
    .form-group textarea {
        width: 100%;
        padding: 12px 10px;
        font-size: 16px;
    }
    
    .form-group textarea {
        min-height: 120px;
    }
    
    .send-button-container {
        width: 100%;
    }
    
    .send-button {
        width: 100%;
        max-width: none;
        padding: 10px 20px;
        font-size: 16px;
    }
    
    /* 모바일 환경에서는 고정 높이 제거 */
    .about-main, .contact-main, main,
    .content, .contact-form-container {
        height: auto !important;
        overflow: visible !important;
        min-height: calc(100vh - 250px);
    }
    
    body.contact-page main.contact-main {
        height: auto !important;
        padding: 0 !important;
    }
    
    body.contact-page .contact-form-container {
        max-width: 100%;
        padding: 0 15px;
        margin: 20px auto;
        overflow: visible;
    }
}

@media screen and (max-width: 480px) {
    /* 기존 코드 유지 */
    
    /* 작은 화면 푸터 연락처 정보 조정 */
    .contact-info {
        font-size: 14px;
        flex-wrap: nowrap;
    }
    
    .contact-label {
        font-size: 14px;
    }
    
    .contact-value {
        font-size: 14px;
        word-break: keep-all;
    }
    
    /* 연락처 항목 사이 간격 조정 */
    .contact-item:first-child::after {
        content: none;
        margin-right: 0;
    }
    
    /* Contact 폼 초소형 모바일 스타일 */
    .contact-form-container {
        padding: 0 10px;
        margin: 15px auto;
    }
    
    .contact-title {
        font-size: 28px;
        margin-bottom: 25px;
    }
    
    .form-group {
        margin-bottom: 15px;
    }
    
    .form-group label {
        padding: 8px;
        font-size: 14px;
    }
    
    .form-group input,
    .form-group textarea {
        padding: 10px 8px;
        font-size: 14px;
    }
    
    .form-group textarea {
        min-height: 100px;
    }
    
    .send-button {
        padding: 8px 15px;
        font-size: 14px;
    }
    
    body.contact-page .contact-form-container {
        padding: 0 10px;
        margin: 15px auto;
    }
}

/* 스크롤바 스타일 */
.content, .right-column, .sidebar, .left-column, .projects-grid, .publications-content, .contact-main {
    scrollbar-width: thin;
    scrollbar-color: rgba(0, 0, 0, 0.3) transparent;
}

.content::-webkit-scrollbar, 
.right-column::-webkit-scrollbar, 
.sidebar::-webkit-scrollbar, 
.left-column::-webkit-scrollbar,
.projects-grid::-webkit-scrollbar,
.publications-content::-webkit-scrollbar,
.contact-main::-webkit-scrollbar {
    width: 6px;
}

.content::-webkit-scrollbar-track, 
.right-column::-webkit-scrollbar-track, 
.sidebar::-webkit-scrollbar-track, 
.left-column::-webkit-scrollbar-track,
.projects-grid::-webkit-scrollbar-track,
.publications-content::-webkit-scrollbar-track,
.contact-main::-webkit-scrollbar-track {
    background: transparent;
}

.content::-webkit-scrollbar-thumb, 
.right-column::-webkit-scrollbar-thumb, 
.sidebar::-webkit-scrollbar-thumb, 
.left-column::-webkit-scrollbar-thumb,
.projects-grid::-webkit-scrollbar-thumb,
.publications-content::-webkit-scrollbar-thumb,
.contact-main::-webkit-scrollbar-thumb {
    background-color: rgba(0, 0, 0, 0.3);
    border-radius: 3px;
}

/* 본문 여백 조정 */
.about-content, .research-content, .publications-content, .projects-grid, .blogs-content {
    padding-right: 45px;
    padding-bottom: 30px;
    line-height: 2.0;
}

/* Blogs 페이지 스타일 */
.blogs-content {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.blog-item {
    border: 1px solid #000;
    padding: 20px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background-color: #ffffff;
}

.blog-item:hover {
    transform: translateY(-3px);
}

.blog-date {
    font-size: 14px;
    color: #666;
    margin-bottom: 5px;
}

.blog-title {
    font-size: 20px;
    margin: 0;
    color: #000;
}

.blog-link {
    text-decoration: none;
    color: inherit;
}

.blog-link:hover {
    text-decoration: none;
}

/* 새로운 블로그 포스트 스타일 */
.blog-post-content {
    padding: 20px 0;
}

.blog-post-header {
    margin-bottom: 40px;
    border-bottom: 1px solid #eee;
    padding-bottom: 20px;
}

.blog-post-title {
    font-size: 32px;
    margin: 20px 0 10px;
}

.blog-post-meta {
    display: flex;
    gap: 20px;
    color: #666;
    font-size: 14px;
    margin-bottom: 10px;
}

.blog-post-date:before {
    content: "📅 ";
}

.blog-post-author:before {
    content: "✍️ ";
}

.blog-post-excerpt {
    font-size: 18px;
    font-style: italic;
    margin-bottom: 30px;
    color: #444;
    padding-left: 15px;
    border-left: 3px solid #000;
}

#blog-post-content {
    line-height: 1.8;
}

#blog-post-content img {
    max-width: 100%;
    border: 1px solid #eee;
    border-radius: 5px;
    margin: 20px 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

#blog-post-content code {
    background-color: #f5f5f5;
    padding: 2px 5px;
    border-radius: 3px;
    font-family: 'Courier New', monospace;
}

#blog-post-content pre {
    margin: 20px 0;
    border-radius: 5px;
}

.loading-indicator {
    text-align: center;
    padding: 30px;
    color: #666;
    font-style: italic;
}

.back-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: none;
    border: none;
    cursor: pointer;
    color: #000;
    font-size: 16px;
    padding: 8px 15px;
    border: 1px solid #000;
    border-radius: 3px;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.back-button:hover {
    background-color: #000;
    color: #fff;
}

.blog-excerpt {
    margin-top: 5px;
    color: #666;
    font-size: 16px;
}

/* Error message styling */
.error-message {
    background-color: #fff8f8;
    border: 1px solid #ffcccb;
    border-radius: 5px;
    padding: 20px;
    margin: 20px 0;
    color: #cc0000;
    text-align: center;
}

.error-message p {
    margin: 10px 0;
}

.error-message p:first-child {
    font-weight: bold;
    font-size: 18px;
}

/* Send 버튼 스타일 */
.send-button-container {
    width: 100%;
    margin-top: 20px;
    border: none;
}

.send-button {
    width: 100%;
    background-color: #000;
    color: #fff;
    padding: 15px 0;
    font-size: 20px;
    font-weight: 700;
    border: none;
}

/* 폼 제출 결과 영역 */
.form-result {
    margin-top: 30px;
    padding: 20px;
    border: 1px solid #000;
    display: none;
}

.form-result:not(:empty) {
    display: block;
}

.submission-success {
    line-height: 1.6;
}

.submission-success h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 15px;
    letter-spacing: -0.02em;
}

.submission-success p {
    font-size: 18px;
    margin-bottom: 10px;
    letter-spacing: -0.01em;
}

/* 애니메이션 효과 */
@keyframes slideFromLeft {
    from {
        transform: translateX(-50px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

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

.animate-profile {
    animation: slideFromLeft 0.8s ease-out forwards;
    opacity: 0;
}

.sidebar-name.animate-profile {
    animation-delay: 0.2s;
}
.sidebar-title.animate-profile {
    animation-delay: 0.3s;
}
.social-icons.animate-profile {
    animation-delay: 0.4s;
}
.animate-title {
    animation: fadeIn 0.7s ease-out forwards;
    animation-delay: 0.6s;
    opacity: 0;
}
.animate-content {
    animation: fadeIn 0.7s ease-out forwards;
    animation-delay: 0.9s;
    opacity: 0;
}

/* 반응형 레이아웃 */
@media (max-width: 900px) {
    .about-main {
        flex-direction: column;
    }
    
    .sidebar, .content {
        flex-basis: 100%;
    }
    
    .sidebar {
        margin-bottom: 30px;
    }
    
    .page-title {
        font-size: 32px;
    }
}

@media (max-width: 600px) {
    .page-title {
        font-size: 28px;
    }
    
    .about-content p {
        font-size: 16px;
    }
}

/* 반응형 스타일 */
@media (max-width: 900px) {
    header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .main-menu ul {
        flex-wrap: wrap;
    }
    
    .main-menu ul li:not(:last-child)::after {
        display: none;
    }
    
    .download-cv {
        position: static;
        margin: 20px auto;
        text-align: center;
        z-index: 100;
    }
    
    main {
        flex-direction: column;
        padding: 30px 0;
        align-items: center;
    }
    
    .left-column, .right-column {
        flex-basis: 100%;
        text-align: center;
    }
    
    .right-column {
        margin-top: 40px;
    }
    
    .profile-photo {
        width: 70%; /* 모바일에서는 더 작게 */
        max-width: 250px;
    }
    
    footer {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
}

@media (max-width: 600px) {
    .action-buttons {
        flex-direction: column;
        gap: 10px;
    }
    
    footer {
        flex-direction: column;
        gap: 15px;
    }
    
    .contact-info {
        flex-direction: column;
        gap: 10px;
    }
    
    .contact-item {
        align-items: flex-start;
    }
}

/* index 페이지와 콘텐츠 페이지 통일 */
body.homepage main {
    padding: 0;
}

/*  Index 페이지에서만 크기 증가 */
body.homepage .profile-photo {
    width: 130%; /* 기본보다 30% 더 크게 */
    max-width: 320px; /* 최대 크기 제한 */
    margin-bottom: 0px;
}

body.homepage .name {
    font-size: 40px; /* 기존보다 크기 증가 */
    margin-top: 0px;  /* 위쪽 간격 줄이기 */
    margin-bottom: 0px; /* 아래쪽 간격 줄이기 */
}

body.homepage .title {
    font-size: 24px; /* Ph.D Student 글자 크기 증가 */
    margin-bottom: 0px;
}

body.homepage .social-icons {
    font-size: 28px; /* 아이콘 크기 증가 */
    margin-bottom: 0px;
}

body.homepage .social-icons a {
    width: 48px; /* 아이콘 버튼 크기 증가 */
    height: 48px;
    
}



/* 모든 페이지에서 프로필 사진, 이름, 직함 통일 */
body:not(.homepage) .profile-photo, .sidebar .profile-photo {
    width: 85%;
    max-width: 250px;
    margin: 0 auto 10px;
}

/* index 페이지 오른쪽 컬럼 정렬 */
 .right-column {
    justify-content: center;
    padding-top: 0;
}

/* 모든 페이지 본문 스타일 통일 */
 .intro-headline, .intro-detail, .intro-emphasis, .intro-highlight {
    letter-spacing: -0.01em;
    line-height: 1.6;
}

/* Contact 페이지 전용 레이아웃 */
body.contact-page main.contact-main {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    overflow: visible;
    max-width: 100%;
    width: 100%;
    margin: 30px auto;
    padding: 0;
}

body.contact-page .contact-form-container {
    max-width: 800px; /* 너비 증가 */
    width: 80%; /* 화면 비율에 맞게 설정 */
    margin: 0 auto;
    padding: 0;
    overflow: visible;
    height: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Contact 페이지 제목 스타일 */
body.contact-page .contact-title {
    font-size: 40px;
    font-weight: 400;
    text-align: center;
    margin-bottom: 40px;
    letter-spacing: -0.03em;
    border-bottom: 1px solid #000;
    padding-bottom: 5px;
    display: inline-block;
    width: auto;
}

/* Contact 페이지 폼 요소 스타일 */
body.contact-page .form-group {
    display: flex;
    width: 100%;
    margin-bottom: 20px;
    border: 1px solid #000;
}

/* Contact 페이지 푸터 스타일 */
body.contact-page footer {
    width: 100%;
    max-width: none; /* 최대 너비 추가 */
    margin: 50px auto 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    border-top: 1px solid #000;
}

/* 반응형 조정 */
@media (max-width: 900px) {
    body.contact-page .contact-form-container {
        width: 90%;
    }
}

@media (max-width: 600px) {
    body.contact-page .contact-form-container {
        width: 95%;
    }
}

/* Contact 폼 스타일 개선 */
body.contact-page .contact-form {
    width: 100%;
    background-color: #fff;
    padding: 20px 0;
}

/* Send 버튼 스타일 개선 */
body.contact-page .send-button-container {
    width: 100%;
    margin-top: 30px;
    border: none;
}

body.contact-page .send-button {
    width: 100%;
    background-color: #000;
    color: #fff;
    padding: 15px 0;
    font-size: 20px;
    font-weight: 700;
    border: none;
    cursor: pointer;
    transition: opacity 0.3s;
}

body.contact-page .send-button:hover {
    opacity: 0.8;
}

/* Contact 페이지 전용 애니메이션 */
@keyframes fadeInFast {
    from {
        opacity: 0;
        transform: translateY(15px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Contact 페이지의 애니메이션 속도 조정 */
body.contact-page .contact-title {
    animation: fadeInFast 0.4s ease-out forwards;
    animation-delay: 0.1s;
    opacity: 0;
}

body.contact-page .contact-form-container {
    animation: none; /* 기본 애니메이션 제거 */
}

body.contact-page .contact-form {
    animation: fadeInFast 0.4s ease-out forwards;
    animation-delay: 0.3s;
    opacity: 0;
}

body.contact-page .form-group {
    animation: fadeInFast 0.4s ease-out forwards;
    opacity: 0;
}

body.contact-page .form-group:nth-child(1) {
    animation-delay: 0.4s;
}

body.contact-page .form-group:nth-child(2) {
    animation-delay: 0.5s;
}

body.contact-page .form-group:nth-child(3) {
    animation-delay: 0.6s;
}

body.contact-page .send-button-container {
    animation: fadeInFast 0.4s ease-out forwards;
    animation-delay: 0.7s;
    opacity: 0;
}


/* 형광펜 효과 애니메이션 */
@keyframes highlightFadeIn {
    0% {
        width: 0;
    }
    100% {
        width: 100%;
    }
}

.highlight {
    position: relative;
    display: inline;
    padding: 0 2px;
    z-index: 1;
    /* 배경색을 직접 적용하지 않고 가상 요소로 구현 */
    background-color: transparent;
}

.highlight::before {
    content: "";
    position: absolute;
    left: 0;
    bottom: 2px;
    width: 0;
    height: 45%;
    background-color: rgba(255, 255, 100, 0.6); /* 연한 노란색 형광펜 */
    z-index: -1;
    animation: highlightFadeIn 1.2s ease-out forwards;
    box-sizing: border-box;
}

.intro-highlight {
    margin: 8px 0;
    display: block;
    line-height: 1.6;
}

.highlight.delay1::before {
    animation-delay: 0.5s;
}

.highlight.delay2::before {
    animation-delay: 1s;
}

/* 모바일 환경에서 형광펜 효과 개선 */
@media screen and (max-width: 768px) {
    .intro-highlight {
        margin: 5px 0;
        line-height: 1.7;
        width: 100%;
        text-align: center;
    }
    
    .highlight {
        padding: 0 4px;
    }
    
    .highlight::before {
        bottom: 0;
        height: 40%;
    }
}

@media screen and (max-width: 480px) {
    .intro-highlight {
        line-height: 1.9;
        margin: 8px 0;
    }
    
    .highlight {
        padding: 0 3px;
    }
    
    .highlight::before {
        bottom: 0;
        height: 35%;
    }
}

/* FontAwesome 아이콘 스타일 */
.social-icons i {
    color: white;
}

/* SVG 아이콘 스타일 */
.social-icons img {
    width: 20px;
    height: 20px;
    filter: invert(1); /* 아이콘 색상을 흰색으로 변경 */
    transition: filter 0.3s ease-in-out;
}

/* 반응형 디자인을 위한 미디어 쿼리 개선 */
@media screen and (max-width: 768px) {
    /* 기본 레이아웃 조정 */
    html, body {
        padding: 0 15px;
        overflow-y: auto !important;
        height: auto !important;
    }

    /* 메인 레이아웃 조정 */
    main {
        flex-direction: column;
        gap: 20px;
        padding: 0;
        overflow: visible !important;
        height: auto !important;
    }

    /* 왼쪽/오른쪽 컬럼 조정 */
    .left-column, .sidebar,
    .right-column, .content {
        flex-basis: 100%;
        height: auto !important;
        padding: 15px 0;
        overflow-y: visible !important;
    }

    /* 헤더 조정 */
    header {
        padding: 20px 0;
    }

    /* 이름 크기 조정 */
    .name, .sidebar-name {
        font-size: 28px;
    }
    
    /* 타이틀 조정 */
    .title, .sidebar-title {
        font-size: 16px;
        margin-bottom: 10px;
    }

    /* 페이지 제목 크기 조정 */
    .page-title, .contact-title {
        font-size: 26px;
        margin-bottom: 15px;
    }

    /* 메뉴 폰트 크기 조정 */
    .main-menu ul li a {
        font-size: 18px;
    }

    /* 블로그 리스트 조정 */
    .blog-item {
        padding: 15px;
        margin-bottom: 10px;
    }

    .blog-title {
        font-size: 20px;
    }

    .blog-excerpt {
        font-size: 16px;
    }

    /* 블로그 포스트 내용 조정 */
    #blog-post-content {
        font-size: 16px;
        line-height: 1.6;
    }

    /* 이미지 최적화 */
    #blog-post-content img,
    .project-image img,
    .research-details img {
        max-width: 100%;
        height: auto;
    }

    /* 코드 블록 스크롤 처리 */
    pre {
        max-width: 100%;
        overflow-x: auto;
        padding: 10px;
        white-space: pre-wrap;
    }
    
    /* 프로젝트 리스트 조정 */
    .project-item {
        margin-bottom: 30px;
    }
    
    /* 다운로드 CV 버튼 조정 */
    .cv-button {
        padding: 10px 15px;
        font-size: 16px;
    }
    
    /* 푸터 조정 */
    footer {
        padding: 20px 0;
    }
    
    /* 모바일에서는 고정 높이 제거 */
    .about-main, .contact-main, main,
    .content, .contact-form-container {
        height: auto !important;
        overflow: visible !important;
        min-height: calc(100vh - 250px);
    }

    body.contact-page main.contact-main {
        height: auto !important;
        padding: 0 !important;
    }
    
    body.contact-page .contact-form-container {
        max-width: 100%;
        padding: 0 15px;
        margin: 20px auto;
        overflow: visible;
    }
    
    /* Send 버튼 스타일 조정 */
    .send-button-container {
        width: 100%;
    }
    
    .send-button {
        width: 100%;
        max-width: none;
    }
}

/* 작은 모바일 화면을 위한 추가 조정 */
@media screen and (max-width: 480px) {
    /* 더 작은 여백 */
    html, body {
        padding: 0 10px;
    }

    /* 더 작은 폰트 크기 */
    .name, .sidebar-name {
        font-size: 24px;
    }

    .title, .sidebar-title {
        font-size: 14px;
    }
    
    /* 메뉴 조정 */
    .main-menu ul {
        gap: 10px;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .main-menu ul li a {
        font-size: 16px;
    }

    /* 소셜 아이콘 크기 조정 */
    .social-icon, .sidebar .social-icon {
        width: 32px;
        height: 32px;
        font-size: 16px;
    }

    /* 블로그 리스트 추가 조정 */
    .blog-item {
        padding: 10px;
    }

    .blog-title {
        font-size: 18px;
    }

    .blog-excerpt {
        font-size: 14px;
    }
    
    /* 헤더 글씨 크기 */
    .site-name {
        font-size: 20px;
    }

    /* 작은 화면 푸터 연락처 정보 조정 */
    .contact-info {
        font-size: 14px;
        flex-wrap: nowrap;
    }
    
    .contact-label {
        font-size: 14px;
    }
    
    .contact-value {
        font-size: 14px;
        word-break: keep-all;
    }
    
    /* 연락처 항목 사이 간격 조정 */
    .contact-item:first-child::after {
        content: none;
        margin-right: 0;
    }
}

.social-icons a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: #000;
    color: #fff;
    border-radius: 50%;
    font-size: 20px;
    text-decoration: none;
    transition: all 0.3s ease-in-out;
}

