/* 전체 페이지의 기본 스타일 */
body {
    font-family: 'Noto Sans KR', sans-serif;
    /* Google 폰트 적용 */
    background-color: #f0f2f5;
    /* 연한 회색 배경 */
    display: flex;
    /* Flexbox로 중앙 정렬 */
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    /* 화면 전체 높이 사용 */
    margin: 0;
    color: #333;
    /* 기본 글자색 */
    box-sizing: border-box;
    /* 패딩/보더를 너비에 포함 */
}

/* 메인 컨테이너 스타일 */
.container {
    background-color: #ffffff;
    /* 흰색 배경 */
    border-radius: 12px;
    /* 둥근 모서리 */
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    /* 그림자 */
    padding: 30px;
    width: 100%;
    max-width: 480px;
    /* 최대 너비 제한 */
    text-align: center;
    /* 텍스트 중앙 정렬 */
    animation: fadeIn 0.8s ease-out;
    /* 부드러운 등장 애니메이션 */
    position: relative;
    /* 공유 버튼의 절대 배치를 위해 추가 */
}

/* 등장 애니메이션 키프레임 */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 프로필 이미지 스타일 */
.profile-image {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    /* 원형 */
    object-fit: cover;
    /* 비율 유지하며 채움 */
    margin-bottom: 20px;
    border: 4px solid #4CAF50;
    /* 초록색 테두리 */
    box-shadow: 0 0 15px rgba(76, 175, 80, 0.4);
    /* 테두리 그림자 */
    transition: transform 0.3s ease;
    /* 호버 시 변환 효과 */
}

.profile-image:hover {
    transform: scale(1.05);
    /* 마우스 오버 시 살짝 확대 */
}

/* 이름 (h1) 스타일 */
.profile-section h1 {
    font-size: 1.8em;
    margin-bottom: 8px;
    color: #2c3e50;
}

/* 공유 버튼 스타일 */
.share-button {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(0, 0, 0, 0.05);
    /* 연한 회색 반투명 */
    border: none;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.2rem;
    color: #555;
    transition: all 0.3s ease;
    z-index: 100;
    /* 더 높은 z-index 부여 */
}

.share-button:hover {
    background-color: rgba(0, 0, 0, 0.1);
    transform: scale(1.1);
    color: #333;
}

.share-button:active {
    transform: scale(0.95);
}

/* 자기소개 (p) 스타일 */
.profile-section p {
    font-size: 1.1em;
    color: #7f8c8d;
    margin-bottom: 30px;
}

/* 링크 버튼 섹션 레이아웃 */
.links-section {
    display: flex;
    flex-direction: column;
    /* 버튼을 세로로 정렬 */
    gap: 15px;
    /* 버튼 간 간격 */
}

/* 각 링크 버튼 스타일 */
.link-button {
    background-color: #4CAF50;
    /* 초록색 버튼 배경 */
    color: white;
    /* 흰색 글자 */
    padding: 15px 25px;
    border: none;
    border-radius: 8px;
    /* 둥근 버튼 모서리 */
    font-size: 1.1em;
    cursor: pointer;
    /* 마우스 오버 시 손가락 */
    text-decoration: none;
    /* 밑줄 제거 */
    transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
    /* 호버 효과 전환 */
    width: 100%;
    /* 너비를 부모 요소에 꽉 채움 */
    box-sizing: border-box;
}

.link-button:hover {
    background-color: #45a049;
    /* 호버 시 색상 변경 */
    transform: translateY(-3px);
    /* 호버 시 살짝 위로 이동 */
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
    /* 호버 시 그림자 추가 */
}

.link-button:active {
    transform: translateY(0);
    /* 클릭 시 원래 위치로 */
    background-color: #3e8e41;
    /* 클릭 시 더 진한 색상 */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    /* 클릭 시 그림자 변경 */
}

/* 푸터 스타일 */
.footer {
    margin-top: 40px;
    font-size: 0.9em;
    color: #bdc3c7;
}

/* 반응형 디자인: 작은 화면에 최적화 */
@media (max-width: 600px) {
    .container {
        padding: 20px;
        margin: 20px;
        /* 작은 화면에서 좌우 여백 추가 */
    }

    .profile-image {
        width: 100px;
        height: 100px;
    }

    .profile-section h1 {
        font-size: 1.6em;
    }

    .profile-section p {
        font-size: 1em;
    }

    .link-button {
        padding: 12px 20px;
        font-size: 1em;
    }

    .link-button i {
        margin-right: 30 px;
        /* 아이콘과 텍스트 사이에 간격 추가 */
        /* 아이콘 크기 조절이 필요하면 font-size를 추가 */
        /* font-size: 1.2em; */
    }
}