/* ===================== Design tokens ===================== */
:root {
  --bg: #0b0b14;
  --bg-alt: #0f0f1a;
  --surface: rgba(255, 255, 255, 0.05);
  --surface-hover: rgba(255, 255, 255, 0.09);
  --border: rgba(255, 255, 255, 0.08);
  --text: #f5f5f7;
  --text-dim: #a1a1ae;
  --text-dimmer: #71717d;

  --accent-1: #7c3aed;
  --accent-2: #2563eb;
  --accent-purple: #c4b5fd;
  --gradient: linear-gradient(135deg, #7c3aed, #2563eb);

  --green: #4ade80;
  --amber: #fbbf24;
  --red: #f87171;

  --radius: 16px;
  --radius-sm: 10px;
  --shadow-lg: 0 20px 50px -12px rgba(0, 0, 0, 0.5);
  --container: 1140px;
  --font: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

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

html { scroll-behavior: smooth; }

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

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; }

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

/* subtle page-wide backdrop so every section shares the same deep indigo feel */
body {
  background-image:
    radial-gradient(circle at 15% 0%, rgba(124, 58, 237, 0.16), transparent 45%),
    radial-gradient(circle at 85% 20%, rgba(37, 99, 235, 0.14), transparent 45%);
  background-attachment: fixed;
}

/* ===================== Utility / animation ===================== */
.gradient-text {
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.anim-up {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
  transition-delay: var(--d, 0s);
}
.anim-up.in-view { opacity: 1; transform: translateY(0); }

/* ===================== Buttons ===================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease, border-color 0.25s ease;
  white-space: nowrap;
}
.btn-primary {
  background: var(--gradient);
  color: #fff;
  box-shadow: 0 8px 24px -6px rgba(124, 58, 237, 0.55);
}
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 14px 30px -6px rgba(124, 58, 237, 0.65); }
.btn-ghost {
  background: var(--surface);
  color: var(--text);
  border-color: var(--border);
}
.btn-ghost:hover { background: var(--surface-hover); transform: translateY(-3px); border-color: var(--accent-purple); }
.btn-sm { padding: 9px 18px; font-size: 0.85rem; }
.btn-block { width: 100%; justify-content: center; }

/* ===================== Header / Nav ===================== */
.progress-bar {
  position: fixed; top: 0; left: 0; height: 3px; width: 0%;
  background: var(--gradient); z-index: 1100; transition: width 0.1s ease-out;
}

.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 18px 0;
  transition: background 0.3s ease, padding 0.3s ease, box-shadow 0.3s ease;
}
.site-header.scrolled {
  padding: 12px 0;
  background: rgba(11, 11, 20, 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
  border-bottom: 1px solid var(--border);
}

.navbar { display: flex; align-items: center; justify-content: space-between; gap: 24px; }

.brand { font-size: 1.15rem; font-weight: 700; letter-spacing: 0.04em; }
.brand span { color: var(--accent-purple); }

.nav-links { display: flex; gap: 8px; align-items: center; }
.nav-link {
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text-dim);
  transition: color 0.2s ease, background 0.2s ease;
  position: relative;
}
.nav-link:hover, .nav-link.active { color: var(--text); background: var(--surface); }

.nav-cta { flex-shrink: 0; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 6px;
  z-index: 1200;
}
.nav-toggle span { width: 24px; height: 2px; background: var(--text); border-radius: 2px; transition: transform 0.3s ease, opacity 0.3s ease; }
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===================== Hero ===================== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 110px;
  overflow: hidden;
}
.hero-bg { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.35;
}
.blob-1 { width: 420px; height: 420px; background: var(--accent-1); top: -80px; right: -60px; }
.blob-2 { width: 380px; height: 380px; background: var(--accent-2); bottom: -100px; left: -80px; }
.grid-overlay {
  position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(ellipse at center, black 0%, transparent 75%);
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent-purple);
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 7px 16px;
  border-radius: 999px;
  margin-bottom: 22px;
}
.dot-live {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.6);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.55); }
  70% { box-shadow: 0 0 0 8px rgba(74, 222, 128, 0); }
  100% { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0); }
}

.hero h1 { font-size: clamp(2.4rem, 5vw, 3.6rem); font-weight: 800; line-height: 1.1; margin-bottom: 12px; }
.hero-role {
  font-size: clamp(1.1rem, 2.4vw, 1.5rem);
  font-weight: 600;
  color: var(--text-dim);
  margin-bottom: 20px;
  min-height: 1.6em;
}
.cursor { color: var(--accent-purple); animation: blink 1s step-start infinite; }
@keyframes blink { 50% { opacity: 0; } }

.hero-desc { color: var(--text-dim); max-width: 540px; margin-bottom: 32px; font-size: 1.02rem; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 36px; }

.hero-socials { display: flex; gap: 14px; }
.hero-socials a {
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--border);
  font-size: 1.05rem;
  transition: all 0.25s ease;
}
.hero-socials a:hover { background: var(--gradient); border-color: transparent; transform: translateY(-4px); }

/* tooltip */
.tooltip-el { position: relative; }
.tooltip-el::after {
  content: attr(data-tip);
  position: absolute;
  bottom: 120%; left: 50%; transform: translateX(-50%);
  background: #1c1c28; color: var(--text);
  padding: 5px 10px; border-radius: 6px;
  font-size: 0.75rem; white-space: nowrap;
  opacity: 0; pointer-events: none;
  transition: opacity 0.2s ease;
  border: 1px solid var(--border);
}
.tooltip-el:hover::after { opacity: 1; }

.hero-visual { position: relative; display: flex; justify-content: center; }
.photo-ring {
  position: relative;
  width: min(340px, 78vw);
  height: min(340px, 78vw);
  border-radius: 50%;
  padding: 8px;
  background: var(--gradient);
  animation: spin 14s linear infinite;
}
.photo-ring::before {
  content: "";
  position: absolute; inset: -14px;
  border-radius: 50%;
  border: 1.5px dashed rgba(196, 181, 253, 0.35);
  animation: spin-rev 22s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes spin-rev { to { transform: rotate(-360deg); } }

.profile-photo {
  width: 100%; height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 6px solid var(--bg);
  animation: spin-rev 14s linear infinite;
  background: var(--bg-alt);
}
.photo-badge {
  position: absolute;
  bottom: 8%; right: 4%;
  width: 56px; height: 56px;
  background: var(--gradient);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem;
  border: 4px solid var(--bg);
  box-shadow: var(--shadow-lg);
}

.float-card {
  position: absolute;
  display: flex; align-items: center; gap: 10px;
  background: rgba(20, 20, 32, 0.85);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border);
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg);
  animation: float 5s ease-in-out infinite;
}
.float-card i { font-size: 1.2rem; color: var(--accent-purple); }
.float-card strong { display: block; font-size: 1rem; }
.float-card span { font-size: 0.75rem; color: var(--text-dim); }
.float-card-1 { top: 6%; left: -4%; animation-delay: 0.3s; }
.float-card-2 { bottom: 8%; right: -6%; animation-delay: 1s; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }

.scroll-cue {
  position: absolute;
  bottom: 28px; left: 50%; transform: translateX(-50%);
  color: var(--text-dim);
  font-size: 1.1rem;
  animation: float 2.4s ease-in-out infinite;
  z-index: 1;
}

/* ===================== Sections ===================== */
.section { padding: 110px 0; position: relative; }
.section-alt { background: linear-gradient(180deg, transparent, rgba(255,255,255,0.02) 15%, rgba(255,255,255,0.02) 85%, transparent); }

.section-tag {
  display: inline-block;
  color: var(--accent-purple);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.section-title { font-size: clamp(1.9rem, 3.6vw, 2.6rem); font-weight: 800; margin-bottom: 14px; }
.section-sub { color: var(--text-dim); max-width: 620px; margin-bottom: 50px; }

/* ===================== About ===================== */
.about-grid { display: grid; grid-template-columns: 1.3fr 0.9fr; gap: 56px; align-items: start; }
.about-text p { color: var(--text-dim); margin-bottom: 18px; }
.about-text strong { color: var(--text); }
.about-meta { display: flex; flex-wrap: wrap; gap: 22px; margin-top: 26px; }
.about-meta div { display: flex; align-items: center; gap: 9px; font-size: 0.92rem; color: var(--text-dim); }
.about-meta i { color: var(--accent-purple); }

.stats-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.stat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px 20px;
  text-align: center;
  transition: transform 0.25s ease, border-color 0.25s ease;
}
.stat-card:hover { transform: translateY(-6px); border-color: var(--accent-purple); }
.stat-num { font-size: 2.2rem; font-weight: 800; background: var(--gradient); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat-plus { font-size: 1.6rem; font-weight: 800; color: var(--accent-purple); }
.stat-card p { color: var(--text-dim); font-size: 0.85rem; margin-top: 6px; }

/* ===================== Timeline ===================== */
.timeline { position: relative; padding-left: 34px; margin-bottom: 60px; }
.timeline::before {
  content: "";
  position: absolute; left: 6px; top: 6px; bottom: 6px;
  width: 2px;
  background: linear-gradient(180deg, var(--accent-1), var(--accent-2), transparent);
}
.timeline-item { position: relative; margin-bottom: 34px; }
.timeline-item:last-child { margin-bottom: 0; }
.timeline-dot {
  position: absolute; left: -34px; top: 6px;
  width: 14px; height: 14px; border-radius: 50%;
  background: var(--gradient);
  box-shadow: 0 0 0 4px rgba(124, 58, 237, 0.2);
}
.timeline-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px 28px;
  transition: border-color 0.25s ease, transform 0.25s ease;
}
.timeline-card:hover { border-color: var(--accent-purple); transform: translateX(4px); }
.timeline-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 14px; flex-wrap: wrap; margin-bottom: 14px; }
.timeline-head h3 { font-size: 1.15rem; margin-bottom: 4px; }
.timeline-company { color: var(--accent-purple); font-size: 0.9rem; font-weight: 600; }
.badge {
  flex-shrink: 0;
  background: var(--surface-hover);
  border: 1px solid var(--border);
  padding: 5px 14px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-dim);
}
.timeline-card ul { display: flex; flex-direction: column; gap: 10px; }
.timeline-card li { color: var(--text-dim); font-size: 0.94rem; padding-left: 20px; position: relative; }
.timeline-card li::before {
  content: "";
  position: absolute; left: 0; top: 8px;
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent-purple);
}

.education-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.edu-card {
  display: flex; align-items: center; gap: 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
}
.edu-card i { font-size: 1.6rem; color: var(--accent-purple); flex-shrink: 0; }
.edu-card h4 { font-size: 1rem; margin-bottom: 4px; }
.edu-card p { color: var(--text-dim); font-size: 0.85rem; }

/* ===================== Skills ===================== */
.skills-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.skill-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
  transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}
.skill-card:hover { transform: translateY(-6px); border-color: var(--accent-purple); background: var(--surface-hover); }
.skill-icon {
  width: 48px; height: 48px;
  border-radius: 12px;
  background: var(--gradient);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem;
  margin-bottom: 16px;
}
.skill-card h3 { font-size: 1.02rem; margin-bottom: 14px; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tags span {
  font-size: 0.76rem;
  color: var(--text-dim);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  padding: 5px 10px;
  border-radius: 999px;
  transition: color 0.2s ease, border-color 0.2s ease;
}
.skill-card:hover .tags span { border-color: rgba(196, 181, 253, 0.25); }

/* ===================== Projects ===================== */
.project-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }

.project-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}
.project-card:hover { transform: translateY(-8px); border-color: var(--accent-purple); box-shadow: var(--shadow-lg); }

.project-thumb { position: relative; height: 190px; overflow: hidden; background: var(--bg-alt); }
.project-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.project-card:hover .project-thumb img { transform: scale(1.08); }

.project-thumb.no-image {
  display: flex; align-items: center; justify-content: center;
  background: var(--gradient);
}
.project-thumb.no-image i { font-size: 3rem; color: rgba(255, 255, 255, 0.9); }
.project-thumb .status-chip {
  position: absolute; top: 12px; right: 12px;
  background: rgba(11, 11, 20, 0.75);
  border: 1px solid rgba(255,255,255,0.15);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  letter-spacing: 0.05em;
  backdrop-filter: blur(6px);
}

.project-body { padding: 22px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.project-cat { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.08em; color: var(--accent-purple); text-transform: uppercase; }
.project-body h3 { font-size: 1.12rem; }
.project-body p { color: var(--text-dim); font-size: 0.88rem; flex: 1; }
.project-footer { display: flex; align-items: center; justify-content: space-between; margin-top: 8px; }
.project-tech { display: flex; flex-wrap: wrap; gap: 6px; }
.project-tech span { font-size: 0.68rem; color: var(--text-dimmer); background: rgba(255,255,255,0.05); padding: 3px 8px; border-radius: 6px; }
.project-arrow {
  width: 36px; height: 36px; flex-shrink: 0;
  border-radius: 50%;
  background: var(--surface-hover);
  display: flex; align-items: center; justify-content: center;
  transition: background 0.25s ease, transform 0.25s ease;
}
.project-card:hover .project-arrow { background: var(--gradient); transform: rotate(45deg); }

/* ===================== Certifications ===================== */
.certs-row { display: flex; flex-wrap: wrap; gap: 14px; }
.certs-row span {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 11px 18px;
  border-radius: 999px;
  font-size: 0.85rem;
  color: var(--text-dim);
  transition: border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}
.certs-row span:hover { border-color: var(--accent-purple); color: var(--text); transform: translateY(-3px); }
.certs-row i { color: var(--accent-purple); }

/* ===================== Contact ===================== */
.contact-grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 40px; }
.contact-info { display: flex; flex-direction: column; gap: 14px; }
.contact-item {
  display: flex; align-items: center; gap: 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 16px 18px;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
a.contact-item:hover { border-color: var(--accent-purple); transform: translateX(4px); }
.contact-item i {
  width: 42px; height: 42px; flex-shrink: 0;
  border-radius: 10px;
  background: var(--gradient);
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem;
}
.contact-item span { display: block; font-size: 0.75rem; color: var(--text-dim); }
.contact-item strong { font-size: 0.94rem; font-weight: 600; word-break: break-word; }

.contact-form {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-size: 0.82rem; color: var(--text-dim); margin-bottom: 7px; font-weight: 600; }
.form-group input, .form-group textarea {
  width: 100%;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  color: var(--text);
  font-family: inherit;
  font-size: 0.92rem;
  resize: vertical;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.form-group input:focus, .form-group textarea:focus {
  outline: none;
  border-color: var(--accent-purple);
  background: rgba(255, 255, 255, 0.06);
}
.form-note { text-align: center; margin-top: 14px; font-size: 0.85rem; color: var(--green); min-height: 1.2em; }
.form-note.error { color: var(--amber); }
.form-note.error a { color: var(--accent-purple); text-decoration: underline; }

/* ===================== Footer ===================== */
.site-footer { border-top: 1px solid var(--border); padding: 40px 0; }
.footer-inner { display: flex; flex-direction: column; align-items: center; gap: 18px; text-align: center; }
.footer-socials { display: flex; gap: 16px; }
.footer-socials a {
  width: 40px; height: 40px; display: flex; align-items: center; justify-content: center;
  border-radius: 50%; background: var(--surface); border: 1px solid var(--border);
  transition: all 0.25s ease;
}
.footer-socials a:hover { background: var(--gradient); transform: translateY(-3px); }
.footer-inner p { color: var(--text-dimmer); font-size: 0.85rem; }

/* ===================== Back to top ===================== */
.back-to-top {
  position: fixed; bottom: 28px; right: 28px;
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--gradient);
  border: none; color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-lg);
  opacity: 0; visibility: hidden; transform: translateY(16px);
  transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease;
  z-index: 900;
  font-size: 1rem;
}
.back-to-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover { transform: translateY(-4px); }

/* ===================== Modal ===================== */
.modal-overlay {
  position: fixed; inset: 0;
  background: rgba(5, 5, 10, 0.75);
  backdrop-filter: blur(6px);
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
  opacity: 0; visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  z-index: 1300;
}
.modal-overlay.open { opacity: 1; visibility: visible; }
.modal-card {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  max-width: 720px;
  width: 100%;
  max-height: 86vh;
  overflow-y: auto;
  position: relative;
  transform: translateY(24px) scale(0.98);
  transition: transform 0.3s ease;
  box-shadow: var(--shadow-lg);
}
.modal-overlay.open .modal-card { transform: translateY(0) scale(1); }
.modal-close {
  position: absolute; top: 16px; right: 16px;
  width: 38px; height: 38px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 1.4rem;
  line-height: 1;
  display: flex; align-items: center; justify-content: center;
  z-index: 2;
  transition: background 0.2s ease, transform 0.2s ease;
}
.modal-close:hover { background: var(--gradient); transform: rotate(90deg); }
.modal-header { height: 220px; position: relative; }
.modal-header img { width: 100%; height: 100%; object-fit: cover; }
.modal-header.no-image { background: var(--gradient); display: flex; align-items: center; justify-content: center; }
.modal-header.no-image i { font-size: 4rem; color: rgba(255,255,255,0.9); }
.modal-body { padding: 30px 32px 34px; }
.modal-body .project-cat { display: block; margin-bottom: 8px; }
.modal-body h2 { font-size: 1.5rem; margin-bottom: 18px; }
.modal-body h4 { font-size: 0.95rem; margin: 20px 0 10px; color: var(--accent-purple); }
.modal-body p { color: var(--text-dim); font-size: 0.94rem; }
.modal-body ul { display: flex; flex-direction: column; gap: 9px; }
.modal-body li { color: var(--text-dim); font-size: 0.9rem; padding-left: 18px; position: relative; }
.modal-body li::before { content: ""; position: absolute; left: 0; top: 8px; width: 5px; height: 5px; border-radius: 50%; background: var(--accent-purple); }
.modal-body li strong { color: var(--text); }
.modal-tech { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.modal-tech span { font-size: 0.76rem; color: var(--text-dim); background: rgba(255,255,255,0.05); border: 1px solid var(--border); padding: 5px 12px; border-radius: 999px; }

/* ===================== Scrollbar ===================== */
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--surface-hover); border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent-1); }

/* ===================== Responsive ===================== */
@media (max-width: 1000px) {
  .skills-grid { grid-template-columns: repeat(2, 1fr); }
  .project-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-inner { grid-template-columns: 1fr; text-align: center; }
  .hero-desc { margin-left: auto; margin-right: auto; }
  .hero-actions, .hero-socials { justify-content: center; }
  .hero-visual { margin-top: 40px; order: -1; }
  .about-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 860px) {
  .nav-links, .nav-cta { display: none; }
  .nav-toggle { display: flex; }

  .nav-links {
    position: fixed;
    top: 0; right: 0;
    height: 100vh;
    width: min(300px, 80vw);
    background: rgba(11, 11, 20, 0.98);
    backdrop-filter: blur(14px);
    flex-direction: column;
    align-items: flex-start;
    padding: 100px 32px 32px;
    gap: 6px;
    transform: translateX(100%);
    transition: transform 0.35s ease;
    border-left: 1px solid var(--border);
  }
  .nav-links.open { display: flex; transform: translateX(0); }
  .nav-link { width: 100%; padding: 14px 16px; font-size: 1rem; }
}

@media (max-width: 640px) {
  .section { padding: 80px 0; }
  .skills-grid { grid-template-columns: 1fr; }
  .project-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .education-row { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .float-card { display: none; }
  .timeline { padding-left: 26px; }
  .timeline-dot { left: -26px; }
  .modal-header { height: 160px; }
  .modal-body { padding: 24px 20px 28px; }
  .back-to-top { bottom: 18px; right: 18px; width: 44px; height: 44px; }
}
