/* modern-theme.css */

:root {
    /* 이미지의 맑은 블루 톤 추출 */
    --brand-blue: #2f6db2;
    --bg-gradient: radial-gradient(circle at 20% 20%, #eff6ff 0%, #ffffff 40%, #f9faff 100%);
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(255, 255, 255, 0.8);
    --soft-shadow: 0 20px 50px rgba(0, 0, 0, 0.04);
}

/* 전체 배경 이미지 느낌으로 교체 */
body {
    background: var(--bg-gradient) !important;
    background-attachment: fixed !important;
    font-family: "Pretendard Variable", "Noto Sans KR", sans-serif;
}

/* 1. Introduction 캡슐 스타일 */
.section-pill, .pill-label, .hub-label {
    background: #ffffff !important;
    border: 1px solid rgba(47, 109, 178, 0.15) !important;
    color: var(--brand-blue) !important;
    border-radius: 999px !important;
    padding: 10px 28px !important;
    font-weight: 600 !important;
    box-shadow: 0 4px 15px rgba(47, 109, 178, 0.08) !important;
    text-transform: none !important;
}

.intro-copy h1, .intro-copy h2,
.brand-hero h1, .brand-hero h2 {
    color: #111827 !important;
    font-weight: 800 !important;
    letter-spacing: -0.05em !important;
    line-height: 1.3 !important; /* 줄간격 추가 */
}

/* 이미지 속 '김주원' 파란색 강조 - 클래스명을 직접 사용 */
.name-highlight {
    color: var(--brand-blue) !important;
}

/* 만약 span이나 b 태그를 혼용해서 사용하실 경우를 대비한 보조 선택자 */
.intro-copy h2,
.brand-hero h2 {
    margin-bottom: 8px !important; /* 기존 여백을 확 줄임 */
    line-height: 1.2 !important;
}

/* 3. "작은 흐름조차..." 박스 스타일 */
.intro-highlight {
    background: rgba(47, 109, 178, 0.05) !important;
    border: none !important;
    border-radius: 8px !important;
    color: var(--brand-blue) !important;
    padding: 3px 13px !important;
    font-size: 1.15rem !important;
    font-weight: 600 !important;
    display: inline-block !important;
}

/* 4. 카드 디자인 (유리 효과 강화) */
.hub-card, .project-summary-card, .brand-copy, .mini-panel {
    background: var(--glass-bg) !important;
    backdrop-filter: blur(25px) saturate(180%) !important;
    -webkit-backdrop-filter: blur(25px) saturate(180%) !important;
    border: 1px solid var(--glass-border) !important;
    box-shadow: var(--soft-shadow) !important;
    border-radius: 32px !important;
}

/* 5. 하단 수치 (2년+, 2+) 강조 */
.hero-stats, .hero-badges {
    display: flex !important;
    gap: 40px !important;
    margin-top: 48px !important;
}

.stat-item strong, .hub-number {
    font-size: 2.5rem !important;
    color: var(--brand-blue) !important;
    font-weight: 800 !important;
    font-family: "Space Grotesk", sans-serif;
}

/* 6. 소셜 아이콘 (이미지의 동그란 버튼) */
.social-links {
    display: flex;
    gap: 15px;
    align-items: center;
}

.social-links a {
    width: 52px;
    height: 52px;
    background: #ffffff;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 8px 20px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

.social-links a:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 25px rgba(47, 109, 178, 0.15);
}

/* 전체 컨테이너 정렬 */
.hero-stats {
    display: flex;
    align-items: center;
    gap: 60px; /* 수치와 아이콘 사이 간격 */
    margin-top: 40px;
}

/* 수치 그룹 (개발 경력, 완료 프로젝트) */
.stat-group {
    display: flex;
    align-items: center;
    gap: 20px; /* 구분선과 텍스트 사이 간격 축소 */
}

.stat-item {
    display: flex;
    flex-direction: column;
    gap: 6px !important;
}

/* "개발 경력", "완료 프로젝트" 라벨 */
.stat-item span {
    font-size: 0.85rem !important;
    color: #667085 !important;
    font-weight: 600 !important;
    /* 텍스트 자체의 상하 여백 확보 */
    line-height: 1.4 !important;
    letter-spacing: -0.01em;
}

/* "2년+", "2+" 수치 */
.stat-item strong {
    font-size: 1.3rem !important; /* 가독성을 위해 살짝 키움 */
    color: #2f6db2 !important;
    font-weight: 800 !important;
    /* 숫자가 잘리지 않도록 충분한 높이 부여 */
    line-height: 1.2 !important;
    letter-spacing: -0.02em !important;
    font-family: "Space Grotesk", "Pretendard", sans-serif;
}

/* 세로 구분선 위치 및 높이 조정 */
.stat-divider {
    width: 1px;
    height: 38px; /* 텍스트 높이에 맞춰 자연스럽게 연장 */
    background: rgba(15, 23, 42, 0.08);
    margin: 0 8px; /* 좌우 여백을 살짝 더 주어 답답함 해소 */
}

/* 하단 영역 전체 배치 */
.hero-stats {
    display: flex;
    align-items: center; /* 세로 중앙 정렬로 수치와 아이콘 정렬 */
    gap: 40px;
    margin-top: 32px !important; /* 상단 텍스트와의 여백 확보 */
}

/* 소셜 아이콘 영역 */
.social-links {
    display: flex;
    gap: 12px;
}

.social-icon {
    width: 54px;  /* 원의 크기 */
    height: 54px; /* 원의 크기 */
    background: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(15, 23, 42, 0.04);
    transition: transform 0.2s ease;
    overflow: hidden; /* 이미지가 원 밖으로 나가지 않게 함 */
}

/* ⭐ 가장 중요한 부분: 거대한 이미지를 원 안에 맞춤 */
.social-icon img {
    width: 27px; /* 아이콘 내부 이미지 크기 조절 */
    height: 27px;
}

.social-icon:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(47, 109, 178, 0.12);
}


.portrait-core {
    overflow: hidden; /* 영역 밖으로 나가는 이미지 숨김 */
    display: flex;
    align-items: center;
    justify-content: center;
}

.profile-img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* 비율을 유지하면서 프레임을 가득 채움 */
    display: block;
}

/* 반응형: 화면이 좁아지면 세로로 배치 */
@media (max-width: 720px) {
    .hero-stats {
        flex-direction: column;
        align-items: flex-start;
        gap: 30px;
    }
}