/* 기본 초기화 및 폰트 설정 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-blue: #58CCED;
    --card-bg: rgba(255, 255, 255, 0.5);
    --card-border: rgba(255, 255, 255, 0.4);
    --text-main: #333;
    --text-sub: #666;
}

body {
    margin: 0;
    padding: 0;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden; /* 배경 움직임으로 인한 스크롤 방지 */
    font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, system-ui, Roboto, sans-serif;
    background-color: #f0f4f8;
}

/* 움직이는 배경 레이어 */
.bg-moving {
    position: fixed;
    top: -5%;
    left: -5%;
    width: 110%; /* 화면보다 크게 설정 */
    height: 110%;
    background: url('background.png') no-repeat center center;
    background-size: cover;
    z-index: -1;
    will-change: transform;
    transition: transform 0.2s ease-out; /* 부드러운 추적 효과 */
}

/* 전체 컨테이너 */
.container {
    width: 90%;
    max-width: 450px;
    z-index: 10;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* 카드 및 리스트 아이템 공통 (글래스모피즘) */
.profile-card, .link-item {
    background: var(--card-bg);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid var(--card-border);
    border-radius: 25px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.profile-card {
    padding: 40px 25px;
    text-align: center;
}

.profile-img-container {
    margin-bottom: 20px;
    display: flex;
    justify-content: center;
}

.main-img {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    border: 3px solid var(--primary-blue);
    object-fit: cover;
    background: white;
}

.nickname {
    font-size: 1.8rem;
    color: var(--text-main);
    margin-bottom: 15px;
    letter-spacing: -0.5px;
}

.bio p {
    color: var(--text-sub);
    font-size: 0.95rem;
    line-height: 1.7;
    word-break: keep-all;
}

.link-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.link-item {
    display: flex;
    align-items: center;
    padding: 15px 25px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.link-item:hover {
    transform: translateY(-3px) scale(1.02);
    background: rgba(255, 255, 255, 0.85);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.icon-box {
    width: 48px;
    height: 48px;
    background: white;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    margin-right: 18px;
    border: 1px solid #eee;
    flex-shrink: 0;
}

.icon-box img {
    width: 70%;
    height: auto;
    object-fit: contain;
}

.label {
    font-size: 1.1rem;
    font-weight: 700;
    color: #444;
}

/* 등장 애니메이션 */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}