/* General Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
  font-family: 'Montserrat', Arial, sans-serif;
  color: #333;
  background-color: #fff;
  margin: 0;
  padding: 0;
}

.fade-in {
  will-change: transform, opacity;
  opacity: 0;
   transform: translateY(30px);
}

h3 {
  color: #333;
  margin: 0;
  text-align: center; /* 중앙 정렬 */
  font-weight: 600;; /* 기본 두께로 설정 */
  font-size: 1.2rem;
  font-family: 'Lato', sans-serif; /* Lato 폰트 적용 */
}

h4 {
  margin-bottom: 1rem;
  font-weight: 600; /* 기본 두께로 설정 */
  font-size: 1rem;
  color: #555;
  font-family: 'Lato', sans-serif; /* Lato 폰트 적용 */
}

p {
  font-size: .9rem;
  line-height: 1.6;
  color: #555;
  margin: 0;
  font-family: 'Lato', sans-serif; /* Lato 폰트 적용 */
}


video, .animated, .fade-in {
    will-change: transform, opacity;
    transform: translate3d(0, 0, 0);
}

.fade-in-overlay {

}
/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: #fff;
    z-index: 1000;
    transition: transform 0.3s ease; /* 부드러운 이동 효과 */
}

/* 헤더 숨김 상태 */
.header.hidden {
    transform: translateY(-100%); /* 위로 숨김 */
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
}

header h1 a {
    text-decoration: none;
    color: #000;
    font-weight: 900;
    letter-spacing: -3.5px;
    transition: color 0.3s;
    font-family: 'Montserrat', sans-serif; /* 제목에 Montserrat 폰트 적용 */
}

header h1 a:hover {
    color: #555;
}

header nav a {
    margin-left: 1rem;
    text-decoration: none;
    color: #ccc;
    font-weight: normal;
    transition: color 0.3s, font-weight 0.3s;
}

/* 활성화된 상태 */
header nav a.active {
    color: #000;
    font-weight: bold;
}

header nav a:hover {
    color: #555;
}


/* 🏗️ 전체 섹션 3분할 레이아웃 */
.about-section {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin: 3.5rem auto;
    padding: ㄴrem;
    max-width: 1350px;
    gap: 3.2rem; /* ✅ 컬럼 간격 */
}

/* 📌 각 컬럼 스타일 */
.about-column {
    flex: 1; /* ✅ 3개 컬럼 균등 분배 */
    display: flex;
    flex-direction: column;
}

/* 📷 좌측 컬럼 (프로필) */
.profile-column {
    align-items: center;
    text-align: center;
}

.profile-column img {
    max-width: 80%; /* ✅ 이미지 크기 조정 */
    margin-top: 1rem;
}

.profile-column h4 {
    margin-top: 1.2rem;
}

.profile-column p {
}

/* 📖 중앙 컬럼 (Work Experience, Education, Awards) */
/* 🏗️ h4 제목 스타일 변경 */
.center-column h4, .right-column h4 {
    margin-top: 1.2rem;
    background: black; /* ✅ 검은색 배경 */
    color: white; /* ✅ 흰색 글씨 */
    padding: 5px 10px; /* ✅ 내부 패딩 추가 */
    display: inline-block; /* ✅ 배경 크기를 텍스트에 맞게 */
    max-width: 200px;
}


.center-column p, .right-column p {
    line-height: 1.4;
    margin-bottom: 0.5rem;
}
.right-column p {max-width: 340px;}

/* 📄 우측 컬럼 (Publications & Projects) */
.right-column {
    align-items: flex-start;
}

/* 📌 프로젝트 스타일 */
.project-item {
    margin-bottom: 1rem;
}

.project-title {
}

.project-details {
}

/* 링크링크링크링크링크링크링크링크링크링크링크링크 */

.external-link {
    margin-left: 5px;
    display: inline-flex;
    align-items: center;
    color: inherit; /* 부모 색상 상속 */
    text-decoration: none;
}

.external-link svg {
    width: 14px;
    height: 14px;
    transition: color 0.3s;
}

.external-link:hover svg {
    color: blue;
}


/* ✅ 이미지 아이콘 스타일 */
.image-icon {
    position: relative;
    display: inline-flex;
    align-items: center;
    cursor: default; /* 기본 마우스 커서 설정 */
}

/* ✅ 이미지 아이콘 내부의 SVG 스타일 */
.image-icon svg {
  margin-left: 5px;

    width: 14px;
    height: 14px;
    transition: fill 0.3s ease, stroke 0.3s ease; /* 부드러운 색상 전환 */
}

/* ✅ 호버 시 아이콘 색상 블랙으로 변경 */
.image-icon:hover svg {
    stroke: black; /* 아이콘 선 색상을 검은색으로 변경 */
    fill: #D2F1FF; /* 내부 색상을 블랙으로 (SVG가 채울 수 있는 경우) */
}

/* ✅ 미리보기 이미지 기본 스타일 */
.preview-image {
    display: none; /* 기본적으로 숨김 */
    position: absolute;
    max-width: 480px;
    background-size: cover;
    background-position: center;
    border: 2px solid #ccc;
    border-radius: 8px;
    z-index: 1000;
    bottom: 25px; /* 🔺 이미지 아이콘 위에 배치 */
    left: 50%;
    transform: translateX(-50%);
}

/* ✅ 이미지 아이콘에 마우스 올렸을 때, 미리보기를 아이콘 위에 표시 */
.image-icon:hover .preview-image {
    display: block;
}

/* 📐 반응형 조정 (모바일에서 세로 정렬) */
@media (max-width: 768px) {
    .about-section {
        flex-direction: column;
        text-align: center;
    }

    .about-column {
        width: 100%;
        align-items: center;
    }

    .profile-column img {
        max-width: 60%;
    }
}


/* Footer */
/* Footer */
footer {
  padding: 4rem 2rem 0.5rem 2rem; /* 아래쪽 패딩 조정 */
    text-align: center;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    font-size: 0.9rem;
    color: #333;
    letter-spacing: -1.3px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .about-section {
        flex-direction: column;
        text-align: center;
    }

    .about-section .right {
        padding-left: 0;
    }

    .about-section .right p {
        text-align: center;
    }
}
