:root {
    /* 파스텔톤, 화사한 분위기의 색상 팔레트 */
    --bg-color-start: #fff0f5; /* 라벤더 블러쉬 */
    --bg-color-end: #ffe4e1; /* 미스티 로즈 */
    --text-primary: #4a4a4a;
    --text-secondary: #7a7a7a;
    --glass-bg: rgba(255, 255, 255, 0.55);
    --glass-border: rgba(255, 255, 255, 0.8);
    --btn-hover: rgba(255, 255, 255, 0.9);
    --accent-color: #ffb6c1; /* 은은한 핑크 */
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, system-ui, Roboto, 'Helvetica Neue', 'Segoe UI', 'Apple SD Gothic Neo', 'Noto Sans KR', 'Malgun Gothic', sans-serif;
    /* 부드러운 그라데이션 배경 */
    background: linear-gradient(135deg, var(--bg-color-start) 0%, var(--bg-color-end) 100%);
    min-height: 100vh;
    color: var(--text-primary);
    display: flex;
    justify-content: center;
    padding: 2rem 1rem;
    line-height: 1.6;
}

.container {
    max-width: 480px; /* 모바일 친화적인 폭 넓이 */
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

/* Glassmorphism (유리 질감) 유틸리티 */
.glass-effect {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    box-shadow: 0 8px 32px 0 rgba(255, 182, 193, 0.2);
    border-radius: 16px;
}

/* 프로필 섹션 */
.profile {
    text-align: center;
    padding-top: 1rem;
}

.profile-image-container {
    width: 130px;
    height: 130px;
    margin: 0 auto 1.5rem;
    border-radius: 50%;
    padding: 5px;
    background: linear-gradient(45deg, #ffd1dc, #ffffff);
    box-shadow: 0 5px 20px rgba(255, 182, 193, 0.4);
}

.profile-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    border: 4px solid white;
}

.profile-title {
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 0.8rem;
    color: #333;
    letter-spacing: -0.5px;
}

.profile-subtitle {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.8;
}

/* 링크 섹션 */
.links {
    display: flex;
    flex-direction: column;
    gap: 1.1rem;
}

.link-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: var(--text-primary);
    padding: 1.2rem 1.5rem;
    font-weight: 600;
    font-size: 1.05rem;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
    overflow: hidden;
}

/* 버튼 마우스 오버 효과 */
.link-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.6), transparent);
    transition: left 0.5s ease;
}

.link-btn:hover {
    background: var(--btn-hover);
    transform: translateY(-3px);
    box-shadow: 0 12px 24px rgba(255, 182, 193, 0.35);
    color: #000;
}

.link-btn:hover::before {
    left: 100%;
}

/* 갤러리 섹션 */
.gallery-section {
    padding: 1.5rem;
    text-align: center;
    background: var(--glass-bg);
    border-radius: 20px;
    box-shadow: 0 4px 15px rgba(255, 182, 193, 0.1);
}

.section-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 50%;
    transform: translateX(-50%);
    width: 35px;
    height: 3px;
    border-radius: 2px;
    background-color: var(--accent-color);
}

.gallery-grid {
    display: flex;
    overflow-x: auto;
    gap: 12px;
    margin-bottom: 1rem;
    padding-bottom: 10px; /* 스크롤바 영역 확보 */
    scroll-snap-type: x mandatory;
    scrollbar-width: none; /* Firefox 스크롤바 숨기기 */
    -ms-overflow-style: none; /* IE 스크롤바 숨기기 */
}

/* Chrome, Safari 등에서 스크롤바 숨기기 */
.gallery-grid::-webkit-scrollbar {
    display: none;
}

.gallery-item {
    flex: 0 0 130px; /* 한 화면에 2.5개 정도 보여서 넘길 수 있음을 암시 */
    scroll-snap-align: start;
    aspect-ratio: 1 / 1;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
}

.gallery-item:hover {
    transform: scale(1.05);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.3s ease;
}

.gallery-notice {
    font-size: 0.8rem;
    color: #a0a0a0;
}

/* SNS 링크 하단바 */
.social-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 1rem;
    margin-bottom: 2rem;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--glass-bg);
    color: var(--text-primary);
    text-decoration: none;
    font-size: 1.3rem;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    border: 1px solid var(--glass-border);
}

.social-links a:hover {
    background: #fff;
    color: var(--accent-color);
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(255, 182, 193, 0.4);
}

/* 갤러리 이미지 크게보기 모달 */
.modal {
    display: none;
    position: fixed;
    z-index: 999;
    padding-top: 0;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background-color: rgba(0,0,0,0.85);
    backdrop-filter: blur(8px);
    align-items: center;
    justify-content: center;
}

.modal-content {
    display: block;
    max-width: 90%;
    max-height: 85vh;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.5);
    animation: zoom 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    object-fit: contain;
}

@keyframes zoom {
    from {transform: scale(0.8); opacity: 0;}
    to {transform: scale(1); opacity: 1;}
}

.close-modal {
    position: absolute;
    top: 20px;
    right: 30px;
    color: #f1f1f1;
    font-size: 45px;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.close-modal:hover,
.close-modal:focus {
    color: var(--accent-color);
    text-decoration: none;
    cursor: pointer;
}

/* 모달 네비게이션 화살표 */
.prev-modal, .next-modal {
    cursor: pointer;
    position: absolute;
    top: 50%;
    width: auto;
    padding: 20px;
    margin-top: -30px;
    color: white;
    font-weight: bold;
    font-size: 40px;
    transition: 0.3s;
    user-select: none;
    text-decoration: none;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
    z-index: 1000;
}

.next-modal {
    right: 3%;
}

.prev-modal {
    left: 3%;
}

.prev-modal:hover, .next-modal:hover {
    color: var(--accent-color);
}
