/* Font Family */
* {
    font-family: 'Noto Sans KR', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

/* Fade In Animation */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

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

/* Fade In Section */
.fade-in-section {
    animation: fadeIn 0.8s ease-in-out forwards;
    opacity: 0;
}

.fade-in-section.visible {
    animation: slideUp 0.8s ease-in-out forwards;
}

/* Profile Image Styling */
.profile-image-wrapper {
    position: relative;
    width: 200px;
    height: 200px;
    margin: 0 auto;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid rgba(59, 130, 246, 0.5);
    box-shadow: 0 0 30px rgba(59, 130, 246, 0.3);
    animation: slideUp 0.8s ease-in-out;
}

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

/* Skill Cards */
.skill-card {
    padding: 2rem;
    background: linear-gradient(135deg, rgba(30, 58, 95, 0.5) 0%, rgba(15, 23, 42, 0.5) 100%);
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-radius: 0.75rem;
    text-align: center;
    transition: all 0.3s ease;
    animation: slideUp 0.8s ease-in-out;
}

.skill-card:hover {
    background: linear-gradient(135deg, rgba(30, 58, 95, 0.8) 0%, rgba(15, 23, 42, 0.8) 100%);
    border-color: rgba(59, 130, 246, 0.6);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(59, 130, 246, 0.2);
}

/* Timeline Styling */
.timeline {
    position: relative;
    padding: 2rem 0;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 3px;
    height: 100%;
    background: linear-gradient(to bottom, rgba(59, 130, 246, 0.8), rgba(59, 130, 246, 0.1));
    top: 0;
}

@media (max-width: 768px) {
    .timeline::before {
        left: 20px;
    }
}

.timeline-item {
    margin-bottom: 3rem;
    position: relative;
}

.timeline-dot {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 16px;
    height: 16px;
    background: #3b82f6;
    border: 3px solid #0f172a;
    border-radius: 50%;
    top: 5px;
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.5);
}

@media (max-width: 768px) {
    .timeline-dot {
        left: 20px;
        transform: translateX(-50%);
    }
}

.timeline-content {
    width: calc(50% - 2rem);
    margin-left: 50%;
    padding: 1.5rem;
    background: rgba(30, 58, 95, 0.3);
    border-left: 2px solid rgba(59, 130, 246, 0.4);
    border-radius: 0.5rem;
    animation: slideUp 0.8s ease-in-out;
}

@media (max-width: 768px) {
    .timeline-content {
        width: calc(100% - 60px);
        margin-left: 40px;
    }
}

.timeline-item:nth-child(even) .timeline-content {
    margin-left: 0;
    margin-right: 50%;
    border-left: none;
    border-right: 2px solid rgba(59, 130, 246, 0.4);
    padding-right: 1.5rem;
}

@media (max-width: 768px) {
    .timeline-item:nth-child(even) .timeline-content {
        margin-right: 0;
        margin-left: 40px;
        border-right: none;
        border-left: 2px solid rgba(59, 130, 246, 0.4);
        padding-right: 1.5rem;
    }
}

/* Hobby Cards */
.hobby-card {
    padding: 2rem;
    background: linear-gradient(135deg, rgba(30, 58, 95, 0.4) 0%, rgba(15, 23, 42, 0.4) 100%);
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-radius: 0.75rem;
    text-align: center;
    transition: all 0.3s ease;
    animation: slideUp 0.8s ease-in-out;
}

.hobby-card:hover {
    background: linear-gradient(135deg, rgba(30, 58, 95, 0.7) 0%, rgba(15, 23, 42, 0.7) 100%);
    border-color: rgba(59, 130, 246, 0.6);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(59, 130, 246, 0.2);
}

/* Contact Links */
.contact-link {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    background: rgba(30, 58, 95, 0.3);
    border: 2px solid rgba(59, 130, 246, 0.3);
    border-radius: 0.75rem;
    color: #60a5fa;
    transition: all 0.3s ease;
    text-decoration: none;
    animation: slideUp 0.8s ease-in-out;
}

.contact-link:hover {
    background: rgba(59, 130, 246, 0.2);
    border-color: rgba(59, 130, 246, 0.6);
    color: #93c5fd;
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(59, 130, 246, 0.2);
}

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

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #0f172a;
}

::-webkit-scrollbar-thumb {
    background: #3b82f6;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #60a5fa;
}

/* Focus Styles for Accessibility */
a:focus-visible,
button:focus-visible {
    outline: 2px solid #3b82f6;
    outline-offset: 2px;
}

/* Responsive Typography */
@media (max-width: 640px) {
    h1 {
        font-size: 2.25rem !important;
    }

    h2 {
        font-size: 2rem !important;
    }

    .profile-image-wrapper {
        width: 150px;
        height: 150px;
    }
}
