/* ========================================
   Light Theme - Complete CSS
   ======================================== */

:root {
    --bg-primary: #ffffff;
    --bg-secondary: #fafafa;
    --bg-tertiary: #f5f5f5;
    --text-primary: #1a1a1a;
    --text-secondary: #4a4a4a;
    --text-muted: #888888;
    --text-subtle: #aaaaaa;
    --border: #e5e5e5;
    --border-light: #f0f0f0;
    --accent: #2563eb;
    --accent-light: #eff6ff;
    --accent-dim: rgba(37, 99, 235, 0.7);
    --accent-muted: rgba(37, 99, 235, 0.4);
    --accent-subtle: rgba(37, 99, 235, 0.1);
    --font-display: 'Playfair Display', 'Noto Serif SC', 'Songti SC', 'STSong', Georgia, serif;
    --font-body: 'Inter', 'Noto Sans SC', system-ui, -apple-system, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif;
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}


/* ========================================
   Dark Theme Variables
   ======================================== */
[data-theme="dark"] {
    --bg-primary: #0a0a0a;
    --bg-secondary: #111111;
    --bg-tertiary: #1a1a1a;
    --text-primary: #ffffff;
    --text-secondary: #cccccc;
    --text-muted: #888888;
    --text-subtle: #666666;
    --border: #2a2a2a;
    --border-light: #222222;
    --accent: #3b82f6;
    --accent-light: #1e293b;
    --accent-dim: rgba(59, 130, 246, 0.7);
    --accent-muted: rgba(59, 130, 246, 0.4);
    --accent-subtle: rgba(59, 130, 246, 0.08);
}
[data-theme="dark"] .nav.scrolled {
    background: rgba(10, 10, 10, 0.95);
}
[data-theme="dark"] .hero {
    background: var(--bg-secondary);
}
[data-theme="dark"] .loader {
    background: var(--bg-primary);
}

/* Theme Toggle */
.theme-toggle {
    background: none;
    border: 1px solid var(--border);
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.2s ease;
    color: var(--text-secondary);
    padding: 0;
}
.theme-toggle:hover {
    border-color: var(--accent);
    color: var(--accent);
}
@media (max-width: 768px) {
    .theme-toggle {
        width: 32px;
        height: 32px;
        font-size: 0.85rem;
    }
}
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
    font-family: var(--font-body);
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Loading Screen */
.loader {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%; height: 100dvh;
    background: var(--bg-primary);
    display: flex; align-items: center; justify-content: center;
    z-index: 10000;
    transition: opacity 0.8s ease, visibility 0.8s ease;
}
.loader.hidden { opacity: 0; visibility: hidden; }
.loader-content { text-align: center; }
.loader-text {
    font-family: var(--font-display);
    font-size: 4rem; font-weight: 700;
    letter-spacing: 0.2em;
    color: var(--text-primary);
}
.loader-line {
    width: 60px; height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
    margin: 2rem auto 0;
}

/* Navigation */
.nav {
    position: fixed; top: 0; left: 0; width: 100%;
    z-index: 1000; padding: 2rem 0;
    transition: var(--transition-base);
    border-bottom: 1px solid transparent;
}
.nav.scrolled {
    padding: 1rem 0;
    background: rgba(255, 255, 255, 0.95);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    border-bottom-color: var(--border);
}
.nav-container {
    max-width: 1400px; margin: 0 auto; padding: 0 3rem;
    display: flex; align-items: center; justify-content: space-between;
}
.logo-text {
    font-family: var(--font-display);
    font-size: 1.25rem; font-weight: 600;
    letter-spacing: 0.1em; color: var(--text-primary);
}
.nav-menu { display: flex; list-style: none; gap: 3rem; }
.nav-link {
    color: var(--text-secondary); text-decoration: none;
    font-size: 0.85rem; font-weight: 500;
    letter-spacing: 0.05em; text-transform: uppercase;
    transition: var(--transition-fast);
    position: relative; padding: 0.5rem 0;
}
.nav-link::after {
    content: ''; position: absolute; bottom: 0; left: 0;
    width: 0; height: 2px; background: var(--accent);
    transition: var(--transition-fast);
}
.nav-link:hover, .nav-link.active { color: var(--accent); }
.nav-link:hover::after, .nav-link.active::after { width: 100%; }

.nav-actions { display: flex; align-items: center; gap: 2rem; }
.lang-switch {
    background: none; border: none; color: var(--text-secondary);
    font-family: var(--font-body); font-size: 0.75rem;
    font-weight: 500; letter-spacing: 0.05em;
    display: flex; align-items: center; gap: 0.25rem;
    padding: 0.5rem;
}
.lang-btn {
    transition: var(--transition-fast);
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
}
.lang-btn:hover {
    background: var(--accent-light);
}
.menu-toggle {
    display: none; flex-direction: column; gap: 6px;
    background: none; border: none; cursor: pointer; padding: 0.5rem;
}
.menu-toggle span { width: 24px; height: 2px; background: var(--text-primary); }

/* Mobile Menu */
.mobile-menu {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%; height: 100dvh;
    background: var(--bg-primary); z-index: 999;
    display: flex; align-items: center; justify-content: center;
    opacity: 0; visibility: hidden; transition: var(--transition-base);
}
.mobile-menu.active { opacity: 1; visibility: visible; }
.mobile-nav-menu { list-style: none; text-align: center; }
.mobile-nav-menu li { margin: 2rem 0; }
.mobile-nav-menu a {
    color: var(--text-primary); text-decoration: none;
    font-family: var(--font-display); font-size: 2rem; font-weight: 500;
}

/* Main & Container */
.main { min-height: 100vh; min-height: 100svh; }
.container { max-width: 1400px; margin: 0 auto; padding: 0 3rem; }

/* Hero Section */
.hero {
    min-height: 100vh; min-height: 100svh; display: flex; align-items: center; justify-content: center;
    position: relative; padding: 8rem 0;
    background: var(--bg-secondary);
}
.hero-bg { position: absolute; top: 0; left: 0; width: 100%; height: 100%; overflow: hidden; }
.noise {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    opacity: 0.02;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
}
.grid-lines {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background-image: 
        linear-gradient(rgba(0,0,0,0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0,0,0,0.03) 1px, transparent 1px);
    background-size: 100px 100px;
}
.glow {
    position: absolute; border-radius: 50%; filter: blur(100px);
    opacity: 0.15;
}
.glow-1 { width: 600px; height: 600px; background: var(--accent); top: -200px; right: -200px; }
.glow-2 { width: 400px; height: 400px; background: var(--accent); bottom: -100px; left: -100px; animation-delay: -4s; }

.hero-content { position: relative; z-index: 1; text-align: center; max-width: 900px; }
.hero-eyebrow {
    font-size: 0.8rem; letter-spacing: 0.3em; text-transform: uppercase;
    color: var(--text-muted); margin-bottom: 2rem;
}
.hero-title {
    font-family: var(--font-display);
    font-size: clamp(3rem, 12vw, 10rem); font-weight: 700;
    line-height: 1.1; letter-spacing: -0.02em; margin-bottom: 2rem;
    color: var(--text-primary);
}
.title-line { display: block; }
.hero-desc {
    font-size: 1.1rem; color: var(--text-secondary); line-height: 1.8;
    margin-bottom: 4rem;
}
.hero-stats {
    display: flex; justify-content: center; align-items: center;
    gap: 3rem; margin-bottom: 4rem;
}
.stat { text-align: center; }
.stat-num {
    display: block; font-family: var(--font-display);
    font-size: 3rem; font-weight: 700; line-height: 1; margin-bottom: 0.5rem;
    color: var(--accent);
}
.stat-label {
    font-size: 0.75rem; letter-spacing: 0.2em;
    text-transform: uppercase; color: var(--text-muted);
}
.stat-divider { width: 1px; height: 40px; background: var(--border); }
.hero-cta { display: flex; gap: 1.5rem; justify-content: center; }

/* Buttons */
.btn {
    display: inline-flex; align-items: center; gap: 0.75rem;
    padding: 1rem 2rem; font-family: var(--font-body);
    font-size: 0.85rem; font-weight: 500; letter-spacing: 0.1em;
    text-transform: uppercase; text-decoration: none;
    border: none; cursor: pointer; transition: var(--transition-fast);
    border-radius: 4px;
}
.btn-primary { background: var(--accent); color: white; }
.btn-primary:hover { background: #1d4ed8; transform: translateY(-2px); }
.btn-outline {
    background: transparent; color: var(--text-primary);
    border: 1px solid var(--border);
}
.btn-outline:hover { border-color: var(--accent); color: var(--accent); }
.btn-full { width: 100%; justify-content: center; }
.btn-center { display: flex; margin: 0 auto; width: fit-content; }

/* Quick Info */
.quick-info { padding: 6rem 0; background: var(--bg-primary); }
.info-grid {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem;
}
.info-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-light);
    border-radius: 12px;
    padding: 2.5rem;
    text-decoration: none;
    color: inherit;
    transition: var(--transition-fast);
    position: relative;
}
.info-card:hover {
    border-color: var(--accent);
    transform: translateY(-4px);
    box-shadow: 0 10px 40px rgba(37, 99, 235, 0.1);
}
.info-icon { font-size: 2rem; margin-bottom: 1rem; }
.info-card h3 {
    font-size: 1.1rem; font-weight: 600;
    margin-bottom: 0.5rem; color: var(--text-primary);
}
.info-card p {
    font-size: 0.9rem; color: var(--text-muted);
    margin-bottom: 1.5rem;
}
.info-arrow {
    position: absolute; bottom: 2rem; right: 2rem;
    font-size: 1.25rem; color: var(--accent);
    opacity: 0; transform: translateX(-10px);
    transition: var(--transition-fast);
}
.info-card:hover .info-arrow { opacity: 1; transform: translateX(0); }

/* Quote Section */
.quote-section { padding: 6rem 0; background: var(--bg-secondary); }
.quote {
    text-align: center; max-width: 800px; margin: 0 auto;
    position: relative;
}
.quote-mark {
    font-family: var(--font-display);
    font-size: 6rem; color: var(--accent);
    opacity: 0.2; line-height: 1;
    display: block; margin-bottom: -2rem;
}
.quote p {
    font-family: var(--font-display);
    font-size: 1.75rem; font-weight: 500;
    color: var(--text-primary); line-height: 1.5;
    margin-bottom: 1.5rem;
}
.quote cite {
    font-size: 0.9rem; color: var(--text-muted);
    font-style: normal; letter-spacing: 0.1em;
}

/* Page Header */
.page-header {
    padding: 10rem 0 4rem; background: var(--bg-secondary);
    border-bottom: 1px solid var(--border);
}
.page-eyebrow {
    font-size: 0.8rem; letter-spacing: 0.3em; text-transform: uppercase;
    color: var(--accent); margin-bottom: 1rem;
}
.page-title {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 6vw, 4rem); font-weight: 700;
    color: var(--text-primary);
}

/* Section Title */
.section-title {
    font-size: 0.9rem; letter-spacing: 0.2em; text-transform: uppercase;
    color: var(--text-muted); margin-bottom: 2rem;
}

/* Awards Section */
.awards-section { padding: 4rem 0; }
.awards-grid {
    display: flex; flex-direction: column; gap: 2rem;
}
.award-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-light);
    border-radius: 16px;
    padding: 2.5rem;
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 2rem;
    transition: var(--transition-fast);
}
.award-card:hover {
    border-color: var(--accent);
    box-shadow: 0 10px 40px rgba(37, 99, 235, 0.08);
}
.award-card.featured {
    background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--accent-light) 100%);
    border-color: var(--accent-subtle);
}
.award-visual { position: relative; }
.award-trophy {
    font-size: 3rem; line-height: 1;
}
.award-glow {
    position: absolute; top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 80px; height: 80px;
    background: var(--accent);
    border-radius: 50%;
    filter: blur(40px);
    opacity: 0.2;
}
.award-header {
    display: flex; justify-content: space-between; align-items: center;
    margin-bottom: 0.75rem;
}
.award-badge {
    font-size: 0.75rem; font-weight: 600; letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 0.4rem 0.8rem;
    background: var(--accent);
    color: white;
    border-radius: 4px;
}
.award-badge.silver {
    background: #6b7280;
}
.award-date {
    font-size: 0.85rem; color: var(--text-muted);
}
.award-content h3 {
    font-size: 1.5rem; font-weight: 600;
    color: var(--text-primary); margin-bottom: 0.25rem;
}
.award-org {
    font-size: 0.9rem; color: var(--text-muted);
    margin-bottom: 0.5rem;
}
.award-role {
    font-size: 0.95rem; color: var(--accent);
    font-weight: 500; margin-bottom: 1rem;
}
.award-details {
    display: flex; flex-direction: column; gap: 0.5rem;
    margin-bottom: 1.5rem;
}
.detail-item {
    display: flex; align-items: flex-start; gap: 0.75rem;
    font-size: 0.95rem; color: var(--text-secondary);
}
.detail-icon { font-size: 1rem; flex-shrink: 0; }
.award-tags {
    display: flex; flex-wrap: wrap; gap: 0.5rem;
}
.tag {
    font-size: 0.8rem; padding: 0.35rem 0.75rem;
    background: var(--bg-primary);
    border: 1px solid var(--border);
    border-radius: 4px;
    color: var(--text-secondary);
}

/* Dev Projects Section */
.dev-projects { padding: 4rem 0; background: var(--bg-primary); }

/* Other Projects */
.other-projects { padding: 4rem 0; background: var(--bg-secondary); }
.project-mini-grid {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem;
}
.project-mini {
    background: var(--bg-primary);
    border: 1px solid var(--border-light);
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    transition: var(--transition-fast);
}
.project-mini:hover {
    border-color: var(--accent);
    transform: translateY(-4px);
}
.mini-icon { font-size: 2rem; margin-bottom: 0.75rem; }
.project-mini h4 {
    font-size: 1rem; font-weight: 600;
    color: var(--text-primary); margin-bottom: 0.25rem;
}
.project-mini p {
    font-size: 0.85rem; color: var(--text-muted);
}

/* Skills Summary */
.skills-summary { padding: 4rem 0; background: var(--bg-primary); }
.skills-matrix {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem;
}
.skill-group h4 {
    font-size: 0.9rem; font-weight: 600;
    color: var(--text-primary); margin-bottom: 0.75rem;
}
.skill-dots {
    display: flex; gap: 0.5rem;
}
.dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    background: var(--border);
}
.dot.filled { background: var(--accent); }

/* About Section */
.about-section { padding: 4rem 0; }
.about-layout {
    display: grid; grid-template-columns: 300px 1fr;
    gap: 4rem;
}
.about-visual { position: sticky; top: 100px; height: fit-content; }
.photo-frame {
    position: relative;
    width: 100%; aspect-ratio: 3/4;
    background: var(--bg-secondary);
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 1.5rem;
}
.photo-placeholder {
    width: 100%; height: 100%;
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    color: var(--text-muted);
    overflow: hidden;
}
.photo-placeholder img.photo-placeholder-icon {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.photo-icon { font-size: 4rem; margin-bottom: 0.5rem; }
.frame-corner {
    position: absolute; width: 20px; height: 20px;
    border: 2px solid var(--accent);
}
.corner-tl { top: 1rem; left: 1rem; border-right: none; border-bottom: none; }
.corner-tr { top: 1rem; right: 1rem; border-left: none; border-bottom: none; }
.corner-bl { bottom: 1rem; left: 1rem; border-right: none; border-top: none; }
.corner-br { bottom: 1rem; right: 1rem; border-left: none; border-top: none; }
.about-stats {
    display: grid; grid-template-columns: 1fr 1fr; gap: 1rem;
}
.about-stat {
    background: var(--bg-secondary);
    border: 1px solid var(--border-light);
    border-radius: 8px;
    padding: 1rem;
    text-align: center;
}
.stat-value {
    display: block; font-size: 1.5rem; font-weight: 700;
    color: var(--accent); margin-bottom: 0.25rem;
}
.stat-name {
    font-size: 0.8rem; color: var(--text-muted);
}
.about-text-content { display: flex; flex-direction: column; gap: 2.5rem; }
.text-block h2 {
    font-size: 1.25rem; font-weight: 600;
    color: var(--text-primary); margin-bottom: 1rem;
}
.text-block p {
    font-size: 1rem; color: var(--text-secondary);
    line-height: 1.8; margin-bottom: 1rem;
}
.focus-tags {
    display: flex; flex-wrap: wrap; gap: 0.75rem;
}
.focus-tag {
    font-size: 0.85rem; padding: 0.5rem 1rem;
    background: var(--accent-light);
    color: var(--accent);
    border-radius: 4px;
    font-weight: 500;
}
.contact-list {
    display: flex; flex-direction: column; gap: 0.75rem;
}
.contact-row {
    display: flex; justify-content: space-between;
    padding: 1rem; background: var(--bg-secondary);
    border-radius: 8px; text-decoration: none;
    color: inherit; transition: var(--transition-fast);
}
.contact-row:hover { background: var(--accent-light); }
.contact-label {
    font-size: 0.85rem; color: var(--text-muted);
}
.contact-value {
    font-size: 0.9rem; color: var(--text-primary);
    font-weight: 500;
}

/* Hobbies Section */
.hobbies-section { padding: 4rem 0; }
.hobbies-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1.5rem;
}
.hobby-card {
    background: var(--bg-primary);
    border: 1px solid var(--border-light);
    border-radius: 16px;
    padding: 2rem 1.5rem;
    text-align: center;
    transition: var(--transition-fast);
}
.hobby-card:hover {
    border-color: var(--accent);
    transform: translateY(-8px);
    box-shadow: 0 10px 40px rgba(37, 99, 235, 0.1);
}
.hobby-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}
.hobby-card h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}
.hobby-card p {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.5;
}
@media (max-width: 1024px) {
    .hobbies-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 768px) {
    .hobbies-grid { grid-template-columns: repeat(2, 1fr); }
}

/* Skills Preview */
.skills-preview { padding: 4rem 0; background: var(--bg-primary); }
.skills-cloud {
    display: flex; flex-wrap: wrap; gap: 1rem;
    justify-content: center; margin-bottom: 2rem;
}
.skill-bubble {
    font-size: 0.9rem; padding: 0.75rem 1.25rem;
    background: var(--bg-primary);
    border: 1px solid var(--border);
    border-radius: 100px;
    color: var(--text-secondary);
    transition: var(--transition-fast);
}
.skill-bubble:hover {
    border-color: var(--accent); color: var(--accent);
}
.skill-bubble.large {
    font-size: 1.1rem; padding: 1rem 1.5rem;
}

/* Education Section - Modular Design */
.edu-section { padding: 4rem 0; }
.edu-grid {
    display: flex; flex-direction: column; gap: 2rem;
}
.edu-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-light);
    border-radius: 16px;
    padding: 2rem;
    transition: var(--transition-fast);
}
.edu-card:hover {
    border-color: var(--accent);
    box-shadow: 0 10px 40px rgba(37, 99, 235, 0.08);
}
.edu-card-header {
    display: flex; align-items: center; gap: 1.5rem;
    margin-bottom: 1.5rem;
}
.edu-school-badge {
    width: 80px; height: 80px;
    background: var(--accent);
    color: white;
    border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.25rem; font-weight: 700;
    flex-shrink: 0;
}
.edu-school-badge.dual {
    flex-direction: column;
    font-size: 0.9rem;
    gap: 0.25rem;
}
.edu-school-info h3 {
    font-size: 1.25rem; font-weight: 600;
    color: var(--text-primary); margin-bottom: 0.25rem;
}
.edu-school-en {
    font-size: 0.85rem; color: var(--text-muted);
}
.edu-card-meta {
    display: flex; gap: 1.5rem; flex-wrap: wrap;
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-light);
}
.edu-location, .edu-date {
    font-size: 0.9rem; color: var(--text-secondary);
}
.edu-badge {
    font-size: 0.8rem; padding: 0.4rem 0.8rem;
    background: var(--accent-light);
    color: var(--accent);
    border-radius: 4px;
    font-weight: 500;
}
.edu-card-body {
    padding-top: 0.5rem;
}
.edu-degree {
    font-size: 1.1rem; color: var(--accent);
    font-weight: 600; margin-bottom: 0.75rem;
}
.edu-desc {
    font-size: 0.95rem; color: var(--text-secondary);
    line-height: 1.7; margin-bottom: 1.5rem;
}
.edu-tags {
    display: flex; flex-wrap: wrap; gap: 0.5rem;
}
.edu-tag {
    font-size: 0.8rem; padding: 0.4rem 0.8rem;
    background: var(--bg-primary);
    border: 1px solid var(--border);
    border-radius: 4px;
    color: var(--text-secondary);
}

/* Courses Section */
.courses-section { padding: 4rem 0; }
.courses-grid {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem;
}
.course-category-card {
    background: var(--bg-primary);
    border: 1px solid var(--border-light);
    border-radius: 12px;
    padding: 1.5rem;
    transition: var(--transition-fast);
}
.course-category-card:hover {
    border-color: var(--accent);
    transform: translateY(-4px);
}
.course-cat-header {
    display: flex; align-items: center; gap: 0.75rem;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-light);
}
.course-cat-icon {
    font-size: 1.5rem;
}
.course-cat-header h4 {
    font-size: 1rem; font-weight: 600;
    color: var(--text-primary);
}
.course-list {
    list-style: none; padding: 0;
}
.course-list li {
    font-size: 0.9rem; color: var(--text-secondary);
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border-light);
}
.course-list li:last-child {
    border-bottom: none;
}

/* Languages Section */
.languages-section { padding: 4rem 0; }
.languages-grid {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem;
}
.language-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-light);
    border-radius: 12px;
    padding: 1.5rem;
    display: flex; align-items: center; gap: 1rem;
    transition: var(--transition-fast);
}
.language-card:hover {
    border-color: var(--accent);
    transform: translateY(-4px);
}
.lang-flag {
    font-size: 2.5rem;
}
.lang-info h3 {
    font-size: 1rem; font-weight: 600;
    color: var(--text-primary); margin-bottom: 0.25rem;
}
.lang-level {
    font-size: 0.85rem; color: var(--accent);
    font-weight: 500;
}

/* Experience Section */
.exp-section { padding: 4rem 0; }
.exp-timeline {
    display: flex; flex-direction: column; gap: 2rem;
}
.exp-item {
    display: grid; grid-template-columns: 150px 1fr;
    gap: 2rem;
    padding: 2rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border-light);
    border-radius: 12px;
    transition: var(--transition-fast);
}
.exp-item:hover {
    border-color: var(--accent);
}
.exp-date-col {
    font-size: 0.85rem; color: var(--text-muted);
    font-weight: 500;
}
.exp-content h3 {
    font-size: 1.1rem; font-weight: 600;
    color: var(--text-primary); margin-bottom: 0.25rem;
}
.exp-role {
    font-size: 0.95rem; color: var(--accent);
    font-weight: 500; margin-bottom: 0.75rem;
}
.exp-desc {
    font-size: 0.95rem; color: var(--text-secondary);
    line-height: 1.7;
}

/* Contact Section */
.contact-section { padding: 4rem 0; }
.contact-grid {
    display: grid; grid-template-columns: 1fr 1fr;
    gap: 4rem;
}
.contact-info h3 {
    font-size: 1.1rem; font-weight: 600;
    color: var(--text-primary); margin-bottom: 1.5rem;
}
.contact-info-item {
    display: flex; align-items: center; gap: 1rem;
    margin-bottom: 1rem;
}
.contact-info-icon {
    width: 48px; height: 48px;
    background: var(--accent-light);
    border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.25rem;
}
.contact-info-text h4 {
    font-size: 0.85rem; color: var(--text-muted);
    margin-bottom: 0.25rem;
}
.contact-info-text p {
    font-size: 1rem; color: var(--text-primary);
    font-weight: 500;
}
.contact-form {
    background: var(--bg-secondary);
    border: 1px solid var(--border-light);
    border-radius: 16px;
    padding: 2rem;
}
.form-group { margin-bottom: 1.5rem; }
.form-group label {
    display: block; font-size: 0.85rem;
    color: var(--text-muted); margin-bottom: 0.5rem;
}
.form-group input,
.form-group textarea {
    width: 100%; padding: 0.75rem 1rem;
    background: var(--bg-primary);
    border: 1px solid var(--border);
    border-radius: 8px;
    font-family: var(--font-body);
    font-size: 1rem; color: var(--text-primary);
    transition: var(--transition-fast);
}
.form-group input:focus,
.form-group textarea:focus {
    outline: none; border-color: var(--accent);
}
.form-group textarea { min-height: 120px; resize: vertical; }

/* Footer */
.footer {
    padding: 3rem 0; background: var(--bg-secondary);
    border-top: 1px solid var(--border);
}
.footer-content {
    display: flex; justify-content: space-between; align-items: center;
}
.footer-left { display: flex; align-items: center; gap: 1.5rem; }
.footer-logo {
    font-family: var(--font-display);
    font-size: 1.5rem; font-weight: 700;
    color: var(--accent);
}
.footer-copy {
    font-size: 0.85rem; color: var(--text-muted);
}
.footer-right { text-align: right; }
.footer-links {
    display: flex; gap: 1.5rem; margin-bottom: 0.5rem;
}
.footer-links a {
    font-size: 0.85rem; color: var(--text-secondary);
    text-decoration: none; transition: var(--transition-fast);
}
.footer-links a:hover { color: var(--accent); }
.footer-location {
    font-size: 0.85rem; color: var(--text-muted);
}

/* Image Placeholder Styles */
.image-placeholder {
    background: var(--bg-tertiary);
    border: 2px dashed var(--border);
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 0.85rem;
    min-height: 200px;
    transition: var(--transition-fast);
}
.image-placeholder:hover {
    border-color: var(--accent);
    color: var(--accent);
}
.image-placeholder-icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}
.project-image {
    width: 100%;
    aspect-ratio: 16/10;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 1.5rem;
}

/* ========================================
   ENHANCED ANIMATIONS & EFFECTS
   ======================================== */

/* Scroll Reveal */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* Floating Animation */
@keyframes floatSoft {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}
.float-anim {
  animation: floatSoft 5s ease-in-out infinite;
}

/* Glow Pulse */
@keyframes glowPulse {
  0%, 100% { box-shadow: 0 0 5px rgba(37, 99, 235, 0.1); }
  50% { box-shadow: 0 0 20px rgba(37, 99, 235, 0.2); }
}
.glow-pulse:hover {
  animation: glowPulse 2s ease-in-out infinite;
}

/* Typing Cursor */
@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}
.typing-cursor::after {
  content: '|';
  animation: blink 1s step-end infinite;
  color: var(--accent);
  font-weight: 300;
}

/* 3D Tilt Effect (applied via JS) */
.tilt-card {
  transform-style: preserve-3d;
  perspective: 1000px;
  transition: transform 0.1s ease;
}

/* Card Hover Glow Line */
.glow-line {
  position: relative;
  overflow: hidden;
}
.glow-line::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width 0.4s ease;
}
.glow-line:hover::after {
  width: 100%;
}

/* Enhanced Image Placeholder */
.img-slot {
  background: var(--bg-tertiary);
  border: 2px dashed var(--border);
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 0.8rem;
  transition: all 0.3s ease;
  overflow: hidden;
  cursor: pointer;
}
.img-slot:hover {
  border-color: var(--accent);
  border-style: solid;
  background: var(--accent-light);
}
.img-slot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: none;
}
.img-slot.has-image img {
  display: block;
}
.img-slot.has-image .img-slot-hint {
  display: none;
}
.img-slot-hint {
  text-align: center;
  padding: 1rem;
}
.img-slot-hint .hint-icon {
  font-size: 2rem;
  display: block;
  margin-bottom: 0.5rem;
  opacity: 0.5;
}
.img-slot-hint p {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* Photo frame in About page - make it accept real img */
.photo-frame img.profile-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 12px;
}
.photo-frame img.profile-img.hidden {
  display: none;
}
.photo-frame.has-photo .photo-placeholder {
  display: none;
}

/* Skill bar animation */
.skill-bar-track {
  width: 100%;
  height: 6px;
  background: var(--border-light);
  border-radius: 3px;
  margin-top: 0.5rem;
  overflow: hidden;
}
.skill-bar-fill {
  height: 100%;
  border-radius: 3px;
  background: var(--accent);
  width: 0;
  transition: width 1.2s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Stagger children animation */
.stagger > * {
  opacity: 0;
  transform: translateY(20px);
}

/* Smooth section entrance */
.section-entrance {
  opacity: 0;
  transform: translateY(40px);
  filter: blur(5px);
  transition: opacity 0.8s ease, transform 0.8s ease, filter 0.8s ease;
}
.section-entrance.visible {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}

/* Hero number counter pulse */
@keyframes countUp {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}
.stat-num.counted {
  animation: countUp 0.5s ease forwards;
}

/* Responsive */
@media (max-width: 1024px) {
    .about-layout { grid-template-columns: 1fr; }
    .about-visual { position: static; }
    .contact-grid { grid-template-columns: 1fr; }
    .project-mini-grid { grid-template-columns: repeat(2, 1fr); }
    .skills-matrix { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
    .nav-menu { display: none; }
    .menu-toggle { display: flex; }
    .info-grid { grid-template-columns: 1fr; }
    .award-card { grid-template-columns: 1fr; }
    .exp-item { grid-template-columns: 1fr; }
    .project-mini-grid { grid-template-columns: 1fr; }
    .skills-matrix { grid-template-columns: 1fr; }
    .hero-stats { flex-direction: column; gap: 1.5rem; }
    .stat-divider { width: 40px; height: 1px; }
    .hero-cta { flex-direction: column; }
}

/* ========================================
   Page Transitions (View Transitions API)
   ======================================== */
@view-transition {
    navigation: auto;
}

/* ========================================
   Project Screenshot Placeholder
   ======================================== */
.shot {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 8px;
    overflow: hidden;
    background:
        radial-gradient(circle at 20% 20%, var(--accent-subtle), transparent 45%),
        linear-gradient(135deg, var(--bg-tertiary) 0%, var(--bg-secondary) 100%);
    border: 1px solid var(--border-light);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    color: var(--text-muted);
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.3s ease;
}
.shot::before {
    content: '';
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1.5px dashed var(--text-muted);
    opacity: 0.6;
}
.shot::after {
    content: 'Screenshot coming soon';
    font-size: 0.82rem;
    letter-spacing: 0.04em;
    color: var(--text-muted);
}

.project-shot {
    display: block;
    width: 100%;
    max-width: 640px;
    margin: 0 auto 1.5rem;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    object-position: top;
    border-radius: 8px;
    border: 1px solid var(--border-light);
    background: var(--bg-tertiary);
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.3s ease;
}
.award-card:hover .project-shot {
    transform: scale(1.02);
    border-color: var(--accent);
}
@media (prefers-reduced-motion: reduce) {
    .project-shot { transition: none; }
    .award-card:hover .project-shot { transform: none; }
}
.award-card:hover .shot {
    transform: scale(1.02);
    border-color: var(--accent);
}
@media (prefers-reduced-motion: reduce) {
    .shot { transition: none; }
    
.project-shot {
    display: block;
    width: 100%;
    max-width: 640px;
    margin: 0 auto 1.5rem;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    object-position: top;
    border-radius: 8px;
    border: 1px solid var(--border-light);
    background: var(--bg-tertiary);
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.3s ease;
}
.award-card:hover .project-shot {
    transform: scale(1.02);
    border-color: var(--accent);
}
@media (prefers-reduced-motion: reduce) {
    .project-shot { transition: none; }
    .award-card:hover .project-shot { transform: none; }
}
.award-card:hover .shot { transform: none; }
}


/* ========================================
   Hero Spotlight (mouse-following glow)
   ======================================== */
.hero-spotlight {
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.5s ease;
    background: radial-gradient(560px circle at var(--spot-x, 50%) var(--spot-y, 40%), var(--accent-subtle), transparent 65%);
    z-index: 1;
}
.hero:hover .hero-spotlight {
    opacity: 1;
}
@media (prefers-reduced-motion: reduce) {
    .hero-spotlight { display: none; }
}

.shot.flash {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-subtle);
}
.shot.flash::after {
    content: 'Add your screenshot here';
    color: var(--accent);
}


/* ========================================
   Timeline Parallax
   ======================================== */
.exp-year {
    transition: transform 0.15s ease-out;
    will-change: transform;
}

/* ========================================
   Skills Radar
   ======================================== */
.skills-radar {
    max-width: 340px;
    margin: 0 auto 2rem;
}
.skills-radar svg {
    width: 100%;
    height: auto;
    display: block;
}
.radar-grid { fill: none; stroke: var(--border); stroke-width: 1; }
.radar-axis { stroke: var(--border); stroke-width: 1; }
.radar-data {
    fill: var(--accent-subtle);
    stroke: var(--accent);
    stroke-width: 2;
    transform-origin: 160px 160px;
    transform: scale(0.001);
    transition: transform 1.2s cubic-bezier(0.4, 0, 0.2, 1);
}
.radar-data.visible { transform: scale(1); }
.radar-dot { fill: var(--accent); opacity: 0; transition: opacity 0.5s ease; }
.radar-data.visible ~ .radar-dot { opacity: 1; }
.radar-label { font-size: 11px; fill: var(--text-secondary); }


/* ========================================
   Contact Layout (current markup)
   ======================================== */
.contact-layout {
    display: grid;
    grid-template-columns: minmax(280px, 0.85fr) 1.15fr;
    gap: 2rem;
    align-items: start;
}
.contact-info-panel,
.contact-form-panel {
    background: var(--bg-secondary);
    border: 1px solid var(--border-light);
    border-radius: 16px;
    padding: 2rem;
}
.contact-info-panel h2,
.contact-form-panel h2 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
}
.contact-methods {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    margin-bottom: 1.5rem;
}
.contact-method {
    display: flex;
    align-items: center;
    gap: 1rem;
    text-decoration: none;
    color: inherit;
}
.method-icon {
    width: 46px;
    height: 46px;
    border-radius: 12px;
    background: var(--accent-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    flex-shrink: 0;
}
.contact-method:nth-child(1) .method-icon::before { content: '\2709'; }
.contact-method:nth-child(2) .method-icon::before { content: '\1F4CD'; }
.method-details {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
    min-width: 0;
}
.method-label {
    font-size: 0.8rem;
    color: var(--text-muted);
}
.method-value {
    font-size: 0.95rem;
    color: var(--text-primary);
    font-weight: 500;
    word-break: break-word;
}
.availability {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
    padding-top: 1rem;
    border-top: 1px solid var(--border-light);
}
.status-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #22c55e;
    box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.15);
    flex-shrink: 0;
}
.map-section { padding: 4rem 0; }
.locations {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}
.location-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-light);
    border-radius: 16px;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}
.location-pin {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--accent-light);
    margin-bottom: 0.5rem;
    position: relative;
}
.location-pin::before {
    content: '\1F4CD';
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
}
.location-card h3 {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text-primary);
}
.location-card p {
    font-size: 0.85rem;
    color: var(--text-muted);
}
.location-status {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--accent);
    margin-top: 0.5rem;
}

/* Scroll hint (home hero) */
.scroll-hint {
    position: absolute;
    bottom: 2.5rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    color: var(--text-muted);
    font-size: 0.75rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    z-index: 1;
}
.scroll-line {
    width: 1px;
    height: 40px;
    background: linear-gradient(var(--accent), transparent);
    animation: scrollLine 1.6s ease-in-out infinite;
}
@keyframes scrollLine {
    0% { transform: scaleY(0); transform-origin: top; }
    50% { transform: scaleY(1); transform-origin: top; }
    50.1% { transform-origin: bottom; }
    100% { transform: scaleY(0); transform-origin: bottom; }
}

/* ========================================
   Mobile & Tablet Responsive Enhancements
   ======================================== */
@media (max-width: 900px) {
    .container { padding: 0 1.5rem; }
    .nav { padding: 1.25rem 0; }
    .nav-container { padding: 0 1.5rem; }
    .nav-actions { gap: 1rem; }
}
@media (max-width: 768px) {
    .container { padding: 0 1.25rem; }
    .nav-container { padding: 0 1.25rem; }
    .nav-actions { gap: 0.75rem; }
    .lang-switch { gap: 0.15rem; }
    .hero { min-height: auto; padding: 7rem 1rem 5rem; }
    .hero-title { font-size: clamp(2.75rem, 16vw, 4.5rem); margin-bottom: 1.5rem; }
    .hero-desc { font-size: 1rem; margin-bottom: 2.5rem; }
    .hero-stats { gap: 1rem; margin-bottom: 2.5rem; }
    .stat-num { font-size: 2.25rem; }
    .quick-info, .quote-section, .awards-section, .dev-projects,
    .other-projects, .skills-summary, .about-section, .edu-section,
    .exp-section, .languages-section, .contact-section, .map-section { padding: 3rem 0; }
    .page-header { padding-top: 7rem; }
    .page-title { font-size: 2.25rem; }
    .info-card, .award-card, .exp-item, .edu-card,
    .contact-info-panel, .contact-form-panel { padding: 1.5rem; }
    .award-content h3 { font-size: 1.25rem; }
    .quote p { font-size: 1.35rem; }
    .quote-mark { font-size: 4rem; }
    .contact-layout { grid-template-columns: 1fr; }
    .locations { grid-template-columns: 1fr; }
    .footer { padding: 2rem 0; }
    .footer-content { flex-direction: column; gap: 1.5rem; text-align: center; }
    .footer-left { flex-direction: column; gap: 0.5rem; }
    .footer-right { text-align: center; }
    .footer-links { justify-content: center; }
}
@media (max-width: 576px) {
    html { font-size: 15px; }
    .container { padding: 0 1rem; }
    .nav-container { padding: 0 1rem; }
    .logo-text { font-size: 1.05rem; }
    .hero { padding: 6.5rem 0.5rem 4rem; }
    .hero-eyebrow { font-size: 0.72rem; margin-bottom: 1.25rem; }
    .hero-title { font-size: clamp(2.25rem, 13vw, 3.5rem); }
    .btn { padding: 0.85rem 1.5rem; font-size: 0.8rem; }
    .award-header { flex-direction: column; align-items: flex-start; gap: 0.5rem; }
    .exp-item { grid-template-columns: 1fr; gap: 0.5rem; padding: 1.25rem; }
    .exp-date-col { margin-bottom: 0.25rem; }
    .project-shot { max-width: 100%; }
    .languages-grid { grid-template-columns: repeat(2, 1fr); }
    .hobbies-grid { grid-template-columns: repeat(2, 1fr); }
    .skills-matrix { grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
    .contact-method { align-items: flex-start; }
    .scroll-hint { bottom: 1.5rem; }
}
