/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Noto Sans KR', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
    transition: all 0.3s ease;
    position: relative;
    overflow-x: hidden;
}

/* Dark Mode */
body.dark-mode {
    background-color: #0f0f0f;
    color: #ffffff;
}

body.dark-mode .container {
    background-color: #1a1a1a;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.1);
}

body.dark-mode .header {
    background: linear-gradient(135deg, #2d3748 0%, #1a202c 100%);
    color: #ffffff;
}

body.dark-mode .profile-image {
    border-color: rgba(255, 255, 255, 0.4);
    box-shadow: 0 8px 25px rgba(255, 255, 255, 0.1);
}

body.dark-mode .profile-image:hover {
    border-color: rgba(255, 255, 255, 0.7);
    box-shadow: 0 12px 35px rgba(255, 255, 255, 0.2);
}

body.dark-mode .summary-grid,
body.dark-mode .education-item,
body.dark-mode .training-item,
body.dark-mode .cert-item,
body.dark-mode .project-item {
    background-color: #2d2d2d;
    border-left-color: #667eea;
    color: #ffffff;
}

body.dark-mode .summary-item h3,
body.dark-mode .education-item h3,
body.dark-mode .training-item h3,
body.dark-mode .cert-item h3,
body.dark-mode .project-item h5 {
    color: #ffffff;
}

body.dark-mode .summary-item p,
body.dark-mode .education-item p,
body.dark-mode .training-item p,
body.dark-mode .cert-item p,
body.dark-mode .project-item p {
    color: #e0e0e0;
}

/* Dark mode hover effects removed */

body.dark-mode .project-details li {
    color: #d0d0d0;
}

body.dark-mode .skill-tag {
    background-color: #4a5568;
    color: #ffffff;
    border-color: #667eea;
}

body.dark-mode .skill-tag:hover {
    background-color: #667eea;
    color: white;
}

body.dark-mode .skill-tooltip {
    background-color: #2d3748;
    color: #ffffff;
}

body.dark-mode .timeline-content h3 {
    color: #ffffff;
}

body.dark-mode .position,
body.dark-mode .duration,
body.dark-mode .degree,
body.dark-mode .details,
body.dark-mode .description,
body.dark-mode .project-period,
body.dark-mode .project-client {
    color: #e0e0e0;
}

body.dark-mode .issuer {
    color: #fbbf24;
}

body.dark-mode .date {
    color: #d1d5db;
}

body.dark-mode .footer {
    color: #d1d5db;
    border-top-color: #374151;
}

body.dark-mode .footer-stats {
    color: #9ca3af;
}

body.dark-mode .contact-info {
    color: #ffffff;
}

body.dark-mode .age-gender {
    color: rgba(255, 255, 255, 0.9);
}

body.dark-mode .typing-text {
    color: rgba(255, 255, 255, 0.9);
}

/* 다크모드에서 자기소개 스타일 */
body.dark-mode .self-introduction {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    box-shadow: 0 10px 30px rgba(44, 62, 80, 0.4);
}

body.dark-mode .self-introduction::before {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.15) 0%, rgba(255, 255, 255, 0.08) 100%);
}

body.dark-mode .intro-title {
    color: #ffffff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

body.dark-mode .intro-text {
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

body.dark-mode section h2 {
    color: #ffffff;
}

body.dark-mode .skills-chart-container {
    background-color: rgba(255, 255, 255, 0.05);
}

/* Particles Background */
#particles-js {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
}

/* Dark Mode Toggle */
.dark-mode-toggle {
    position: fixed;
    top: 20px;
    right: 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    z-index: 1000;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.dark-mode-toggle:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

/* Typing Animation */
.typing-animation {
    position: relative;
    overflow: hidden;
}

.typing-subtitle {
    margin: 15px 0;
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.9);
}

.typing-text {
    display: inline-block;
}

/* Self Introduction */
.self-introduction {
    margin: 20px 0 0 0;
    padding: 25px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
    position: relative;
    overflow: hidden;
}

.self-introduction::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
    border-radius: 20px;
    pointer-events: none;
}

.intro-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    position: relative;
    z-index: 1;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.intro-text {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.95);
    line-height: 1.2;
    margin: 0;
    text-align: left;
    position: relative;
    z-index: 1;
    font-weight: 400;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    white-space: pre-line;
}

.self-introduction:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 40px rgba(102, 126, 234, 0.4);
    transition: all 0.3s ease;
}

.self-introduction:hover::before {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0.1) 100%);
    transition: all 0.3s ease;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    background-color: white;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    margin-top: 20px;
    margin-bottom: 20px;
}

/* Header Styles */
.header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 40px;
    border-radius: 10px;
    margin-bottom: 30px;
}

.profile-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
}

.profile-photo {
    flex-shrink: 0;
}

.profile-image {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    border: 4px solid rgba(255, 255, 255, 0.3);
    object-fit: cover;
    object-position: center top;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    /* 이미지 크기 조정으로 여백 제거 */
    transform: scale(1.1);
    /* 이미지 중앙 정렬 */
    display: block;
    margin: 0 auto;
    /* 클릭 가능한 커서 */
    cursor: pointer;
}

.profile-image:hover {
    transform: scale(1.15);
    border-color: rgba(255, 255, 255, 0.6);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.3);
}

.profile-info h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.personal-info {
    margin-bottom: 15px;
}

.age-gender {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 400;
}

.contact-info {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1rem;
}

.contact-item a {
    color: #667eea;
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-item a:hover {
    color: #5a6fd8;
    text-decoration: underline;
}

.phone-icon {
    cursor: pointer;
    transition: all 0.3s ease;
}

.phone-icon:hover {
    color: #667eea;
    transform: scale(1.1);
}

.phone-number {
    font-weight: 500;
    color: #667eea;
}

.contact-item i {
    width: 16px;
    text-align: center;
}

.profile-badge {
    background-color: rgba(255, 255, 255, 0.2);
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 500;
}

/* Summary Section */
.summary {
    margin-bottom: 40px;
}

.summary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    background-color: #f8fafc;
    padding: 30px;
    border-radius: 10px;
}

.summary-item {
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.summary-item:hover {
    /* No animation */
}

.summary-item h3 {
    color: #67738e;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: color 0.3s ease;
}

.summary-item:hover h3 {
    color: #667eea;
}

.summary-item p {
    color: #292e41;
    font-size: 1rem;
    line-height: 1.5;
    transition: color 0.3s ease;
}

.summary-item:hover p {
    color: #667eea;
}

/* Section Styles */
section {
    margin-bottom: 50px;
}

section h2 {
    font-size: 1.8rem;
    color: #292e41;
    margin-bottom: 30px;
    padding-bottom: 10px;
    border-bottom: 3px solid #667eea;
    display: flex;
    align-items: center;
    gap: 10px;
}

section h2 i {
    color: #667eea;
}

/* Skills Section */
.skills-chart-container {
    width: 100%;
    height: 300px;
    margin-bottom: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 20px;
    backdrop-filter: blur(10px);
}

.skills-container {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.skill-tag {
    background-color: #e3f2fd;
    color: #1976d2;
    padding: 8px 16px;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 500;
    border: 1px solid #bbdefb;
    transition: all 0.3s ease;
    position: relative;
    cursor: pointer;
}

.skill-tag:hover {
    background-color: #1976d2;
    color: white;
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 4px 8px rgba(25, 118, 210, 0.3);
}

.skill-tooltip {
    position: absolute;
    top: -30px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #333;
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.8rem;
    white-space: nowrap;
    z-index: 1000;
}

/* Experience Section */
.timeline {
    position: relative;
    padding-left: 30px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 15px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, #667eea, #764ba2);
}

.timeline-item {
    position: relative;
    margin-bottom: 40px;
    padding-left: 40px;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -7px;
    top: 0;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background-color: #667eea;
    border: 3px solid white;
    box-shadow: 0 0 0 3px #667eea;
}

.timeline-content h3 {
    font-size: 1.3rem;
    color: #292e41;
    margin-bottom: 8px;
}

.position {
    color: #667eea;
    font-weight: 600;
    margin-bottom: 5px;
}

.duration {
    color: #67738e;
    font-size: 0.9rem;
    margin-bottom: 20px;
}

.work-description h4 {
    color: #292e41;
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.work-description ul {
    list-style: none;
    padding-left: 0;
}

.work-description li {
    margin-bottom: 10px;
    padding-left: 20px;
    position: relative;
}

.work-description li::before {
    content: '▶';
    position: absolute;
    left: 0;
    color: #667eea;
    font-size: 0.8rem;
}

.work-description ul ul {
    margin-top: 10px;
    margin-left: 20px;
}

.work-description ul ul li::before {
    content: '•';
    color: #67738e;
}

/* Project List Styles */
.project-list {
    margin-top: 20px;
}

.project-item {
    background-color: #f8fafc;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    border-left: 4px solid #667eea;
}

.project-item h5 {
    color: #292e41;
    font-size: 1.1rem;
    margin-bottom: 8px;
    font-weight: 600;
}

.project-period {
    color: #667eea;
    font-weight: 600;
    margin-bottom: 5px;
    font-size: 0.9rem;
}

.project-client {
    color: #67738e;
    font-size: 0.9rem;
    margin-bottom: 15px;
    font-weight: 500;
}

.project-details {
    list-style: none;
    padding-left: 0;
}

.project-details li {
    margin-bottom: 8px;
    padding-left: 20px;
    position: relative;
    color: #555;
    line-height: 1.5;
}

.project-details li::before {
    content: '▶';
    position: absolute;
    left: 0;
    color: #667eea;
    font-size: 0.8rem;
}

/* Education Section */
.education-item {
    background-color: #f8fafc;
    padding: 25px;
    border-radius: 10px;
    margin-bottom: 20px;
    border-left: 4px solid #667eea;
}

.education-item h3 {
    color: #292e41;
    font-size: 1.2rem;
    margin-bottom: 8px;
}

.degree {
    color: #667eea;
    font-weight: 600;
    margin-bottom: 5px;
}

.duration {
    color: #67738e;
    font-size: 0.9rem;
    margin-bottom: 5px;
}

.details {
    color: #67738e;
    font-size: 0.9rem;
}

/* Training Section */
.training-item {
    background-color: #f8fafc;
    padding: 25px;
    border-radius: 10px;
    margin-bottom: 20px;
    border-left: 4px solid #28a745;
}

.training-item h3 {
    color: #292e41;
    font-size: 1.2rem;
    margin-bottom: 8px;
}

.training-item .duration {
    color: #28a745;
    font-weight: 600;
    margin-bottom: 10px;
}

.description {
    color: #555;
    line-height: 1.6;
}

/* Certificates Section */
.cert-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.cert-item {
    background-color: #f8fafc;
    padding: 25px;
    border-radius: 10px;
    border-left: 4px solid #ffc107;
    transition: transform 0.3s ease;
}

.cert-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.cert-item h3 {
    color: #292e41;
    font-size: 1.1rem;
    margin-bottom: 8px;
}

.cert-status {
    color: #67738e;
    font-size: 0.9rem;
    font-weight: normal;
}

.issuer {
    color: #ffc107;
    font-weight: 600;
    margin-bottom: 5px;
}

.date {
    color: #67738e;
    font-size: 0.9rem;
}

/* Footer */
.footer {
    text-align: center;
    padding: 30px;
    color: #67738e;
    border-top: 1px solid #e9ecef;
    margin-top: 50px;
}

.footer-stats {
    margin-top: 15px;
    font-size: 0.9rem;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

/* Easter Egg */
.easter-egg {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
    z-index: 10000;
    text-align: center;
    animation: easterEggShow 0.5s ease-in-out;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

body.dark-mode .easter-egg {
    background: linear-gradient(135deg, #4a5568 0%, #2d3748 100%);
    box-shadow: 0 20px 40px rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.easter-egg.hidden {
    display: none;
}

.konami-code h3 {
    margin-bottom: 15px;
    font-size: 1.5rem;
}

.code-animation {
    margin-top: 20px;
    background-color: rgba(0, 0, 0, 0.2);
    padding: 15px;
    border-radius: 8px;
    font-family: 'Courier New', monospace;
}

.code-animation pre {
    margin: 0;
    color: #00ff00;
    animation: codeGlow 2s ease-in-out infinite;
}

@keyframes codeGlow {
    0%, 100% { text-shadow: 0 0 5px #00ff00; }
    50% { text-shadow: 0 0 20px #00ff00, 0 0 30px #00ff00; }
}

@keyframes easterEggShow {
    0% { opacity: 0; transform: translate(-50%, -50%) scale(0.5); }
    100% { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}

/* Loading Animation - Disabled */
body.loaded .container {
    opacity: 1;
}

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

/* 3D Project Cards */
.project-item {
    transition: all 0.3s ease;
    transform-style: preserve-3d;
}

.project-item:hover {
    /* No animation */
}

/* Scroll Animations - Disabled */
.timeline-item,
.education-item,
.training-item,
.cert-item,
.project-item {
    opacity: 1;
    transform: translateY(0);
}

/* Header - No Parallax */
.header {
    position: relative;
}

/* Enhanced Animations */
@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.skill-tag:hover {
    animation: pulse 0.6s ease-in-out;
}

/* Mobile Optimizations for New Features */
@media (max-width: 768px) {
    .dark-mode-toggle {
        top: 10px;
        right: 10px;
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .skills-chart-container {
        height: 250px;
        padding: 15px;
    }
    
    .easter-egg {
        margin: 20px;
        padding: 20px;
    }
    
    .footer-stats {
        flex-direction: column;
        gap: 5px;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        margin: 10px;
        padding: 15px;
        border-radius: 5px;
    }
    
    .header {
        padding: 20px;
    }
    
    .profile-section {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }
    
    .profile-image {
        width: 120px;
        height: 120px;
        transform: scale(1.2);
        object-position: center 25%;
    }
    
    .profile-image:hover {
        transform: scale(1.25);
    }
    
    .profile-info h1 {
        font-size: 2rem;
    }
    
    .contact-info {
        justify-content: center;
        flex-direction: column;
        gap: 10px;
    }
    
    .self-introduction {
        margin: 15px 0 0 0;
        padding: 20px;
        border-radius: 15px;
    }
    
    .intro-title {
        font-size: 1.1rem;
        margin-bottom: 12px;
    }
    
    .intro-text {
        font-size: 0.9rem;
        line-height: 1.6;
        text-align: left;
    }
    
    .summary-grid {
        grid-template-columns: 1fr;
        padding: 20px;
    }
    
    .cert-grid {
        grid-template-columns: 1fr;
    }
    
    .skills-container {
        justify-content: center;
    }
    
    .timeline {
        padding-left: 20px;
    }
    
    .timeline-item {
        padding-left: 30px;
    }
    
    section h2 {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .profile-info h1 {
        font-size: 1.8rem;
    }
    
    .contact-item {
        font-size: 0.9rem;
    }
    
    .skill-tag {
        font-size: 0.8rem;
        padding: 6px 12px;
    }
    
    .timeline-content h3 {
        font-size: 1.1rem;
    }
    
    .work-description ul ul {
        margin-left: 10px;
    }
}

/* Print Styles */
@media print {
    body {
        background-color: white;
    }
    
    .container {
        box-shadow: none;
        margin: 0;
        padding: 0;
    }
    
    .header {
        background: #667eea !important;
        -webkit-print-color-adjust: exact;
        color-adjust: exact;
    }
    
    .skill-tag {
        background-color: #e3f2fd !important;
        -webkit-print-color-adjust: exact;
        color-adjust: exact;
    }
    
    section {
        break-inside: avoid;
    }
    
    .timeline-item {
        break-inside: avoid;
    }
}

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

.timeline-item,
.education-item,
.training-item,
.cert-item {
    animation: fadeInUp 0.6s ease-out;
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #667eea;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #5a6fd8;
}

/* Dark mode scrollbar */
body.dark-mode ::-webkit-scrollbar-track {
    background: #2d2d2d;
}

body.dark-mode ::-webkit-scrollbar-thumb {
    background: #667eea;
}

body.dark-mode ::-webkit-scrollbar-thumb:hover {
    background: #5a6fd8;
}
