@charset "UTF-8";

:root {
    /* 라이트 모드 (Light Mode) 변수 */
    --bg-color: #fce4ec;
    /* 부드러운 분홍빛 화이트 */
    --bg-gradient: linear-gradient(120deg, #fdfbfb 0%, #ebedee 100%);
    --text-main: #1e293b;
    --text-muted: #64748b;

    /* 글래스모피즘 효과 (Glassmorphism) */
    --glass-bg: rgba(255, 255, 255, 0.45);
    --glass-border: rgba(255, 255, 255, 0.6);
    --glass-shadow: rgba(0, 0, 0, 0.03);

    /* 포인트 컬러 (Primary & Accent) */
    --primary: #3b82f6;
    /* 블루 */
    --accent: #d946ef;
    /* 핑크빛 퍼플 */
    --gradient-brand: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);

    /* 배경 물방울(Blob) 컬러 */
    --blob-1: rgba(59, 130, 246, 0.3);
    --blob-2: rgba(217, 70, 239, 0.2);
    --blob-3: rgba(16, 185, 129, 0.2);
}

[data-theme="dark"] {
    /* 다크 모드 (Dark Mode) 변수 - 나이트 모드스러운 세련된 컬러 */
    --bg-color: #0f172a;
    --bg-gradient: linear-gradient(120deg, #0f172a 0%, #1e1b4b 100%);
    --text-main: #f8fafc;
    --text-muted: #94a3b8;

    --glass-bg: rgba(15, 23, 42, 0.5);
    --glass-border: rgba(255, 255, 255, 0.1);
    --glass-shadow: rgba(0, 0, 0, 0.3);

    --primary: #60a5fa;
    --accent: #f472b6;

    --blob-1: rgba(96, 165, 250, 0.15);
    --blob-2: rgba(244, 114, 182, 0.15);
    --blob-3: rgba(52, 211, 153, 0.15);
}

/* ==============================================================
   기본 설정 (Base Reset)
============================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: inherit;
}

html {
    scroll-behavior: smooth;
    /* 부드러운 스크롤 */
    font-size: 16px;
}

body {
    /* 폰트는 Pretendard와 Outfit 사용 */
    font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background: var(--bg-gradient);
    color: var(--text-main);
    line-height: 1.6;
    /* 테마 전환 시 부드러운 색상 변경 애니메이션 */
    transition: background-color 0.5s ease, color 0.5s ease, background-image 0.5s ease;
    overflow-x: hidden;
    position: relative;
}

h1,
h2,
h3,
h4,
h5,
h6,
.logo {
    font-family: 'Outfit', 'Pretendard', sans-serif;
}

a {
    text-decoration: none;
    color: inherit;
}

ul,
li {
    list-style: none;
}

.highlight {
    background: var(--gradient-brand);
    -webkit-background-clip: text;
    /* 텍스트에 그라디언트 적용 */
    -webkit-text-fill-color: transparent;
    font-weight: bold;
}

/* ==============================================================
   동적 배경 조명 (Animated Globs Background)
============================================================== */
.glow-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
    /* 클릭 방해 금지 */
}

.glow-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    /* 블러 처리로 퍼지는 효과 */
    animation: float 15s infinite alternate ease-in-out;
}

.blob-1 {
    width: 600px;
    height: 600px;
    background: var(--blob-1);
    top: -10%;
    left: -10%;
}

.blob-2 {
    width: 500px;
    height: 500px;
    background: var(--blob-2);
    bottom: -15%;
    right: -10%;
    animation-delay: -5s;
}

.blob-3 {
    width: 400px;
    height: 400px;
    background: var(--blob-3);
    top: 30%;
    left: 45%;
    animation-duration: 20s;
    animation-delay: -2s;
}

@keyframes float {
    0% {
        transform: translateY(0) scale(1) rotate(0deg);
    }

    100% {
        transform: translateY(-50px) scale(1.1) rotate(15deg);
    }
}

/* ==============================================================
   글래스모피즘 아키텍처 (Glassmorphism Core Classes)
============================================================== */
.glass-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    /* 블러 처리 핵심 요소 */
    -webkit-backdrop-filter: blur(20px);
    /* 사파리 지원 */
    border-bottom: 1px solid var(--glass-border);
    transition: all 0.3s ease;
}

.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    box-shadow: 0 10px 30px var(--glass-shadow);
    transition: transform 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease;
}

.section .glass-card {
    padding: 3rem;
}

.glass-card:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: 0 20px 40px var(--glass-shadow);
}

/* ==============================================================
   네비게이션 헤더 (Navigation)
============================================================== */
.nav-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.6rem;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.logo span {
    color: var(--primary);
    animation: blink 1.2s infinite;
}

@keyframes blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    font-weight: 600;
    font-size: 1rem;
    position: relative;
    padding: 0.5rem 0;
    transition: color 0.3s ease;
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 3px;
    border-radius: 2px;
    bottom: 0;
    left: 0;
    background: var(--gradient-brand);
    transition: width 0.3s ease-in-out;
}

.nav-links a:hover::after {
    width: 100%;
}

/* 다크모드 라이트모드 토글 버튼 */
.theme-toggle {
    background: none;
    border: none;
    color: var(--text-main);
    font-size: 1.6rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    transition: background 0.3s ease, transform 0.3s ease;
}

.theme-toggle:hover {
    background: var(--glass-border);
    transform: rotate(15deg);
}

[data-theme="dark"] #moon-icon {
    display: none;
}

[data-theme="light"] #sun-icon {
    display: none;
}

/* ==============================================================
   공통 레이아웃 (Common Section Layout)
============================================================== */
.section {
    padding: 120px 2rem 60px;
    max-width: 1100px;
    margin: 0 auto;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 2.5rem;
    text-align: center;
    font-weight: 800;
    letter-spacing: -0.5px;
}

/* 공통 버튼 */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 1.8rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary {
    background: var(--gradient-brand);
    color: white;
    border: none;
    box-shadow: 0 8px 15px var(--blob-1);
}

.btn-primary:hover {
    box-shadow: 0 12px 20px var(--blob-2);
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    color: var(--text-main);
    border: 2px solid var(--glass-border);
}

.btn-outline:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: var(--glass-bg);
}

/* ==============================================================
   히어로부터 시작 (Hero Section)
============================================================== */
#hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 100px;
}

.hero-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 3rem;
    width: 100%;
}

.hero-content {
    flex: 1;
}

.hero-content .greeting {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.hero-content .name {
    font-size: 4rem;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    letter-spacing: -1px;
}

.hero-content .tagline {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.profile-info {
    display: flex;
    gap: 2rem;
    margin-bottom: 3rem;
    font-size: 1.1rem;
    color: var(--text-muted);
}

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

.info-item i {
    font-size: 1.4rem;
    color: var(--primary);
}

.hero-cta {
    display: flex;
    gap: 1rem;
}

.hero-image {
    flex-shrink: 0;
}

.image-wrapper {
    width: 280px;
    height: 280px;
    border-radius: 50%;
    padding: 6px;
    background: var(--gradient-brand);
    box-shadow: 0 0 40px var(--blob-1);
    /* 이미지 모양이 꿈틀거리는 모핑 애니메이션 */
    animation: morph 8s ease-in-out infinite alternate;
}

@keyframes morph {
    0% {
        border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
    }

    50% {
        border-radius: 30% 60% 70% 40% / 50% 60% 30% 60%;
    }

    100% {
        border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
    }
}

.image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: inherit;
    /* 모핑에 맞춰 같이 깎임 */
    border: 4px solid var(--bg-color);
}

/* ==============================================================
   태그 (Tags) - 기술 스택 
============================================================== */
.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
}

.tag {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    color: var(--text-main);
    padding: 0.6rem 1.2rem;
    border-radius: 20px;
    font-size: 1rem;
    font-weight: 600;
    transition: transform 0.2s ease, background 0.2s ease;
}

.tag i {
    color: var(--primary);
    font-size: 1.3rem;
}

.tag:hover {
    transform: scale(1.05);
    background: var(--blob-1);
    border-color: var(--primary);
}

.skill-tags.small .tag {
    padding: 0.4rem 0.8rem;
    font-size: 0.9rem;
    border-radius: 12px;
}

/* ==============================================================
   Education Section (Timeline)
============================================================== */
.timeline {
    position: relative;
    padding-left: 2rem;
}

/* 타임라인 축을 담당하는 세로 선 */
.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--gradient-brand);
    opacity: 0.3;
}

.timeline-item {
    position: relative;
    margin-bottom: 2rem;
    padding: 2.5rem;
}

/* 타임라인 원(Dot) */
.timeline-dot {
    position: absolute;
    left: -2.65rem;
    top: 3rem;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--bg-color);
    border: 4px solid var(--primary);
    box-shadow: 0 0 15px var(--primary);
}

.timeline-date {
    font-size: 1rem;
    color: var(--primary);
    font-weight: 800;
    margin-bottom: 0.5rem;
    letter-spacing: 0.5px;
}

.timeline-content h3 {
    font-size: 1.5rem;
    margin-bottom: 0.3rem;
}

.timeline-content h4 {
    font-size: 1.1rem;
    color: var(--text-muted);
    font-weight: 500;
    margin-bottom: 1rem;
}

/* ==============================================================
   Skills Section
============================================================== */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.skill-category h3 {
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--glass-border);
}

/* ==============================================================
   Projects Section
============================================================== */
.project-grid {
    display: grid;
    /* 카드가 너무 넓어지지 않도록 최솟값 설정 */
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
}

.project-card {
    padding: 2rem;
    display: flex;
    flex-direction: column;
}

.project-img {
    width: 100%;
    height: 220px;
    border-radius: 16px;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 5rem;
    color: white;
    transition: transform 0.4s ease;
}

/* 폰트/아이콘 대신 이미지를 넣고 싶다면 html에 img 태그를 변경하세요 */
.gradient-1 {
    background: linear-gradient(135deg, #FF6B6B 0%, #FF8E53 100%);
}

.project-card:hover .project-img {
    transform: scale(1.02);
}

.project-info h3 {
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
}

.project-info .date {
    font-size: 0.9rem;
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 1rem;
}

.project-info .description {
    color: var(--text-muted);
    font-size: 1rem;
    margin-bottom: 1.5rem;
    flex-grow: 1;
    /* 높이를 맞추기 위함 */
}

/* 프로젝트 버튼 */
.project-links {
    margin-top: 2rem;
    display: flex;
    gap: 1rem;
}

.small-btn {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
}

/* ==============================================================
   Contact Section
============================================================== */
.contact-card {
    text-align: center;
    padding: 4rem 2rem;
}

.contact-card h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    background: var(--gradient-brand);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.contact-card p {
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    font-size: 1.15rem;
}

.contact-methods {
    display: inline-flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
}

.contact-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    padding: 1.2rem 2.5rem;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 14px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.contact-btn i {
    font-size: 1.8rem;
    color: var(--primary);
}

.contact-btn:hover {
    border-color: var(--primary);
    transform: translateY(-4px);
    box-shadow: 0 15px 30px var(--glass-shadow);
}

/* ==============================================================
   Footer
============================================================== */
.glass-footer {
    border-top: 1px solid var(--glass-border);
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 3rem 0;
    margin-top: 5rem;
    text-align: center;
}

.footer-content p {
    color: var(--text-muted);
    font-size: 1rem;
    font-weight: 500;
}

/* ==============================================================
   부드러운 스크롤 애니메이션 클래스 (IntersectionObserver 작동)
============================================================== */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.2, 0.8, 0.2, 1), transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ==============================================================
   반응형 설정 (Mobile/Tablet)
============================================================== */
@media (max-width: 860px) {
    .nav-links {
        display: none;
        /* 모바일에선 네비 숨김 (햄버거 메뉴 필요시 구현) */
    }

    .hero-card {
        flex-direction: column;
        text-align: center;
        gap: 2.5rem;
        padding: 2rem;
    }

    .hero-content .name {
        font-size: 3rem;
    }

    .hero-cta {
        flex-direction: column;
        align-items: center;
        width: 100%;
    }

    .btn {
        width: 100%;
        justify-content: center;
    }

    .profile-info {
        justify-content: center;
        flex-direction: column;
        gap: 1rem;
    }

    .section-title {
        font-size: 2.2rem;
    }

    .contact-methods {
        flex-direction: column;
        width: 100%;
    }

    .contact-btn {
        width: 100%;
    }
}