/* 📚 학습포인트: 다크모드 CSS 변수 오버라이드 */

body.dark-mode {
    /* 다크모드 색상 (골드 & 블랙 유지) */
    --bg-white: #030303;
    --bg-light: #080808;
    --bg-gray: #141414;
    
    --text-primary: #F9F1D2;
    --text-secondary: #D5BF79;
    --text-light: #9C8B55;
    
    --primary-color: #F5D878;
    --secondary-color: #D4AF37;
    --accent-color: rgba(245, 216, 120, 0.3);
    --peach-color: rgba(212, 175, 55, 0.12);
    --blue-color: rgba(0, 0, 0, 0.9);
    --yellow-color: #F5D878;
    
    /* 그라데이션 */
    --gradient-primary: linear-gradient(135deg, #F5D878 0%, #D4AF37 100%);
    --gradient-accent: linear-gradient(135deg, rgba(245, 216, 120, 0.45) 0%, rgba(0, 0, 0, 0.9) 100%);
    
    /* 그림자 (다크모드용) */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.4);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.45);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.55);
    --shadow-xl: 0 16px 48px rgba(0, 0, 0, 0.65);
}

/* 📚 학습포인트: 다크모드 전환 애니메이션 */
body {
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* 네비게이션 바 (다크모드) */
body.dark-mode .navbar {
    background: rgba(5, 5, 5, 0.9);
    backdrop-filter: blur(12px);
}

body.dark-mode .navbar.scrolled {
    background: rgba(5, 5, 5, 0.95);
}

/* 테마 토글 버튼 아이콘 전환 */
body.dark-mode .theme-toggle .fa-sun {
    opacity: 0;
    transform: rotate(180deg) scale(0);
}

body.dark-mode .theme-toggle .fa-moon {
    opacity: 1;
    transform: rotate(0deg) scale(1);
}

/* 프로젝트 카드 */
body.dark-mode .project-card {
    background: var(--bg-light);
}

/* 스킬 오빗 */
body.dark-mode .skills-orbit {
    background: radial-gradient(circle at 50% 50%, rgba(37, 37, 37, 0.1) 0%, rgba(8, 8, 8, 0.95) 55%, rgba(4, 4, 4, 1) 100%);
}

body.dark-mode .skill-bubble {
    border-color: rgba(212, 175, 55, 0.75);
}

body.dark-mode .skill-tooltip {
    background: rgba(255, 255, 255, 0.9);
    color: #111;
}

body.dark-mode .skills-legend {
    background: rgba(20, 20, 25, 0.85);
    border: 1px solid rgba(212, 175, 55, 0.3);
    backdrop-filter: blur(10px);
    color: rgba(255, 255, 255, 0.95);
}

body.dark-mode .skills-legend-text {
    color: rgba(255, 255, 255, 0.7);
}

body.dark-mode .skill-chip {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.85);
}

body.dark-mode .skill-chip[data-level="high"] {
    color: #8a6d1b;
}

/* 통계 카드 */
body.dark-mode .stat-card {
    background: var(--bg-light);
}

/* 후기 카드 */
body.dark-mode .testimonial-card {
    background: var(--bg-light);
}

/* 컨택트 카드 */
body.dark-mode .contact-card {
    background: var(--bg-light);
}

/* 폼 */
body.dark-mode .contact-form {
    background: var(--bg-light);
}

body.dark-mode .form-group input,
body.dark-mode .form-group textarea {
    background: var(--bg-gray);
    border-color: var(--bg-gray);
    color: var(--text-primary);
}

body.dark-mode .form-group input::placeholder,
body.dark-mode .form-group textarea::placeholder {
    color: var(--text-secondary);
}

/* 필터 버튼 */
body.dark-mode .filter-btn {
    background: var(--bg-light);
    color: var(--text-secondary);
}

body.dark-mode .filter-btn:hover {
    background: var(--bg-gray);
}

/* 소셜 링크 */
body.dark-mode .social-link {
    background: var(--bg-light);
}

/* 네비게이션 네비게이션 */
body.dark-mode .testimonial-nav {
    background: var(--bg-light);
}

/* 슬라이더 버튼 */
body.dark-mode .slider-btn {
    background: rgba(26, 32, 44, 0.9);
    color: var(--text-primary);
}

/* 모달 */
body.dark-mode .modal-content {
    background: var(--bg-light);
}

/* 태그 */
body.dark-mode .tag {
    background: var(--bg-gray);
    color: var(--text-secondary);
}

/* 테마 토글 버튼 */
body.dark-mode .theme-toggle {
    background: var(--bg-gray);
}


/* 페이지네이션 */
body.dark-mode .pagination-dot {
    background: var(--bg-gray);
}

/* 스크롤 다운 */
body.dark-mode .scroll-down {
    color: var(--text-secondary);
}

/* 햄버거 메뉴 */
body.dark-mode .hamburger span {
    background: var(--text-primary);
}

/* 모바일 메뉴 */
body.dark-mode .nav-menu {
    background: var(--bg-light);
}

/* 어바웃 이미지 데코레이션 */
body.dark-mode .about-image-decoration {
    border-color: var(--primary-color);
}

/* 푸터 */
body.dark-mode .footer {
    background: #0F1419;
    color: #ffffff;
}

body.dark-mode .footer-content p {
    color: #ffffff;
}

body.dark-mode .footer-links a {
    color: #ffffff;
}

/* 로딩 화면 */
body.dark-mode .loading-screen {
    background: var(--bg-white);
}

body.dark-mode .loading-bar {
    background: var(--bg-gray);
}

/* 토스트 알림 */
body.dark-mode .toast {
    background: var(--bg-light);
    color: var(--text-primary);
}

/* 📚 학습포인트: 부드러운 색상 전환 */
.navbar,
.project-card,
.skill-bubble,
.stat-card,
.testimonial-card,
.contact-card,
.contact-form,
.filter-btn,
.social-link,
.testimonial-nav,
.slider-btn,
.theme-toggle,
.hamburger span,
.tag {
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

/* 다크모드 전환 애니메이션 효과 */
@keyframes darkModeTransition {
    0% {
        opacity: 0.8;
    }
    100% {
        opacity: 1;
    }
}

body.dark-mode * {
    animation: darkModeTransition 0.3s ease;
}
