/* ===== CSS Reset & Base ===== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* ===== Font Faces ===== */
@font-face {
    font-family: 'League Spartan';
    src: url('assets/fonts/LeagueSpartan-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'League Spartan';
    src: url('assets/fonts/LeagueSpartan-Medium.ttf') format('truetype');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'League Spartan';
    src: url('assets/fonts/LeagueSpartan-SemiBold.ttf') format('truetype');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'League Spartan';
    src: url('assets/fonts/LeagueSpartan-Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

:root {
    --color-bg: #ffffff;
    --color-bg-alt: #f5f5f5;
    --color-text: #111111;
    --color-text-muted: #666666;
    --color-border: #e0e0e0;
    --color-border-light: #f0f0f0;
    --color-surface: #ffffff;
    --color-surface-alt: #f8f8f8;
    --font-main: 'League Spartan', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    --transition: 0.3s ease;
}

/* Dark Mode Variables */
[data-theme="dark"] {
    --color-bg: #0a0a0a;
    --color-bg-alt: #111111;
    --color-text: #f5f5f5;
    --color-text-muted: #a0a0a0;
    --color-border: #2a2a2a;
    --color-border-light: #1a1a1a;
    --color-surface: #141414;
    --color-surface-alt: #1a1a1a;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    background-color: var(--color-bg);
    color: var(--color-text);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Section Reveal Animation */
section {
    padding: 6rem 0;
    position: relative;
    transition: transform 0.6s ease, opacity 0.6s ease;
    opacity: 0;
    transform: translateY(40px);
}

section.in-view {
    opacity: 1;
    transform: translateY(0);
}

section.past-view {
    opacity: 0.3;
}

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

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes expandWidth {
    from { width: 0; }
    to { width: 40px; }
}

@keyframes underlineSlide {
    from {
        width: 0;
        left: 0;
    }
    to {
        width: 100%;
        left: 0;
    }
}

@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

@keyframes rotateIn {
    from {
        opacity: 0;
        transform: rotate(-10deg);
    }
    to {
        opacity: 1;
        transform: rotate(0);
    }
}

@keyframes bounceIn {
    0% {
        opacity: 0;
        transform: scale(0.3);
    }
    50% {
        transform: scale(1.05);
    }
    70% {
        transform: scale(0.9);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes slideInFromBottom {
    from {
        opacity: 0;
        transform: translateY(100%);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes typewriter {
    from { width: 0; }
    to { width: 100%; }
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

/* ===== Animation Utility Classes ===== */
.animate-fade-in-up {
    animation: fadeInUp 0.6s ease forwards;
}

.animate-fade-in-down {
    animation: fadeInDown 0.6s ease forwards;
}

.animate-fade-in {
    animation: fadeIn 0.5s ease forwards;
}

.animate-slide-in-left {
    animation: slideInLeft 0.5s ease forwards;
}

.animate-slide-in-right {
    animation: slideInRight 0.5s ease forwards;
}

.animate-scale-in {
    animation: scaleIn 0.5s ease forwards;
}

.animate-bounce-in {
    animation: bounceIn 0.6s ease forwards;
}

.animate-rotate-in {
    animation: rotateIn 0.5s ease forwards;
}

.animate-float {
    animation: float 3s ease-in-out infinite;
}

.animate-pulse {
    animation: pulse 2s ease-in-out infinite;
}

/* Staggered animation delays */
.delay-100 { animation-delay: 0.1s; }
.delay-200 { animation-delay: 0.2s; }
.delay-300 { animation-delay: 0.3s; }
.delay-400 { animation-delay: 0.4s; }
.delay-500 { animation-delay: 0.5s; }
.delay-600 { animation-delay: 0.6s; }
.delay-700 { animation-delay: 0.7s; }
.delay-800 { animation-delay: 0.8s; }

/* ===== Container ===== */
.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* ===== Navigation ===== */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: var(--color-bg);
    border-bottom: 1px solid var(--color-border);
    z-index: 1000;
    animation: fadeIn 0.5s ease;
}

.nav-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--color-text);
    text-decoration: none;
    letter-spacing: -0.5px;
    position: relative;
}

.nav-logo::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-text);
    transition: width var(--transition);
}

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

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    color: var(--color-text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color var(--transition);
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background-color: var(--color-text);
    transition: width var(--transition);
}

.nav-link:hover {
    color: var(--color-text);
}

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

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.nav-toggle span {
    width: 24px;
    height: 2px;
    background-color: var(--color-text);
    transition: var(--transition);
}

.nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle.active span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ===== Dark Mode Toggle ===== */
.theme-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: none;
    border: 1px solid var(--color-border);
    border-radius: 50%;
    cursor: pointer;
    transition: var(--transition);
    color: var(--color-text);
    padding: 0;
}

.theme-toggle:hover {
    border-color: var(--color-text);
    background-color: var(--color-bg-alt);
}

.theme-toggle svg {
    width: 20px;
    height: 20px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.theme-toggle:hover svg {
    transform: rotate(15deg);
}

.theme-switching svg {
    transform: rotate(360deg) !important;
}

.theme-toggle .sun-icon {
    display: block;
}

.theme-toggle .moon-icon {
    display: none;
}

[data-theme="dark"] .theme-toggle .sun-icon {
    display: none;
}

[data-theme="dark"] .theme-toggle .moon-icon {
    display: block;
}

/* Dark mode transition for all elements */
body *, body *::before, body *::after {
    transition-property: background-color, color, border-color;
    transition-duration: 0.2s;
}

/* ===== Hero Section ===== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6rem 2rem 4rem;
}

.hero.in-view {
    opacity: 1;
    transform: translateY(0);
}

.hero-container {
    max-width: 650px;
    text-align: center;
}

.hero-greeting {
    color: var(--color-text-muted);
    font-size: 1rem;
    margin-bottom: 0.5rem;
    animation: fadeInUp 0.6s ease forwards;
    animation-delay: 0.1s;
    opacity: 0;
}

.hero-name {
    font-size: clamp(2.5rem, 8vw, 4rem);
    font-weight: 700;
    letter-spacing: -2px;
    line-height: 1.1;
    margin-bottom: 0.5rem;
    animation: fadeInUp 0.6s ease forwards;
    animation-delay: 0.2s;
    opacity: 0;
}

.hero-title {
    font-size: 1.25rem;
    color: var(--color-text-muted);
    margin-bottom: 1rem;
    animation: fadeInUp 0.6s ease forwards;
    animation-delay: 0.3s;
    opacity: 0;
}

.hero-subtitle {
    font-size: 1.1rem;
    color: var(--color-text);
    margin-bottom: 1rem;
    font-weight: 500;
    animation: fadeInUp 0.6s ease forwards;
    animation-delay: 0.4s;
    opacity: 0;
}

.hero-description {
    color: var(--color-text-muted);
    margin-bottom: 2rem;
    max-width: 550px;
    margin-left: auto;
    margin-right: auto;
    animation: fadeInUp 0.6s ease forwards;
    animation-delay: 0.5s;
    opacity: 0;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInUp 0.6s ease forwards;
    animation-delay: 0.6s;
    opacity: 0;
}

/* ===== Buttons ===== */
.btn {
    display: inline-block;
    padding: 0.75rem 1.75rem;
    font-size: 0.9rem;
    text-decoration: none;
    border-radius: 4px;
    transition: var(--transition);
    font-weight: 500;
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
    transition: left 0.5s ease;
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background-color: var(--color-text);
    color: var(--color-bg);
    transform: translateY(0);
}

.btn-primary:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

.btn-outline {
    border-color: var(--color-border);
    color: var(--color-text);
    transform: translateY(0);
}

.btn-outline:hover {
    border-color: var(--color-text);
    transform: translateY(-2px);
}

/* ===== Section ===== */

.section-title {
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--color-text-muted);
    margin-bottom: 3rem;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -1rem;
    left: 0;
    width: 40px;
    height: 1px;
    background-color: var(--color-border);
    animation: expandWidth 0.6s ease forwards;
}

/* ===== About Section ===== */
.about {
    background-color: var(--color-bg-alt);
}

.about-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 4rem;
}

.about-text p {
    color: var(--color-text-muted);
    margin-bottom: 1rem;
}

.about-info {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.info-item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    padding: 1rem;
    border: 1px solid transparent;
    border-radius: 4px;
    transition: all 0.3s ease;
    animation: fadeInUp 0.5s ease forwards;
    opacity: 0;
}

.info-item:nth-child(1) { animation-delay: 0.1s; }
.info-item:nth-child(2) { animation-delay: 0.2s; }
.info-item:nth-child(3) { animation-delay: 0.3s; }
.info-item:nth-child(4) { animation-delay: 0.4s; }
.info-item:nth-child(5) { animation-delay: 0.5s; }

.info-item:hover {
    border-color: var(--color-border);
    background-color: var(--color-bg);
    transform: translateY(-2px);
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.info-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--color-text-muted);
}

.info-value {
    font-weight: 500;
}

/* ===== Skills Section ===== */
.skills-category {
    margin-bottom: 3rem;
}

.skills-category:last-child {
    margin-bottom: 0;
}

.category-title {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--color-text-muted);
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--color-border);
    position: relative;
    overflow: hidden;
}

.category-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    height: 1px;
    background-color: var(--color-text);
    width: 0;
    transition: width 0.4s ease;
}

.skills-category:hover .category-title::after {
    width: 60px;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

/* Skills Tags Style */
.skills-category {
    margin-bottom: 2.5rem;
}

.category-title {
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--color-text-muted);
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--color-border);
    position: relative;
    font-weight: 600;
}

.skills-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-top: 1rem;
}

.skill-tag {
    display: inline-block;
    padding: 0.4rem 0.875rem;
    font-size: 0.875rem;
    font-weight: 500;
    background-color: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: 6px;
    color: var(--color-text);
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    animation: fadeInUp 0.4s ease forwards;
    opacity: 0;
}

.skill-tag:nth-child(1) { animation-delay: 0.05s; }
.skill-tag:nth-child(2) { animation-delay: 0.08s; }
.skill-tag:nth-child(3) { animation-delay: 0.11s; }
.skill-tag:nth-child(4) { animation-delay: 0.14s; }
.skill-tag:nth-child(5) { animation-delay: 0.17s; }
.skill-tag:nth-child(6) { animation-delay: 0.2s; }

.skill-tag:hover {
    border-color: var(--color-text);
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 6px 16px rgba(0,0,0,0.1);
}

/* Expert & Familiar Labels */
.expert-label,
.familiar-label {
    font-size: 0.65rem;
    padding: 0.15rem 0.4rem;
    border-radius: 4px;
    margin-left: 0.25rem;
}

.skill-tag.skill-expert {
    background-color: var(--color-text);
    color: var(--color-bg);
    border-color: var(--color-text);
}

.skill-tag.skill-expert .expert-label {
    background-color: var(--color-bg);
    color: var(--color-text);
}

.skill-tag .familiar-label {
    background-color: var(--color-bg-alt);
    color: var(--color-text-muted);
}

.skill-tag.skill-expert:hover {
    opacity: 0.9;
}

.skill-card {
    padding: 1.25rem 1.5rem;
    border: 1px solid var(--color-border);
    border-radius: 4px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    animation: fadeInUp 0.5s ease forwards;
    opacity: 0;
}

.skill-card:nth-child(1) { animation-delay: 0.1s; }
.skill-card:nth-child(2) { animation-delay: 0.2s; }
.skill-card:nth-child(3) { animation-delay: 0.3s; }
.skill-card:nth-child(4) { animation-delay: 0.4s; }
.skill-card:nth-child(5) { animation-delay: 0.5s; }
.skill-card:nth-child(6) { animation-delay: 0.6s; }

.skill-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 3px;
    height: 0;
    background-color: var(--color-text);
    transition: height 0.3s ease;
}

.skill-card:hover {
    border-color: var(--color-text);
    transform: translateX(4px);
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.skill-card:hover::before {
    height: 100%;
}

.skill-name {
    font-size: 1rem;
    margin-bottom: 0.25rem;
    font-weight: 500;
}

.skill-desc {
    font-size: 0.8rem;
    color: var(--color-text-muted);
    line-height: 1.5;
}

/* ===== Work Section ===== */
.work {
    background-color: var(--color-bg-alt);
}

.work-intro {
    color: var(--color-text-muted);
    max-width: 600px;
    margin-bottom: 3rem;
    line-height: 1.7;
}

/* Timeline Style */
.work-timeline {
    position: relative;
    margin-bottom: 4rem;
}

.work-timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, var(--color-border), var(--color-text), var(--color-border));
    opacity: 0.3;
}

.timeline-item {
    position: relative;
    padding-left: 2.5rem;
    margin-bottom: 3rem;
    animation: fadeInUp 0.6s ease forwards;
    opacity: 0;
}

.timeline-item:nth-child(1) { animation-delay: 0.1s; }
.timeline-item:nth-child(2) { animation-delay: 0.2s; }
.timeline-item:nth-child(3) { animation-delay: 0.3s; }
.timeline-item:nth-child(4) { animation-delay: 0.4s; }
.timeline-item:nth-child(5) { animation-delay: 0.5s; }

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-marker {
    position: absolute;
    left: -5px;
    top: 0.5rem;
    width: 12px;
    height: 12px;
    background-color: var(--color-bg);
    border: 2px solid var(--color-text);
    border-radius: 50%;
    transition: all 0.3s ease;
    animation: pulse 2s ease-in-out infinite;
}

.timeline-item:hover .timeline-marker {
    background-color: var(--color-text);
    transform: scale(1.3);
    animation: none;
}

.timeline-content {
    background-color: var(--color-bg);
    border-radius: 12px;
    padding: 1.5rem;
    border: 1px solid transparent;
    transition: all 0.3s ease;
}

.timeline-item:hover .timeline-content {
    border-color: var(--color-border);
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    transform: translateY(-2px);
}

.timeline-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
    gap: 1rem;
}

.timeline-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: 0.25rem;
}

.timeline-company {
    font-size: 0.875rem;
    color: var(--color-text-muted);
}

.timeline-date {
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--color-text);
    background-color: var(--color-bg-alt);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    white-space: nowrap;
}

.timeline-desc {
    color: var(--color-text-muted);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.timeline-tech {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.tech-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--color-text-muted);
    font-weight: 500;
}

.tech-items {
    font-size: 0.8rem;
    font-family: 'SF Mono', 'Consolas', monospace;
    color: var(--color-text);
}

.timeline-achievements h4 {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--color-text-muted);
    margin-bottom: 0.75rem;
}

.timeline-achievements ul {
    list-style: none;
    padding-left: 0;
}

.timeline-achievements li {
    position: relative;
    padding-left: 1.25rem;
    color: var(--color-text-muted);
    margin-bottom: 0.5rem;
    line-height: 1.5;
    font-size: 0.9rem;
}

.timeline-achievements li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.6rem;
    width: 6px;
    height: 6px;
    background-color: var(--color-text);
    border-radius: 50%;
    opacity: 0.5;
}

/* Work Experience Items */
.work-experience {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 4rem;
}

.work-item {
    background-color: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    overflow: hidden;
    transition: var(--transition);
}

.work-item:hover {
    border-color: var(--color-text);
}

.work-header {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    background: none;
    border: none;
    cursor: pointer;
    text-align: left;
    transition: background-color var(--transition);
}

.work-header:hover {
    background-color: var(--color-bg-alt);
}

.work-header-content {
    flex: 1;
}

.work-title {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
    color: var(--color-text);
}

.work-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    font-size: 0.875rem;
    color: var(--color-text-muted);
}

.work-company {
    position: relative;
}

.work-company::after {
    content: '•';
    margin-left: 0.75rem;
    color: var(--color-border);
}

.work-date {
    font-weight: 500;
}

.work-expand-icon {
    width: 20px;
    height: 20px;
    color: var(--color-text-muted);
    transition: transform var(--transition);
    flex-shrink: 0;
}

.work-header[aria-expanded="true"] .work-expand-icon {
    transform: rotate(180deg);
}

.work-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease;
}

.work-content.active {
    max-height: 800px;
    padding: 0 1.5rem 1.5rem;
}

.work-role {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.work-badge {
    padding: 0.25rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 500;
    background-color: var(--color-bg-alt);
    color: var(--color-text);
    border-radius: 4px;
}

.work-tech {
    padding: 0.25rem 0;
    font-size: 0.8rem;
    color: var(--color-text-muted);
    font-family: 'SF Mono', 'Consolas', monospace;
}

.work-description {
    color: var(--color-text-muted);
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.work-achievements h4 {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--color-text-muted);
    margin-bottom: 0.75rem;
}

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

.work-achievements li {
    position: relative;
    padding-left: 1.5rem;
    color: var(--color-text-muted);
    margin-bottom: 0.75rem;
    line-height: 1.6;
}

.work-achievements li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--color-text);
    font-weight: 600;
}

/* Technical Exploration Section */
.work-exploration {
    margin-bottom: 3rem;
}

.exploration-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--color-text);
}

.exploration-intro {
    color: var(--color-text-muted);
    margin-bottom: 1.5rem;
}

.exploration-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1rem;
}

.exploration-card {
    padding: 1.5rem;
    background-color: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    transition: var(--transition);
}

.exploration-card:hover {
    border-color: var(--color-text);
    transform: translateY(-2px);
}

.exploration-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.exploration-header h4 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--color-text);
}

.exploration-tag {
    padding: 0.25rem 0.5rem;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background-color: var(--color-bg-alt);
    color: var(--color-text-muted);
    border-radius: 4px;
}

.exploration-desc {
    color: var(--color-text-muted);
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.exploration-skills {
    list-style: none;
    padding-left: 0;
}

.exploration-skills li {
    position: relative;
    padding-left: 1rem;
    font-size: 0.85rem;
    color: var(--color-text-muted);
    margin-bottom: 0.5rem;
}

.exploration-skills li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--color-text);
}

.work-note {
    margin-top: 2rem;
    font-size: 0.875rem;
    color: var(--color-text-muted);
}

/* ===== Contact Section ===== */
.contact-intro {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: 1rem;
}

.contact-description {
    color: var(--color-text-muted);
    max-width: 500px;
    margin-bottom: 2.5rem;
    line-height: 1.7;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 400px;
}

.contact-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.25rem;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    text-decoration: none;
    color: var(--color-text);
    transition: all 0.3s ease;
    animation: fadeInUp 0.5s ease forwards;
    opacity: 0;
}

.contact-card:nth-child(1) { animation-delay: 0.1s; }
.contact-card:nth-child(2) { animation-delay: 0.2s; }
.contact-card:nth-child(3) { animation-delay: 0.3s; }

.contact-card:hover {
    border-color: var(--color-text);
    transform: translateX(8px) scale(1.02);
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.contact-icon {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    color: var(--color-text);
}

.contact-text {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.contact-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--color-text-muted);
}

.contact-value {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--color-text);
}

/* ===== Footer ===== */
.footer {
    padding: 2rem 0;
    border-top: 1px solid var(--color-border);
    text-align: center;
}

.footer p {
    color: var(--color-text-muted);
    font-size: 0.875rem;
}

/* ===== Scroll Progress Bar ===== */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background-color: var(--color-text);
    z-index: 1001;
    transition: width 0.1s ease;
}

/* ===== Back to Top Button ===== */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 44px;
    height: 44px;
    border: 1px solid var(--color-border);
    background-color: var(--color-bg);
    color: var(--color-text);
    border-radius: 50%;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: var(--transition);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    border-color: var(--color-text);
    transform: translateY(-2px);
}

.back-to-top svg {
    width: 20px;
    height: 20px;
}

/* ===== Scroll Animations ===== */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Hide close button by default (desktop) */
.nav-close {
    display: none !important;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        flex-direction: column;
        background-color: var(--color-bg);
        border-bottom: 1px solid var(--color-border);
        padding: 5rem 2rem 1rem;
        gap: 1.5rem;
        transform: translateY(-100%);
        opacity: 0;
        transition: transform var(--transition), opacity var(--transition);
        z-index: 999;
        height: 100vh;
        overflow-y: auto;
    }

    .nav-menu.active {
        transform: translateY(0);
        opacity: 1;
    }

    /* Close Button for Mobile Menu - only show when active */
    .nav-menu.active .nav-close {
        display: flex !important;
    }

    .nav-close {
        position: absolute;
        top: 1.5rem;
        right: 1.5rem;
        width: 40px;
        height: 40px;
        align-items: center;
        justify-content: center;
        background: transparent;
        border: none;
        cursor: pointer;
        z-index: 1000;
    }

    .nav-close span {
        position: absolute;
        width: 24px;
        height: 2px;
        background-color: var(--color-text);
        border-radius: 2px;
    }

    .nav-close span:nth-child(1) {
        transform: rotate(45deg);
    }

    .nav-close span:nth-child(2) {
        transform: rotate(-45deg);
    }

    .nav-link {
        font-size: 1.25rem;
        padding: 0.5rem 0;
    }

    .nav-toggle {
        display: flex;
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .hero-name {
        letter-spacing: -1px;
    }

    .case-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }

    .skill-card:hover {
        transform: translateX(0);
    }

    .back-to-top {
        bottom: 1.5rem;
        right: 1.5rem;
        width: 40px;
        height: 40px;
    }

    .hero-actions {
        flex-direction: column;
        width: 100%;
    }

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

    /* Timeline Mobile */
    .work-timeline::before {
        left: 0;
    }

    .timeline-item {
        padding-left: 2rem;
    }

    .timeline-header {
        flex-direction: column;
        gap: 0.5rem;
    }

    .timeline-date {
        align-self: flex-start;
    }

    .timeline-tech {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.25rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 1.5rem;
    }

    .nav-container {
        padding: 1rem 1.5rem;
    }

    .section-title::after {
        left: 1.5rem;
    }

    .skills-grid {
        grid-template-columns: 1fr;
    }

    .case-content {
        padding: 1rem 1.25rem;
    }

    .case-header {
        padding: 1.25rem;
    }
}

/* ===== Reduced Motion ===== */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
