/* =========================================
   RESUME — Ultra-Premium Design System
   ========================================= */

/* ---- YekanBakh Font Family ---- */
@font-face { font-family:'YekanBakh'; src:url('../fonts/woff2/YekanBakh-Thin.woff2') format('woff2'), url('../fonts/woff/YekanBakh-Thin.woff') format('woff'); font-weight:100; font-style:normal; font-display:swap; }
@font-face { font-family:'YekanBakh'; src:url('../fonts/woff2/YekanBakh-Light.woff2') format('woff2'), url('../fonts/woff/YekanBakh-Light.woff') format('woff'); font-weight:300; font-style:normal; font-display:swap; }
@font-face { font-family:'YekanBakh'; src:url('../fonts/woff2/YekanBakh-Regular.woff2') format('woff2'), url('../fonts/woff/YekanBakh-Regular.woff') format('woff'); font-weight:400; font-style:normal; font-display:swap; }
@font-face { font-family:'YekanBakh'; src:url('../fonts/woff2/YekanBakh-SemiBold.woff2') format('woff2'), url('../fonts/woff/YekanBakh-SemiBold.woff') format('woff'); font-weight:600; font-style:normal; font-display:swap; }
@font-face { font-family:'YekanBakh'; src:url('../fonts/woff2/YekanBakh-Bold.woff2') format('woff2'), url('../fonts/woff/YekanBakh-Bold.woff') format('woff'); font-weight:700; font-style:normal; font-display:swap; }
@font-face { font-family:'YekanBakh'; src:url('../fonts/woff2/YekanBakh-ExtraBold.woff2') format('woff2'), url('../fonts/woff/YekanBakh-ExtraBold.woff') format('woff'); font-weight:800; font-style:normal; font-display:swap; }
@font-face { font-family:'YekanBakh'; src:url('../fonts/woff2/YekanBakh-Black.woff2') format('woff2'), url('../fonts/woff/YekanBakh-Black.woff') format('woff'); font-weight:900; font-style:normal; font-display:swap; }
@font-face { font-family:'YekanBakh'; src:url('../fonts/woff2/YekanBakh-ExtraBlack.woff2') format('woff2'), url('../fonts/woff/YekanBakh-ExtraBlack.woff') format('woff'); font-weight:950; font-style:normal; font-display:swap; }

/* ---- CSS Variables (Light) ---- */
:root {
    --bg-primary: #fafbff;
    --bg-secondary: #ffffff;
    --bg-card: #ffffff;
    --bg-glass: rgba(255,255,255,0.65);
    --bg-glass-strong: rgba(255,255,255,0.85);
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #94a3b8;
    --accent-1: #7c3aed;
    --accent-2: #a78bfa;
    --accent-3: #ec4899;
    --accent-4: #06b6d4;
    --accent-gradient: linear-gradient(135deg, #7c3aed, #a78bfa, #ec4899);
    --accent-gradient-soft: linear-gradient(135deg, rgba(124,58,237,0.08), rgba(236,72,153,0.08));
    --accent-gradient-2: linear-gradient(135deg, #06b6d4, #3b82f6);
    --border-color: rgba(124,58,237,0.1);
    --border-hover: rgba(124,58,237,0.3);
    --shadow-xs: 0 1px 3px rgba(0,0,0,0.03);
    --shadow-sm: 0 4px 12px rgba(0,0,0,0.04);
    --shadow-md: 0 12px 40px rgba(0,0,0,0.06);
    --shadow-lg: 0 25px 80px rgba(0,0,0,0.08);
    --shadow-glow: 0 0 50px rgba(124,58,237,0.12);
    --shadow-glow-strong: 0 0 80px rgba(124,58,237,0.2);
    --skill-bg: rgba(124,58,237,0.06);
    --timeline-line: rgba(124,58,237,0.15);
    --radius: 24px;
    --radius-sm: 14px;
    --radius-xs: 10px;
    --transition: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    --font-body: 'YekanBakh', 'Inter', system-ui, -apple-system, sans-serif;
    --font-en: 'Inter', system-ui, -apple-system, sans-serif;
}

/* ---- Dark Theme ---- */
[data-theme="dark"] {
    --bg-primary: #070714;
    --bg-secondary: #0e0e24;
    --bg-card: rgba(20,20,50,0.6);
    --bg-glass: rgba(14,14,36,0.7);
    --bg-glass-strong: rgba(14,14,36,0.9);
    --text-primary: #f1f5f9;
    --text-secondary: #cbd5e1;
    --text-muted: #64748b;
    --accent-1: #a78bfa;
    --accent-2: #c4b5fd;
    --accent-3: #f472b6;
    --accent-4: #22d3ee;
    --accent-gradient: linear-gradient(135deg, #a78bfa, #c084fc, #f472b6);
    --accent-gradient-soft: linear-gradient(135deg, rgba(167,139,250,0.1), rgba(244,114,182,0.1));
    --border-color: rgba(167,139,250,0.12);
    --border-hover: rgba(167,139,250,0.35);
    --shadow-sm: 0 4px 12px rgba(0,0,0,0.2);
    --shadow-md: 0 12px 40px rgba(0,0,0,0.25);
    --shadow-lg: 0 25px 80px rgba(0,0,0,0.35);
    --shadow-glow: 0 0 50px rgba(167,139,250,0.15);
    --shadow-glow-strong: 0 0 80px rgba(167,139,250,0.25);
    --skill-bg: rgba(167,139,250,0.08);
    --timeline-line: rgba(167,139,250,0.2);
}

/* ---- Reset ---- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: clip; }

body.resume-page {
    font-family: var(--font-body);
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.8;
    overflow-x: clip;
    width: 100%;
    min-width: 0;
    transition: background var(--transition), color var(--transition);
    -webkit-font-smoothing: antialiased;
}

body.resume-page.en { direction: ltr; text-align: left; font-family: var(--font-en); }

::selection { background: rgba(124,58,237,0.25); color: var(--text-primary); }

/* ---- Subtle Noise Overlay ---- */
body.resume-page::before {
    content: '';
    position: fixed;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.7' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.03'/%3E%3C/svg%3E");
    background-size: 128px;
    pointer-events: none;
    z-index: 0;
}

/* ---- Mesh Gradient Background ---- */
.bg-particles {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
    width: 100%;
    max-width: 100vw;
}

.bg-particles .orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.22;
    will-change: transform;
}

.bg-particles .orb:nth-child(1) {
    width: 600px; height: 600px;
    background: var(--accent-1);
    top: -200px; left: -150px;
    animation: meshFloat1 30s ease-in-out infinite;
}
.bg-particles .orb:nth-child(2) {
    width: 500px; height: 500px;
    background: var(--accent-3);
    top: 40%; right: -200px;
    animation: meshFloat2 25s ease-in-out infinite;
}
.bg-particles .orb:nth-child(3) {
    width: 450px; height: 450px;
    background: var(--accent-4);
    bottom: -150px; left: 25%;
    animation: meshFloat3 28s ease-in-out infinite;
}

@keyframes meshFloat1 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(120px, -80px) scale(1.15); }
    66% { transform: translate(-60px, 100px) scale(0.9); }
}
@keyframes meshFloat2 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(-100px, 70px) scale(1.1); }
    66% { transform: translate(80px, -60px) scale(0.95); }
}
@keyframes meshFloat3 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(70px, -90px) scale(1.08); }
    66% { transform: translate(-90px, 40px) scale(0.92); }
}

/* ---- Cursor Glow ---- */
.cursor-glow {
    position: fixed;
    width: 400px; height: 400px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(124,58,237,0.06) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
    transform: translate(-50%, -50%);
    transition: opacity 0.3s;
    will-change: left, top;
}
[data-theme="dark"] .cursor-glow {
    background: radial-gradient(circle, rgba(167,139,250,0.08) 0%, transparent 70%);
}

/* ==================================
   TOP BAR — Floating Pill
   ================================== */
.resume-topbar {
    position: fixed;
    top: 16px; left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    padding: 10px 24px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    backdrop-filter: blur(24px) saturate(1.8);
    -webkit-backdrop-filter: blur(24px) saturate(1.8);
    background: var(--bg-glass);
    border: 1px solid var(--border-color);
    border-radius: 60px;
    transition: all var(--transition);
    max-width: 92vw;
}

.resume-topbar.scrolled {
    top: 10px;
    box-shadow: var(--shadow-md);
    background: var(--bg-glass-strong);
}

.topbar-nav {
    display: flex;
    gap: 2px;
}

.topbar-nav a {
    text-decoration: none;
    color: var(--text-secondary);
    padding: 7px 16px;
    border-radius: 50px;
    font-size: 0.82rem;
    font-weight: 600;
    transition: all var(--transition-fast);
    white-space: nowrap;
}

.topbar-nav a:hover {
    color: var(--accent-1);
    background: var(--skill-bg);
}

.topbar-nav a.active {
    color: #fff;
    background: var(--accent-gradient);
    box-shadow: 0 4px 15px rgba(124,58,237,0.3);
}

.topbar-divider {
    width: 1px;
    height: 24px;
    background: var(--border-color);
    margin: 0 4px;
}

.topbar-controls {
    display: flex;
    gap: 6px;
    align-items: center;
}

.topbar-btn {
    border: none;
    background: var(--skill-bg);
    color: var(--text-secondary);
    width: 36px; height: 36px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    transition: all var(--transition-fast);
}

.topbar-btn:hover {
    background: var(--accent-1);
    color: #fff;
    transform: scale(1.1);
    box-shadow: 0 4px 20px rgba(124,58,237,0.35);
}

/* ==================================
   CONTENT
   ================================== */
.resume-wrapper {
    position: relative;
    z-index: 1;
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ==================================
   HERO
   ================================== */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 120px 0 80px;
}

.hero-card {
    background: var(--bg-card);
    border-radius: 32px;
    padding: 70px 60px;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
    width: 100%;
    backdrop-filter: blur(10px);
}

[data-theme="dark"] .hero-card { backdrop-filter: blur(20px); }

.hero-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
    background: var(--accent-gradient);
}

.hero-card::after {
    content: '';
    position: absolute;
    top: -50%; right: -30%;
    width: min(600px, 100vw); height: min(600px, 100vw);
    background: radial-gradient(circle, rgba(124,58,237,0.04) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

[data-theme="dark"] .hero-card::after {
    background: radial-gradient(circle, rgba(167,139,250,0.06) 0%, transparent 70%);
}

.hero-content {
    display: flex;
    align-items: center;
    gap: 55px;
    position: relative;
    z-index: 1;
}

/* ---- Avatar ---- */
.hero-avatar { position: relative; flex-shrink: 0; }

.avatar-ring {
    width: 210px; height: 210px;
    border-radius: 50%;
    background: var(--accent-gradient);
    padding: 5px;
    position: relative;
    animation: avatarBreath 4s ease-in-out infinite;
}

.avatar-ring::before {
    content: '';
    position: absolute;
    inset: -8px;
    border-radius: 50%;
    border: 2px dashed var(--accent-2);
    opacity: 0.3;
    animation: spinSlow 20s linear infinite;
}

@keyframes spinSlow { to { transform: rotate(360deg); } }

@keyframes avatarBreath {
    0%, 100% { box-shadow: 0 0 0 0 rgba(124,58,237,0.2), 0 0 40px rgba(124,58,237,0.1); }
    50% { box-shadow: 0 0 0 16px rgba(124,58,237,0), 0 0 60px rgba(124,58,237,0.15); }
}

.avatar-inner {
    width: 100%; height: 100%;
    border-radius: 50%;
    overflow: hidden;
    background: var(--bg-secondary);
}

.avatar-inner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    border-radius: 50%;
    transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.avatar-ring:hover .avatar-inner img {
    transform: scale(1.08);
}

.hero-status {
    position: absolute;
    bottom: 12px; right: 12px;
    width: 26px; height: 26px;
    background: #22c55e;
    border-radius: 50%;
    border: 4px solid var(--bg-secondary);
    box-shadow: 0 0 12px rgba(34,197,94,0.4);
    animation: statusPulse 2.5s infinite;
}

@keyframes statusPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(34,197,94,0.4); }
    50% { box-shadow: 0 0 0 8px rgba(34,197,94,0); }
}

/* ---- Hero Info ---- */
.hero-info { flex: 1; }

.hero-greeting {
    font-size: 1rem;
    color: var(--accent-1);
    font-weight: 700;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.wave {
    display: inline-block;
    animation: waveHand 2.5s ease-in-out infinite;
    transform-origin: 70% 70%;
    font-size: 1.5rem;
}

@keyframes waveHand {
    0%, 60%, 100% { transform: rotate(0deg); }
    10% { transform: rotate(14deg); }
    20% { transform: rotate(-8deg); }
    30% { transform: rotate(14deg); }
    40% { transform: rotate(-4deg); }
    50% { transform: rotate(10deg); }
}

.hero-info h1 {
    font-size: 3rem;
    font-weight: 900;
    line-height: 1.2;
    margin-bottom: 10px;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    background-size: 200% auto;
    animation: gradientShift 4s ease infinite;
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% center; }
    50% { background-position: 100% center; }
}

.hero-title {
    font-size: 1.3rem;
    color: var(--text-secondary);
    font-weight: 500;
    margin-bottom: 24px;
    min-height: 1.8em;
}

.typing-cursor {
    display: inline-block;
    width: 3px;
    height: 1.2em;
    background: var(--accent-1);
    margin-right: 4px;
    animation: cursorBlink 1s step-end infinite;
    vertical-align: middle;
    border-radius: 3px;
}

@keyframes cursorBlink { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }

.hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 28px;
}

.meta-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
    font-size: 0.86rem;
    font-weight: 500;
    padding: 6px 16px;
    background: var(--skill-bg);
    border-radius: 50px;
    border: 1px solid transparent;
    transition: all var(--transition-fast);
}

.meta-item:hover {
    border-color: var(--border-hover);
    background: var(--accent-gradient-soft);
}

.meta-item i { color: var(--accent-1); font-size: 0.95rem; }

.hero-socials {
    display: flex;
    gap: 12px;
}

.hero-socials a {
    width: 48px; height: 48px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--skill-bg);
    color: var(--text-secondary);
    font-size: 1.25rem;
    text-decoration: none;
    transition: all var(--transition-fast);
    border: 1px solid transparent;
}

.hero-socials a:hover {
    background: var(--accent-gradient);
    color: #fff;
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 10px 30px rgba(124,58,237,0.3);
}

/* ==================================
   SECTION COMMON
   ================================== */
.resume-section { padding: 100px 0; }

.section-header { text-align: center; margin-bottom: 60px; }

.section-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 22px;
    border-radius: 50px;
    background: var(--skill-bg);
    color: var(--accent-1);
    font-size: 0.82rem;
    font-weight: 700;
    margin-bottom: 18px;
    border: 1px solid var(--border-color);
}

.section-header h2 {
    font-size: 2.4rem;
    font-weight: 800;
    margin-bottom: 14px;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    background-size: 200% auto;
    animation: gradientShift 4s ease infinite;
}

.section-header p {
    color: var(--text-muted);
    max-width: 560px;
    margin: 0 auto;
    font-size: 1.05rem;
}

/* ==================================
   ABOUT — Stat Cards
   ================================== */
.about-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.about-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 36px 24px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-xs);
    transition: all var(--transition);
    text-align: center;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.about-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--accent-gradient-soft);
    opacity: 0;
    transition: opacity var(--transition);
}
.about-card:hover::before { opacity: 1; }
.about-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-md);
    border-color: var(--border-hover);
}
.about-card > * { position: relative; z-index: 1; }

.about-card .card-icon {
    width: 56px; height: 56px;
    border-radius: 16px;
    background: var(--accent-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.35rem;
    margin: 0 auto 16px;
    box-shadow: 0 8px 25px rgba(124,58,237,0.2);
}

.about-card .stat-number {
    font-size: 2rem;
    font-weight: 800;
    color: var(--accent-1);
    margin-bottom: 4px;
    font-variant-numeric: tabular-nums;
}

.about-card h3 {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.about-card p {
    color: var(--text-muted);
    font-size: 0.82rem;
}

/* ==================================
   SKILLS
   ================================== */
.skills-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.skill-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 28px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-xs);
    transition: all var(--transition);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.skill-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--accent-gradient);
    opacity: 0;
    transition: opacity var(--transition);
    z-index: 0;
}
.skill-card:hover::before { opacity: 0.04; }
.skill-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-glow);
    border-color: var(--border-hover);
}
.skill-card > * { position: relative; z-index: 1; }

.skill-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 18px;
}

.skill-icon {
    width: 50px; height: 50px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    font-weight: 800;
    color: #fff;
    flex-shrink: 0;
    box-shadow: 0 4px 15px rgba(0,0,0,0.12);
}

.skill-name { font-size: 1.05rem; font-weight: 700; }

.skill-bar-track {
    width: 100%;
    height: 6px;
    background: var(--skill-bg);
    border-radius: 10px;
    overflow: hidden;
}

.skill-bar-fill {
    height: 100%;
    border-radius: 10px;
    background: var(--accent-gradient);
    width: 0;
    transition: width 1.8s cubic-bezier(0.22, 1, 0.36, 1);
    position: relative;
}

.skill-bar-fill::after {
    content: '';
    position: absolute;
    top: 0; right: 0;
    width: 8px; height: 100%;
    background: #fff;
    border-radius: 50%;
    opacity: 0.5;
    filter: blur(2px);
}

.skill-level {
    text-align: left;
    font-size: 0.78rem;
    color: var(--text-muted);
    margin-top: 8px;
    font-weight: 600;
}
body.resume-page:not(.en) .skill-level { text-align: right; }

/* ==================================
   TIMELINE
   ================================== */
.timeline {
    position: relative;
    padding-right: 50px;
}
body.resume-page.en .timeline { padding-right: 0; padding-left: 50px; }

.timeline::before {
    content: '';
    position: absolute;
    right: 18px;
    top: 0; bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, var(--accent-1), var(--accent-3));
    opacity: 0.3;
    border-radius: 2px;
}
body.resume-page.en .timeline::before { right: auto; left: 18px; }

.timeline-item { position: relative; margin-bottom: 28px; }

.timeline-dot {
    position: absolute;
    right: -50px;
    top: 28px;
    width: 36px; height: 36px;
    border-radius: 50%;
    background: var(--bg-secondary);
    border: 3px solid var(--accent-1);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    transition: all var(--transition-fast);
}
body.resume-page.en .timeline-dot { right: auto; left: -50px; }

.timeline-dot i { font-size: 0.75rem; color: var(--accent-1); transition: color var(--transition-fast); }

.timeline-item:hover .timeline-dot {
    background: var(--accent-1);
    transform: scale(1.25);
    box-shadow: 0 0 24px rgba(124,58,237,0.4);
    border-color: var(--accent-1);
}
.timeline-item:hover .timeline-dot i { color: #fff; }

.timeline-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 32px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    transition: all var(--transition);
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.timeline-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 4px; height: 0;
    background: var(--accent-gradient);
    transition: height 0.6s ease;
    border-radius: 0 0 4px 4px;
}
body.resume-page.en .timeline-card::before { left: auto; right: 0; }
.timeline-card:hover::before { height: 100%; }

.timeline-card:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--border-hover);
    transform: translateX(-6px);
}
body.resume-page.en .timeline-card:hover { transform: translateX(6px); }

.tl-date {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--skill-bg);
    color: var(--accent-1);
    padding: 5px 16px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 700;
    margin-bottom: 14px;
}

.timeline-card h3 { font-size: 1.15rem; font-weight: 800; margin-bottom: 8px; }
.tl-org { color: var(--accent-2); font-size: 0.95rem; font-weight: 600; margin-bottom: 4px; }
.tl-location { color: var(--text-muted); font-size: 0.85rem; display: flex; align-items: center; gap: 6px; margin-bottom: 12px; }
.tl-desc { color: var(--text-secondary); font-size: 0.9rem; line-height: 1.7; }

.tl-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 16px;
}

.tl-tags span {
    background: var(--skill-bg);
    color: var(--accent-1);
    padding: 5px 14px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
    border: 1px solid transparent;
    transition: all var(--transition-fast);
}
.tl-tags span:hover {
    border-color: var(--border-hover);
    background: var(--accent-gradient-soft);
}

/* ==================================
   PROJECTS
   ================================== */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.project-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-xs);
    transition: all var(--transition);
    display: flex;
    flex-direction: column;
    backdrop-filter: blur(10px);
}

.project-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-glow-strong);
    border-color: var(--border-hover);
}

.project-cover {
    height: 6px;
    background: var(--accent-gradient);
    transition: height var(--transition);
}
.project-card:hover .project-cover { height: 8px; }

.project-body {
    padding: 32px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.project-icon {
    width: 54px; height: 54px;
    border-radius: 16px;
    background: var(--accent-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    color: #fff;
    margin-bottom: 18px;
    box-shadow: 0 6px 20px rgba(124,58,237,0.2);
}

.project-card h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 10px; }

.project-desc {
    color: var(--text-secondary);
    font-size: 0.9rem;
    flex: 1;
    margin-bottom: 18px;
    line-height: 1.7;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 18px;
}

.project-tech span {
    background: var(--skill-bg);
    color: var(--accent-1);
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 0.73rem;
    font-weight: 700;
}

.project-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--accent-1);
    text-decoration: none;
    font-weight: 700;
    font-size: 0.9rem;
    transition: all var(--transition-fast);
}
.project-link:hover { gap: 14px; color: var(--accent-3); }

/* ==================================
   CERTIFICATES
   ================================== */
.certs-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.cert-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 32px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-xs);
    transition: all var(--transition);
    display: flex;
    align-items: flex-start;
    gap: 18px;
    backdrop-filter: blur(10px);
}

.cert-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-md);
    border-color: var(--border-hover);
}

.cert-icon {
    width: 52px; height: 52px;
    border-radius: 16px;
    background: var(--accent-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.3rem;
    flex-shrink: 0;
    box-shadow: 0 6px 20px rgba(124,58,237,0.2);
}

.cert-card h3 { font-size: 1rem; font-weight: 700; margin-bottom: 4px; }
.cert-org { color: var(--accent-2); font-size: 0.85rem; font-weight: 600; margin-bottom: 10px; }

.cert-link {
    color: var(--accent-1);
    font-size: 0.82rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-weight: 600;
    transition: all var(--transition-fast);
}
.cert-link:hover { text-decoration: underline; color: var(--accent-3); }

/* ==================================
   CONTACT
   ================================== */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.contact-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 36px 24px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-xs);
    text-align: center;
    transition: all var(--transition);
    text-decoration: none;
    display: block;
    color: inherit;
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.contact-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--accent-gradient);
    opacity: 0;
    transition: opacity var(--transition);
}
.contact-card:hover::before { opacity: 0.04; }
.contact-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-glow);
    border-color: var(--border-hover);
    color: inherit;
}
.contact-card > * { position: relative; z-index: 1; }

.contact-icon {
    width: 64px; height: 64px;
    border-radius: 20px;
    background: var(--accent-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.5rem;
    margin: 0 auto 16px;
    box-shadow: 0 8px 30px rgba(124,58,237,0.2);
    transition: transform var(--transition-fast);
}
.contact-card:hover .contact-icon { transform: scale(1.08) rotate(-3deg); }

.contact-card h3 { font-size: 0.92rem; font-weight: 700; margin-bottom: 6px; }
.contact-card p { color: var(--text-muted); font-size: 0.83rem; direction: ltr; }

/* ==================================
   FOOTER
   ================================== */
.resume-footer {
    text-align: center;
    padding: 50px 0;
    color: var(--text-muted);
    font-size: 0.85rem;
    border-top: 1px solid var(--border-color);
}
.resume-footer p { opacity: 0.7; }

/* ==================================
   SCROLL TO TOP
   ================================== */
.scroll-top {
    position: fixed;
    bottom: 30px; left: 30px;
    width: 50px; height: 50px;
    border-radius: 16px;
    background: var(--accent-gradient);
    color: #fff;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all var(--transition);
    z-index: 999;
    box-shadow: 0 8px 30px rgba(124,58,237,0.3);
}
body.resume-page.en .scroll-top { left: auto; right: 30px; }
.scroll-top.visible { opacity: 1; visibility: visible; transform: translateY(0); }
.scroll-top:hover { transform: translateY(-5px); box-shadow: 0 14px 45px rgba(124,58,237,0.5); }

/* ==================================
   EXTRA POLISH — Shine, Glow & Delight
   ================================== */

/* Card shimmer on hover */
.skill-card::after,
.project-card::after,
.about-card::after,
.cert-card::after,
.contact-card::after {
    content: '';
    position: absolute;
    top: -50%; left: -50%;
    width: 200%; height: 200%;
    background: linear-gradient(
        115deg,
        transparent 40%,
        rgba(255,255,255,0.08) 45%,
        rgba(255,255,255,0.15) 50%,
        rgba(255,255,255,0.08) 55%,
        transparent 60%
    );
    transform: translateX(-100%);
    transition: none;
    z-index: 2;
    pointer-events: none;
}

.skill-card:hover::after,
.project-card:hover::after,
.about-card:hover::after,
.cert-card:hover::after,
.contact-card:hover::after {
    animation: cardShine 0.8s ease forwards;
}

@keyframes cardShine {
    to { transform: translateX(100%); }
}

/* Floating decorative dots */
.resume-section { position: relative; }

/* Hero card inner glow pulse */
.hero-card {
    animation: heroGlow 6s ease-in-out infinite;
}
@keyframes heroGlow {
    0%, 100% { box-shadow: var(--shadow-lg), 0 0 60px rgba(124,58,237,0.04); }
    50% { box-shadow: var(--shadow-lg), 0 0 80px rgba(124,58,237,0.1); }
}
[data-theme="dark"] .hero-card {
    animation-name: heroGlowDark;
}
@keyframes heroGlowDark {
    0%, 100% { box-shadow: var(--shadow-lg), 0 0 60px rgba(167,139,250,0.06); }
    50% { box-shadow: var(--shadow-lg), 0 0 100px rgba(167,139,250,0.15); }
}

/* Skill bar glow on fill */
.skill-bar-fill {
    box-shadow: 0 0 8px rgba(124,58,237,0.3);
}

/* Timeline dot ring pulse */
.timeline-dot::after {
    content: '';
    position: absolute;
    inset: -6px;
    border-radius: 50%;
    border: 2px solid var(--accent-1);
    opacity: 0;
    transition: all var(--transition-fast);
}
.timeline-item:hover .timeline-dot::after {
    opacity: 0.3;
    inset: -10px;
}

/* Section badge hover lift */
.section-badge {
    transition: all var(--transition-fast);
}
.section-badge:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(124,58,237,0.15);
}

/* Social icon ripple */
.hero-socials a { position: relative; overflow: hidden; }
.hero-socials a::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle, rgba(255,255,255,0.3) 0%, transparent 70%);
    transform: scale(0);
    opacity: 0;
    transition: transform 0.5s ease, opacity 0.3s ease;
    border-radius: inherit;
}
.hero-socials a:hover::after {
    transform: scale(2);
    opacity: 1;
}

/* Avatar ring gradient rotate */
@keyframes avatarRingRotate {
    0% { filter: hue-rotate(0deg); }
    100% { filter: hue-rotate(360deg); }
}
.avatar-ring {
    animation: avatarBreath 4s ease-in-out infinite, avatarRingRotate 12s linear infinite;
}

/* Project cover gradient animation */
.project-cover {
    background-size: 200% 100%;
    animation: coverSlide 5s ease infinite;
}
@keyframes coverSlide {
    0%, 100% { background-position: 0% center; }
    50% { background-position: 100% center; }
}

/* Contact icon bounce on hover */
.contact-card:hover .contact-icon {
    animation: iconBounce 0.5s ease;
}
@keyframes iconBounce {
    0%, 100% { transform: scale(1.08) rotate(-3deg); }
    40% { transform: scale(1.15) rotate(-3deg) translateY(-4px); }
    60% { transform: scale(1.05) rotate(-3deg) translateY(0); }
}

/* Footer subtle gradient line */
.resume-footer {
    background: linear-gradient(to bottom, transparent, rgba(124,58,237,0.02));
}
[data-theme="dark"] .resume-footer {
    background: linear-gradient(to bottom, transparent, rgba(167,139,250,0.03));
}

/* Stat number glow */
.about-card:hover .stat-number {
    text-shadow: 0 0 20px rgba(124,58,237,0.3);
}
[data-theme="dark"] .about-card:hover .stat-number {
    text-shadow: 0 0 20px rgba(167,139,250,0.4);
}

/* Blog nav special badge style */
.topbar-nav a[data-i18n="navBlog"] {
    position: relative;
}
.topbar-nav a[data-i18n="navBlog"]::after {
    content: 'NEW';
    position: absolute;
    top: -4px;
    right: -2px;
    font-size: 0.5rem;
    font-weight: 900;
    background: linear-gradient(135deg, #ec4899, #f97316);
    color: #fff;
    padding: 1px 5px;
    border-radius: 50px;
    letter-spacing: 0.5px;
    line-height: 1.3;
}
body.resume-page.en .topbar-nav a[data-i18n="navBlog"]::after {
    right: auto;
    left: -2px;
}

/* ==================================
   ANIMATIONS
   ================================== */
.fade-up {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}
.fade-up.visible { opacity: 1; transform: translateY(0); }

.fade-right {
    opacity: 0;
    transform: translateX(-50px);
    transition: all 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}
body.resume-page.en .fade-right { transform: translateX(50px); }
.fade-right.visible { opacity: 1; transform: translateX(0); }

.scale-in {
    opacity: 0;
    transform: scale(0.92);
    transition: all 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}
.scale-in.visible { opacity: 1; transform: scale(1); }

.stagger-1 { transition-delay: 0.08s; }
.stagger-2 { transition-delay: 0.16s; }
.stagger-3 { transition-delay: 0.24s; }
.stagger-4 { transition-delay: 0.32s; }
.stagger-5 { transition-delay: 0.40s; }
.stagger-6 { transition-delay: 0.48s; }
.stagger-7 { transition-delay: 0.56s; }
.stagger-8 { transition-delay: 0.64s; }
.stagger-9 { transition-delay: 0.72s; }

/* ==================================
   RESPONSIVE
   ================================== */
@media (max-width: 1024px) {
    .about-grid { grid-template-columns: repeat(2, 1fr); }
    .skills-container { grid-template-columns: repeat(2, 1fr); }
    .contact-grid { grid-template-columns: repeat(2, 1fr); }
    .certs-grid { grid-template-columns: repeat(2, 1fr); }
    .hero-card { padding: 55px 40px; }
    .hero-content { gap: 40px; }
}

@media (max-width: 768px) {
    .resume-wrapper { padding: 0 16px; }

    /* Topbar */
    .topbar-nav { display: none; }
    .topbar-divider { display: none; }
    .resume-topbar { top: 10px; padding: 8px 14px; }

    /* Hide cursor glow & constrain fixed overlays */
    .cursor-glow { display: none !important; }
    body.resume-page::before { position: absolute; }

    /* Hero */
    .hero-section { min-height: auto; padding: 100px 0 50px; }
    .hero-card { padding: 36px 22px; border-radius: 22px; }
    .hero-content { flex-direction: column; text-align: center; gap: 28px; }
    .avatar-ring { width: 150px; height: 150px; }
    .hero-info h1 { font-size: 2rem; }
    .hero-title { font-size: 1.05rem; }
    .hero-meta { justify-content: center; }
    .hero-socials { justify-content: center; }
    .hero-greeting { justify-content: center; }

    /* Sections */
    .resume-section { padding: 50px 0; }
    .section-header { margin-bottom: 36px; }
    .section-header h2 { font-size: 1.6rem; }
    .section-header p { font-size: 0.9rem; }

    /* Grids */
    .about-grid { grid-template-columns: 1fr 1fr; gap: 14px; }
    .skills-container { grid-template-columns: 1fr; gap: 14px; }
    .projects-grid { grid-template-columns: 1fr; gap: 16px; }
    .certs-grid { grid-template-columns: 1fr; gap: 14px; }
    .contact-grid { grid-template-columns: 1fr 1fr; gap: 14px; }

    /* Timeline */
    .timeline { padding-right: 36px; }
    body.resume-page.en .timeline { padding-right: 0; padding-left: 36px; }
    .timeline-dot { right: -36px; width: 30px; height: 30px; }
    body.resume-page.en .timeline-dot { left: -36px; right: auto; }
    .timeline-card { padding: 22px; border-radius: 18px; }
    .timeline-card h3 { font-size: 1rem; }

    /* Cards */
    .about-card { padding: 24px 16px; border-radius: 18px; }
    .about-card .stat-number { font-size: 1.6rem; }
    .about-card .card-icon { width: 46px; height: 46px; font-size: 1.1rem; }
    .skill-card { padding: 22px; }
    .cert-card { padding: 22px; gap: 14px; flex-direction: column; align-items: center; text-align: center; }
    .contact-card { padding: 28px 16px; }
    .contact-icon { width: 52px; height: 52px; font-size: 1.3rem; }

    /* Background orbs — shrink & constrain to prevent overflow */
    .bg-particles { position: absolute; }
    .bg-particles .orb:nth-child(1) { width: 300px; height: 300px; }
    .bg-particles .orb:nth-child(2) { width: 250px; height: 250px; }
    .bg-particles .orb:nth-child(3) { width: 200px; height: 200px; }

    /* Footer */
    .resume-footer { padding: 30px 0; }

    /* Scroll to top */
    .scroll-top { width: 42px; height: 42px; bottom: 20px; left: 20px; border-radius: 12px; font-size: 1rem; }
    body.resume-page.en .scroll-top { left: auto; right: 20px; }
}

@media (max-width: 480px) {
    .resume-wrapper { padding: 0 12px; }
    .resume-topbar { padding: 6px 10px; gap: 4px; }
    .topbar-btn { width: 32px; height: 32px; font-size: 0.85rem; }

    /* Hero */
    .hero-section { padding: 85px 0 40px; }
    .hero-card { padding: 28px 16px; border-radius: 18px; }
    .avatar-ring { width: 120px; height: 120px; }
    .hero-info h1 { font-size: 1.6rem; }
    .hero-title { font-size: 0.95rem; min-height: auto; }
    .hero-meta { gap: 8px; }
    .meta-item { padding: 5px 12px; font-size: 0.78rem; }
    .hero-socials a { width: 42px; height: 42px; font-size: 1.1rem; border-radius: 12px; }
    .hero-greeting { font-size: 0.88rem; }

    /* Sections */
    .resume-section { padding: 40px 0; }
    .section-header { margin-bottom: 28px; }
    .section-header h2 { font-size: 1.35rem; }
    .section-badge { font-size: 0.75rem; padding: 6px 16px; }

    /* Grids */
    .about-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
    .contact-grid { grid-template-columns: 1fr; }
    .certs-grid { grid-template-columns: 1fr; }

    /* Cards */
    .about-card { padding: 18px 12px; }
    .about-card .stat-number { font-size: 1.4rem; }
    .about-card h3 { font-size: 0.82rem; }
    .about-card .card-icon { width: 40px; height: 40px; font-size: 1rem; border-radius: 12px; margin-bottom: 10px; }
    .skill-card { padding: 18px; border-radius: 16px; }
    .timeline-card { padding: 18px; }
    .project-body { padding: 22px; }
    .project-card h3 { font-size: 1rem; }
    .contact-card { padding: 22px 14px; border-radius: 18px; }
    .contact-icon { width: 46px; height: 46px; font-size: 1.15rem; border-radius: 14px; }

    /* Timeline */
    .timeline { padding-right: 30px; }
    body.resume-page.en .timeline { padding-right: 0; padding-left: 30px; }
    .timeline-dot { right: -30px; width: 26px; height: 26px; }
    body.resume-page.en .timeline-dot { left: -30px; right: auto; }
    .timeline-dot i { font-size: 0.65rem; }
    .timeline-card h3 { font-size: 0.95rem; }
    .tl-desc { font-size: 0.82rem; }
    .tl-tags span { font-size: 0.7rem; padding: 4px 10px; }

}

