/* 전역 스타일 */
:root {
    --primary-color: #3498db;
    --primary-dark: #2980b9;
    --secondary-color: #2c3e50;
    --text-color: #333;
    --bg-color: #f8f9fa;
    --card-bg: #ffffff;
    --border-radius: 8px;
    --box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
    --email-highlight: rgba(52, 152, 219, 0.1);
    --github-highlight: rgba(65, 184, 131, 0.1);
}

/* 다크모드 변수 */
[data-theme="dark"] {
    --primary-color: #4dabf7;
    --primary-dark: #339af0;
    --secondary-color: #495057;
    --text-color: #e9ecef;
    --bg-color: #121212;
    --card-bg: #1e1e1e;
    --box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    --input-focus-color: rgba(77, 171, 247, 0.4);
    --email-highlight: rgba(77, 171, 247, 0.15);
    --github-highlight: rgba(85, 215, 155, 0.15);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}   

body {
    font-family: 'Noto Sans KR', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-color);
    scroll-behavior: smooth;
}

/* 다크모드 토글 버튼 */
.theme-toggle {
    position: fixed;
    top: 15px;
    right: 20px;
    z-index: 1001;
    display: flex;
    align-items: center;
    cursor: pointer;
    background-color: var(--card-bg);
    border-radius: 30px;
    padding: 5px 10px;
    box-shadow: var(--box-shadow);
}

.theme-toggle i {
    font-size: 1.2rem;
    color: var(--text-color);
    margin-right: 5px;
}

.theme-toggle span {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-color);
}

/* 헤더 스타일 */
.header {
    background-color: var(--secondary-color);
    padding: 1rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
}

.nav ul {
    display: flex;
    justify-content: center;
    list-style: none;
    gap: 2rem;
}

.nav a {
    color: white;
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 500;
    transition: var(--transition);
    position: relative;
    padding: 0.5rem 0;
}

.nav a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--primary-color);
    transition: var(--transition);
}

.nav a:hover {
    color: var(--primary-color);
}

.nav a:hover::after {
    width: 100%;
}

/* 메인 섹션 스타일 */
main {
    margin-top: 70px;
    padding: 1rem;
}

.section {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem 1rem;
    background-color: var(--card-bg);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    margin-bottom: 2rem;
    position: relative;
    overflow: hidden;
}

.section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 100%;
    background-color: var(--primary-color);
}

h2 {
    color: var(--secondary-color);
    font-size: 2.5rem;
    margin-bottom: 2.5rem;
    text-align: center;
    position: relative;
    padding-bottom: 1rem;
}

h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: var(--primary-color);
    border-radius: 3px;
}

h3 {
    color: var(--secondary-color);
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
}

h4 {
    color: var(--secondary-color);
    font-size: 1.4rem;
    margin-bottom: 1rem;
}

/* About Me 섹션 */
.about-content {
    display: flex;
    align-items: flex-start;
    gap: 3rem;
    flex-wrap: wrap;
}

.profile-info {
    flex: 2;
    min-width: 300px;
    background-color: rgba(255, 255, 255, 0.7);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    transition: var(--transition);
}

.profile-info:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.profile-image-container {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    min-width: 250px;
}

.profile-image {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--primary-color);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    transition: var(--transition);
    cursor: pointer;
}

.profile-image:hover {
    transform: scale(1.05);
    box-shadow: 0 12px 30px rgba(52, 152, 219, 0.3);
}

/* 다크모드에서 프로필 이미지 스타일 */
[data-theme="dark"] .profile-image {
    border-color: var(--primary-color);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

[data-theme="dark"] .profile-image:hover {
    box-shadow: 0 12px 30px rgba(77, 171, 247, 0.4);
}

.strengths ul {
    list-style: none;
    padding-left: 1.5rem;
    margin-top: 1rem;
}

.strengths li {
    margin-bottom: 0.8rem;
    position: relative;
    padding-left: 0.5rem;
}

.strengths li:before {
    content: '•';
    color: var(--primary-color);
    position: absolute;
    left: -1.5rem;
    font-size: 1.2rem;
}

/* Projects 섹션 */
.project-content {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.project-details {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.role, .main-content {
    background-color: rgba(255, 255, 255, 0.7);
    padding: 1.8rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    transition: var(--transition);
}

.role:hover, .main-content:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.content-item {
    margin-bottom: 1.5rem;
}

.content-item ul,
.challenges ul,
.learnings ul {
    list-style: none;
    padding-left: 1.5rem;
}

.content-item li,
.challenges li,
.learnings li {
    margin-bottom: 0.5rem;
    position: relative;
}

.content-item li:before,
.challenges li:before,
.learnings li:before {
    content: '→';
    color: var(--primary-color);
    position: absolute;
    left: -1.5rem;
    font-weight: bold;
}

/* Skills 섹션 */
.skills-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    width: 100%;
}

.skill-category {
    background-color: rgba(255, 255, 255, 0.7);
    padding: 1.8rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.skill-category::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background-color: var(--primary-color);
}

.skill-category:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.skill-category h4 {
    color: var(--secondary-color);
    font-size: 1.2rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
}

.skill-tag {
    background-color: rgba(52, 152, 219, 0.1);
    color: var(--secondary-color);
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius);
    font-size: 0.9rem;
    font-weight: 500;
    border: 1px solid rgba(52, 152, 219, 0.2);
    transition: var(--transition);
    cursor: default;
    display: inline-block;
}

.skill-tag:hover {
    background-color: rgba(52, 152, 219, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(52, 152, 219, 0.2);
}

/* 다크모드 스킬 섹션 스타일 */
[data-theme="dark"] .skill-category {
    background-color: rgba(40, 40, 40, 0.7);
}

[data-theme="dark"] .skill-category::before {
    background-color: var(--primary-color);
    box-shadow: 0 0 8px var(--primary-color);
}

[data-theme="dark"] .skill-category h4 {
    color: #e9ecef;
}

[data-theme="dark"] .skill-tag {
    background-color: rgba(77, 171, 247, 0.15);
    color: #ced4da;
    border-color: rgba(77, 171, 247, 0.3);
}

[data-theme="dark"] .skill-tag:hover {
    background-color: rgba(77, 171, 247, 0.25);
    box-shadow: 0 4px 8px rgba(77, 171, 247, 0.3);
}

/* Contact 섹션 스타일 */
.contact-content {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    max-width: 800px;
    margin: 0 auto;
}

.contact-info {
    display: flex;
    justify-content: center;
    gap: 2.5rem;
    flex-wrap: wrap;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 1rem 1.5rem;
    background-color: rgba(255, 255, 255, 0.8);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    transition: var(--transition);
}

.contact-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
}

.contact-item i {
    font-size: 1.5rem;
    color: var(--primary-color);
    transition: var(--transition);
}

.contact-item:hover i {
    transform: scale(1.2);
}

.contact-item a {
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
}

.contact-item a:hover {
    color: var(--primary-color);
}

.contact-item.email-item,
.contact-item.github-item {
    position: relative;
    overflow: hidden;
}

.contact-item.email-item {
    border-left: 3px solid var(--primary-color);
}

.contact-item.github-item {
    border-left: 3px solid #41b883;
}

.contact-item.email-item a,
.contact-item.github-item a {
    font-family: 'Roboto Mono', monospace, 'Noto Sans KR', sans-serif;
    letter-spacing: 0.5px;
    position: relative;
    z-index: 1;
}

.contact-item.email-item::before,
.contact-item.github-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: var(--transition);
    z-index: 0;
}

.contact-item.email-item::before {
    background-color: var(--email-highlight);
}

.contact-item.github-item::before {
    background-color: var(--github-highlight);
}

.contact-item.email-item:hover::before,
.contact-item.github-item:hover::before {
    opacity: 1;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    background-color: rgba(255, 255, 255, 0.8);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-weight: 600;
    color: var(--secondary-color);
    margin-bottom: 0.3rem;
}

.form-group input,
.form-group textarea {
    padding: 1rem;
    border: 2px solid #e0e0e0;
    border-radius: var(--border-radius);
    font-size: 1rem;
    transition: var(--transition);
    background-color: rgba(255, 255, 255, 0.9);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.2);
}

.form-group.focused label {
    color: var(--primary-color);
    transform: translateY(-2px);
}

.form-group textarea {
    min-height: 150px;
    resize: vertical;
}

.submit-btn {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 1rem 1.8rem;
    border-radius: var(--border-radius);
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    align-self: flex-start;
    margin-top: 0.5rem;
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
}

.submit-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: 0.5s;
}

.submit-btn:hover {
    background-color: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(41, 128, 185, 0.4);
}

.submit-btn:hover::before {
    left: 100%;
}

.submit-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 5px rgba(41, 128, 185, 0.4);
}

.submit-btn.success {
    background-color: #27ae60;
    box-shadow: 0 5px 15px rgba(39, 174, 96, 0.4);
}

/* Projects 섹션 */
.projects-subtitle {
    text-align: center;
    color: var(--text-color);
    margin-bottom: 2rem;
    font-size: 1.1rem;
    opacity: 0.8;
}

.projects-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-top: 2rem;
    width: 100%;
}

.project-card {
    background-color: rgba(255, 255, 255, 0.7);
    border-radius: var(--border-radius);
    padding: 2rem;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    border: 1px solid rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
}

.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background-color: var(--primary-color);
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.project-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.project-tag {
    padding: 0.4rem 1rem;
    border-radius: var(--border-radius);
    font-size: 0.9rem;
    font-weight: 600;
    color: white;
    background-color: var(--primary-color);
}

.project-tag.react {
    background-color: var(--primary-color);
}

.project-tag.blog {
    background-color: var(--secondary-color);
}

.project-date {
    color: var(--text-color);
    font-size: 0.9rem;
    opacity: 0.7;
    font-weight: 500;
}

.project-title {
    font-size: 1.3rem;
    color: var(--secondary-color);
    margin-bottom: 1.5rem;
    line-height: 1.4;
    font-weight: 600;
}

.project-features {
    list-style: none;
    margin-bottom: 1.5rem;
}

.project-features li {
    margin-bottom: 0.8rem;
    position: relative;
    padding-left: 1.2rem;
    color: var(--text-color);
    line-height: 1.6;
}

.project-features li::before {
    content: '→';
    color: var(--primary-color);
    position: absolute;
    left: 0;
    font-weight: bold;
}

.project-links {
    margin-bottom: 1.5rem;
}

.project-link {
    background-color: rgba(52, 152, 219, 0.1);
    color: var(--primary-color);
    text-decoration: none;
    font-size: 0.95rem;
    border: 1px solid rgba(52, 152, 219, 0.2);
    border-radius: var(--border-radius);
    transition: var(--transition);
    display: inline-block;
    padding: 0.5rem 1rem;
    font-weight: 500;
    cursor: pointer;
}

.project-link:hover {
    background-color: rgba(52, 152, 219, 0.2);
    color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(52, 152, 219, 0.2);
}

.project-footer {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    flex-wrap: wrap;
    gap: 1rem;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    flex: 1;
}

.tech-tag {
    background-color: rgba(52, 152, 219, 0.1);
    color: var(--secondary-color);
    padding: 0.3rem 0.8rem;
    border-radius: var(--border-radius);
    font-size: 0.8rem;
    font-weight: 500;
    border: 1px solid rgba(52, 152, 219, 0.2);
}

.readme-btn {
    background-color: var(--primary-color);
    border: none;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
}

.readme-btn:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.3);
}

/* 다크모드 프로젝트 카드 스타일 */
[data-theme="dark"] .project-card {
    background-color: rgba(40, 40, 40, 0.7);
    border-color: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .project-card::before {
    background-color: var(--primary-color);
    box-shadow: 0 0 8px var(--primary-color);
}

[data-theme="dark"] .project-title {
    color: #e9ecef;
}

[data-theme="dark"] .project-features li {
    color: #ced4da;
}

[data-theme="dark"] .project-link {
    background-color: rgba(77, 171, 247, 0.15);
    color: var(--primary-color);
    border-color: rgba(77, 171, 247, 0.3);
}

[data-theme="dark"] .project-link:hover {
    background-color: rgba(77, 171, 247, 0.25);
    box-shadow: 0 4px 8px rgba(77, 171, 247, 0.3);
}

[data-theme="dark"] .tech-tag {
    background-color: rgba(77, 171, 247, 0.15);
    color: #ced4da;
    border-color: rgba(77, 171, 247, 0.3);
}

[data-theme="dark"] .tech-tag:hover {
    background-color: rgba(77, 171, 247, 0.25);
    box-shadow: 0 4px 8px rgba(77, 171, 247, 0.3);
}

/* 다크모드 스타일 오버라이드 */
[data-theme="dark"] .section {
    background-color: var(--card-bg);
}

[data-theme="dark"] .profile-info,
[data-theme="dark"] .role,
[data-theme="dark"] .main-content,
[data-theme="dark"] .skill-category,
[data-theme="dark"] .contact-item,
[data-theme="dark"] .contact-form,
[data-theme="dark"] .skill-item {
    background-color: rgba(40, 40, 40, 0.7);
}

[data-theme="dark"] .skill-item {
    background-color: rgba(30, 30, 30, 0.5);
}

[data-theme="dark"] .form-group input,
[data-theme="dark"] .form-group textarea {
    background-color: rgba(30, 30, 30, 0.9);
    border-color: #444;
    color: var(--text-color);
}

/* 다크모드 가독성 향상을 위한 스타일 */
[data-theme="dark"] h2,
[data-theme="dark"] h3,
[data-theme="dark"] h4 {
    color: #e9ecef;
}

[data-theme="dark"] p,
[data-theme="dark"] li {
    color: #ced4da;
}

[data-theme="dark"] .section::before {
    background-color: var(--primary-color);
    box-shadow: 0 0 8px var(--primary-color);
}

[data-theme="dark"] .skill-item i {
    color: var(--primary-color);
    text-shadow: 0 0 5px rgba(77, 171, 247, 0.5);
}

[data-theme="dark"] .form-group input:focus,
[data-theme="dark"] .form-group textarea:focus {
    box-shadow: 0 0 0 3px var(--input-focus-color);
}

[data-theme="dark"] .contact-item i {
    text-shadow: 0 0 5px rgba(77, 171, 247, 0.5);
}

[data-theme="dark"] .contact-item.email-item,
[data-theme="dark"] .contact-item.github-item {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .contact-item.email-item i {
    color: #4dabf7;
    text-shadow: 0 0 8px rgba(77, 171, 247, 0.6);
}

[data-theme="dark"] .contact-item.github-item i {
    color: #41b883;
    text-shadow: 0 0 8px rgba(65, 184, 131, 0.6);
}

[data-theme="dark"] .contact-item.email-item a,
[data-theme="dark"] .contact-item.github-item a {
    font-weight: 600;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

[data-theme="dark"] .contact-item.email-item a {
    color: #74c0fc;
}

[data-theme="dark"] .contact-item.github-item a {
    color: #69db7c;
}

/* 다크모드에서 코드 블록과 인용구 스타일 향상 */
[data-theme="dark"] code,
[data-theme="dark"] pre {
    background-color: #2d333b;
    border: 1px solid #444c56;
    color: #adbac7;
}

[data-theme="dark"] blockquote {
    border-left-color: var(--primary-color);
    background-color: rgba(77, 171, 247, 0.1);
}

/* Footer 스타일 */
.footer {
    background-color: var(--secondary-color);
    color: white;
    text-align: center;
    padding: 1.5rem 0;
    margin-top: 2rem;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
}

/* 캐러셀 모달 스타일 */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
}

.modal-content {
    background-color: var(--card-bg);
    margin: 2% auto;
    padding: 0;
    border-radius: 15px;
    width: 90%;
    max-width: 900px;
    max-height: 90vh;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    position: relative;
}

.modal-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h2 {
    margin: 0;
    font-size: 1.5rem;
    color: white;
}

.close {
    color: white;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    background: none;
    border: none;
    padding: 5px;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease;
}

.close:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.modal-body {
    padding: 0;
    position: relative;
    height: 70vh;
    overflow: hidden;
}

/* 캐러셀 컨테이너 */
.carousel-container {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.carousel-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
}

.carousel-slider {
    display: flex;
    transition: transform 0.5s ease-in-out;
    height: 100%;
    width: 500%; /* 5개 슬라이드를 위해 */
}

.carousel-slide {
    min-width: 20%; /* 5개 슬라이드를 위해 */
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f8f9fa;
    position: relative;
}

.carousel-slide img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* 캐러셀 네비게이션 버튼 */
.carousel-prev,
.carousel-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    padding: 15px 20px;
    cursor: pointer;
    font-size: 18px;
    border-radius: 5px;
    transition: background-color 0.3s ease;
    z-index: 10;
}

.carousel-prev {
    left: 20px;
}

.carousel-next {
    right: 20px;
}

.carousel-prev:hover,
.carousel-next:hover {
    background-color: rgba(0, 0, 0, 0.7);
}

.carousel-prev:disabled,
.carousel-next:disabled {
    background-color: rgba(0, 0, 0, 0.2);
    cursor: not-allowed;
}

/* 캐러셀 페이지 인디케이터 */
.carousel-page {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    z-index: 10;
}

/* 캐러셀 도트 인디케이터 */
.carousel-indicators {
    position: absolute;
    bottom: 60px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.carousel-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.carousel-dot.active {
    background-color: white;
}

.carousel-dot:hover {
    background-color: rgba(255, 255, 255, 0.8);
}

/* 슬라이드 경계선 */
.carousel-slider-border {
    display: none; /* 경계선 숨기기 */
}

/* 다크모드 스타일 */
[data-theme="dark"] .modal-content {
    background-color: var(--card-bg);
}

[data-theme="dark"] .carousel-slide {
    background-color: #2d3748;
}

[data-theme="dark"] .carousel-slider-border {
    background-color: rgba(255, 255, 255, 0.1);
}

/* 반응형 스타일 */
@media (max-width: 768px) {
    .modal-content {
        width: 95%;
        margin: 5% auto;
        max-height: 85vh;
    }
    
    .carousel-prev,
    .carousel-next {
        padding: 10px 15px;
        font-size: 16px;
    }
    
    .carousel-prev {
        left: 10px;
    }
    
    .carousel-next {
        right: 10px;
    }
    
    .modal-header h2 {
        font-size: 1.2rem;
    }
}

@media (max-width: 480px) {
    .nav a {
        font-size: 0.9rem;
    }
    
    .contact-item {
        padding: 0.8rem 1.2rem;
    }
    
    .profile-image {
        width: 120px;
        height: 120px;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
    }
    
    .project-tech {
        gap: 0.3rem;
    }
    
    .tech-tag {
        font-size: 0.75rem;
        padding: 0.2rem 0.6rem;
    }
}

/* 애니메이션 */
@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: scale(0.8) translateY(-50px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.modal.show .modal-content {
    animation: modalSlideIn 0.3s ease-out;
}