:root {
    --primary-color: #3b82f6;
    --secondary-color: #64748b;
    --accent-color: #06b6d4;
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --danger-color: #ef4444;
    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --text-muted: #94a3b8;
    --bg-primary: #ffffff;
    --bg-secondary: #f8fafc;
    --bg-tertiary: #f1f5f9;
    --border-color: #e2e8f0;
    --shadow-sm: 0 1px 1px 0 rgba(0, 0, 0, 0.05);
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    --border-radius: 12px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    height: -webkit-fill-available;
}

body {
    min-height: 100svh;
    min-height: -webkit-fill-available;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background: var(--bg-primary);
    overflow-x: hidden;
    min-height: -webkit-fill-available;
}

/* 프리로더 스타일 */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    transition: var(--transition);
}

.preloader.loaded {
    opacity: 0;
    visibility: hidden;
}

.preloader-content {
    text-align: center;
    color: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.loader-container {
    margin-bottom: 3rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.progress-bar {
    width: 300px;
    height: 4px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
    overflow: hidden;
    margin: 0 auto 1rem auto; /* 중앙 정렬을 위한 margin auto 추가 */
    position: relative;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #00d4ff, #090979);
    border-radius: 2px;
    width: 0%;
    transition: width 0.3s ease;
}

.loading-text {
    color: white;
    text-align: center;
}

.loading-percentage {
    font-size: 2rem;
    font-weight: 600;
    display: block;
    margin-bottom: 0.5rem;
    text-align: center;
}

.preloader-logo {
    text-align: center;
}

.preloader-logo h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    background: linear-gradient(45deg, #fff, #00d4ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.preloader-logo p {
    font-size: 1.1rem;
    opacity: 0.8;
}

/* 메인 컨테이너 */
.main-container {
    min-height: 100vh;
    transition: var(--transition);
}

.main-container.hidden {
    opacity: 0;
    visibility: hidden;
}

/* 헤더 스타일 */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
    transition: var(--transition);
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo h2 {
    font-size: 2rem;
    font-weight: 600;
    color: var(--primary-color);
}

.navigation .nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    margin: 0;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius);
    transition: var(--transition);
    cursor: pointer;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-color);
    background: rgba(59, 130, 246, 0.1);
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: var(--transition);
}

/* 메인 콘텐츠 */
.main-content {
    /* margin-top: 80px; */
    min-height: calc(100svh - 80px);
}

/* 페이지 섹션 */
.page-section {
    display: none;
    min-height: calc(100svh - 80px);
    padding: 2rem 0;
    animation: fadeInUp 0.6s ease forwards;
}

.page-section.active {
    display: block;
}

/* 소개 페이지 */
#intro-page {
    height: calc(100svh - 80px);
    /* min-height: 600px; */
    overflow: hidden;
    position: relative;
}

.hero-container {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    
    /* 배경 이미지 적용 */
    background-image: url('assets/background.jpg');
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
    background-attachment: fixed;
}

.hero-content {
    text-align: center;
    color: white;
    max-width: 800px;
    padding: 0 2rem;
    margin-bottom: 4rem;
    z-index: 2;
}

.hero-title {
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.1;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    letter-spacing: -0.02em;
}

.hero-subtitle {
    font-size: clamp(1.1rem, 2.5vw, 1.5rem);
    font-weight: 300;
    line-height: 1.6;
    margin-bottom: 3rem;
    opacity: 0.95;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.intro-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    height: calc(100svh - 80px);
    display: flex;
    align-items: center;
}

.intro-content {
    width: 100%;
}

.profile-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.profile-image {
    text-align: center;
    position: relative;
}

.profile-picture {
    width: 350px;
    height: 350px;
    border-radius: 50%;
    object-fit: cover;
    border: 6px solid var(--primary-color);
    box-shadow: var(--shadow-lg);
    margin-bottom: 1rem;
}

/* .profile-status {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--success-color);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 500;
} */

/* .status-indicator {
    width: 8px;
    height: 8px;
    background: white;
    border-radius: 50%;
    animation: pulse 2s infinite;
} */

.profile-info {
    text-align: left;
}

.profile-name {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.profile-title {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    font-weight: 500;
}

.profile-description {
    margin-bottom: 3rem;
}

.profile-description p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
    line-height: 1.8;
}

.profile-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 3rem;
}

.stat-item {
    text-align: center;
    padding: 1.5rem;
    background: var(--bg-secondary);
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
}

.stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.profile-actions {
    display: flex;
    gap: 1rem;
}

/* Education 페이지 스타일 */
.education-timeline {
    margin-bottom: 4rem;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border-color);
}

.education-timeline:last-child {
    border-bottom: none;
}

.education-timeline h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 2rem;
    color: var(--primary-color);
}

/* 소개 페이지 스타일 */
.about-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

.about-section {
    margin-bottom: 4rem;
    padding: 2rem 0;
    border-bottom: 1px solid var(--border-color);
}

.about-section:last-child {
    border-bottom: none;
}

.about-section h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 2rem;
    color: var(--primary-color);
}

/* Overview 섹션 */
.overview-content {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.profile-summary {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.profile-image-small {
    flex-shrink: 0;
}

.profile-picture-small {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--primary-color);
}

/* Education 섹션 공통 스타일 */
.education-grid {
    display: grid;
    gap: 1.5rem;
}

.education-item {
    background: var(--bg-secondary);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    transition: var(--transition);
}

.education-item:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.education-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 0.5rem;
}

.education-header h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
}

.company {
    color: var(--text-secondary);
    margin-bottom: 1rem;
    font-weight: 500;
}

/* GPA 미터 스타일 */
.gpa-meter {
    height: 24px;
    background: var(--border-color);
    border-radius: 12px;
    position: relative;
    margin: 1rem 0;
    overflow: hidden;
}

.gpa-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    border-radius: 12px;
    transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.gpa-text {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-weight: 600;
    font-size: 0.85rem;
    text-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

/* 학업 성과 스타일 */
.achievement {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0;
    color: var(--text-secondary);
}

.achievement-icon {
    font-size: 1.2rem;
    flex-shrink: 0;
}


/* Experiences 섹션 */
.experience-item {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: var(--bg-secondary);
    border-radius: var(--border-radius);
    border-left: 4px solid var(--primary-color);
}

.experience-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.experience-header h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
}

.experience-item .responsibilities p {
    line-height: 1.6;
    margin: 0.5rem 0;
    padding-left: 1.2rem;
    position: relative;
}

.experience-item .responsibilities p::before {
    content: '▹';
    position: absolute;
    left: 0;
    color: var(--primary-color);
}

.period {
    color: var(--primary-color);
    font-weight: 500;
    font-size: 0.9rem;
}

.company {
    color: var(--text-secondary);
    margin-bottom: 1rem;
    font-weight: 500;
}

.responsibilities {
    list-style: none;
    padding: 0;
}

.responsibilities li {
    padding: 0.25rem 0;
    position: relative;
    padding-left: 1.5rem;
}

.responsibilities li::before {
    content: "•";
    color: var(--primary-color);
    font-weight: bold;
    position: absolute;
    left: 0;
}

/* Skills 섹션 */
.skills-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
}

.skills-category {
    background: var(--bg-secondary);
    padding: 1.5rem;
    border-radius: var(--border-radius);
}

.skills-category h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

/* Activities 섹션 */
.activity-item {
    margin-bottom: 1.5rem;
    padding: 1.5rem;
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
    transition: transform 0.2s ease;
}

.activity-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.activity-header h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
}

.activity-period {
    color: var(--primary-color);
    font-weight: 500;
    font-size: 0.9rem;
}

.activity-item:hover {
    transform: translateY(-3px);
}

/* 버튼 스타일 */
/* .btn {
    padding: 0.75rem 2rem;
    border-radius: var(--border-radius);
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-primary {
    background: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background: #2563eb;
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
    background: var(--primary-color);
    color: white;
} */

.btn {
    display: inline-block;
    padding: 1rem 2rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    border: 2px solid transparent;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    min-width: 160px;
    text-align: center;
}

/* Primary CTA - 포트폴리오 보기 */
.btn-primary {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background-color: #2563eb;
    border-color: #2563eb;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.3);
}

/* Secondary CTA - Contact */
.btn-secondary {
    background-color: transparent;
    color: black;
    background-color: white;
}

.btn-secondary:hover {
    background-color: rgb(212, 212, 212);
    color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgb(200, 200, 200);
}

/* 통계 섹션 하단 배치 */
.stats-section {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    
    /* CSS Grid로 변경 */
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: 1fr; /* 모든 행의 높이를 동일하게 */
    gap: 2rem;
    color: white;
    z-index: 2;
    
    /* 컨테이너 크기 설정 */
    width: auto;
}

.stat-item {
    /* 카드 스타일링 */
    background: rgb(255, 255, 255);
    backdrop-filter: blur(10px);
    padding: 1.5rem 1rem;
    text-align: center;
    opacity: 0.9;
    
    /* 고정 크기 설정 */
    min-width: 120px;
    min-height: 100px;
    
    /* Flexbox로 내부 콘텐츠 정렬 */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.stat-item:hover {
    background: rgba(255, 255, 255, 0.9);
    transform: translateY(-5px);
}

.stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: var(--accent-color);
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 1.2rem;
    font-weight: 400;
    opacity: 0.95;
}



/* 페이지 헤더 */
.page-header {
    text-align: center;
    margin-bottom: 4rem;
    padding: 0 2rem;
}

.page-header h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-top: 10svh;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.page-header p {
    font-size: 1.2rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 2rem;
}

/* 포트폴리오 페이지 */
.portfolio-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem;
}

.portfolio-filters {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
}

.filter-btn {
    padding: 0.5rem 1.5rem;
    border: 2px solid var(--border-color);
    background: transparent;
    color: var(--text-secondary);
    border-radius: 50px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
}

.filter-btn.active,
.filter-btn:hover {
    border-color: var(--primary-color);
    background: var(--primary-color);
    color: white;
}

/* 프로젝트 카드 스타일 */
.project-card {
    background: white;
    border-radius: var(--border-radius);
    padding: 1.5rem;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
    transition: var(--transition);
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 300px;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

/* 프로젝트 헤더 - 기간을 우측 상단에 배치 */
.project-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
    position: relative;
}

.project-header h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
    flex: 1;
    padding-right: 1rem;
}

/* 프로젝트 메타 정보 (기간, 팀 크기)를 우측 상단에 */
.project-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.25rem;
    font-size: 0.85rem;
    color: var(--text-secondary);
    flex-shrink: 0;
}

.duration {
    color: var(--primary-color);
    font-weight: 600;
    background: rgba(59, 130, 246, 0.1);
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
}

.team-size {
    color: var(--text-secondary);
    font-weight: 500;
}

/* 프로젝트 본문 */
.project-body {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.project-description {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

/* 기술 스택 태그들 */
.tech-stack {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
}

.stack-item {
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    background: var(--bg-tertiary);
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
}

/* 특정 기술에 대한 색상 */
.stack-item.django {
    background: #092e20;
    color: white;
}

.stack-item.react {
    background: #61dafb;
    color: #20232a;
}

.stack-item.python {
    background: #3776ab;
    color: white;
}

.stack-item.aws {
    background: #ff9900;
    color: white;
}

/* 프로젝트 통계 - 한 줄에 2개씩 간결하게 */
.project-stats {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding: 0.75rem;
    background: var(--bg-secondary);
    border-radius: 8px;
}

.stat-group {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.stat-value {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary-color);
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-weight: 500;
}

/* GitHub 링크 - 아이콘만으로 간결하게 */
.github-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--text-primary);
    color: white;
    border-radius: 50%;
    text-decoration: none;
    transition: var(--transition);
    font-size: 1.2rem;
    align-self: flex-end;
}

.github-link:hover {
    background: var(--primary-color);
    transform: scale(1.1);
}

/* 프로젝트 하단 영역 */
.project-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    padding-top: 1rem;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.portfolio-item {
    background: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.portfolio-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.portfolio-image {
    position: relative;
    overflow: hidden;
}

.portfolio-image img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: var(--transition);
}

.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(59, 130, 246, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

.portfolio-item:hover .portfolio-overlay {
    opacity: 1;
}

.portfolio-btn {
    background: white;
    color: var(--primary-color);
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: var(--border-radius);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.portfolio-info {
    padding: 1.5rem;
}

.portfolio-info h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.portfolio-info p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.portfolio-tags {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.tag {
    background: var(--bg-tertiary);
    color: var(--text-secondary);
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 500;
}

/* Resume 페이지 */
.resume-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem;
}

.resume-content {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 2rem;
}

.resume-sidebar {
    background: var(--bg-secondary);
    padding: 2rem;
    border-radius: var(--border-radius);
    height: fit-content;
}

.resume-section {
    margin-bottom: 2rem;
}

.resume-section h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.skills-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.skill-item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.skill-name {
    font-weight: 500;
    color: var(--text-primary);
}

.skill-bar {
    height: 6px;
    background: var(--border-color);
    border-radius: 3px;
    overflow: hidden;
}

.skill-progress {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    border-radius: 3px;
    transition: width 1s ease;
}

/* 기술 레이더 차트 스타일 */
.skill-radar {
    background: linear-gradient(145deg, #f8f9fa, #e9ecef);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 8px 32px rgba(0,0,0,0.1);
}

/* 인증서 카드 호버 효과 */
.cert-card:hover {
    transform: translateY(-10px) rotate(3deg);
    box-shadow: 0 15px 45px rgba(0,0,0,0.2);
}

/* 프로젝트 기술 스택 태그 */
.tech-stack {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.stack-item {
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.9rem;
    background: var(--tag-bg);
    color: var(--tag-text);
}

.stack-item.django { 
    --tag-bg: #092e20;
    --tag-text: #fff;
}

/* Certifications 섹션 스타일 추가 */
.certifications-container, 
.about-section.certifications-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.cert-card {
    background: var(--bg-secondary);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    transition: transform 0.3s ease;
    min-height: 200px;
    display: flex;
    flex-direction: column;
}

.cert-card img {
    width: 80px;
    height: 80px;
    object-fit: contain;
    margin-bottom: 1rem;
}

.cert-info {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.cert-info h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text-primary);
}

.cert-info .issuer {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.cert-info .date {
    font-size: 0.85rem;
    color: var(--primary-color);
    font-weight: 500;
    margin-top: auto; /* 날짜를 카드 하단에 고정 */
}


.languages {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.language-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
}

.level {
    background: var(--primary-color);
    color: white;
    padding: 0.2rem 0.5rem;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 500;
}

.resume-main {
    background: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.resume-viewer {
    height: 800px;
}

.resume-viewer object {
    border-radius: var(--border-radius);
}

/* Contact 페이지 */
.contact-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: stretch; /* 양쪽 높이를 동일하게 맞춤 */
    min-height: 500px; /* 최소 높이 설정 */
}

.contact-info {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 2rem;
    justify-content: center; /* 세로 중앙 정렬 */
    gap: 2rem; /* contact-item 간격 조정 */
}

.contact-form {
    flex: 1;
    background: white;
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    justify-content: center; /* 폼도 세로 중앙 정렬 */
}

/* 보내기 버튼 완전 중앙 정렬 */
.form-button-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: auto; /* 폼 하단에 고정 */
    padding-top: 1rem;
}

.form-button-container .btn {
    min-width: 180px;
    padding: 1rem 2rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 8px;
    border: none;
    background: var(--primary-color);
    color: white;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
}

.form-button-container .btn:hover {
    background: #2563eb;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

/* .contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 2rem;
    background: var(--bg-secondary);
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    transition: var(--transition);
} */
 /* Contact 아이템 스타일 개선 */
.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.contact-item:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow);
    background: rgba(255, 255, 255, 0.15);
}

.contact-icon {
    width: 60px;
    height: 60px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    flex-shrink: 0; /* 아이콘 크기 고정 */
}

.contact-details a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
    word-break: break-all;
}

.contact-details a:hover {
    text-decoration: underline;
    color: #2563eb;
}

.contact-details h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.contact-details p {
    color: var(--text-secondary);
}

.contact-form {
    display: flex;
    flex-direction: column;
    background: white;
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    min-height: fit-content; /* 높이 자동 조정 */
}

.form-group {
    margin-bottom: 1.5rem;
}

/* .form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-primary);
} */
.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-primary);
    font-size: 0.95rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}
.form-group:last-of-type {
    margin-bottom: 2rem; /* 마지막 폼 그룹과 버튼 사이 간격 */
}

/* 애니메이션 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

/* 반응형 디자인 */
@media (max-width: 1024px) {
    .profile-section {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .profile-picture {
        width: 250px;
        height: 250px;
    }
    
    .profile-name {
        font-size: 2.5rem;
    }
    
    .resume-content {
        grid-template-columns: 1fr;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    #intro-page {
        height: 100vh;
        height: 100svh; /* 모바일에서 더 안전한 뷰포트 */
        height: calc(100vh - 60px);
        height: calc(100svh - 60px);
    }
    
    .hero-container {
        padding: 0 1rem;
    }
    
    .hero-content {
        margin-bottom: 2rem;
    }
    
    .hero-title {
        font-size: clamp(2.5rem, 10vw, 4rem);
    }
    
    .hero-subtitle {
        font-size: clamp(1rem, 4vw, 1.3rem);
        margin-bottom: 2rem;
    }
    
    .stats-section {
        position: static;
        transform: none;
        margin-top: 2rem;
        gap: 2rem;
    }

    .header-container {
        padding: 1rem;
    }
    
    .navigation .nav-menu {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .profile-stats {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .profile-actions {
        flex-direction: column;
    }
    
    .page-header h1 {
        font-size: 2rem;
    }
    
    .portfolio-grid {
        grid-template-columns: 1fr;
    }
    
    .portfolio-filters {
        flex-wrap: wrap;
        justify-content: center;
    }

    .project-stats {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .cert-grid {
        grid-template-columns: 1fr;
    }
    
    .tech-stack {
        justify-content: center;
    }

    .education-header {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .education-header h3 {
        font-size: 1.1rem;
    }
    
    .period {
        font-size: 0.85rem;
    }
    
    .gpa-meter {
        height: 20px;
    }
    
    .gpa-text {
        font-size: 0.75rem;
    }

    .contact-content {
        flex-direction: column;
        gap: 2rem;
        align-items: stretch;
    }
    
    .contact-info {
        justify-content: flex-start; /* 모바일에서는 위부터 시작 */
        gap: 1.5rem;
    }

    .contact-form {
        padding: 1.5rem;
        justify-content: flex-start; /* 모바일에서는 위부터 시작 */
    }

    .contact-item {
        padding: 1rem;
    }
    
    .contact-icon {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    .certifications-container {
        grid-template-columns: 1fr;
    }
    
    .cert-card {
        min-height: auto;
        padding: 1rem;
    }
}

@media (max-width: 480px) {
    .intro-container,
    .portfolio-container,
    .resume-container,
    .contact-container {
        padding: 1rem;
    }

    .hero-buttons {
        flex-direction: column;
        width: 100%;
        max-width: 280px;
        margin: 0 auto;
    }
    
    .btn {
        width: 100%;
        margin: 0;
    }
    
    .stats-section {
        flex-direction: column;
        gap: 1rem;
        align-items: center;
    }
    
    .stat-number {
        font-size: 1.5rem;
    }
    
    .stat-label {
        font-size: 0.8rem;
    }
    
    .profile-picture {
        width: 200px;
        height: 200px;
    }
    
    .profile-name {
        font-size: 2rem;
    }
    
    .progress-bar {
        width: 250px;
    }
    
    .preloader-logo h2 {
        font-size: 2rem;
    }

    .contact-container {
        padding: 1rem;
    }
    
    .form-button-container .btn {
        width: 100%;
        min-width: auto;
    }
}