/* Color Palette & Variables (고급스러운 파스텔 테마) */
:root {
    --pastel-blue: #A1C4D1;     /* 차분한 블루 */
    --pastel-green: #BEE1CC;    /* 부드러운 그린 */
    --pastel-orange: #F5C8B4;   /* 따뜻한 오렌지/피치 */
    
    --text-main: #2F3542;       /* 가독성 높은 짙은 회색 */
    --text-muted: #747D8C;
    --bg-main: #EAF5ED;         /* 파스텔톤 그린 바탕 */
    --bg-card: #FFFFFF;
    --shadow-sm: 0 4px 15px rgba(0, 0, 0, 0.03);
    --shadow-md: 0 10px 25px rgba(0, 0, 0, 0.05);
}

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

body {
    font-family: 'Pretendard', 'Inter', -apple-system, sans-serif;
    /* Animated Bling Bling Pastel Background */
    background: linear-gradient(-45deg, #fdfbfb, #eaf5ed, #e2ebf0, #f3e7e9, #fff1eb);
    background-size: 400% 400%;
    animation: gradientBG 15s ease infinite;
    color: var(--text-main);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

@keyframes gradientBG {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.container {
    max-width: 850px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header & Hero Section */
.hero {
    background: linear-gradient(135deg, #F3F9F5, #DDF0E1);
    text-align: center;
    padding: 60px 20px 40px;
    border-bottom-left-radius: 40px;
    border-bottom-right-radius: 40px;
    box-shadow: var(--shadow-sm);
}

.profile-wrapper {
    position: relative;
    display: inline-block;
    margin-bottom: 25px;
}

.profile-img-container {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    border: 6px solid rgba(255, 255, 255, 1);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    background-color: var(--bg-card);
    transition: transform 0.3s ease;
}

.profile-wrapper:hover .profile-img-container {
    transform: scale(1.03);
}

.profile-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.name {
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 8px;
    color: #2F3640;
    letter-spacing: -0.5px;
}

.job-title {
    font-size: 1.15rem;
    color: #57606F;
    font-weight: 500;
}

/* Main Content Layout */
.main-content {
    margin-top: 40px;
    margin-bottom: 60px;
}

/* Tab Navigation (버튼 탭) */
.tab-nav {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.tab-btn {
    border: none;
    background-color: #FFFFFF;
    color: var(--text-muted);
    font-size: 1.05rem;
    font-weight: 600;
    padding: 14px 28px;
    border-radius: 30px;
    cursor: pointer;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    font-family: inherit;
    position: relative;
    overflow: hidden;
    border: 1px solid #F1F2F6;
}

.tab-btn:hover {
    transform: translateY(-2px);
    color: var(--text-main);
    box-shadow: var(--shadow-md);
}

.tab-btn.active {
    background-color: var(--base-color);
    color: #1A1A1A; /* 활성화 시 가독성을 위해 더 진한 색 */
    font-weight: 700;
    border-color: transparent;
    box-shadow: 0 8px 15px rgba(0,0,0,0.08); /* 파스텔톤에 맞는 부드러운 그림자 */
    transform: translateY(-2px);
}

/* Content Wrapper */
.tab-content-wrapper {
    position: relative;
    background-color: rgba(255, 255, 255, 0.65);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 25px;
    padding: 40px 50px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.8);
    min-height: 400px;
}

/* 탭 전환 애니메이션 */
.tab-section {
    display: none;
    animation: fadeIn 0.4s ease forwards;
}

.tab-section.active {
    display: block;
}

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

/* History Section (주요 이력 - 카테고리화 및 다채로운 색상) */
.history-box {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.history-category h3 {
    font-size: 1.25rem;
    color: #2F3640;
    margin-bottom: 15px;
    padding-left: 12px;
    border-radius: 2px;
}

.history-category:nth-child(1) h3 { border-left: 5px solid #A1C4FD; } /* 학력 - 블루 */
.history-category:nth-child(2) h3 { border-left: 5px solid #FF9A9E; } /* 평가위원 - 핑크 */
.history-category:nth-child(3) h3 { border-left: 5px solid #84FAB0; } /* 멘토 - 민트 */
.history-category:nth-child(4) h3 { border-left: 5px solid #F6D365; } /* 기타 - 옐로우 */

.history-list {
    list-style: none;
    padding: 0;
}

.history-list li {
    position: relative;
    padding: 14px 15px 14px 40px;
    margin-bottom: 12px;
    color: var(--text-main);
    font-size: 1.05rem;
    line-height: 1.6;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.8);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.history-list li:hover {
    transform: translateX(8px);
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.history-list li::before {
    content: "•";
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    font-weight: bold;
    font-size: 1.8rem;
    line-height: 1;
}

/* History - Alternating bullet colors */
.history-list li:nth-child(5n+1)::before { color: #A1C4FD; } /* 블루 */
.history-list li:nth-child(5n+2)::before { color: #FF9A9E; } /* 핑크 */
.history-list li:nth-child(5n+3)::before { color: #84FAB0; } /* 민트 */
.history-list li:nth-child(5n+4)::before { color: #F6D365; } /* 옐로우 */
.history-list li:nth-child(5n+5)::before { color: #CF9AFF; } /* 퍼플 */

/* Expertise Section (전문 분야 - 다채로운 파스텔 포인트) */
.expertise-box {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

/* Diverse Category Variables */
.expertise-category:nth-child(1) { --cat-color: #8FD3F4; --cat-bg: rgba(143, 211, 244, 0.15); } /* 스카이블루 */
.expertise-category:nth-child(2) { --cat-color: #FF9A9E; --cat-bg: rgba(255, 154, 158, 0.15); } /* 로즈핑크 */
.expertise-category:nth-child(3) { --cat-color: #84FAB0; --cat-bg: rgba(132, 250, 176, 0.15); } /* 민트그린 */
.expertise-category:nth-child(4) { --cat-color: #F6D365; --cat-bg: rgba(246, 211, 101, 0.15); } /* 선셋골드 */
.expertise-category:nth-child(5) { --cat-color: #CF9AFF; --cat-bg: rgba(207, 154, 255, 0.15); } /* 라벤더퍼플 */

.expertise-category h3 {
    font-size: 1.25rem;
    color: #2F3640;
    margin-bottom: 15px;
    padding-left: 12px;
    border-left: 5px solid var(--cat-color, var(--pastel-green));
    border-radius: 2px;
}

.expertise-content {
    background-color: var(--cat-bg, rgba(190, 225, 204, 0.25));
    padding: 25px;
    border-radius: 15px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    border: 1px solid rgba(255, 255, 255, 0.6);
}

.expertise-content p {
    color: var(--text-main);
    font-size: 1.05rem;
    line-height: 1.6;
    margin: 0;
    position: relative;
    padding-left: 16px;
}

.expertise-content p::before {
    content: "•";
    position: absolute;
    left: 0;
    color: var(--cat-color, #8cba9d);
    font-weight: bold;
    font-size: 1.2rem;
    line-height: 1.4;
}

.expertise-content strong {
    color: #2F3640;
    font-weight: 700;
}

/* Gallery Section (활동 갤러리) */
.gallery-desc {
    text-align: center;
    margin-bottom: 25px;
    color: var(--text-muted);
    font-size: 1.05rem;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
}

.gallery-item {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.5);
    border: 1px solid rgba(255,255,255,0.8);
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
    aspect-ratio: 4/3;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-item:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
}

.gallery-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #CF9AFF; /* 퍼플톤 텍스트 */
    font-weight: 700;
    font-size: 1.05rem;
    background: linear-gradient(135deg, rgba(207,154,255,0.1), rgba(161,196,253,0.1));
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Contact Section (연락처 - 파스텔 오렌지 포인트) */
.contact-desc {
    text-align: center;
    margin-bottom: 35px;
    color: var(--text-muted);
    font-size: 1.05rem;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
}

.contact-card {
    display: flex;
    flex-direction: row;
    padding: 22px 20px;
    background-color: var(--bg-card);
    border-radius: 20px;
    text-decoration: none;
    color: var(--text-main);
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid rgba(0,0,0,0.05);
    align-items: center;
    text-align: left;
    gap: 18px;
    position: relative;
    overflow: hidden;
}

.contact-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    opacity: 0.05;
    z-index: 0;
    transition: opacity 0.3s ease;
}

.contact-card > * {
    z-index: 1;
}

.contact-card:hover {
    transform: translateY(-5px);
}

.contact-card:hover::before {
    opacity: 0.15;
}

.icon-wrapper {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    flex-shrink: 0;
}

.contact-icon {
    font-size: 1.8rem;
    margin-bottom: 0;
}

.content-wrapper {
    display: flex;
    flex-direction: column;
}

.contact-title {
    font-size: 0.95rem;
    color: var(--text-muted);
    font-weight: 600;
    margin-bottom: 4px;
}

.contact-detail {
    font-size: 1.05rem;
    font-weight: 700;
    color: #2F3640;
    word-break: break-all;
}

/* Luxurious Colors - Card Themes */
/* Form: Elegant Pastel Purple */
.card-form { grid-column: 1 / -1; justify-content: center; background: rgba(207, 154, 255, 0.1); border: 2px solid #CF9AFF; }
.card-form::before { background: linear-gradient(135deg, #CF9AFF, #E2B0FF); }
.card-form .icon-wrapper { background: linear-gradient(135deg, #CF9AFF, #E2B0FF); }
.card-form:hover { box-shadow: 0 10px 25px rgba(207, 154, 255, 0.3); border-color: rgba(207,154,255,0.8); transform: translateY(-5px) scale(1.02); }

/* Phone: Elegant Rose Gold / Coral */
.card-phone::before { background: linear-gradient(135deg, #FF9A9E, #FECFEF); }
.card-phone .icon-wrapper { background: linear-gradient(135deg, #FF9A9E, #FECFEF); }
.card-phone:hover { box-shadow: 0 10px 25px rgba(255, 154, 158, 0.25); border-color: rgba(255,154,158,0.5); }

/* Email: Premium Ice Blue */
.card-email::before { background: linear-gradient(135deg, #A1C4FD, #C2E9FB); }
.card-email .icon-wrapper { background: linear-gradient(135deg, #A1C4FD, #C2E9FB); }
.card-email:hover { box-shadow: 0 10px 25px rgba(161, 196, 253, 0.25); border-color: rgba(161,196,253,0.5); }

/* Blog: Sophisticated Mint */
.card-blog::before { background: linear-gradient(135deg, #84FAB0, #8FD3F4); }
.card-blog .icon-wrapper { background: linear-gradient(135deg, #84FAB0, #8FD3F4); }
.card-blog:hover { box-shadow: 0 10px 25px rgba(132, 250, 176, 0.25); border-color: rgba(132,250,176,0.5); }

/* Youtube: Warm Sunset Gold */
.card-youtube::before { background: linear-gradient(135deg, #F6D365, #FDA085); }
.card-youtube .icon-wrapper { background: linear-gradient(135deg, #F6D365, #FDA085); }
.card-youtube:hover { box-shadow: 0 10px 25px rgba(253, 160, 133, 0.25); border-color: rgba(253,160,133,0.5); }

/* Kakao: Cheerful Pastel Yellow */
.card-kakao { grid-column: 1 / -1; justify-content: center; background: rgba(253, 235, 113, 0.1); border: 2px solid #FDEB71; }
.card-kakao::before { background: linear-gradient(135deg, #FDEB71, #F8D800); }
.card-kakao .icon-wrapper { background: linear-gradient(135deg, #FDEB71, #F8D800); }
.card-kakao:hover { box-shadow: 0 10px 25px rgba(248, 216, 0, 0.3); border-color: rgba(248,216,0,0.8); transform: translateY(-5px) scale(1.02); }

/* Footer */
footer {
    text-align: center;
    padding: 20px 0 50px;
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 600px) {
    .tab-content-wrapper {
        padding: 30px 20px;
    }
    .name {
        font-size: 1.8rem;
    }
    .tab-btn {
        padding: 10px 20px;
        font-size: 0.95rem;
    }
}
