/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0 20px;
    box-sizing: border-box;
}

.hero h1 {
    margin-bottom: 0.5rem;
}

.hero h2 {
    font-size: clamp(1rem, 2.5vw, 1.8rem);
    margin-top: 1rem;
    animation: fadeInUp 1.4s ease-in-out;
}

.hero .hero-subtitle {
    font-size: clamp(0.9rem, 2vw, 1.1rem);
    color: var(--text-secondary);
    margin-top: 0.8rem;
    margin-bottom: 0;
    animation: fadeInUp 1.6s ease-in-out;
    font-weight: 400;
}

/* Know more button - theme-aware style - protected from other animations */
.hero .know-more-btn,
body .hero .know-more-btn,
html body .hero .know-more-btn {
    display: inline-block !important;
    padding: 12px 24px !important;
    margin-top: 2rem !important;
    border: 2px solid var(--accent-color) !important;
    background: transparent !important;
    color: var(--accent-color) !important;
    text-decoration: none !important;
    font-weight: 500 !important;
    font-size: 1rem !important;
    position: relative !important;
    overflow: hidden !important;
    transition: color 0.4s ease !important;
    animation: fadeInUp 1.8s ease-in-out !important;
    z-index: 100 !important; /* 다른 요소들보다 위에 */
    isolation: isolate !important; /* 새로운 스택 컨텍스트 생성 */
    contain: layout style !important; /* CSS containment로 외부 간섭 차단 */
    will-change: transform !important; /* GPU 레이어로 분리 */
}

.hero .know-more-btn::before {
    content: '' !important;
    position: absolute !important;
    top: 0 !important;
    left: -100% !important;
    width: 100% !important;
    height: 100% !important;
    background: var(--accent-color) !important;
    transition: left 0.4s ease !important;
    z-index: -1 !important;
    transform: translateX(0) !important; /* GPU 가속을 위한 추가 */
    pointer-events: none !important; /* 클릭 이벤트 방해 방지 */
}

/* 기본 상태를 명시적으로 재정의 - 더 강력하게 */
.hero .know-more-btn:not(:hover)::before {
    left: -100% !important;
    transform: translateX(0) !important;
}

.hero .know-more-btn:hover::before {
    left: 0 !important;
    transform: translateX(0) !important;
}

/* Light mode: hover 시 검은색 글씨 - 강력하게 보호 */
.hero .know-more-btn:hover {
    color: #000000 !important;
    z-index: 100 !important;
}

/* Dark mode: hover 시 흰색 글씨 - 강력하게 보호 */
[data-theme="dark"] .hero .know-more-btn:hover {
    color: #ffffff !important;
    z-index: 100 !important;
}

/* About Section */
.about-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.profile-image {
    width: 150px;
    height: 150px;
    object-fit: cover;
    border-radius: 50%;
    border: 3px solid var(--accent-color);
}

.about-text {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.6;
    max-width: 600px;
}

/* Resume buttons container */
.resume-buttons {
    display: flex;
    gap: 12px;
    margin-top: 1.5rem;
    flex-wrap: wrap;
}

/* Resume button in About section - theme-aware inverted style */
.about-text .resume-btn {
    display: inline-block;
    padding: 12px 24px;
    border: 2px solid #ffffff;  /* Light mode: 흰색 테두리 */
    background: transparent;
    color: #ffffff;  /* Light mode: 흰색 글씨 */
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    position: relative;
    overflow: hidden;
    transition: color 0.4s ease, border-color 0.4s ease;
}

.about-text .resume-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: #ffffff;  /* Light mode: 흰색 배경 */
    transition: left 0.4s ease;
    z-index: -1;
    transform: translateX(0); /* GPU 가속을 위한 추가 */
}

/* 기본 상태를 명시적으로 재정의 */
.about-text .resume-btn:not(:hover)::before {
    left: -100%;
}

.about-text .resume-btn:hover::before {
    left: 0;
}

/* Light mode: hover 시 티파니민트 글씨 */
.about-text .resume-btn:hover {
    color: var(--accent-color);
}

/* Dark mode: 검은색 테두리와 글씨 */
[data-theme="dark"] .about-text .resume-btn {
    border-color: #000000;
    color: #000000;
}

[data-theme="dark"] .about-text .resume-btn::before {
    background: #000000;  /* Dark mode: 검은색 배경 */
}

/* Dark mode: hover 시 티파니민트 글씨 */
[data-theme="dark"] .about-text .resume-btn:hover {
    color: var(--accent-color);
}

/* Secondary resume button (이력서 상세) - same style as primary */
.about-text .resume-btn-secondary {
    /* 모든 스타일 primary와 동일 */
}

@media (min-width: 768px) {
    .about-content {
        flex-direction: row;
        justify-content: center;
        align-items: center;
    }

    .about-text {
        text-align: left;
        margin-left: 40px;
    }
}

/* Mobile: Stack buttons vertically */
@media (max-width: 480px) {
    .resume-buttons {
        flex-direction: column;
        gap: 10px;
    }

    .about-text .resume-btn {
        width: 100%;
        text-align: center;
    }
}

/* Skills Section - Compact 2x2 Grid Layout */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    max-width: 900px;
    margin: 0 auto;
    padding: 0 10px;
}

.skill-category {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    padding: 16px 20px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

.skill-category:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 215, 208, 0.15);
}

.skill-category h3 {
    color: #ffffff;
    font-size: 1rem;
    font-weight: 700;
    margin: 0 0 12px 0;
    text-align: center;
    position: relative;
    padding-bottom: 8px;
}

.skill-category h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 2px;
    background: var(--accent-color);
    border-radius: 1px;
    opacity: 0.8;
}

/* Skills Tags - Compact Style */
.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    justify-content: center;
    align-items: center;
}

.skill-tag {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    white-space: nowrap;
    position: relative;
    overflow: hidden;
}

.skill-tag::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--accent-color);
    transition: left 0.3s ease;
    z-index: -1;
}

.skill-tag:hover::before {
    left: 0;
}

.skill-tag:hover {
    color: #ffffff;
    border-color: var(--accent-color);
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 4px 12px rgba(0, 215, 208, 0.2);
}

/* Dark mode support */
[data-theme="dark"] .skill-category {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.15);
}

[data-theme="dark"] .skill-category:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.3);
}

[data-theme="dark"] .skill-category h3 {
    color: #ffffff;
}

[data-theme="dark"] .skill-tag {
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.2);
}

[data-theme="dark"] .skill-tag:hover {
    color: #000000;
}

/* Responsive Design */
@media (max-width: 768px) {
    .skills-grid {
        grid-template-columns: 1fr;
        gap: 16px;
        max-width: 100%;
        padding: 0 15px;
    }
    
    .skill-category {
        padding: 14px 16px;
    }
    
    .skill-category h3 {
        font-size: 0.95rem;
        margin-bottom: 10px;
    }
    
    .skill-tags {
        gap: 5px;
    }
    
    .skill-tag {
        font-size: 0.7rem;
        padding: 3px 8px;
    }
}

@media (max-width: 480px) {
    .skills-grid {
        padding: 0 10px;
    }
    
    .skill-category {
        padding: 12px 14px;
    }
    
    .skill-tag {
        font-size: 0.65rem;
        padding: 2px 7px;
    }
}

/* Tablet landscape - 3 columns when there's space */
@media (min-width: 769px) and (max-width: 1024px) {
    .skills-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 18px;
    }
}


