/* 전역 스타일 */
:root {
    --primary-color: #007bff;
    --secondary-color: #6c757d;
    --dark-color: #343a40;
    --light-color: #f8f9fa;
    --accent-color: #ff4081;
    --bg-color: #ffffff;
    --bg-rgb: 255, 255, 255;
    --bg-color-alt: #ffffff;
    --text-color: #343a40;
    --card-bg: #ffffff;
    --border-color: #eee;
    --modal-bg: #ffffff;
    --modal-overlay: rgba(0, 0, 0, 0.9);
    --card-text: #343a40;
    --section-title: #343a40;
    --info-text: #343a40;
    --skill-text: #343a40;
    --card-title: #343a40;
    --particle-color: rgba(255, 64, 129, 0.2);
}

/* 다크모드 스타일 */
[data-theme="dark"] {
    --bg-color: #1a1a1a;
    --bg-rgb: 26, 26, 26;
    --bg-color-alt: #1a1a1a;
    --text-color: #ffffff;
    --card-bg: rgba(26, 26, 26, 0.7);
    --border-color: #404040;
    --modal-bg: #2d2d2d;
    --modal-overlay: rgba(0, 0, 0, 0.95);
    --card-text: #ffffff;
    --section-title: #ffffff;
    --info-text: #ffffff;
    --skill-text: #ffffff;
    --card-title: #ff4081;
    --particle-color: rgba(255, 64, 129, 0.15);
}

[data-theme="dark"] h5 {
    color: #e6e6e6;
}

body {
    font-family: 'Noto Sans KR', sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
    background-color: var(--bg-color);
    color: var(--text-color);
    transition: background-color 0.3s ease, color 0.3s ease;
    position: relative;
}

/* 배경 파티클 애니메이션 */
.particles-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
}

.particle {
    position: absolute;
    background: linear-gradient(
        45deg,
        rgba(255, 64, 129, 0.2),
        rgba(64, 129, 255, 0.2)
    );
    border-radius: 50%;
    filter: blur(20px);
    animation: morphFloat var(--duration) ease-in-out var(--delay) infinite;
    opacity: 0;
    mix-blend-mode: screen;
}

[data-theme="dark"] .particle {
    background: linear-gradient(
        45deg,
        rgba(255, 64, 129, 0.15),
        rgba(64, 129, 255, 0.15)
    );
    mix-blend-mode: screen;
}

@keyframes morphFloat {
    0% {
        transform: translate(var(--translate-x), var(--translate-y)) scale(var(--scale)) rotate(0deg);
        border-radius: 50%;
        opacity: 0;
    }
    25% {
        opacity: 0.4;
        transform: translate(calc(var(--translate-x) * -0.5), calc(var(--translate-y) * -0.5)) 
                  scale(calc(var(--scale) * 1.1)) rotate(90deg);
        border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
    }
    50% {
        transform: translate(calc(var(--translate-x) * 0.2), calc(var(--translate-y) * 0.2)) 
                  scale(calc(var(--scale) * 1.2)) rotate(180deg);
        border-radius: 30% 60% 70% 40% / 50% 60% 30% 60%;
        opacity: 0.3;
    }
    75% {
        opacity: 0.4;
        transform: translate(calc(var(--translate-x) * -0.3), calc(var(--translate-y) * -0.3)) 
                  scale(calc(var(--scale) * 1.1)) rotate(270deg);
        border-radius: 40% 60% 30% 70% / 70% 30% 60% 40%;
    }
    100% {
        transform: translate(var(--translate-x), var(--translate-y)) scale(var(--scale)) rotate(360deg);
        border-radius: 50%;
        opacity: 0;
    }
}

/* 별 애니메이션 제거 */
.stars {
    display: none;
}

/* 섹션 배경 스타일 업데이트 */
section {
    position: relative;
    border-bottom: 1px solid var(--border-color);
    background-color: rgba(var(--bg-rgb), 0.2) !important;
    backdrop-filter: blur(10px);
    z-index: 2;
}

section:nth-child(even) {
    background-color: rgba(var(--bg-rgb), 0.2);
}

section h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 4rem;
    position: relative;
    text-align: center;
}

section h2:after {
    content: '';
    position: absolute;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background-color: var(--accent-color);
}

/* 섹션 내부 여백 조정 */
.section-content {
    padding: 0 20px;
    max-width: 1200px;
    margin: 0 auto;
}

/* 이미지 관련 스타일 개선 */
.img-placeholder {
    background-color: #f8f9fa;
    border-radius: 10px;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6c757d;
    font-size: 1.2rem;
}

.project-image {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 10px;
    transition: transform 0.3s ease;
}

.portfolio-item:hover .project-image {
    transform: scale(1.05);
}

.about-section img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

/* 포트폴리오 아이템 개선 */
.portfolio-item {
    position: relative;
    border-radius: 10px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    height: 300px;
    margin-bottom: 30px;
    cursor: pointer;
    overflow: hidden;
    background-color: rgba(var(--bg-rgb), 0.2);
    backdrop-filter: blur(3px);
}

.portfolio-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.2);
}

.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.9);
    display: flex;
    align-items: flex-start;
    justify-content: center;
    opacity: 0;
    transition: all 0.3s ease;
    border-radius: 10px;
    padding: 40px;
    overflow-y: auto;
}

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

.portfolio-content {
    max-width: 1000px;
    margin: 0 auto;
}

.portfolio-content h3 {
    font-size: 2.5em;
    margin-bottom: 20px;
}

.project-type {
    font-size: 1.3em;
}

.project-tech .badge {
    font-size: 1em;
    padding: 10px 15px;
}

.project-period {
    font-size: 1em;
    margin-bottom: 15px;
    color: rgba(255,255,255,0.8);
}

.project-overview {
    font-size: 1.1em;
    line-height: 1.6;
    color: rgba(255,255,255,0.9);
    text-align: left;
}

.project-details {
    text-align: left;
    margin: 15px 0;
}

.project-details h5 {
    color: var(--accent-color);
    font-size: 1.3em;
    font-weight: 600;
    margin-bottom: 20px;
}

.project-details h6 {
    color: white;
    font-size: 1.1em;
    font-weight: 600;
    margin-bottom: 10px;
    border-left: 3px solid var(--accent-color);
    padding-left: 10px;
}

.project-highlights {
    list-style: none;
    padding-left: 20px;
    margin-bottom: 20px;
}

.project-highlights li {
    margin-bottom: 8px;
    font-size: 1em;
    position: relative;
    color: rgba(255,255,255,0.8);
    padding-left: 15px;
}

.project-highlights li:before {
    content: "•";
    position: absolute;
    left: 0;
    color: var(--accent-color);
}

.project-links .btn {
    padding: 8px 16px;
    font-size: 0.9em;
    margin: 5px;
    border-color: rgba(255,255,255,0.5);
}

.project-links .btn:hover {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
}

.project-links .btn i {
    margin-right: 5px;
}

/* 스크롤바 스타일링 */
.portfolio-overlay::-webkit-scrollbar {
    width: 6px;
}

.portfolio-overlay::-webkit-scrollbar-track {
    background: rgba(255,255,255,0.1);
}

.portfolio-overlay::-webkit-scrollbar-thumb {
    background: var(--accent-color);
    border-radius: 3px;
}

/* 게임 성과 카드 */
.achievement-card {
    background-color: rgba(var(--bg-rgb), 0.2);
    backdrop-filter: blur(3px);
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
    height: 100%;
    border: 1px solid var(--border-color);
}

.achievement-card:hover {
    transform: translateY(-5px);
}

.achievement-card h4 {
    color: var(--card-title);
    margin-bottom: 15px;
}

.achievement-card li {
    margin-bottom: 10px;
    color: var(--card-text);
    text-shadow: 0 1px 1px rgba(0,0,0,0.3);
}

/* 기술 스택 카드 스타일 */
.skill-card {
    background-color: rgba(var(--bg-rgb), 0.2);
    backdrop-filter: blur(3px);
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    height: 100%;
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
}

.skill-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.skill-card h4 {
    color: var(--card-title);
    font-size: 1.5em;
    font-weight: 600;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--accent-color);
}

.skill-card ul li {
    margin-bottom: 15px;
    font-size: 1.1em;
    color: var(--card-text);
    display: flex;
    align-items: center;
    text-shadow: 0 1px 1px rgba(0,0,0,0.3);
}

.skill-card ul li i {
    color: var(--accent-color);
    margin-right: 15px;
    font-size: 1.2em;
    width: 25px;
    text-align: center;
}

/* 연락처 정보 */
.contact-info {
    background: rgba(var(--bg-rgb), 0.2);
    backdrop-filter: blur(3px);
    color: var(--text-color);
}

.contact-info p {
    margin-bottom: 15px;
    font-size: 1.1em;
    color: var(--text-color);
}

.contact-info i {
    margin-right: 10px;
    color: var(--text-color);
}

.contact-info .social-links a {
    transition: all 0.3s ease;
    font-size: 1.1rem;
    padding: 0.8rem 1.5rem;
    border-width: 2px;
}

.contact-info .social-links a:hover {
    transform: translateY(-3px);
    background-color: var(--dark-color);
    color: white;
}

.contact-info .social-links i {
    margin-right: 8px;
}

#contact {
    background-color: rgba(var(--bg-rgb), 0.2);
    padding: 50px 0;
}

.social-button {
    display: inline-flex;
    align-items: center;
    padding: 8px 16px;
    margin: 0 8px;
    border: 1px solid var(--text-color);
    border-radius: 4px;
    color: var(--text-color);
    text-decoration: none;
    transition: all 0.3s ease;
    background: transparent;
}

.social-button:hover {
    background: var(--accent-color);
    color: #fff;
    border-color: var(--accent-color);
    text-decoration: none;
}

.social-button i {
    margin-right: 8px;
}

/* 애니메이션 */
[data-aos] {
    pointer-events: none;
}

[data-aos].aos-animate {
    pointer-events: auto;
}

/* 자기소개 섹션 스타일 */
.about-content {
    background-color: rgba(var(--bg-rgb), 0.2);
    backdrop-filter: blur(3px);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.about-content h3 {
    color: var(--section-title);
    font-weight: 700;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 1rem;
}

.about-content h3:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background-color: var(--accent-color);
}

.about-content h4 {
    color: var(--accent-color);
    margin: 1.5rem 0 1rem;
    font-size: 1.3em;
    font-weight: 600;
}

.about-content .lead {
    font-size: 1.1em;
    color: var(--card-text);
    line-height: 1.8;
}

.about-content .background,
.about-content .expertise,
.about-content .philosophy {
    padding: 1.5rem 0;
    border-bottom: 1px solid rgba(0,0,0,0.1);
}

.about-content .expertise li {
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
}

.about-content .expertise i {
    color: var(--accent-color);
    margin-right: 1rem;
    font-size: 1.2em;
}

.about-content .philosophy {
    border-bottom: none;
}

.about-content .philosophy p {
    line-height: 1.8;
    color: var(--card-text);
}

/* 프로젝트 섹션 스타일 */
.project-type {
    color: var(--accent-color);
    font-weight: bold;
    margin-bottom: 5px;
}

.project-period {
    font-size: 0.9em;
    margin-bottom: 15px;
}

.project-details {
    text-align: left;
    margin: 15px 0;
}

.project-highlights {
    list-style: none;
    padding-left: 0;
    margin-top: 10px;
}

.project-highlights li {
    margin-bottom: 5px;
    font-size: 0.9em;
    padding-left: 15px;
    position: relative;
}

.project-highlights li:before {
    content: "•";
    position: absolute;
    left: 0;
    color: var(--accent-color);
}

/* 포트폴리오 아이템 */
.portfolio-item {
    position: relative;
    border-radius: 10px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    height: 300px;
    margin-bottom: 30px;
    cursor: pointer;
    overflow: hidden;
    background-color: rgba(var(--bg-rgb), 0.2);
    backdrop-filter: blur(3px);
}

.portfolio-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.2);
}

.img-placeholder {
    height: 100%;
    background-color: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6c757d;
    border-radius: 10px;
}

.portfolio-preview {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.9), transparent);
    padding: 20px;
    color: white;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.portfolio-item:hover .portfolio-preview {
    transform: translateY(0);
}

.portfolio-preview h3 {
    font-size: 1.5em;
    margin-bottom: 5px;
}

.portfolio-preview .project-type {
    font-size: 1em;
    margin-bottom: 15px;
    opacity: 0.8;
}

.view-project {
    background-color: var(--accent-color);
    border: none;
    padding: 8px 20px;
    transition: all 0.3s ease;
}

.view-project:hover {
    background-color: #ff1f5a;
    transform: translateY(-2px);
}

/* 프로젝트 모달 */
.project-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0,0,0,0.9);
    z-index: 1001;
    overflow-y: auto;
    padding: 20px;
}

.modal-content {
    background-color: white;
    max-width: 1000px;
    margin: 30px auto;
    border-radius: 15px;
    position: relative;
    padding: 40px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.3s ease;
}

.project-modal.active .modal-content {
    transform: translateY(0);
    opacity: 1;
}

.close-modal {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 30px;
    color: #666;
    cursor: pointer;
    transition: color 0.3s ease;
    z-index: 1;
}

.close-modal:hover {
    color: var(--accent-color);
}

/* 프로젝트 헤더 */
.project-header {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #eee;
}

.project-header h3 {
    font-size: 2.5em;
    margin-bottom: 10px;
    color: var(--section-title);
}

.project-type {
    font-size: 1.2em;
    color: var(--accent-color);
}

/* 프로젝트 정보 */
.info-group {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 30px;
}

.info-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.info-list li {
    margin-bottom: 10px;
    font-size: 1.1em;
}

.info-list strong {
    color: #979797;
    margin-right: 10px;
}

/* 기술 스택 */
.tech-stack {
    margin-bottom: 30px;
}

.tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tech-tag {
    background-color: var(--accent-color);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9em;
}

/* 섹션 스타일 */
.modal-body h4 {
    color: var(--section-title);
    font-size: 1.5em;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--accent-color);
}

.modal-body h5 {
    color: var(--accent-color);
    font-size: 1.2em;
    margin: 20px 0 15px;
}

/* 담당 업무 */
.responsibility-group {
    margin-bottom: 25px;
}

.responsibility-group ul {
    list-style: none;
    padding-left: 20px;
}

.responsibility-group li {
    margin-bottom: 8px;
    position: relative;
    padding-left: 20px;
}

.responsibility-group li:before {
    content: "•";
    position: absolute;
    left: 0;
    color: var(--accent-color);
}

/* 문제 해결 카드 */
.challenge-card {
    background: rgba(var(--bg-rgb), 0.2);
    backdrop-filter: blur(3px);
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 20px;
}

.challenge-card h5 {
    color: var(--section-title);
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #ddd;
}

.challenge-card p {
    margin-bottom: 10px;
}

/* 리더십 및 성과 섹션 */
.leadership-group,
.outcomes-group {
    background-color: rgba(var(--bg-rgb), 0.2);
    backdrop-filter: blur(3px);
    padding: 20px;
    border-radius: 10px;
    border: 1px solid var(--border-color);
}

.leadership-group ul,
.outcomes-group ul {
    list-style: none;
    padding-left: 20px;
}

.leadership-group li,
.outcomes-group li {
    margin-bottom: 8px;
    position: relative;
    padding-left: 20px;
    color: var(--text-color);
}

.leadership-group li:before,
.outcomes-group li:before {
    content: "→";
    position: absolute;
    left: 0;
    color: var(--accent-color);
}

/* 결론 */
.conclusion {
    background-color: rgba(var(--bg-rgb), 0.2);
    backdrop-filter: blur(3px);
    padding: 25px;
    border-radius: 10px;
    margin-top: 30px;
    border: 1px solid var(--border-color);
}

.conclusion p {
    font-size: 1.1em;
    line-height: 1.8;
    color: var(--card-text);
    margin: 0;
}

/* 반응형 스타일 */
@media (max-width: 768px) {
    .hero-section .display-4 {
        font-size: 2.5rem;
    }
    
    .hero-section .lead {
        font-size: 1.2rem;
    }
    
    section {
        padding: 60px 0;
    }
    
    section h2 {
        font-size: 2rem;
    }
    
    .portfolio-item {
        height: 250px;
    }
    
    .img-placeholder {
        height: 300px;
    }
    
    .portfolio-overlay {
        padding: 20px;
    }
    
    .portfolio-content h3 {
        font-size: 2em;
    }
    
    .project-type {
        font-size: 1.1em;
    }
    
    .project-tech .badge {
        font-size: 0.9em;
        padding: 8px 12px;
    }
    
    .modal-content {
        padding: 20px;
        margin: 15px;
    }
    
    .project-header h3 {
        font-size: 2em;
    }
    
    .info-list li {
        font-size: 1em;
    }
    
    .tech-tag {
        font-size: 0.8em;
    }
    
    .modal-body h4 {
        font-size: 1.3em;
    }
    
    .modal-body h5 {
        font-size: 1.1em;
    }
}

@media (max-width: 576px) {
    .hero-section .display-4 {
        font-size: 2rem;
    }
    
    .hero-section .lead {
        font-size: 1rem;
    }
    
    .portfolio-item img {
        height: 200px;
    }
    
    .portfolio-preview h3 {
        font-size: 1.2em;
    }
    
    .portfolio-preview .project-type {
        font-size: 0.9em;
    }
}

/* 섹션 제목 스타일 */
.section-title {
    font-size: 1.8em;
    font-weight: 600;
    color: var(--section-title);
    margin-bottom: 30px;
    padding-bottom: 10px;
    position: relative;
}

.section-title:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #ff4081;
}

/* 프로젝트 요약 */
.project-overview {
    margin: 40px 0;
}

.project-overview h4 {
    font-size: 1.8em;
    font-weight: 600;
    color: var(--section-title);
    margin-bottom: 30px;
    padding-bottom: 10px;
    position: relative;
}

.project-overview h4:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #ff4081;
}

.project-overview p {
    font-size: 1.1em;
    line-height: 1.8;
    color: var(--text-color);
}

/* 주요 담당 업무 */
.responsibilities h4 {
    font-size: 1.8em;
    font-weight: 600;
    color: var(--section-title);
    margin-bottom: 30px;
    padding-bottom: 10px;
    position: relative;
}

.responsibilities h4:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #ff4081;
}

/* 자기소개서 스타일 */
.cover-letter-content {
    max-width: 800px;
    margin: 0 auto;
}

.cover-letter-section {
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 1px solid #eee;
}

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

.cover-letter-section h4 {
    color: var(--accent-color);
    font-size: 1.4em;
    margin-bottom: 20px;
    font-weight: 600;
}

.cover-letter-section p {
    font-size: 1.1em;
    line-height: 1.8;
    color: var(--text-color);
    white-space: pre-wrap;
}

.cover-letter-btn {
    background-color: var(--accent-color);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    font-size: 1.1em;
    cursor: pointer;
    transition: all 0.3s ease;
    margin: 20px 0;
}

.cover-letter-btn:hover {
    background-color: #ff1f5a;
    transform: translateY(-2px);
}

/* 이력서 버튼 스타일 */
.resume-btn {
    background-color: var(--accent-color);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    font-size: 1.1em;
    cursor: pointer;
    transition: all 0.3s ease;
}

.resume-btn:hover {
    background-color: #ff1f5a;
    transform: translateY(-2px);
}

/* 이력서 모달 스타일 */
.resume-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0,0,0,0.9);
    z-index: 1001;
    overflow-y: auto;
    padding: 20px;
}

.resume-modal .modal-content {
    background-color: white;
    max-width: 900px;
    margin: 30px auto;
    border-radius: 15px;
    position: relative;
    padding: 40px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
    opacity: 1;
    transform: none;
}

.resume-modal .close-modal {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 30px;
    color: #666;
    cursor: pointer;
    transition: color 0.3s ease;
    z-index: 1;
}

.resume-modal .close-modal:hover {
    color: var(--accent-color);
}

.resume-modal .modal-body {
    color: var(--text-color);
}

.resume-content {
    max-width: 900px;
    margin: 0 auto;
}

.resume-section {
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 1px solid #eee;
}

.resume-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.resume-section h4 {
    color: var(--accent-color);
    font-size: 1.4em;
    margin-bottom: 20px;
    font-weight: 600;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--accent-color);
}

.resume-section h5 {
    color: #979797;
    font-size: 1.2em;
    margin: 20px 0 15px;
    font-weight: 600;
}

.resume-section ul {
    list-style: none;
    padding-left: 0;
}

.resume-section ul li {
    margin-bottom: 10px;
    line-height: 1.6;
    color: var(--text-color);
}

.resume-section .skill-list li {
    margin-bottom: 15px;
}

.resume-section a {
    color: var(--accent-color);
    text-decoration: none;
}

.resume-section a:hover {
    text-decoration: underline;
}

.project-item {
    background: rgba(var(--bg-rgb), 0.2);
    backdrop-filter: blur(3px);
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 20px;
}

.project-item ul {
    list-style: none;
    padding-left: 20px;
}

.project-item ul li {
    position: relative;
}

.project-item ul li:before {
    content: "•";
    position: absolute;
    left: -15px;
    color: var(--accent-color);
}

.highlight-text {
    color: var(--accent-color);
    font-weight: 500;
    margin: 10px 0;
}

.game-achievements {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.achievement-item {
    background-color: rgba(var(--bg-rgb), 0.2);
    backdrop-filter: blur(3px);
    padding: 20px;
    border-radius: 10px;
    border: 1px solid var(--border-color);
}

.achievement-item h5 {
    color: var(--card-title);
    margin-bottom: 15px;
}

.achievement-item ul li {
    margin-bottom: 8px;
    padding-left: 20px;
    position: relative;
    color: var(--card-text);
}

.achievement-item ul li:before {
    content: "→";
    position: absolute;
    left: 0;
    color: var(--accent-color);
}

@media (max-width: 768px) {
    .resume-modal .modal-content {
        margin: 15px;
        padding: 20px;
    }
    
    .resume-section {
        padding: 15px;
    }
    
    .game-achievements {
        grid-template-columns: 1fr;
    }
    
    .project-item {
        padding: 15px;
    }
}

/* 타이핑 애니메이션 스타일 */
.static-text {
    font-weight: 700;
    display: inline;
}

.typewriter, .typewriter-sub {
    display: inline-block;
    position: relative;
    min-height: 1.2em;
}

.typewriter {
    font-weight: 700;
}

.typewriter::after {
    content: '';
    position: absolute;
    right: -3px;
    top: 0;
    height: 100%;
    border-right: 3px solid;
    animation: blink 0.7s infinite;
}

.typewriter-sub {
    display: block;
    font-size: 1.5rem;
    margin-top: 1.5rem;
    line-height: 1.5;
}

@keyframes blink {
    50% {
        border-color: transparent;
    }
}

/* 스크롤 프로그레스 바 */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0;
    height: 3px;
    background: var(--accent-color);
    z-index: 9999;
    transition: width 0.1s ease;
}

/* Unity 아이콘 스타일 */
.fa-unity {
    color: #ffffff;
    margin-right: 5px;
}

.navbar-brand .fa-unity {
    font-size: 1.2em;
}

.static-text .fa-unity {
    font-size: 1em;
    vertical-align: middle;
}

/* 최상단 이동 버튼 스타일 */
.scroll-top-button {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--accent-color);
    color: white;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    z-index: 1000;
}

.scroll-top-button:hover {
    background-color: #ff1f5a;
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.scroll-top-button.show {
    opacity: 1;
    visibility: visible;
}

/* 모바일 화면에서의 위치 조정 */
@media (max-width: 768px) {
    .scroll-top-button {
        bottom: 20px;
        right: 20px;
        width: 40px;
        height: 40px;
    }
}

/* 다크모드 토글 버튼 스타일 */
.theme-toggle {
    background: none;
    border: none;
    padding: 0.5rem 1rem;
    cursor: pointer;
    color: inherit;
    transition: color 0.3s ease;
}

.theme-toggle:hover {
    color: var(--accent-color);
}

/* 기존 스타일 수정 */
.about-content, 
.skill-card, 
.achievement-card,
.project-item,
.challenge-card,
.info-group {
    background-color: rgba(var(--bg-rgb), 0.2);
    border: 1px solid var(--border-color);
    backdrop-filter: blur(10px);
    transition: all 0.4s ease;
    padding: 1.5rem;
    border-radius: 10px;
}

.modal-content {
    background-color: var(--modal-bg);
    color: var(--text-color);
}

.project-modal {
    background-color: var(--modal-overlay);
}

.resume-modal .modal-content {
    background-color: var(--modal-bg);
    color: var(--text-color);
}

.close-modal {
    color: var(--text-color);
}

.project-header {
    border-bottom: 2px solid var(--border-color);
}

.cover-letter-section {
    border-bottom: 1px solid var(--border-color);
}

.resume-section {
    border-bottom: 1px solid var(--border-color);
}

.about-content .background,
.about-content .expertise,
.about-content .philosophy {
    border-bottom: 1px solid var(--border-color);
}

/* 섹션 배경색 수정 */
section.bg-light {
    background-color: var(--bg-color) !important;
}

/* 카드 스타일 개선 */
.skill-card, 
.achievement-card,
.project-item {
    background-color: rgba(var(--bg-rgb), 0.2);
    border: 1px solid var(--border-color);
    border-radius: 15px;
    padding: 2rem;
    margin-bottom: 30px;
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.1);
    transition: all 0.4s ease;
}

.skill-card:hover, 
.achievement-card:hover,
.project-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px 0 rgba(31, 38, 135, 0.15);
    border: 1px solid rgba(var(--text-color), 0.2);
}

/* 섹션 배경색 재정의 */
section.bg-light,
#skills,
#achievements,
#contact {
    background-color: rgba(var(--bg-rgb), 0.2) !important;
    backdrop-filter: blur(10px);
}

/* 카드 컨테이너 배경 */
.skill-cards-container,
.achievements-container,
.contact-container {
    background-color: transparent;
}

/* 카드 스타일 통일 */
.skill-card, 
.achievement-card,
.project-item,
.about-content, 
.challenge-card,
.info-group,
.leadership-group,
.outcomes-group,
.contact-info {
    background: rgba(var(--bg-rgb), 0.2);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(var(--text-color), 0.1);
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.1);
    transition: all 0.4s ease;
    padding: 1.5rem;
    border-radius: 10px;
}

/* 연락처 정보 스타일 수정 */
.contact-info {
    background: rgba(var(--bg-rgb), 0.2);
    backdrop-filter: blur(3px);
    color: var(--text-color);
}

.contact-info p,
.contact-info i {
    color: var(--text-color);
}

/* 다크모드 대응 */
[data-theme="dark"] section,
[data-theme="dark"] #skills,
[data-theme="dark"] #achievements,
[data-theme="dark"] #contact {
    background-color: rgba(var(--bg-rgb), 0.2) !important;
}

[data-theme="dark"] .skill-card,
[data-theme="dark"] .achievement-card,
[data-theme="dark"] .contact-info {
    background-color: rgba(var(--bg-rgb), 0.2);
}

/* 히어로 섹션은 원래 배경 유지 */
.hero-section {
    min-height: 100vh;
    background: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.7)), url('hero-bg.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: white;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 100px 0;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at center, 
        rgba(255, 64, 129, 0.2) 0%,
        rgba(64, 129, 255, 0.2) 50%,
        rgba(0, 0, 0, 0) 100%);
    opacity: 0.5;
    animation: pulse 8s ease-in-out infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 0.5;
    }
    50% {
        transform: scale(1.2);
        opacity: 0.3;
    }
    100% {
        transform: scale(1);
        opacity: 0.5;
    }
}

.hero-section .container {
    position: relative;
    z-index: 2;
}

.hero-section .display-4 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.hero-section .lead {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

.hero-section .social-links a {
    transition: all 0.4s ease;
    font-size: 1.1rem;
    padding: 0.8rem 1.5rem;
    margin: 0 0.5rem;
    border: 2px solid rgba(255,255,255,0.3);
    border-radius: 30px;
    color: white;
    text-decoration: none;
    backdrop-filter: blur(5px);
    background: rgba(255,255,255,0.1);
}

.hero-section .social-links a:hover {
    background: var(--accent-color);
    border-color: var(--accent-color);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(255,64,129,0.4);
}

@media (max-width: 768px) {
    .hero-section {
        min-height: 100vh;
        padding: 80px 0;
    }

    .hero-section .display-4 {
        font-size: 2.5rem;
    }

    .hero-section .lead {
        font-size: 1.2rem;
    }

    .hero-section .social-links a {
        font-size: 1rem;
        padding: 0.6rem 1.2rem;
        margin: 0.3rem;
    }
}

/* 네비게이션 바 */
.navbar {
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    padding: 1rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    background: rgba(var(--bg-rgb), 0.1);
    backdrop-filter: blur(10px);
}

.navbar.scrolled {
    background: rgba(33, 37, 41, 0.95) !important;
    padding: 0.5rem 0;
}

.navbar .nav-link {
    position: relative;
    padding: 0.5rem 1rem;
    transition: all 0.3s ease;
}

.navbar .nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 50%;
    background-color: var(--accent-color);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.navbar .nav-link:hover::after {
    width: 100%;
}

.navbar .nav-link.active::after {
    width: 100%;
}

/* 비디오 컨테이너 스타일 */
.video-container {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 비율 */
    margin-bottom: 2rem;
    background-color: #000;
    border-radius: 10px;
    overflow: hidden;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

@media (max-width: 768px) {
    .video-container {
        padding-bottom: 56.25%; /* 모바일에서도 16:9 비율 유지 */
    }
}

.navbar .nav-link {
    position: relative;
    padding: 0.5rem 1rem;
    transition: all 0.3s ease;
}

.navbar .nav-link:hover {
    color: var(--accent-color);
} 