/* 기본 스타일 초기화 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Malgun Gothic', sans-serif;
}

body {
    background-color: #f5f7fa;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

/* 프로필 카드 컨테이너 */
.profile-card {
    background-color: #ffffff;
    width: 400px;
    border-radius: 15px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    text-align: center;
    border: 1px solid #e1e8ed;
}

/* ★ 핵심: 이미지 전환을 위한 컨테이너 */
.image-container {
    position: relative;
    width: 100%;
    height: 300px; /* 이미지 높이에 맞게 조절 가능 */
    background-color: #000;
    overflow: hidden;
}

.image-container img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover; /* 이미지가 비율에 맞게 꽉 차도록 설정 */
    transition: opacity 0.5s ease-in-out; /* 부드러운 전환 효과 */
}

/* 아래에 깔릴 실제 사진 */
.img-back {
    opacity: 0;
    z-index: 1;
}

/* 위에 보일 캐리커쳐 이미지 */
.img-top {
    opacity: 1;
    z-index: 2;
}

/* ★ 마우스를 올렸을 때(Hover)의 효과 */
.image-container:hover .img-top {
    opacity: 0; /* 캐리커쳐를 투명하게 만들어 숨김 */
}

.image-container:hover .img-back {
    opacity: 1; /* 실제 사진을 선명하게 보여줌 */
}

/* 프로필 텍스트 영역 스타일 */
.profile-info {
    padding: 30px 20px;
}

.profile-info h2 {
    font-size: 24px;
    color: #2c3e50;
    margin-bottom: 5px;
}

.profile-info .job {
    font-size: 14px;
    color: #3498db;
    font-weight: bold;
    margin-bottom: 15px;
}

.profile-info hr {
    border: 0;
    height: 1px;
    background-color: #edf2f7;
    margin: 15px 0;
}

.profile-info .skills {
    list-style: none;
    text-align: left;
    font-size: 14px;
    color: #555;
    margin-bottom: 15px;
    padding-left: 10px;
}

.profile-info .skills li {
    margin-bottom: 8px;
}

.profile-info .intro {
    font-size: 14px;
    color: #7f8c8d;
    line-height: 1.6;
    text-align: justify;
}