/* ========================================
   CSS Variables & Reset
   ======================================== */
:root {
    --bg-primary: #0a0f1a;
    --bg-secondary: #0f1626;
    --bg-card: #141c2f;
    --bg-card-hover: #1a2440;
    --text-primary: #e8edf5;
    --text-secondary: #8892a8;
    --text-dim: #4a5568;
    --accent: #22d68a;
    --accent-dim: rgba(34, 214, 138, 0.15);
    --accent-glow: rgba(34, 214, 138, 0.3);
    --border: rgba(255, 255, 255, 0.06);
    --border-hover: rgba(255, 255, 255, 0.12);
    --featured-border: rgba(34, 214, 138, 0.25);
    --radius: 12px;
    --radius-sm: 8px;
    --font-body: -apple-system, BlinkMacSystemFont, 'Microsoft YaHei', 'PingFang SC', 'Helvetica Neue', sans-serif;
    --font-mono: Consolas, 'Courier New', 'Microsoft YaHei', monospace;
    --container: 1080px;
}

*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: var(--font-body);
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.7;
    font-size: 15px;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

/* ========================================
   Grain Overlay
   ======================================== */
.grain {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    pointer-events: none;
    z-index: 9999;
    opacity: 0.03;
    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' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
    background-repeat: repeat;
    background-size: 256px;
}

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

.mono {
    font-family: var(--font-mono);
    font-size: 0.85em;
    letter-spacing: 0.02em;
}

.dim { color: var(--text-dim); }
.accent { color: var(--accent); }

a {
    color: var(--accent);
    text-decoration: none;
    transition: opacity 0.2s;
}
a:hover { opacity: 0.8; }

code {
    font-family: var(--font-mono);
    font-size: 0.85em;
    background: var(--accent-dim);
    color: var(--accent);
    padding: 2px 7px;
    border-radius: 4px;
}

/* ========================================
   Navigation
   ======================================== */
.nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    background: rgba(10, 15, 26, 0.75);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    transition: background 0.3s, box-shadow 0.3s;
}

.nav.scrolled {
    background: rgba(10, 15, 26, 0.92);
    box-shadow: 0 4px 30px rgba(0,0,0,0.3);
}

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

.nav-logo {
    font-family: var(--font-mono);
    font-weight: 700;
    font-size: 1.15rem;
    color: var(--text-primary) !important;
    letter-spacing: -0.02em;
}
.nav-logo:hover { opacity: 1; }

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

.nav-links a {
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.2s;
    position: relative;
}
.nav-links a:hover {
    color: var(--text-primary);
    opacity: 1;
}
.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0; right: 0;
    height: 2px;
    background: var(--accent);
    transform: scaleX(0);
    transition: transform 0.3s;
    border-radius: 1px;
}
.nav-links a:hover::after {
    transform: scaleX(1);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}
.nav-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--text-secondary);
    border-radius: 1px;
    transition: 0.3s;
}

.nav-mobile {
    display: none;
    flex-direction: column;
    padding: 12px 24px 20px;
    gap: 12px;
    border-top: 1px solid var(--border);
}
.nav-mobile a {
    color: var(--text-secondary);
    font-size: 0.95rem;
    font-weight: 500;
    padding: 8px 0;
}
.nav-mobile.open { display: flex; }

/* ========================================
   Hero
   ======================================== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 120px 0 80px;
    overflow: hidden;
}

.hero-particles {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.hero-bg-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(34, 214, 138, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(34, 214, 138, 0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, black 20%, transparent 70%);
    -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, black 20%, transparent 70%);
    z-index: 0;
}

/* Glow orbs for section backgrounds */
.section { position: relative; overflow: hidden; }

.section::before {
    content: '';
    position: absolute;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0;
    pointer-events: none;
    z-index: 0;
}

/* Section watermark icons (::after) */
.section::after {
    position: absolute;
    font-family: var(--font-mono);
    font-weight: 700;
    pointer-events: none;
    z-index: 0;
    opacity: 0.025;
    line-height: 1;
    white-space: nowrap;
}

/* === Skills Section === */
#skills {
    background:
        linear-gradient(160deg, rgba(34, 214, 138, 0.03) 0%, transparent 40%),
        var(--bg-primary);
    border-top: 1px solid var(--border);
}

#skills::before {
    background: radial-gradient(circle, rgba(34, 214, 138, 0.1), transparent 70%);
    top: -150px;
    right: -200px;
    opacity: 1;
}

#skills::after {
    content: '{ }  < / >  fn()  =>  class  import  new  public  static  void  return  interface  extends';
    bottom: 30px;
    right: -40px;
    font-size: 6rem;
    transform: rotate(-5deg);
    opacity: 0.02;
    max-width: 120%;
}

/* === Experience Section === */
#experience {
    background:
        linear-gradient(200deg, rgba(56, 120, 255, 0.03) 0%, transparent 40%),
        var(--bg-secondary);
    border-top: 1px solid var(--border);
}

#experience::before {
    background: radial-gradient(circle, rgba(56, 120, 255, 0.08), transparent 70%);
    bottom: -100px;
    left: -200px;
    opacity: 1;
}

#experience::after {
    content: '2018  ——  2019  ——  2020  ——  2023  ——  2026';
    top: 60px;
    right: -20px;
    font-size: 5rem;
    opacity: 0.02;
    letter-spacing: 0.1em;
}

/* === Projects Section === */
#projects {
    background:
        linear-gradient(135deg, rgba(245, 158, 11, 0.02) 0%, transparent 30%),
        linear-gradient(315deg, rgba(34, 214, 138, 0.02) 0%, transparent 30%),
        var(--bg-primary);
    border-top: 1px solid var(--border);
}

#projects::before {
    background: radial-gradient(circle, rgba(245, 158, 11, 0.06), transparent 70%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 1;
}

#projects::after {
    content: 'Spring Boot  ·  Redis  ·  MySQL  ·  Docker  ·  WebSocket  ·  React  ·  TypeScript';
    bottom: 40px;
    left: -20px;
    font-size: 4.5rem;
    opacity: 0.02;
    transform: rotate(-3deg);
    max-width: 130%;
}

/* === About Section === */
#about {
    background:
        linear-gradient(170deg, rgba(139, 92, 246, 0.04) 0%, transparent 35%),
        var(--bg-secondary);
    border-top: 1px solid var(--border);
}

#about::before {
    background: radial-gradient(circle, rgba(139, 92, 246, 0.08), transparent 70%);
    top: -100px;
    right: -150px;
    opacity: 1;
}

#about::after {
    content: '> _ 全流程交付  ·  务实  ·  持续学习';
    top: 50%;
    right: 30px;
    font-size: 5rem;
    opacity: 0.02;
    transform: translateY(-50%) rotate(-8deg);
}

/* Decorative section dividers */
.section-divider {
    height: 4px;
    position: relative;
    overflow: hidden;
}

.section-divider::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg,
        transparent 0%,
        var(--accent) 20%,
        rgba(56, 120, 255, 0.6) 50%,
        var(--accent) 80%,
        transparent 100%
    );
    opacity: 0.3;
}

.section > .container { position: relative; z-index: 1; }

.hero-content {
    position: relative;
}

.hero-label {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 16px;
    background: var(--accent-dim);
    border: 1px solid rgba(34, 214, 138, 0.2);
    border-radius: 100px;
    margin-bottom: 32px;
    animation: fadeUp 0.8s ease both;
}

.terminal-cursor {
    width: 8px;
    height: 16px;
    background: var(--accent);
    border-radius: 1px;
    animation: blink 1s step-end infinite;
}

@keyframes blink {
    50% { opacity: 0; }
}

.hero-name {
    font-size: clamp(3.5rem, 10vw, 7rem);
    font-weight: 900;
    line-height: 1.05;
    letter-spacing: -0.03em;
    margin-bottom: 20px;
    animation: fadeUp 0.8s 0.1s ease both;
}

.hero-name .line {
    display: block;
    background: linear-gradient(135deg, var(--text-primary) 0%, var(--text-secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.15rem;
    color: var(--text-secondary);
    margin-bottom: 36px;
    font-weight: 400;
    animation: fadeUp 0.8s 0.2s ease both;
}

.hero-contacts {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
    animation: fadeUp 0.8s 0.3s ease both;
}

.contact-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 100px;
    font-size: 0.85rem;
    color: var(--text-secondary) !important;
    transition: border-color 0.2s, color 0.2s;
    white-space: nowrap;
}
.contact-chip:hover {
    border-color: var(--border-hover);
    color: var(--text-primary) !important;
    opacity: 1;
}
.contact-chip svg { flex-shrink: 0; opacity: 0.6; }

.hero-education {
    animation: fadeUp 0.8s 0.4s ease both;
    margin-top: 8px;
}

.hero-scroll-hint {
    position: absolute;
    bottom: 40px;
    right: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: var(--text-dim);
    animation: fadeUp 0.8s 0.6s ease both;
}

.scroll-line {
    width: 1px;
    height: 48px;
    background: linear-gradient(to bottom, var(--accent), transparent);
    animation: scrollPulse 2s ease infinite;
}

@keyframes scrollPulse {
    0%, 100% { opacity: 0.3; transform: scaleY(1); }
    50% { opacity: 1; transform: scaleY(1.2); }
}

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

/* ========================================
   Sections
   ======================================== */
.section {
    padding: 100px 0;
    position: relative;
}

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

/* Per-section accent tints on section numbers */
#skills .section-number { color: var(--accent); }
#experience .section-number { color: #3878ff; }
#projects .section-number { color: #f59e0b; }
#about .section-number { color: #8b5cf6; }

#experience .section-line {
    background: linear-gradient(to right, rgba(56, 120, 255, 0.2), transparent);
}
#projects .section-line {
    background: linear-gradient(to right, rgba(245, 158, 11, 0.2), transparent);
}
#about .section-line {
    background: linear-gradient(to right, rgba(139, 92, 246, 0.2), transparent);
}

.section-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 56px;
}

.section-number {
    color: var(--accent);
    font-size: 0.9rem;
    font-weight: 600;
}

.section-title {
    font-size: 1.8rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    white-space: nowrap;
}

.section-line {
    flex: 1;
    height: 1px;
    background: linear-gradient(to right, var(--border-hover), transparent);
}

/* ========================================
   Skills Grid
   ======================================== */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.skill-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px;
    transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
    opacity: 0;
    animation: fadeUp 0.6s ease both;
    animation-delay: calc(var(--i) * 0.1s);
}

.skill-card:hover {
    transform: translateY(-4px);
    border-color: var(--border-hover);
    box-shadow: 0 12px 40px rgba(0,0,0,0.3);
}

.skill-card.highlight {
    border-color: var(--featured-border);
    background: linear-gradient(135deg, var(--bg-card) 0%, rgba(34, 214, 138, 0.05) 100%);
    grid-column: span 2;
}

.skill-card.highlight:hover {
    border-color: var(--accent);
    box-shadow: 0 12px 40px var(--accent-glow);
}

.skill-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-dim);
    border-radius: var(--radius-sm);
    margin-bottom: 18px;
    color: var(--accent);
}

.skill-card h3 {
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: 10px;
    letter-spacing: -0.01em;
}

.skill-card p {
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 16px;
}

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

.skill-tags span {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    padding: 4px 10px;
    background: rgba(255,255,255,0.04);
    border: 1px solid var(--border);
    border-radius: 100px;
    color: var(--text-dim);
    letter-spacing: 0.02em;
}

.skill-card.highlight .skill-tags span {
    border-color: rgba(34, 214, 138, 0.15);
    color: var(--accent);
    background: rgba(34, 214, 138, 0.06);
}

/* ========================================
   Timeline
   ======================================== */
.timeline {
    position: relative;
}

.timeline-item {
    display: flex;
    gap: 28px;
    opacity: 0;
    animation: fadeUp 0.6s ease both;
    animation-delay: calc(var(--i) * 0.15s);
}

.timeline-marker {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex-shrink: 0;
    padding-top: 6px;
}

.marker-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid var(--text-dim);
    background: var(--bg-secondary);
    flex-shrink: 0;
    position: relative;
}

.marker-dot.active {
    border-color: #3878ff;
    background: #3878ff;
    box-shadow: 0 0 12px rgba(56, 120, 255, 0.4);
}

.marker-line {
    width: 1px;
    flex: 1;
    background: var(--border);
    margin-top: 8px;
}

.timeline-content {
    padding-bottom: 48px;
    flex: 1;
    min-width: 0;
}

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

.timeline-header h3 {
    font-size: 1.15rem;
    font-weight: 600;
    letter-spacing: -0.01em;
}

.company-location {
    font-size: 0.85rem;
    color: var(--text-dim);
}

.timeline-date {
    color: #3878ff;
    font-size: 0.8rem;
    white-space: nowrap;
    flex-shrink: 0;
}

.timeline-role {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-bottom: 12px;
    font-weight: 500;
}

.timeline-note {
    font-size: 0.88rem;
    color: var(--text-dim);
    margin-bottom: 20px;
    line-height: 1.7;
    padding-left: 12px;
    border-left: 2px solid var(--border);
}

.sub-section {
    margin-top: 20px;
}

.sub-section h4 {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.sub-section ul, .compact-list {
    list-style: none;
    padding: 0;
}

.sub-section li, .compact-list li {
    position: relative;
    padding-left: 18px;
    font-size: 0.88rem;
    color: var(--text-secondary);
    margin-bottom: 8px;
    line-height: 1.7;
}

.sub-section li::before, .compact-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 10px;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--accent);
    opacity: 0.6;
}

.sub-section li a, .compact-list li a {
    color: var(--accent);
    text-decoration: underline;
    text-underline-offset: 2px;
}

/* ========================================
   Projects
   ======================================== */
.projects-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.project-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 32px;
    transition: border-color 0.3s, box-shadow 0.3s;
    position: relative;
    overflow: hidden;
}

.project-card:hover {
    border-color: var(--border-hover);
    box-shadow: 0 8px 30px rgba(0,0,0,0.2);
}

.project-card.featured {
    border-color: var(--featured-border);
    background: linear-gradient(135deg, var(--bg-card) 0%, rgba(34, 214, 138, 0.04) 100%);
}
.project-card.featured::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
}
.project-card.featured:hover {
    border-color: var(--accent);
    box-shadow: 0 8px 40px var(--accent-glow);
}

.project-badge {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: 4px 12px;
    background: rgba(245, 158, 11, 0.12);
    color: #f59e0b;
    border-radius: 100px;
    display: inline-block;
    margin-bottom: 16px;
}

.project-title-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin-bottom: 14px;
    flex-wrap: wrap;
}

.project-title-row h3 {
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 16px;
}

.project-tech span {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    padding: 4px 10px;
    background: rgba(255,255,255,0.04);
    border: 1px solid var(--border);
    border-radius: 100px;
    color: var(--text-dim);
}

.project-desc {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 18px;
    line-height: 1.7;
}

/* ---- Metric cards row ---- */
.metric-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin-bottom: 22px;
}

.metric-card {
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 14px 12px;
    text-align: center;
    transition: border-color 0.3s, transform 0.3s;
}

.metric-card:hover {
    border-color: rgba(245, 158, 11, 0.3);
    transform: translateY(-2px);
}

.metric-value {
    display: block;
    font-family: var(--font-mono);
    font-size: 1.3rem;
    font-weight: 700;
    color: #f59e0b;
    line-height: 1.2;
    margin-bottom: 4px;
}

.metric-label {
    display: block;
    font-size: 0.72rem;
    color: var(--text-dim);
    letter-spacing: 0.02em;
}

.metric-card.accent-card {
    border-color: rgba(34, 214, 138, 0.2);
    background: rgba(34, 214, 138, 0.04);
}

.metric-card.accent-card .metric-value {
    color: var(--accent);
    font-size: 1rem;
}

/* ---- Category tags on list items ---- */
.tag {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 0.65rem;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 4px;
    margin-right: 6px;
    vertical-align: middle;
    letter-spacing: 0.03em;
    position: relative;
    top: -1px;
}

.tag-perf {
    background: rgba(239, 68, 68, 0.12);
    color: #f87171;
}

.tag-arch {
    background: rgba(56, 120, 255, 0.12);
    color: #60a5fa;
}

.tag-security {
    background: rgba(34, 214, 138, 0.12);
    color: #22d68a;
}

.tag-data {
    background: rgba(245, 158, 11, 0.12);
    color: #fbbf24;
}

.tag-deploy {
    background: rgba(139, 92, 246, 0.12);
    color: #a78bfa;
}

.tag-devops {
    background: rgba(6, 182, 212, 0.12);
    color: #22d3ee;
}

.tag-qa {
    background: rgba(236, 72, 153, 0.12);
    color: #f472b6;
}

.project-highlights {
    list-style: none;
    padding: 0;
    margin-bottom: 20px;
}

.project-highlights li {
    position: relative;
    padding-left: 8px;
    font-size: 0.88rem;
    color: var(--text-secondary);
    margin-bottom: 10px;
    line-height: 1.7;
    border-left: 2px solid var(--border);
    padding: 4px 0 4px 14px;
    transition: border-color 0.2s;
}

.project-highlights li:hover {
    border-left-color: rgba(245, 158, 11, 0.4);
}

.project-highlights li b {
    color: var(--text-primary);
    font-weight: 600;
}

.project-highlights li strong {
    color: var(--text-primary);
    font-weight: 600;
}

.project-links {
    display: flex;
    gap: 12px;
    padding-top: 4px;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: var(--radius-sm);
    font-size: 0.88rem;
    font-weight: 600;
    transition: all 0.2s;
    cursor: pointer;
    border: none;
    font-family: var(--font-body);
}

.btn-primary {
    background: var(--accent);
    color: var(--bg-primary) !important;
}
.btn-primary:hover {
    opacity: 1;
    box-shadow: 0 4px 20px var(--accent-glow);
    transform: translateY(-1px);
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--border-hover);
    color: var(--text-secondary) !important;
}
.btn-outline:hover {
    opacity: 1;
    border-color: var(--accent);
    color: var(--accent) !important;
}

/* ========================================
   About Grid
   ======================================== */
.about-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.about-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 32px;
    text-align: center;
    transition: transform 0.3s, border-color 0.3s;
    opacity: 0;
    animation: fadeUp 0.6s ease both;
    animation-delay: calc(var(--i) * 0.1s);
}

.about-card:hover {
    transform: translateY(-4px);
    border-color: var(--border-hover);
}

.about-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(139, 92, 246, 0.12);
    border-radius: 50%;
    margin: 0 auto 18px;
    color: #8b5cf6;
}

.about-card h3 {
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.about-card p {
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* ========================================
   Footer
   ======================================== */
.footer {
    padding: 32px 0;
    border-top: 1px solid var(--border);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    color: var(--text-dim);
}

/* ========================================
   Responsive
   ======================================== */
@media (max-width: 768px) {
    .nav-links { display: none; }
    .nav-toggle { display: flex; }

    .hero {
        min-height: auto;
        padding: 120px 0 60px;
    }

    .hero-name {
        font-size: clamp(2.5rem, 12vw, 4rem);
    }

    .hero-scroll-hint { display: none; }

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

    .skill-card.highlight {
        grid-column: span 1;
    }

    .section { padding: 64px 0; }
    .section-header { margin-bottom: 36px; }

    .timeline-item { gap: 18px; }

    .timeline-header {
        flex-direction: column;
        gap: 4px;
    }

    .project-title-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }

    .project-card { padding: 24px; }

    .metric-row {
        grid-template-columns: repeat(2, 1fr);
    }

    .project-links {
        flex-direction: column;
    }

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

    .footer-content {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .hero-contacts {
        flex-direction: column;
    }

    .contact-chip {
        justify-content: center;
    }
}
