/* 기본 스타일 */
:root {
    --primary-color: #3498db;
    --secondary-color: #2c3e50;
    --accent-color: #e74c3c;
    --text-color: #333;
    --light-text: #777;
    --bg-color: #f5f5f5;
    --card-bg: #fff;
    --border-color: #ddd;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

/* 다크 모드 */
[data-theme="dark"] {
    --primary-color: #4db2ff;
    --secondary-color: #34495e;
    --accent-color: #ff6b6b;
    --text-color: #f5f5f5;
    --light-text: #bbb;
    --bg-color: #222;
    --card-bg: #333;
    --border-color: #444;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

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

body {
    font-family: 'Noto Sans KR', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    transition: var(--transition);
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--accent-color);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

/* 헤더 스타일 */
header {
    background-color: var(--card-bg);
    box-shadow: var(--shadow);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.theme-toggle {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-color);
    font-size: 1.2rem;
}

/* 프로필 섹션 */
.profile-section {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    margin: 3rem 0;
    background-color: var(--card-bg);
    border-radius: 10px;
    box-shadow: var(--shadow);
    padding: 2rem;
}

.profile-image {
    flex: 0 0 250px;
}

.profile-image img {
    width: 100%;
    border-radius: 10px;
    box-shadow: var(--shadow);
}

.profile-info {
    flex: 1;
    min-width: 300px;
}

.profile-name {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

.profile-title {
    font-size: 1.5rem;
    color: var(--light-text);
    margin-bottom: 1.5rem;
}

.profile-description {
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.contact-info {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.contact-info a {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.side-project-btn {
    background-color: var(--primary-color);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    transition: var(--transition);
}

.side-project-btn:hover {
    background-color: var(--accent-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

/* 모바일 환경 대응 */
@media (max-width: 768px) {
    .contact-info {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .contact-info a {
        margin-bottom: 0.5rem;
        width: 100%;
    }
    
    .side-project-btn {
        padding: 0.7rem 1rem;
        font-size: 1rem;
        text-align: center;
        justify-content: center;
    }
}

.project-link {
    display: inline-block;
    font-size: 0.9rem;
    word-break: break-all;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
    transition: var(--transition);
}

.project-link:hover {
    color: var(--accent-color);
    text-decoration: underline;
}


/* 이력서 섹션 */
.resume-section {
    background-color: var(--card-bg);
    border-radius: 10px;
    box-shadow: var(--shadow);
    padding: 2rem;
    margin-bottom: 3rem;
}

.section-title {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 0.5rem;
}

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

.resume-item-title {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.resume-item-subtitle {
    font-size: 1.2rem;
    color: var(--light-text);
    margin-bottom: 0.5rem;
}

.resume-item-period {
    font-size: 1rem;
    color: var(--accent-color);
    margin-bottom: 1rem;
}

.resume-item-description {
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

/* 자기소개 섹션 스타일 */
.resume-section .resume-item p.resume-item-description {
    margin-bottom: 1.5rem;
}

.resume-section .resume-item p.resume-item-description:last-child {
    margin-bottom: 0;
}

.resume-section .resume-item p.resume-item-description strong {
    color: var(--primary-color);
    font-size: 1.1rem;
    display: inline-block;
    margin-bottom: 0.5rem;
}

.skills-container {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.skill-tag {
    background-color: var(--primary-color);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
}

/* 화면설계 예시 */
.figma-container {
    width: 100%;
    margin: 1.5rem 0;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

/* 프로젝트 슬라이더 */
.slider-section {
    background-color: var(--card-bg);
    border-radius: 10px;
    box-shadow: var(--shadow);
    padding: 2rem;
    margin-bottom: 3rem;
    position: relative;
}

.slider-container {
    position: relative;
    width: 100%;
    overflow: hidden;
    border-radius: 8px;
    margin-top: 1rem;
}

.slider-item {
    display: none;
    flex-direction: column;
    width: 100%;
    box-sizing: border-box;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.5s ease;
    position: relative;
}

.slider-item.active {
    display: flex;
    opacity: 1;
}

.slider-image {
    width: 100%;
    max-width: 800px;
    height: auto;
    max-height: 450px;
    object-fit: contain;
    border-radius: 8px;
    margin: 0 auto 1.5rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    display: block;
}

.slider-content {
    padding: 0 1rem;
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
}

.slider-title {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-weight: 700;
}

.slider-description {
    margin-bottom: 1rem;
    line-height: 1.6;
}

.slider-description p {
    margin-bottom: 0.8rem;
}

.slider-description strong {
    color: var(--primary-color);
    font-weight: 600;
}

.slider-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    margin-bottom: 15px;
    z-index: 10;
}

.slider-arrow {
    background-color: var(--primary-color);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.2rem;
    cursor: pointer;
    transition: var(--transition);
    margin: 0 1rem;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    opacity: 0.3;
    transition: opacity 0.3s ease;
}

.slider-prev {
    left: 15px;
}

.slider-next {
    right: 15px;
}

.slider-arrow:hover {
    background-color: var(--accent-color);
}

.slider-dots {
    display: flex;
    justify-content: center;
    margin-top: 1rem;
    position: absolute;
    bottom: 20px;
    left: 0;
    right: 0;
    z-index: 10;
}

.slider-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: var(--border-color);
    margin: 0 5px;
    cursor: pointer;
    transition: var(--transition);
}

.slider-dot.active {
    background-color: var(--primary-color);
    transform: scale(1.2);
}

/* 푸터 스타일 */
footer {
    background-color: var(--secondary-color);
    color: white;
    text-align: center;
    padding: 2rem 0;
    margin-top: 3rem;
}

.footer-text {
    margin-bottom: 1rem;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
}

/* 반응형 디자인 */
@media (max-width: 768px) {
    .container {
        padding: 1rem;
    }
    
    .header {
        padding: 1rem 0;
    }
    
    .header-title {
        font-size: 1.8rem;
    }
    
    .profile-section {
        flex-direction: column;
        padding: 1.5rem;
    }
    
    .profile-image {
        flex: 0 0 100%;
        max-width: 250px;
        margin: 0 auto 1.5rem;
    }
    
    .profile-info {
        padding-left: 0;
    }
    
    .profile-name {
        font-size: 1.5rem;
        text-align: center;
    }
    
    .profile-title {
        font-size: 1rem;
        text-align: center;
    }
    
    .contact-info {
        justify-content: center;
    }
    
    .resume-section {
        padding: 1.5rem;
        margin-bottom: 1.5rem;
    }
    
    .section-title {
        font-size: 1.4rem;
    }
    
    .resume-item-title {
        font-size: 1.1rem;
    }
    
    .resume-item-subtitle {
        font-size: 0.9rem;
    }
    
    .resume-item-description {
        font-size: 0.9rem;
    }
    
    .slider-section {
        padding: 1.5rem;
    }
    
    .slider-image {
        max-height: 300px;
    }
    
    .slider-title {
        font-size: 1.2rem;
    }
    
    .slider-description {
        font-size: 0.9rem;
    }
    
    .slider-arrow {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }
    
    .figma-container iframe {
        height: 400px;
    }
    
    .skills-container {
        justify-content: center;
    }
    
    .skill-tag {
        margin: 0.3rem;
        font-size: 0.85rem;
    }
    
    footer {
        padding: 1.5rem 0;
    }
}

/* 작은 화면 모바일 디자인 */
@media (max-width: 480px) {
    .header-title {
        font-size: 1.5rem;
    }
    
    .profile-image {
        max-width: 200px;
    }
    
    .profile-name {
        font-size: 1.3rem;
    }
    
    .section-title {
        font-size: 1.2rem;
    }
    
    .resume-item-title {
        font-size: 1rem;
    }
    
    .slider-image {
        max-height: 250px;
    }
    
    .slider-arrow {
        width: 30px;
        height: 30px;
    }
    
    .figma-container iframe {
        height: 300px;
    }
    
    .slider-dots {
        bottom: 10px;
    }
    
    .slider-dot {
        width: 10px;
        height: 10px;
        margin: 0 3px;
    }
}

@media (max-width: 480px) {
    .profile-name {
        font-size: 2rem;
    }
    
    .profile-title {
        font-size: 1.2rem;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .time-display {
        font-size: 2rem;
    }
    
    .date-display {
        font-size: 1rem;
    }
}
