:root {
    --primary-blue: #0062ff;
    --text-main: #111111;
    --text-sub: #777777;
    --bg-white: #ffffff;
    --font-main: 'Outfit', sans-serif;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
    font-family: var(--font-main);
    background-color: var(--bg-white);
    color: var(--text-main);
    line-height: 1.5;
    overflow-x: hidden;
}

/* Header Styles */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem 5%;
    max-width: 1400px;
    margin: 0 auto;
}

.header-left .contact-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    color: var(--primary-blue);
    font-weight: 600;
    font-size: 0.95rem;
    transition: var(--transition);
}

.header-left .contact-link:hover {
    opacity: 0.8;
    transform: translateY(-1px);
}

.chat-icon {
    width: 24px;
    height: 24px;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.social-icon {
    color: #333;
    transition: var(--transition);
    display: flex;
    align-items: center;
}

.social-icon:hover {
    color: var(--primary-blue);
    transform: scale(1.1);
}

.profile-circle {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    overflow: hidden;
    background-color: #f0f0f0;
    border: 2px solid #eee;
    transition: var(--transition);
}

.profile-circle:hover {
    border-color: var(--primary-blue);
    transform: scale(1.1);
}

.profile-circle img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 0%; /* 최상단(머리)을 기준으로 배치 */
    transform: scale(3.5); /* 얼굴이 꽉 차도록 대폭 확대 */
    transform-origin: center 15%; /* 올빼미의 눈 부위를 중심으로 확대 */
    padding: 0;
}

/* Hero Section */
.hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 4rem 10%;
    max-width: 1400px;
    margin: 0 auto;
    min-height: calc(100vh - 150px);
}

.hero-content {
    flex: 1;
    max-width: 600px;
    position: relative;
    z-index: 10; /* 올빼미와 후광보다 앞서도록 설정 */
}

.name {
    font-size: clamp(3rem, 8vw, 5rem);
    font-weight: 700;
    margin-bottom: 1.5rem;
    letter-spacing: -2px;
}

.bio {
    font-size: 1.25rem;
    color: var(--text-sub);
    margin-bottom: 2.5rem;
    line-height: 1.6;
}

.highlight {
    color: var(--primary-blue);
    font-weight: 600;
}

.skills-buttons {
    display: flex;
    gap: 1.5rem;
    margin-top: 2rem;
}

.history-btn {
    background: none;
    border: 1px solid #ddd;
    padding: 0.8rem 1.5rem;
    border-radius: 30px;
    font-family: inherit;
    font-size: 1.1rem;
    color: var(--text-sub);
    cursor: pointer;
    transition: var(--transition);
}

.history-btn:hover {
    border-color: var(--primary-blue);
    color: var(--primary-blue);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,98,255,0.1);
}

/* History Panel Styling */
.history-panel {
    display: none;
    background: white;
    padding: 2rem;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    margin-top: 2rem;
    border: 1px solid #eee;
    animation: fadeInUp 0.5s ease-out;
}

.history-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #f5f5f5;
}

.history-header h3 {
    color: var(--primary-blue);
    font-size: 1.4rem;
}

.close-btn {
    background: none;
    border: none;
    font-size: 1.8rem;
    cursor: pointer;
    color: #ccc;
    line-height: 1;
}

.close-btn:hover {
    color: #ff4444;
}

#history-content {
    list-style: none;
    text-align: left;
}

#history-content li {
    padding: 0.8rem 0;
    font-size: 1.05rem;
    border-bottom: 1px dashed #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.subject-name {
    color: #2e7d32; /* 진한 초록색 (포레스트 그린 계열) */
    font-weight: 600;
}

.period {
    color: #111111; /* 선명한 검은색 */
    font-size: 0.95rem;
    background: #f8f9fa;
    padding: 2px 10px;
    border-radius: 12px;
}

/* Hero Image Section Improvement - Enlarged Owl */
.hero-image-wrapper {
    position: relative;
    flex: 1.2; /* 가로 공간 더 할당 */
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1rem;
}

.profile-image-container {
    width: 100%;
    max-width: 700px; 
    height: auto;
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: center;
    align-items: center;
    perspective: 1000px; /* 3D 효과를 위한 원근감 추가 */
}

.profile-img {
    width: 100%;
    height: auto;
    max-height: 700px;
    object-fit: contain;
    filter: drop-shadow(0 40px 70px rgba(0,0,0,0.25));
    transition: transform 0.2s cubic-bezier(0.23, 1, 0.32, 1), filter 0.3s ease; /* 애니메이션 부드럽게 */
    will-change: transform;
}

.profile-img:hover {
    transform: scale(1.03) rotate(-1deg);
}

.blue-crescent {
    position: absolute;
    width: 600px; /* 400px -> 600px로 확대 */
    height: 600px;
    background: linear-gradient(135deg, var(--primary-blue), #00d4ff);
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.5;
    z-index: -1; /* 가장 뒤로 배치 */
    pointer-events: none; /* 텍스트 선택이나 클릭을 방해하지 않도록 설정 */
}

/* Desktop Only Helper */
.desktop-only {
    display: block;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .hero {
        padding: 2rem 5%;
        gap: 2rem;
    }
    
    .profile-image-container {
        max-width: 450px; /* 웅장한 올빼미를 화면 크기에 맞춰 축소 */
    }
    
    .blue-crescent {
        width: 400px;
        height: 400px;
    }
}

@media (max-width: 1024px) {
    .name {
        font-size: 4rem;
    }
    
    .hero {
        padding: 2rem 5%;
    }
}

@media (max-width: 868px) {
    .header {
        padding: 1.5rem 5%;
    }

    .hero {
        flex-direction: column-reverse;
        text-align: center;
        padding-top: 1rem;
        gap: 3rem;
    }

    .hero-content {
        max-width: 100%;
    }

    .hero-image-wrapper {
        justify-content: center;
        width: 100%;
    }

    .skills-list {
        align-items: center;
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        gap: 1rem;
    }

    .skills-list li:hover {
        transform: translateY(-3px);
    }

    .desktop-only {
        display: none;
    }

    .blue-crescent {
        right: 10px;
        bottom: 10px;
    }
}

@media (max-width: 480px) {
    .name {
        font-size: 3rem;
    }
    
    .profile-image-container, .blue-crescent {
        width: 260px;
        height: 260px;
    }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-content {
    animation: fadeInUp 1s ease-out;
}

.hero-image-wrapper {
    animation: fadeInUp 1s ease-out 0.2s both;
}
