/* ============================================
   Xin's Portfolio - Manga x Google Geometric
   ============================================ */

/* --- CSS Variables --- */
:root {
    --blue: #4285F4;
    --red: #EA4335;
    --yellow: #FBBC05;
    --green: #34A853;
    --dark: #202124;
    --dark-light: #3c4043;
    --gray: #5f6368;
    --gray-light: #dadce0;
    --bg: #ffffff;
    --bg-alt: #f8f9fa;
    --text: #202124;
    --text-light: #5f6368;
    --radius: 12px;
    --shadow: 0 1px 6px rgba(32,33,36,0.12);
    --shadow-hover: 0 4px 20px rgba(32,33,36,0.18);
    --manga-border: 3px solid #202124;
    --font-display: 'Bangers', cursive;
    --font-body: 'Poppins', 'Noto Sans SC', sans-serif;
    --font-cn: 'Noto Sans SC', sans-serif;
    --nav-height: 64px;
    --container-width: 1200px;
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--nav-height);
}

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

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.2s;
}

img {
    max-width: 100%;
    height: auto;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 24px;
}

/* --- Speed Lines Background --- */
.speed-lines {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    opacity: 0.03;
    background:
        repeating-linear-gradient(
            90deg,
            transparent,
            transparent 60px,
            #000 60px,
            #000 61px
        );
}

/* --- Floating Geometric Shapes --- */
.geo-shapes {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

.geo {
    position: absolute;
    width: var(--size);
    height: var(--size);
    opacity: 0.12;
    animation: geoFloat 8s ease-in-out infinite;
}

.geo-circle {
    border-radius: 50%;
    background: var(--color);
}

.geo-square {
    border-radius: 4px;
    background: var(--color);
    animation-delay: -2s;
}

.geo-triangle {
    width: 0;
    height: 0;
    border-left: calc(var(--size) / 2) solid transparent;
    border-right: calc(var(--size) / 2) solid transparent;
    border-bottom: var(--size) solid var(--color);
    background: none;
    animation-delay: -4s;
}

.geo-diamond {
    background: var(--color);
    transform: rotate(45deg);
    animation-delay: -6s;
}

@keyframes geoFloat {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    25% { transform: translateY(-20px) rotate(5deg); }
    50% { transform: translateY(-10px) rotate(-3deg); }
    75% { transform: translateY(-25px) rotate(2deg); }
}

/* --- Navigation --- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--nav-height);
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 2px solid var(--dark);
    z-index: 1000;
    transition: box-shadow 0.3s;
}

.navbar.scrolled {
    box-shadow: var(--shadow-hover);
}

.nav-container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 24px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    font-family: var(--font-display);
    font-size: 1.8rem;
    letter-spacing: 2px;
    display: flex;
    align-items: center;
    gap: 2px;
}

.logo-bracket { color: var(--blue); }
.logo-text { color: var(--red); }
.logo-slash { color: var(--yellow); }

.nav-links {
    display: flex;
    gap: 32px;
}

.nav-link {
    font-weight: 600;
    font-size: 0.95rem;
    padding: 4px 0;
    position: relative;
    color: var(--dark-light);
    transition: color 0.2s;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 3px;
    background: var(--red);
    transition: width 0.3s ease;
    border-radius: 2px;
}

.nav-link:hover { color: var(--dark); }
.nav-link:hover::after,
.nav-link.active::after { width: 100%; }

.nav-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.lang-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 2px solid var(--dark);
    border-radius: 8px;
    background: var(--yellow);
    cursor: pointer;
    font-family: var(--font-display);
    font-size: 0.85rem;
    transition: transform 0.2s, box-shadow 0.2s;
    color: var(--dark);
}

.lang-toggle:hover {
    transform: translateY(-2px);
    box-shadow: 3px 3px 0 var(--dark);
}

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

.menu-toggle span {
    display: block;
    width: 24px;
    height: 3px;
    background: var(--dark);
    border-radius: 2px;
    transition: transform 0.3s, opacity 0.3s;
}

.menu-toggle.active span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.menu-toggle.active span:nth-child(2) { opacity: 0; }
.menu-toggle.active span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* --- Hero Section --- */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    padding: calc(var(--nav-height) + 40px) 0 40px;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    right: -10%;
    width: 60%;
    height: 100%;
    background:
        radial-gradient(circle at 30% 40%, rgba(66, 133, 244, 0.06) 0%, transparent 60%),
        radial-gradient(circle at 70% 60%, rgba(234, 67, 53, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 50% 80%, rgba(251, 188, 5, 0.04) 0%, transparent 40%);
    z-index: 0;
}

/* Halftone dot pattern overlay for manga feel */
.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(circle, #000 0.5px, transparent 0.5px);
    background-size: 12px 12px;
    opacity: 0.02;
    z-index: 0;
    pointer-events: none;
}

.hero-container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    gap: 60px;
    position: relative;
    z-index: 1;
}

.hero-content {
    flex: 1;
}

.comic-bubble {
    display: inline-block;
    background: var(--yellow);
    color: var(--dark);
    font-family: var(--font-display);
    font-size: 1.2rem;
    padding: 8px 20px;
    border: 2px solid var(--dark);
    border-radius: 20px 20px 20px 4px;
    position: relative;
    margin-bottom: 16px;
    box-shadow: 3px 3px 0 var(--dark);
}

.hero-name {
    font-family: var(--font-display);
    font-size: clamp(4rem, 10vw, 8rem);
    line-height: 1;
    margin-bottom: 16px;
    letter-spacing: 4px;
}

.name-char {
    display: inline-block;
    color: var(--color);
    transition: transform 0.2s;
    cursor: default;
    text-shadow: 3px 3px 0 var(--dark);
    -webkit-text-stroke: 2px var(--dark);
    paint-order: stroke fill;
}

.name-char:hover {
    transform: translateY(-8px) rotate(-5deg) scale(1.1);
}

.hero-titles {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.hero-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--gray);
}

.title-divider {
    color: var(--gray-light);
    font-weight: 300;
}

.hero-desc {
    font-size: 1.05rem;
    color: var(--text-light);
    max-width: 520px;
    margin-bottom: 32px;
    line-height: 1.7;
}

.hero-cta {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    font-family: var(--font-display);
    font-size: 1.1rem;
    letter-spacing: 1px;
    border: 2.5px solid var(--dark);
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    position: relative;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 4px 4px 0 var(--dark);
}

.btn:active {
    transform: translateY(0);
    box-shadow: 1px 1px 0 var(--dark);
}

.btn-primary {
    background: var(--blue);
    color: #fff;
}

.btn-secondary {
    background: var(--bg);
    color: var(--dark);
}

/* Hero visual / avatar */
.hero-visual {
    flex: 0 0 340px;
}

.manga-frame {
    position: relative;
}

.manga-panel {
    border: 3px solid var(--dark);
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--bg);
    position: relative;
    box-shadow: 6px 6px 0 var(--dark);
}

.avatar-panel {
    width: 300px;
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f0f4ff 0%, #fff0f0 50%, #fffbf0 100%);
}

.avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.panel-effect-lines {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        linear-gradient(45deg, transparent 45%, rgba(0,0,0,0.02) 45%, rgba(0,0,0,0.02) 55%, transparent 55%),
        linear-gradient(-45deg, transparent 45%, rgba(0,0,0,0.02) 45%, rgba(0,0,0,0.02) 55%, transparent 55%);
    background-size: 8px 8px;
    pointer-events: none;
}

.scroll-hint {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: var(--gray);
    animation: bounce 2s ease infinite;
}

.scroll-arrow {
    width: 20px;
    height: 20px;
    border-right: 2px solid var(--gray);
    border-bottom: 2px solid var(--gray);
    transform: rotate(45deg);
}

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

/* --- Section Common --- */
.section {
    padding: 100px 0;
    position: relative;
    z-index: 1;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.comic-title-wrapper {
    display: inline-block;
    position: relative;
    margin-bottom: 16px;
}

.section-title {
    font-family: var(--font-display);
    font-size: 2.8rem;
    letter-spacing: 3px;
    color: var(--dark);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    position: relative;
    z-index: 1;
}

.title-icon {
    font-size: 2rem;
}

.comic-title-bg {
    position: absolute;
    bottom: -4px;
    left: -10px;
    right: -10px;
    height: 16px;
    background: var(--yellow);
    opacity: 0.4;
    z-index: 0;
    border-radius: 4px;
    transform: skewX(-3deg);
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
}

/* --- Blog Section --- */
.blog-section {
    background: var(--bg-alt);
}

/* Diagonal manga-style top border */
.blog-section::before {
    content: '';
    position: absolute;
    top: -30px;
    left: 0;
    width: 100%;
    height: 60px;
    background: var(--bg-alt);
    transform: skewY(-1.5deg);
    z-index: -1;
}

.blog-filters {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 8px 20px;
    border: 2px solid var(--dark);
    border-radius: 24px;
    background: var(--bg);
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s;
    color: var(--dark-light);
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--dark);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 3px 3px 0 var(--blue);
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 28px;
}

/* Manga-style Card */
.manga-card {
    position: relative;
    transition: transform 0.3s, box-shadow 0.3s;
}

.manga-card:hover {
    transform: translateY(-6px);
}

.blog-card {
    background: var(--bg);
    border: 2.5px solid var(--dark);
    border-radius: var(--radius);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.blog-card:hover {
    box-shadow: 6px 6px 0 var(--dark);
}

.card-panel-border {
    position: absolute;
    top: 4px;
    left: 4px;
    right: -4px;
    bottom: -4px;
    border: 2px solid var(--dark);
    border-radius: var(--radius);
    z-index: -1;
    opacity: 0.15;
}

.card-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 4px 12px;
    font-family: var(--font-display);
    font-size: 0.75rem;
    letter-spacing: 1px;
    border: 2px solid var(--dark);
    border-radius: 4px;
    z-index: 2;
    text-transform: uppercase;
}


/* --- Publication List Styles --- */
.pub-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.pub-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
    background: var(--bg);
    border: 2px solid var(--dark);
    border-radius: var(--radius);
    transition: transform 0.2s, box-shadow 0.2s;
    cursor: pointer;
}

.pub-item:hover {
    transform: translateX(6px);
    box-shadow: 4px 4px 0 var(--dark);
}

.pub-badge {
    flex-shrink: 0;
    padding: 4px 10px;
    font-family: var(--font-display);
    font-size: 0.7rem;
    letter-spacing: 0.5px;
    border: 1.5px solid var(--dark);
    border-radius: 4px;
    text-transform: uppercase;
    white-space: nowrap;
}

.pub-badge.conference { background: #9C27B0; color: #fff; }
.pub-badge.blog { background: var(--blue); color: #fff; }
.pub-badge.blog-gcr { background: #FF9900; color: #fff; }
.pub-badge.workshop { background: var(--green); color: #fff; }
.pub-badge.meetup { background: #00BCD4; color: #fff; }
.pub-badge.opensource { background: var(--dark); color: #fff; }
.pub-badge.opensource-blog { background: #607D8B; color: #fff; }
.pub-badge.elearning { background: var(--red); color: #fff; }
.pub-badge.blog-medium { background: #333; color: #fff; }

/* Filter divider */
.filter-divider {
    color: var(--gray-light);
    margin: 0 4px;
    font-size: 1rem;
    user-select: none;
}

/* Load More Button */
.load-more-btn {
    display: block;
    margin: 32px auto 0;
    padding: 12px 48px;
    font-family: var(--font-display);
    font-size: 1.1rem;
    letter-spacing: 1px;
    background: var(--bg);
    color: var(--text);
    border: var(--manga-border);
    border-radius: var(--radius);
    cursor: pointer;
    transition: all 0.2s ease;
}

.load-more-btn:hover {
    background: var(--dark);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.pub-content {
    flex: 1;
    min-width: 0;
}

.pub-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--dark);
    line-height: 1.4;
    margin-bottom: 2px;
}

.pub-meta {
    font-size: 0.8rem;
    color: var(--gray);
}

/* Language tag inside titles */
.lang-tag {
    display: inline-block;
    font-family: var(--font-display);
    font-size: 0.6rem;
    letter-spacing: 0.5px;
    padding: 1px 6px;
    border-radius: 3px;
    border: 1.5px solid;
    vertical-align: middle;
    margin-left: 6px;
    position: relative;
    top: -1px;
}

.lang-tag.lang-en {
    background: #E3F2FD;
    color: #1565C0;
    border-color: #90CAF9;
}

.lang-tag.lang-cn {
    background: #FFF3E0;
    color: #E65100;
    border-color: #FFCC80;
}

.pub-arrow {
    flex-shrink: 0;
    font-size: 1.2rem;
    color: var(--gray-light);
    transition: color 0.2s, transform 0.2s;
}

.pub-item:hover .pub-arrow {
    color: var(--blue);
    transform: translateX(4px);
}

/* Highlights grid */
.highlights-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.highlight-item {
    text-align: center;
    padding: 16px 8px;
    border: 2px solid var(--gray-light);
    border-radius: var(--radius);
    transition: border-color 0.2s;
}

.highlight-item:hover {
    border-color: var(--dark);
}

.highlight-number {
    display: block;
    font-family: var(--font-display);
    font-size: 2rem;
    color: var(--color);
    line-height: 1;
    margin-bottom: 4px;
}

.highlight-label {
    font-size: 0.78rem;
    color: var(--gray);
    font-weight: 500;
}

/* Cert year badge */
.cert-year {
    display: inline-block;
    font-size: 0.72rem;
    font-family: var(--font-display);
    color: var(--gray);
    margin-left: 4px;
    letter-spacing: 0.5px;
}

.cert-info {
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.card-image {
    width: 100%;
    aspect-ratio: 2/1;
    overflow: hidden;
    border-bottom: 2.5px solid var(--dark);
}

.card-image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.card-image-placeholder svg {
    width: 100%;
    height: 100%;
}

.video-thumb {
    cursor: pointer;
}

.play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 56px;
    height: 56px;
    background: var(--red);
    border: 2px solid var(--dark);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.2rem;
    padding-left: 4px;
    box-shadow: 3px 3px 0 var(--dark);
    transition: transform 0.2s;
}

.video-thumb:hover .play-btn {
    transform: translate(-50%, -50%) scale(1.1);
}

.card-content {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.card-date {
    font-size: 0.8rem;
    color: var(--gray);
    margin-bottom: 8px;
}

.card-title {
    font-size: 1.1rem;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 10px;
    color: var(--dark);
}

.card-excerpt {
    font-size: 0.9rem;
    color: var(--text-light);
    line-height: 1.6;
    flex: 1;
    margin-bottom: 12px;
}

.card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.tag {
    font-size: 0.75rem;
    padding: 3px 10px;
    background: var(--bg-alt);
    border: 1px solid var(--gray-light);
    border-radius: 12px;
    color: var(--gray);
    font-weight: 500;
}

.card-link {
    display: block;
    padding: 14px 20px;
    text-align: center;
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--blue);
    border-top: 2px solid var(--dark);
    transition: background 0.2s, color 0.2s;
}

.card-link:hover {
    background: var(--blue);
    color: #fff;
}

/* --- Artwork Section --- */
.artwork-section {
    background: var(--bg);
}

.artwork-section::before {
    content: '';
    position: absolute;
    top: -30px;
    left: 0;
    width: 100%;
    height: 60px;
    background: var(--bg);
    transform: skewY(1.5deg);
    z-index: -1;
}

.artwork-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 24px;
}

.artwork-item {
    cursor: pointer;
}

.artwork-frame {
    position: relative;
    border: 3px solid var(--dark);
    border-radius: var(--radius);
    overflow: hidden;
    aspect-ratio: 4/3;
    box-shadow: 4px 4px 0 var(--dark);
    transition: box-shadow 0.3s;
}

.artwork-item:hover .artwork-frame {
    box-shadow: 8px 8px 0 var(--dark);
}

.artwork-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.artwork-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px;
    background: linear-gradient(transparent, rgba(0,0,0,0.85));
    color: #fff;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.artwork-item:hover .artwork-overlay {
    transform: translateY(0);
}

.artwork-overlay h3 {
    font-family: var(--font-display);
    font-size: 1.3rem;
    letter-spacing: 1px;
    margin-bottom: 4px;
}

.artwork-overlay p {
    font-size: 0.85rem;
    opacity: 0.85;
}

/* --- Lightbox Modal --- */
.lightbox-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(0, 0, 0, 0.75);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    padding: 24px;
}

.lightbox-overlay.active {
    opacity: 1;
    visibility: visible;
}

.lightbox-frame {
    position: relative;
    background: var(--bg);
    border: 4px solid var(--dark);
    border-radius: var(--radius);
    box-shadow: 8px 8px 0 var(--dark);
    max-width: 800px;
    width: 100%;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transform: scale(0.85) translateY(30px);
    transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.lightbox-overlay.active .lightbox-frame {
    transform: scale(1) translateY(0);
}

.lightbox-close {
    position: absolute;
    top: 10px;
    right: 14px;
    z-index: 10;
    background: var(--dark);
    color: #fff;
    border: 3px solid var(--dark);
    border-radius: 50%;
    width: 36px;
    height: 36px;
    font-size: 1.4rem;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, transform 0.2s;
}

.lightbox-close:hover {
    background: var(--red);
    border-color: var(--red);
    transform: rotate(90deg);
}

.lightbox-img-wrap {
    flex: 1;
    min-height: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px 16px 0;
    overflow: hidden;
}

.lightbox-img-wrap img {
    max-width: 100%;
    max-height: 70vh;
    object-fit: contain;
    border: 3px solid var(--dark);
    border-radius: 8px;
    box-shadow: 4px 4px 0 rgba(0,0,0,0.15);
}

.lightbox-caption {
    padding: 16px 20px 20px;
    text-align: center;
    border-top: 3px solid var(--dark);
    background: var(--bg-alt);
}

.lightbox-caption h3 {
    font-family: var(--font-display);
    font-size: 1.4rem;
    letter-spacing: 1px;
    color: var(--dark);
    margin-bottom: 4px;
}

.lightbox-caption p {
    font-size: 0.9rem;
    color: var(--text-light);
}

@media (max-width: 600px) {
    .lightbox-frame {
        max-width: 95vw;
    }
    .lightbox-img-wrap {
        padding: 12px 12px 0;
    }
    .lightbox-img-wrap img {
        max-height: 55vh;
    }
}

/* --- Resume Section --- */
.resume-section {
    background: var(--bg-alt);
}

.resume-section::before {
    content: '';
    position: absolute;
    top: -30px;
    left: 0;
    width: 100%;
    height: 60px;
    background: var(--bg-alt);
    transform: skewY(-1.5deg);
    z-index: -1;
}

.resume-layout {
    display: grid;
    grid-template-columns: 380px 1fr;
    gap: 32px;
    align-items: start;
}

.resume-card {
    background: var(--bg);
    border: 2.5px solid var(--dark);
    border-radius: var(--radius);
    padding: 28px;
    margin-bottom: 24px;
    box-shadow: 4px 4px 0 var(--dark);
}

.resume-card:hover {
    box-shadow: 6px 6px 0 var(--dark);
}

.resume-card-title {
    font-family: var(--font-display);
    font-size: 1.4rem;
    letter-spacing: 1px;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px dashed var(--gray-light);
    color: var(--dark);
}

/* Skills */
.skills-grid {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.skill-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 6px;
}

.skill-name {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--dark);
}

.skill-level {
    font-size: 0.8rem;
    font-family: var(--font-display);
    color: var(--gray);
}

.skill-bar {
    height: 10px;
    background: var(--bg-alt);
    border: 1.5px solid var(--dark);
    border-radius: 6px;
    overflow: hidden;
}

.skill-fill {
    height: 100%;
    width: 0;
    background: var(--color);
    border-radius: 4px;
    transition: width 1.2s ease;
}

.skill-fill.animated {
    width: var(--width);
}

/* Certifications */
.cert-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.cert-item {
    display: flex;
    align-items: center;
    gap: 12px;
}

.cert-icon {
    font-size: 1.2rem;
    color: var(--color);
    flex-shrink: 0;
}

.cert-name {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--dark-light);
}

/* Contact */
.contact-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    border-radius: 8px;
    transition: background 0.2s;
    font-size: 0.9rem;
    color: var(--dark-light);
}

.contact-item:hover {
    background: var(--bg-alt);
    color: var(--blue);
}

.contact-icon {
    font-size: 1.1rem;
}

/* Timeline */
.timeline {
    position: relative;
    padding-left: 28px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 8px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--gray-light);
}

.timeline-item {
    position: relative;
    margin-bottom: 28px;
}

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

.timeline-dot {
    position: absolute;
    left: -24px;
    top: 4px;
    width: 14px;
    height: 14px;
    background: var(--color);
    border: 2px solid var(--dark);
    border-radius: 50%;
    z-index: 1;
}

.timeline-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 4px;
    flex-wrap: wrap;
    gap: 8px;
}

.timeline-header h4 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--dark);
}

.timeline-date {
    font-family: var(--font-display);
    font-size: 0.85rem;
    color: var(--blue);
    letter-spacing: 0.5px;
}

.timeline-company {
    font-size: 0.9rem;
    color: var(--gray);
    margin-bottom: 6px;
    font-weight: 500;
}

.timeline-desc {
    font-size: 0.88rem;
    color: var(--text-light);
    line-height: 1.6;
}

.resume-download {
    text-align: center;
    margin-top: 12px;
}

/* --- Footer --- */
.footer {
    background: var(--dark);
    color: #fff;
    padding: 48px 0;
    border-top: 4px solid var(--dark);
    position: relative;
    z-index: 1;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--blue), var(--red), var(--yellow), var(--green));
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.footer-logo {
    font-family: var(--font-display);
    font-size: 1.6rem;
    letter-spacing: 2px;
}

.footer-text {
    color: rgba(255,255,255,0.6);
    font-size: 0.9rem;
}

.footer-links {
    display: flex;
    gap: 20px;
}

.footer-links a {
    color: rgba(255,255,255,0.6);
    transition: color 0.2s, transform 0.2s;
    display: flex;
}

.footer-links a:hover {
    color: var(--yellow);
    transform: translateY(-3px);
}

.footer-copyright {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.35);
    margin-top: 8px;
}

/* --- Scroll Animations --- */
.blog-card,
.pub-item,
.artwork-item,
.resume-card,
.timeline-item {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.blog-card.visible,
.pub-item.visible,
.artwork-item.visible,
.resume-card.visible,
.timeline-item.visible {
    opacity: 1;
    transform: translateY(0);
}

.pub-item.visible {
    transform: translateX(0);
}

/* Stagger animation delays for grid items */
.blog-card:nth-child(1) { transition-delay: 0s; }
.blog-card:nth-child(2) { transition-delay: 0.1s; }
.blog-card:nth-child(3) { transition-delay: 0.2s; }
.blog-card:nth-child(4) { transition-delay: 0.3s; }

.artwork-item:nth-child(1) { transition-delay: 0s; }
.artwork-item:nth-child(2) { transition-delay: 0.1s; }
.artwork-item:nth-child(3) { transition-delay: 0.15s; }
.artwork-item:nth-child(4) { transition-delay: 0.2s; }
.artwork-item:nth-child(5) { transition-delay: 0.25s; }

/* --- Mobile Responsive --- */
@media (max-width: 900px) {
    .resume-layout {
        grid-template-columns: 1fr;
    }

    .hero-container {
        flex-direction: column;
        text-align: center;
    }

    .hero-content {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .hero-desc {
        text-align: center;
    }

    .hero-cta {
        justify-content: center;
    }

    .hero-visual {
        flex: none;
    }

    .avatar-panel {
        width: 220px;
        height: 220px;
    }

    .avatar-placeholder {
        width: 160px;
        height: 160px;
    }
}

@media (max-width: 768px) {
    :root {
        --nav-height: 56px;
    }

    .nav-links {
        position: fixed;
        top: var(--nav-height);
        left: 0;
        width: 100%;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(12px);
        flex-direction: column;
        align-items: center;
        padding: 24px;
        gap: 20px;
        border-bottom: 2px solid var(--dark);
        transform: translateY(-120%);
        transition: transform 0.3s ease;
    }

    .nav-links.open {
        transform: translateY(0);
    }

    .menu-toggle {
        display: flex;
    }

    .section-title {
        font-size: 2rem;
    }

    .hero-name {
        font-size: clamp(3rem, 15vw, 5rem);
    }

    .hero-titles {
        justify-content: center;
    }

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

    .artwork-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    }

    .section {
        padding: 60px 0;
    }

    .blog-filters {
        gap: 8px;
    }

    .filter-btn {
        padding: 6px 14px;
        font-size: 0.8rem;
    }
}

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

    .hero-name {
        font-size: 3.5rem;
    }

    .artwork-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .resume-card {
        padding: 20px;
    }

    .btn {
        padding: 10px 20px;
        font-size: 1rem;
    }
}

/* --- Print Styles --- */
@media print {
    .navbar, .speed-lines, .geo-shapes, .scroll-hint, .footer { display: none; }
    .section { padding: 20px 0; }
    .blog-card, .artwork-item, .resume-card, .timeline-item {
        opacity: 1;
        transform: none;
    }
}
