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

:root {
  --bg: #f8f8ff;
  --bg-alt: #f0f0fa;
  --surface: #ffffff;
  --surface2: #eeeef8;
  --border: #e0e0f0;
  --border-hover: #6366f155;
  --accent: #6366f1;
  --accent2: #8b5cf6;
  --accent3: #0891b2;
  --text: #0f0f1a;
  --muted: #5a5a7a;
  --shadow: rgba(99,102,241,.10);
  --radius: 16px;
  --radius-lg: 24px;
}

[data-theme="dark"] {
  --bg: #080810;
  --bg-alt: #0d0d18;
  --surface: #12121f;
  --surface2: #1a1a2e;
  --border: #ffffff0f;
  --border-hover: #6366f140;
  --accent3: #06b6d4;
  --text: #f0f0ff;
  --muted: #7878a0;
  --shadow: rgba(99,102,241,.06);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  overflow-x: hidden;
}

/* ── CURSOR GLOW ── */
.cursor-glow {
  position: fixed; pointer-events: none; z-index: 0;
  width: 500px; height: 500px; border-radius: 50%;
  background: radial-gradient(circle, rgba(99,102,241,.07) 0%, transparent 70%);
  transform: translate(-50%, -50%);
  transition: left .12s ease, top .12s ease;
}

/* ── PARTICLES CANVAS ── */
#particles {
  position: fixed; top: 0; left: 0; width: 100%; height: 100%;
  pointer-events: none; z-index: 0; opacity: .5;
}

/* ── NAV ── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.2rem 3rem;
  transition: all .3s;
}
.nav.scrolled {
  padding: .8rem 3rem;
  background: rgba(248,248,255,.88);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}
[data-theme="dark"] .nav.scrolled {
  background: rgba(8,8,16,.88);
}
.nav-logo {
  font-family: 'Fira Code', monospace;
  font-size: 1.2rem; font-weight: 500;
  color: var(--text);
}
.nav-logo span { color: var(--accent); }
.nav-links { display: flex; gap: 2.5rem; list-style: none; }
.nav-links a {
  color: var(--muted); text-decoration: none; font-size: .9rem;
  font-weight: 500; letter-spacing: .02em;
  position: relative; transition: color .2s;
}
.nav-links a::after {
  content: ''; position: absolute; bottom: -4px; left: 0; right: 0;
  height: 1.5px; background: var(--accent);
  transform: scaleX(0); transition: transform .25s;
}
.nav-links a:hover { color: var(--text); }
.nav-links a:hover::after { transform: scaleX(1); }

.hamburger {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 4px;
}
.hamburger span {
  display: block; width: 24px; height: 2px;
  background: var(--text); border-radius: 2px;
  transition: all .3s;
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── HERO ── */
.hero {
  min-height: 100vh;
  display: grid; grid-template-columns: 1fr 1fr;
  align-items: center;
  padding: 7rem 3rem 4rem;
  max-width: 1200px; margin: 0 auto;
  position: relative; gap: 3rem;
}

.hero-badge {
  display: inline-flex; align-items: center; gap: .5rem;
  background: rgba(99,102,241,.1); border: 1px solid rgba(99,102,241,.3);
  color: var(--accent); font-size: .8rem; font-weight: 500;
  padding: .4rem 1rem; border-radius: 50px; margin-bottom: 1.5rem;
  animation: badgePulse 2s ease-in-out infinite;
}
@keyframes badgePulse { 0%,100%{box-shadow:0 0 0 0 rgba(99,102,241,.3)} 50%{box-shadow:0 0 0 6px rgba(99,102,241,0)} }

.hero-greeting {
  font-family: 'Fira Code', monospace;
  color: var(--accent3); font-size: 1rem; margin-bottom: .4rem;
}
.hero-name {
  font-size: clamp(3rem, 6vw, 5.5rem); font-weight: 800; line-height: 1.05;
  background: linear-gradient(135deg, #1a1a3e 0%, var(--accent2) 60%, var(--accent) 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  margin-bottom: .6rem;
}
[data-theme="dark"] .hero-name {
  background: linear-gradient(135deg, #fff 0%, #c4b5fd 60%, var(--accent) 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.hero-role {
  font-size: clamp(1.1rem, 2.5vw, 1.4rem); font-weight: 400;
  color: var(--muted); margin-bottom: 1.4rem; min-height: 2rem;
  font-family: 'Fira Code', monospace;
}
.cursor-blink { animation: blink .8s step-end infinite; color: var(--accent); }
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:0} }

.hero-desc { color: var(--muted); max-width: 460px; margin-bottom: 2.2rem; font-size: 1.05rem; }
.hero-btns { display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: 2.5rem; }

.hero-socials { display: flex; gap: 1rem; }
.social-link {
  width: 42px; height: 42px; border-radius: 50%;
  background: var(--surface2); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  color: var(--muted); transition: all .25s; text-decoration: none;
}
.social-link svg { width: 18px; height: 18px; }
.social-link:hover { background: var(--accent); border-color: var(--accent); color: #fff; transform: translateY(-3px); }

/* ── HERO IMAGE ── */
.hero-right { display: flex; justify-content: center; align-items: center; }
.hero-img-frame {
  position: relative; width: 360px; height: 360px;
}
.hero-img-ring {
  position: absolute; inset: -16px; border-radius: 50%;
  border: 2px solid transparent;
  background: linear-gradient(135deg, var(--accent), var(--accent2), var(--accent3)) border-box;
  -webkit-mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: destination-out; mask-composite: exclude;
  animation: spinRing 8s linear infinite;
}
.ring2 {
  inset: -30px; border-width: 1px; opacity: .4;
  animation-duration: 14s; animation-direction: reverse;
}
@keyframes spinRing { to { transform: rotate(360deg); } }

.hero-img {
  width: 360px; height: 360px; border-radius: 50%;
  object-fit: cover; object-position: top;
  border: 4px solid var(--surface2);
  box-shadow: 0 0 80px rgba(99,102,241,.25), 0 0 160px rgba(99,102,241,.1);
  position: relative; z-index: 1;
}
.hero-img-badge {
  position: absolute; bottom: 20px; right: -10px; z-index: 2;
  background: var(--surface2); border: 1px solid var(--border-hover);
  backdrop-filter: blur(10px);
  padding: .6rem 1.1rem; border-radius: 50px;
  font-size: .82rem; font-weight: 600; color: var(--text);
  box-shadow: 0 8px 32px rgba(0,0,0,.4);
  white-space: nowrap;
}

/* ── SCROLL INDICATOR ── */
.scroll-indicator {
  position: absolute; bottom: 2rem; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: .5rem;
  color: var(--muted); font-size: .75rem; letter-spacing: .1em; text-transform: uppercase;
}
.scroll-mouse {
  width: 24px; height: 38px; border: 2px solid var(--border-hover);
  border-radius: 12px; display: flex; justify-content: center; padding-top: 6px;
}
.scroll-wheel {
  width: 3px; height: 8px; background: var(--accent);
  border-radius: 2px; animation: scrollWheel 1.8s ease-in-out infinite;
}
@keyframes scrollWheel { 0%{opacity:1;transform:translateY(0)} 100%{opacity:0;transform:translateY(12px)} }

/* ── BUTTONS ── */
.btn {
  display: inline-flex; align-items: center; gap: .4rem;
  padding: .8rem 1.9rem; border-radius: 50px;
  font-size: .92rem; font-weight: 600; text-decoration: none; cursor: pointer;
  border: none; transition: all .25s; font-family: inherit;
}
.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  color: #fff; box-shadow: 0 4px 24px rgba(99,102,241,.35);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 32px rgba(99,102,241,.5); }
.btn-outline {
  background: transparent; color: var(--text);
  border: 1.5px solid var(--border-hover);
}
.btn-outline:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-2px); }
.btn-ghost {
  background: var(--surface2); color: var(--muted);
  border: 1px solid var(--border);
}
.btn-ghost:hover { color: var(--text); border-color: var(--muted); transform: translateY(-2px); }
.btn-sm { padding: .5rem 1.2rem; font-size: .85rem; }

/* ── SECTIONS ── */
.section { padding: 7rem 1.5rem; position: relative; z-index: 1; }
.section-alt { background: var(--bg-alt); }
.container { max-width: 1100px; margin: 0 auto; }

.section-label {
  font-family: 'Fira Code', monospace;
  font-size: .8rem; color: var(--accent); letter-spacing: .15em;
  text-transform: uppercase; margin-bottom: .8rem;
}
.section-title {
  font-size: clamp(2rem, 4vw, 2.8rem); font-weight: 800;
  margin-bottom: 3.5rem; line-height: 1.2;
}
.section-title span {
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}

.about-terminal {
  width: 100%;
  background: #0d1117;
  border: 1px solid #30363d;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 24px 80px rgba(0,0,0,.5), 0 0 0 1px rgba(99,102,241,.1);
  font-family: 'Fira Code', monospace;
}
.about-terminal .terminal-body { min-height: 320px; }


.about-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: 4rem; align-items: center; }
.about-img-card {
  position: relative; border-radius: var(--radius-lg); overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: 0 24px 80px rgba(99,102,241,.12);
}
.about-img-card img { width: 100%; display: block; aspect-ratio: 4/5; object-fit: cover; object-position: top; }
.about-img-overlay {
  position: absolute; bottom: 0; left: 0; right: 0;
  background: linear-gradient(to top, rgba(15,15,40,.92) 0%, transparent 100%);
  padding: 2rem 1.5rem 1.5rem;
}
.about-exp-badge {
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  color: #fff; font-size: .85rem; font-weight: 600;
  padding: .5rem 1.2rem; border-radius: 50px; display: inline-block;
}
.about-exp-badge span { font-size: 1.2rem; font-weight: 800; }

.about-intro { font-size: 1.15rem; color: var(--text); margin-bottom: 1rem; }
.about-text p { color: var(--muted); margin-bottom: 1rem; }
.about-text strong { color: var(--text); }

.about-stats {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 1rem; margin: 2rem 0;
}
.stat {
  background: var(--surface2); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.2rem 1rem; text-align: center;
  transition: border-color .25s, transform .25s;
}
.stat:hover { border-color: var(--border-hover); transform: translateY(-3px); }
.stat-num { font-size: 1.8rem; font-weight: 800; color: var(--accent); }
.stat-plus { font-size: 1.2rem; font-weight: 700; color: var(--accent2); }
.stat-label { display: block; font-size: .75rem; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; margin-top: .3rem; }
.about-actions { display: flex; gap: 1rem; flex-wrap: wrap; }

/* ── SKILLS ── */
.skills-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: start; }

.skill-bars { display: flex; flex-direction: column; gap: 1.6rem; }
.skill-bar-item {}
.skill-bar-header { display: flex; justify-content: space-between; margin-bottom: .6rem; font-size: .9rem; }
.skill-bar-header span:first-child { color: var(--text); font-weight: 500; }
.skill-bar-header span:last-child { color: var(--accent); font-weight: 600; font-family: 'Fira Code', monospace; }
.skill-bar-track {
  height: 6px; background: var(--surface2); border-radius: 3px; overflow: hidden;
}
.skill-bar-fill {
  height: 100%; width: 0; border-radius: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  transition: width 1.2s cubic-bezier(.4,0,.2,1);
  box-shadow: 0 0 12px rgba(99,102,241,.5);
}

.skills-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: .9rem;
}
.skill-card {
  background: var(--surface2); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.2rem .8rem; text-align: center;
  transition: all .25s; cursor: default;
}
.skill-card:hover {
  transform: translateY(-5px) scale(1.03);
  border-color: var(--border-hover);
  box-shadow: 0 12px 40px rgba(99,102,241,.15);
}
.skill-icon { font-size: 1.8rem; margin-bottom: .4rem; }
.skill-card p { font-size: .78rem; color: var(--muted); font-weight: 500; }

/* ── PROJECTS ── */
.project-featured {
  display: grid; grid-template-columns: 1.2fr 1fr; gap: 0;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); overflow: hidden;
  margin-bottom: 2rem;
  transition: box-shadow .3s;
}
.project-featured:hover { box-shadow: 0 24px 80px rgba(0,0,0,.5); }

.project-featured-img {
  min-height: 320px; display: flex; align-items: center; justify-content: center;
  padding: 2rem; position: relative; overflow: hidden;
}
.project-mockup {
  background: rgba(0,0,0,.35); backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 12px; width: 100%; max-width: 340px; overflow: hidden;
}
.mockup-bar {
  background: rgba(0,0,0,.3); padding: .6rem 1rem;
  display: flex; gap: .4rem; align-items: center;
}
.mockup-bar span {
  width: 10px; height: 10px; border-radius: 50%;
  background: rgba(255,255,255,.2);
}
.mockup-body { padding: 1rem; display: flex; flex-direction: column; gap: .5rem; }
.mockup-line { height: 8px; background: rgba(255,255,255,.15); border-radius: 4px; }
.w80 { width: 80%; } .w60 { width: 60%; } .w90 { width: 90%; } .w50 { width: 50%; }
.mockup-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: .5rem; margin-top: .5rem; }
.mockup-card { height: 50px; background: rgba(255,255,255,.08); border-radius: 8px; }

.project-featured-body { padding: 2.5rem; display: flex; flex-direction: column; justify-content: center; }
.project-tag-label {
  font-family: 'Fira Code', monospace;
  font-size: .75rem; color: var(--accent); letter-spacing: .1em;
  text-transform: uppercase; margin-bottom: .8rem; display: block;
}
.project-featured-body h3 { font-size: 1.4rem; font-weight: 700; margin-bottom: 1rem; }
.project-featured-body p { color: var(--muted); margin-bottom: 1.5rem; font-size: .95rem; }

.projects-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.project-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden;
  transition: all .3s;
}
.project-card:hover { transform: translateY(-6px); box-shadow: 0 20px 60px rgba(0,0,0,.5); border-color: var(--border-hover); }
.project-img {
  height: 150px; display: flex; align-items: flex-end; justify-content: space-between;
  padding: 1rem; position: relative;
}
.project-tag {
  background: rgba(0,0,0,.35); backdrop-filter: blur(6px);
  color: #fff; font-size: .72rem; font-weight: 600;
  padding: .3rem .75rem; border-radius: 50px;
  border: 1px solid rgba(255,255,255,.15);
}
.project-img-icon { font-size: 2rem; }
.project-body { padding: 1.4rem; }
.project-body h3 { font-size: 1rem; font-weight: 700; margin-bottom: .5rem; }
.project-body p { color: var(--muted); font-size: .85rem; margin-bottom: 1rem; line-height: 1.6; }
.project-tech { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: 1rem; }
.project-tech span {
  background: rgba(99,102,241,.1); color: var(--accent);
  font-size: .72rem; font-weight: 500; padding: .2rem .6rem; border-radius: 50px;
  border: 1px solid rgba(99,102,241,.2);
}
.project-links { display: flex; gap: .6rem; }

/* ── CONTACT ── */
.contact-wrap { display: grid; grid-template-columns: 1fr 1.6fr; gap: 4rem; align-items: start; }
.contact-headline { font-size: 1.1rem; color: var(--text); margin-bottom: 2rem; line-height: 1.6; }
.contact-cards { display: flex; flex-direction: column; gap: 1rem; }
.contact-card {
  display: flex; align-items: center; gap: 1rem;
  background: var(--surface2); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.1rem 1.3rem;
  text-decoration: none; color: var(--text);
  transition: all .25s;
}
.contact-card:hover { border-color: var(--border-hover); transform: translateX(4px); }
.contact-card-icon { font-size: 1.5rem; }
.contact-card strong { display: block; font-size: .9rem; margin-bottom: .1rem; }
.contact-card p { color: var(--muted); font-size: .82rem; margin: 0; }

.contact-form { display: flex; flex-direction: column; gap: 1.1rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.form-group { display: flex; flex-direction: column; gap: .4rem; }
.form-group label { font-size: .82rem; color: var(--muted); font-weight: 500; letter-spacing: .03em; }
.contact-form input,
.contact-form textarea {
  background: var(--surface2); border: 1px solid var(--border);
  border-radius: var(--radius); color: var(--text);
  padding: .85rem 1.1rem; font-family: inherit; font-size: .92rem;
  outline: none; transition: border-color .2s, box-shadow .2s; resize: vertical;
}
.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(99,102,241,.12);
}
.form-success { display: none; color: #4ade80; font-size: .88rem; text-align: center; margin-top: .5rem; }
.form-error   { display: none; color: #f87171; font-size: .88rem; text-align: center; margin-top: .5rem; }

/* ── CYBER THEME ACCENTS ── */
.bracket { color: var(--accent); }
.accent-text { color: var(--accent2); }
.nav-right { display: flex; align-items: center; gap: .8rem; }

/* ── BADGE DOT ── */
.badge-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 0 rgba(34,197,94,.4);
  animation: dotPulse 1.5s ease-in-out infinite;
  display: inline-block;
}
@keyframes dotPulse { 0%,100%{box-shadow:0 0 0 0 rgba(34,197,94,.4)} 50%{box-shadow:0 0 0 6px rgba(34,197,94,0)} }

/* ── HERO TERMINAL ── */
.hero-right {
  display: flex; flex-direction: column; align-items: center; gap: 1.2rem;
}
.hero-terminal {
  width: 100%; max-width: 480px;
  background: #0d1117;
  border: 1px solid #30363d;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 24px 80px rgba(0,0,0,.5), 0 0 0 1px rgba(99,102,241,.1);
  font-family: 'Fira Code', monospace;
}
.terminal-bar {
  background: #161b22; padding: .7rem 1rem;
  display: flex; align-items: center; gap: .8rem;
  border-bottom: 1px solid #30363d;
}
.terminal-dots { display: flex; gap: .4rem; }
.dot { width: 12px; height: 12px; border-radius: 50%; }
.dot.red    { background: #ff5f57; }
.dot.yellow { background: #febc2e; }
.dot.green  { background: #28c840; }
.terminal-title { font-size: .78rem; color: #8b949e; margin-left: auto; }
.terminal-body { padding: 1.2rem; display: flex; flex-direction: column; gap: .35rem; min-height: 260px; }
.terminal-line { font-size: .78rem; line-height: 1.6; }
.t-prompt { color: #58a6ff; }
.t-cmd    { color: #e6edf3; }
.t-out    { color: #8b949e; padding-left: 1rem; }
.t-green  { color: #3fb950; }
.t-warn   { color: #d29922; }
.t-red    { color: #f85149; }
.t-muted  { color: #484f58; }
.t-cursor-line { color: #3fb950; animation: blink .8s step-end infinite; }

.hero-img-badge {
  background: var(--surface2); border: 1px solid var(--border-hover);
  backdrop-filter: blur(10px);
  padding: .6rem 1.2rem; border-radius: 50px;
  font-size: .82rem; font-weight: 600; color: var(--text);
  box-shadow: 0 8px 32px rgba(0,0,0,.2);
  white-space: nowrap; text-align: center;
}

/* ── MOCKUP CODE LINES ── */
.mockup-line-code {
  font-family: 'Fira Code', monospace;
  font-size: .75rem; color: #8b949e; line-height: 1.7;
}

/* ── CERTIFICATIONS ── */
.certs-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem;
}
.cert-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.5rem;
  display: flex; gap: 1rem; align-items: flex-start;
  transition: all .25s;
}
.cert-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(99,102,241,.12);
}
.cert-icon { font-size: 2rem; flex-shrink: 0; }
.cert-body { flex: 1; }
.cert-issuer {
  font-size: .72rem; color: var(--muted); text-transform: uppercase;
  letter-spacing: .08em; font-family: 'Fira Code', monospace;
  display: block; margin-bottom: .3rem;
}
.cert-body h3 { font-size: 1.15rem; font-weight: 700; margin-bottom: .3rem; }
.cert-body p { font-size: .82rem; color: var(--muted); margin-bottom: .7rem; }
.cert-badge {
  font-size: .7rem; font-weight: 600; padding: .2rem .7rem;
  border-radius: 50px; display: inline-block;
}
.cert-badge.active {
  background: rgba(34,197,94,.12); color: #22c55e;
  border: 1px solid rgba(34,197,94,.3);
}

/* ── TIMELINE (EDUCATION) ── */
.timeline { position: relative; padding-left: 2rem; }
.timeline::before {
  content: ''; position: absolute; left: 0; top: 0; bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--accent), var(--accent2), transparent);
}
.timeline-item {
  position: relative; margin-bottom: 2.5rem;
}
.timeline-item:last-child { margin-bottom: 0; }
.timeline-dot {
  position: absolute; left: -2.45rem; top: 1.4rem;
  width: 14px; height: 14px; border-radius: 50%;
  background: var(--accent);
  border: 3px solid var(--bg-alt);
  box-shadow: 0 0 0 3px rgba(99,102,241,.3);
}
.timeline-date {
  font-family: 'Fira Code', monospace;
  font-size: .78rem; color: var(--accent); font-weight: 600;
  letter-spacing: .05em; margin-bottom: .6rem;
}
.timeline-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.6rem;
  transition: all .25s;
}
.timeline-card:hover {
  border-color: var(--border-hover);
  box-shadow: 0 8px 32px rgba(99,102,241,.1);
}
.timeline-header {
  display: flex; gap: 1rem; align-items: flex-start; margin-bottom: .8rem;
}
.timeline-icon { font-size: 1.8rem; flex-shrink: 0; }
.timeline-header h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: .2rem; }
.timeline-org {
  font-size: .82rem; color: var(--accent); font-weight: 500;
}
.timeline-card p { color: var(--muted); font-size: .88rem; margin-bottom: 1rem; }
.timeline-card em { color: var(--text); font-style: italic; }
.timeline-tags { display: flex; flex-wrap: wrap; gap: .4rem; }
.timeline-tags span {
  background: rgba(99,102,241,.1); color: var(--accent);
  font-size: .72rem; font-weight: 500; padding: .2rem .65rem;
  border-radius: 50px; border: 1px solid rgba(99,102,241,.2);
}

/* ── VISA SECTION ── */
.visa-intro { font-size: 1rem; color: var(--muted); margin-bottom: 2rem; max-width: 700px; }

.passport-header {
  background: linear-gradient(135deg, #1a1a3e 0%, #2d1b69 50%, #1a3a5c 100%);
  border-radius: var(--radius-lg); padding: 1.8rem 2rem;
  margin-bottom: 2rem; border: 1px solid rgba(99,102,241,.3);
  box-shadow: 0 8px 40px rgba(99,102,241,.15);
}
.passport-holder { display: flex; align-items: center; gap: 1.5rem; margin-bottom: 1.2rem; }
.passport-avatar {
  width: 64px; height: 64px; border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem; font-weight: 800; color: #fff; flex-shrink: 0;
  border: 3px solid rgba(255,255,255,.2);
}
.passport-name { font-size: 1.3rem; font-weight: 800; color: #fff; margin-bottom: .2rem; }
.passport-title { font-size: .82rem; color: rgba(255,255,255,.6); margin-bottom: .3rem; }
.passport-nationality { font-size: .78rem; color: rgba(255,255,255,.5); font-family: 'Fira Code', monospace; }
.passport-mrz {
  font-family: 'Fira Code', monospace; font-size: .7rem;
  color: rgba(255,255,255,.25); letter-spacing: .08em;
  display: flex; flex-direction: column; gap: .2rem;
  border-top: 1px solid rgba(255,255,255,.1); padding-top: .8rem;
}

.visa-docs-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; margin-bottom: 2rem;
}
.visa-doc {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden; transition: all .3s;
}
.visa-doc:hover { transform: translateY(-4px); box-shadow: 0 16px 48px rgba(99,102,241,.12); border-color: var(--border-hover); }
.active-visa { border-color: rgba(34,197,94,.3); box-shadow: 0 0 0 1px rgba(34,197,94,.1); }
.active-visa:hover { border-color: rgba(34,197,94,.5); }

.visa-doc-header {
  background: var(--surface2); padding: 1rem 1.2rem;
  display: flex; align-items: center; justify-content: space-between;
  border-bottom: 1px solid var(--border);
}
.visa-doc-country { display: flex; align-items: center; gap: .8rem; }
.visa-flag-lg { font-size: 1.8rem; line-height: 1; }
.visa-doc-country-name { font-size: .82rem; font-weight: 800; letter-spacing: .06em; color: var(--text); font-family: 'Fira Code', monospace; }
.visa-doc-type { font-size: .65rem; color: var(--muted); letter-spacing: .04em; text-transform: uppercase; margin-top: .15rem; }
.visa-doc-status {
  font-size: .7rem; font-weight: 700; padding: .3rem .8rem;
  border-radius: 50px; white-space: nowrap; letter-spacing: .04em;
}
.visa-doc-status.valid    { background: rgba(34,197,94,.12);  color: #22c55e; border: 1px solid rgba(34,197,94,.3); }
.visa-doc-status.eligible { background: rgba(234,179,8,.12);  color: #eab308; border: 1px solid rgba(234,179,8,.3); }
.visa-doc-status.expired  { background: rgba(239,68,68,.12);  color: #ef4444; border: 1px solid rgba(239,68,68,.3); }

.visa-doc-body { padding: 1rem 1.2rem; display: flex; flex-direction: column; gap: .55rem; }
.visa-field-row { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; }
.visa-field { display: flex; flex-direction: column; gap: .15rem; }
.visa-field.full { grid-column: 1 / -1; }
.vf-label { font-size: .62rem; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; font-family: 'Fira Code', monospace; }
.vf-value { font-size: .8rem; color: var(--text); font-weight: 600; }

.visa-doc-footer { padding: .8rem 1.2rem; border-top: 1px solid var(--border); display: flex; flex-direction: column; gap: .4rem; }
.visa-validity-bar { display: block; height: 4px; background: var(--surface2); border-radius: 2px; overflow: hidden; }
.visa-validity-fill { display: block; height: 100%; border-radius: 2px; transition: width 1.4s cubic-bezier(.4,0,.2,1); }
.active-visa .visa-validity-fill { background: linear-gradient(90deg, #22c55e, #16a34a); }
.visa-doc:not(.active-visa) .visa-validity-fill { background: linear-gradient(90deg, var(--accent), var(--accent2)); }
.visa-validity-label { font-size: .68rem; color: var(--muted); font-family: 'Fira Code', monospace; }

.avail-strip {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem;
  background: var(--surface2); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.4rem;
}
.avail-strip-item { display: flex; align-items: flex-start; gap: .8rem; }
.avail-strip-item .avail-dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; margin-top: .3rem; }
.avail-strip-item strong { display: block; font-size: .85rem; font-weight: 700; margin-bottom: .2rem; }
.avail-strip-item p { font-size: .78rem; color: var(--muted); margin: 0; line-height: 1.5; }
.avail-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.avail-dot.green  { background: #22c55e; box-shadow: 0 0 6px rgba(34,197,94,.5); }
.avail-dot.yellow { background: #eab308; box-shadow: 0 0 6px rgba(234,179,8,.5); }

/* ── CONTACT SELECT ── */
.contact-form select {
  background: var(--surface2); border: 1px solid var(--border);
  border-radius: var(--radius); color: var(--text);
  padding: .85rem 1.1rem; font-family: inherit; font-size: .92rem;
  outline: none; transition: border-color .2s, box-shadow .2s;
  cursor: pointer; appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%236366f1' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 1rem center;
}
.contact-form select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(99,102,241,.12);
}

/* ── THEME TOGGLE ── */
.theme-toggle {
  width: 42px; height: 42px; border-radius: 50%;
  background: var(--surface2); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; font-size: 1.1rem; transition: all .25s;
  flex-shrink: 0;
}
.theme-toggle:hover {
  background: var(--accent); border-color: var(--accent);
  transform: rotate(20deg) scale(1.1);
}

/* ── FOOTER ── */
.footer {
  border-top: 1px solid var(--border);
  padding: 2.5rem 1.5rem; position: relative; z-index: 1;
}
.footer-inner {
  max-width: 1100px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1rem;
}
.footer-logo {
  font-family: 'Fira Code', monospace; font-size: 1.1rem; font-weight: 500;
}
.footer-logo span { color: var(--accent); }
.footer p { color: var(--muted); font-size: .85rem; }
.footer-socials { display: flex; gap: 1.5rem; }
.footer-socials a { color: var(--muted); text-decoration: none; font-size: .85rem; transition: color .2s; }
.footer-socials a:hover { color: var(--accent); }

/* ── THEME TRANSITION ── */
body, .nav, .skill-card, .project-card, .project-featured, .stat,
.contact-card, .contact-form input, .contact-form textarea, .social-link {
  transition: background .3s ease, border-color .3s ease, color .3s ease, box-shadow .3s ease;
}

/* ── FADE-IN ── */
.fade-in { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s ease; }
.fade-in.visible { opacity: 1; transform: translateY(0); }

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; text-align: center; padding: 7rem 1.5rem 4rem; }
  .hero-right { order: -1; }
  .hero-btns, .hero-socials { justify-content: center; }
  .hero-desc { margin-left: auto; margin-right: auto; }
  .about-grid { grid-template-columns: 1fr; }
  .about-stats { grid-template-columns: repeat(2,1fr); }
  .skills-layout { grid-template-columns: 1fr; }
  .skills-grid { grid-template-columns: repeat(4,1fr); }
  .project-featured { grid-template-columns: 1fr; }
  .projects-grid { grid-template-columns: 1fr 1fr; }
  .contact-wrap { grid-template-columns: 1fr; }
  .certs-grid { grid-template-columns: 1fr 1fr; }
  .visa-docs-grid { grid-template-columns: 1fr 1fr; }
  .avail-strip { grid-template-columns: 1fr 1fr; }
  .nav { padding: 1rem 1.5rem; }
  .nav.scrolled { padding: .7rem 1.5rem; }
}
@media (max-width: 600px) {
  .nav-links { display: none; flex-direction: column; position: absolute; top: 100%; left: 0; right: 0; background: var(--bg); backdrop-filter: blur(20px); padding: 1.5rem; gap: 1.2rem; border-bottom: 1px solid var(--border); }
  .nav-links.open { display: flex; }
  .hamburger { display: flex; }
  .projects-grid { grid-template-columns: 1fr; }
  .skills-grid { grid-template-columns: repeat(3,1fr); }
  .form-row { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; text-align: center; }
  .about-stats { grid-template-columns: repeat(2,1fr); }
  .certs-grid { grid-template-columns: 1fr; }
  .visa-docs-grid { grid-template-columns: 1fr; }
  .avail-strip { grid-template-columns: 1fr 1fr; }
  .timeline { padding-left: 1.2rem; }
  .timeline-dot { left: -1.65rem; }
}
