/* 기본 스타일 초기화 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

body {
    font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, system-ui, Roboto, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #e3f2fd;
    overflow-x: hidden;
}

/* 컨테이너 */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 헤더 */
.header {
    background: linear-gradient(135deg, #4fc3f7, #03a9f4);
    color: white;
    padding: 2.5rem 0;
    box-shadow: 0 4px 20px rgba(3, 169, 244, 0.2);
    position: relative;
    overflow: hidden;
}

.header::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0) 70%);
    animation: rotate 20s linear infinite;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
    animation: fadeInUp 1s ease-out;
}

/* 메인 콘텐츠 */
.main {
    padding: 3rem 0;
}

/* 프로필 섹션 */
.profile {
    background: white;
    border-radius: 20px;
    padding: 2.5rem;
    margin-bottom: 3rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    animation: fadeInLeft 1s ease-out 0.3s backwards;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 2rem;
    align-items: start;
}

.profile-image {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(52, 152, 219, 0.2);
    transition: all 0.4s ease;
    position: relative;
}

.profile-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.profile-image:hover {
    transform: scale(1.05);
    box-shadow: 0 12px 30px rgba(52, 152, 219, 0.3);
}

.profile-image:hover img {
    transform: scale(1.1);
}

.profile::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 20px;
    box-shadow: 0 15px 40px rgba(52, 152, 219, 0.2);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    z-index: -1;
}

.profile:hover {
    transform: translateY(-8px);
}

.profile:hover::after {
    opacity: 1;
}

.profile h2 {
    color: #2c3e50;
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    border-bottom: 3px solid #3498db;
    padding-bottom: 0.5rem;
    display: inline-block;
}

.profile-info ul {
    list-style: none;
}

.profile-info li {
    margin-bottom: 1.2rem;
    padding: 0.8rem 0;
    border-bottom: 1px solid rgba(3, 169, 244, 0.1);
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
    animation: fadeInLeft 0.5s ease-out calc(0.5s + var(--li-index) * 0.1s) backwards;
}

.profile-info li:hover {
    transform: scale(1.02);
    padding-left: 0.5rem;
    background: rgba(3, 169, 244, 0.05);
    border-bottom-color: #03a9f4;
}

.profile-info li:hover {
    padding-left: 0.5rem;
    background: rgba(52, 152, 219, 0.03);
    border-bottom-color: #3498db;
}

.profile-info strong {
    color: #2c3e50;
    margin-right: 1rem;
}

.profile-info a {
    color: #03a9f4;
    text-decoration: none;
    transition: all 0.3s ease;
}

.profile-info a:hover {
    color: #0288d1;
    transform: scale(1.05);
    display: inline-block;
}

/* 프로젝트 섹션 */
.project-title-link {
    color: #2c3e50;
    text-decoration: none;
    transition: all 0.3s ease;
}

.project-title-link:hover {
    color: #03a9f4;
}

.projects h2 {
    color: #2c3e50;
    font-size: 1.8rem;
    margin-bottom: 2rem;
    text-align: center;
}

.project-card {
    background: linear-gradient(135deg, white, #f1f8fe);
    border-radius: 20px;
    padding: 2.5rem;
    margin-bottom: 2.5rem;
    box-shadow: 0 10px 30px rgba(3, 169, 244, 0.1);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    position: relative;
    border: 1px solid rgba(3, 169, 244, 0.1);
    animation: fadeInRight 1s ease-out 0.6s backwards;
}

.project-card:hover {
    transform: translateY(-8px) scale(1.01);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
    border-color: rgba(52, 152, 219, 0.2);
}

.project-card h3 {
    color: #2c3e50;
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.project-type {
    color: #3498db;
    font-weight: 600;
    margin-bottom: 1.5rem;
    display: inline-block;
    padding: 0.4rem 1rem;
    background: rgba(52, 152, 219, 0.1);
    border-radius: 20px;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
}

.project-section {
    margin-bottom: 1.5rem;
}

.project-section h4 {
    color: #0288d1;
    font-size: 1.2rem;
    margin-bottom: 1rem;
    border-left: 4px solid #03a9f4;
    padding-left: 1rem;
    position: relative;
    display: inline-block;
    transition: all 0.3s ease;
}

.project-section h4:hover {
    transform: scale(1.05);
    color: #01579b;
}

.project-section h4::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 1rem;
    width: 50px;
    height: 2px;
    background: linear-gradient(90deg, #3498db, transparent);
}

.project-section ul {
    list-style: none;
    padding-left: 1.5rem;
    display: grid;
    gap: 0.8rem;
}

.project-section li {
    margin-bottom: 0.5rem;
    position: relative;
}

.project-section li::before {
    content: '→';
    color: #03a9f4;
    position: absolute;
    left: -1.2rem;
    transition: all 0.3s ease;
}

.project-section li:hover {
    transform: scale(1.02);
    color: #0288d1;
}

.project-section li:hover::before {
    transform: translateX(0.3rem);
}

.project-summary {
    margin-top: 2rem;
    padding: 2rem;
    background: linear-gradient(135deg, #e3f2fd, #bbdefb);
    border-radius: 15px;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.project-summary:hover {
    transform: scale(1.02);
    background: linear-gradient(135deg, #bbdefb, #90caf9);
}

.project-summary::before {
    content: '"';
    position: absolute;
    top: -1rem;
    left: 1rem;
    font-size: 8rem;
    color: rgba(52, 152, 219, 0.1);
    font-family: serif;
}

.project-summary blockquote {
    font-style: italic;
    color: #2c3e50;
    border-left: 4px solid #3498db;
    padding-left: 1rem;
}

/* 푸터 */
.footer {
    background: linear-gradient(135deg, #03a9f4, #0288d1);
    color: white;
    padding: 1.5rem 0;
    text-align: center;
    margin-top: 3rem;
}

/* 연락하기 섹션 */
.contact {
    margin-top: 3rem;
    animation: fadeInUp 1s ease-out 0.3s backwards;
}

.contact h2 {
    color: #2c3e50;
    font-size: 1.8rem;
    margin-bottom: 2rem;
    border-bottom: 3px solid #3498db;
    padding-bottom: 0.5rem;
    display: inline-block;
}

.contact-form {
    background: white;
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

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

.form-group label {
    display: block;
    color: #2c3e50;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.8rem;
    border: 2px solid #e3f2fd;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.submit-btn {
    background: linear-gradient(135deg, #4fc3f7, #03a9f4);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
}

.submit-btn:hover {
    background: linear-gradient(135deg, #03a9f4, #0288d1);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(3, 169, 244, 0.2);
}

/* 반응형 디자인 */
@media (max-width: 768px) {
    .header h1 {
        font-size: 2rem;
    }

    .profile {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 1.5rem;
        padding: 1.5rem;
    }

    .profile-image {
        width: 150px;
        height: 150px;
        margin: 0 auto;
    }

    .project-card {
        padding: 1.5rem;
    }

    .container {
        padding: 0 15px;
    }
}