/* 전역 변수 설정 */
:root {
    --primary-color: #9370DB;
    --secondary-color: #8A2BE2;
    --accent-color: #DDA0DD;
    --text-color: #333;
    --background-color: #F8F8FF;
    --shadow: 0 4px 6px rgba(147, 112, 219, 0.1);
}

/* 기본 스타일 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--background-color);
}

/* 헤더 및 네비게이션 */
.header {
    background-color: white;
    padding: 1rem 0;
    box-shadow: var(--shadow);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    border-radius: 0 0 25px 25px;
}

.nav ul {
    display: flex;
    justify-content: center;
    list-style: none;
    gap: 2rem;
}

.nav a {
    text-decoration: none;
    color: var(--text-color);
    padding: 0.8rem 1.5rem;
    border-radius: 25px;
    transition: all 0.3s ease;
    background-color: rgba(147, 112, 219, 0.1);
}

.nav a:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

/* 메인 컨텐츠 */
main {
    margin-top: 80px;
    padding: 2rem 0;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section {
    margin-bottom: 4rem;
    padding: 2rem;
    background-color: white;
    border-radius: 30px;
    box-shadow: var(--shadow);
}

h2 {
    color: var(--secondary-color);
    margin-bottom: 2rem;
    font-size: 2.5rem;
    text-align: center;
}

/* 프로젝트 카드 */
.project-card {
    background-color: rgba(147, 112, 219, 0.1);
    padding: 2rem;
    border-radius: 20px;
    margin-bottom: 2rem;
    transition: transform 0.3s ease;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(147, 112, 219, 0.2);
}

.project-card h3 {
    color: var(--secondary-color);
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
}

.project-card h4 {
    color: var(--primary-color);
    margin: 1.5rem 0 1rem;
    font-size: 1.3rem;
}

.project-details ul {
    list-style-type: none;
    margin-left: 1rem;
}

.project-details li {
    margin-bottom: 0.5rem;
    position: relative;
    padding-left: 1.5rem;
}

.project-details li::before {
    content: "•";
    color: var(--primary-color);
    position: absolute;
    left: 0;
    font-size: 1.2em;
}

/* 스킬 그리드 */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.skill-item {
    background-color: white;
    padding: 1.5rem;
    border-radius: 15px;
    box-shadow: var(--shadow);
}

.skill-item h3 {
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

.skill-bar {
    height: 10px;
    background-color: rgba(147, 112, 219, 0.2);
    border-radius: 5px;
    overflow: hidden;
}

.skill-progress {
    height: 100%;
    background-color: var(--primary-color);
    border-radius: 5px;
    width: 0;
    transition: width 1s ease;
}

/* 연락처 폼 */
.contact-form {
    max-width: 600px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 1.5rem;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--secondary-color);
}

input,
textarea {
    width: 100%;
    padding: 0.8rem;
    border: 2px solid rgba(147, 112, 219, 0.2);
    border-radius: 15px;
    transition: border-color 0.3s ease;
}

input:focus,
textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

textarea {
    height: 150px;
    resize: vertical;
}

.submit-btn {
    background-color: var(--primary-color);
    color: white;
    padding: 1rem 2rem;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
}

.submit-btn:hover {
    background-color: var(--secondary-color);
    transform: translateY(-2px);
}

/* 푸터 */
.footer {
    background-color: white;
    padding: 2rem 0;
    text-align: center;
    border-radius: 25px 25px 0 0;
    box-shadow: var(--shadow);
}

/* 반응형 디자인 */
@media (max-width: 768px) {
    .nav ul {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }

    .header {
        padding: 1rem;
    }

    .section {
        padding: 1.5rem;
        margin-bottom: 2rem;
    }

    h2 {
        font-size: 2rem;
    }

    .project-card {
        padding: 1.5rem;
    }

    .skills-grid {
        grid-template-columns: 1fr;
    }

    .container {
        padding: 0 1rem;
    }
}