:root {
  --bg-base: #080810;
  --bg-surface: #0F0F1A;
  --bg-card: #141420;
  --accent: #7B2CBF;
  --accent-dim: rgba(123,44,191,0.12);
  --accent-glow: rgba(123,44,191,0.25);
  --text-primary: #F1F5F9;
  --text-muted: #64748B;
  --text-subtle: #94A3B8;
  --border: rgba(255,255,255,0.07);
  --border-accent: rgba(123,44,191,0.35);
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', sans-serif;
  background-color: var(--bg-base);
  color: var(--text-primary);
  min-height: 100vh;
  overflow-x: hidden;
}
h1, h2, h3, h4 { font-family: 'Space Grotesk', sans-serif; }

/* ── NOISE OVERLAY ── */
body::before {
  content: '';
  position: fixed; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
  background-size: 200px 200px;
  pointer-events: none;
  z-index: 0;
  opacity: 0.6;
}

/* ── GRADIENT BLOBS ── */
.blob {
  position: fixed;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.08;
  pointer-events: none;
  z-index: 0;
  animation: float 18s ease-in-out infinite;
}
.blob-1 { width: 500px; height: 500px; background: var(--accent); top: -150px; right: -100px; animation-delay: 0s; }
.blob-2 { width: 400px; height: 400px; background: #6366F1; bottom: 20%; left: -150px; animation-delay: -6s; }
.blob-3 { width: 300px; height: 300px; background: var(--accent); bottom: -80px; right: 20%; animation-delay: -12s; opacity: 0.05; }
@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(30px, -30px) scale(1.05); }
  66% { transform: translate(-20px, 20px) scale(0.95); }
}

/* ── NAVBAR ── */
.navbar {
  position: fixed; top: 16px; left: 50%; transform: translateX(-50%);
  z-index: 50;
  display: flex; align-items: center; gap: 8px;
  background: rgba(15,15,26,0.75);
  backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 10px 20px;
  white-space: nowrap;
}
.nav-link {
  font-size: 13px; font-weight: 500;
  color: var(--text-subtle);
  text-decoration: none;
  padding: 6px 14px;
  border-radius: 100px;
  transition: all 200ms ease;
}
.nav-link:hover { color: var(--text-primary); background: rgba(255,255,255,0.06); }
.nav-link.active { color: var(--bg-base); background: var(--accent); }
.nav-dot { width: 4px; height: 4px; border-radius: 50%; background: var(--border); }
.lang-toggle {
  font-size: 11px; font-weight: 700; letter-spacing: 0.05em;
  color: var(--accent); background: var(--accent-dim);
  border: 1px solid var(--border-accent);
  padding: 4px 10px; border-radius: 100px;
  cursor: pointer; transition: all 200ms;
}
.lang-toggle:hover { background: var(--accent); color: var(--bg-base); }

/* ── HERO ── */
.hero-section {
  position: relative; z-index: 1;
  min-height: 85vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 120px 40px 80px;
  gap: 80px;
}
.photo-container {
  position: relative;
  display: flex; justify-content: center;
}
.photo-frame {
  position: relative;
  width: 320px; height: 380px;
  border-radius: 24px;
  overflow: hidden;
}
.photo-frame img {
  width: 100%; height: 100%;
  object-fit: cover;
}
.photo-accent-ring {
  position: absolute;
  inset: -2px;
  border-radius: 26px;
  background: linear-gradient(135deg, var(--accent) 0%, transparent 60%);
  z-index: -1;
}
.photo-badge {
  position: absolute;
  bottom: -12px; right: -12px;
  background: var(--accent);
  color: var(--bg-base);
  font-size: 11px; font-weight: 700;
  padding: 8px 16px;
  border-radius: 100px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  box-shadow: 0 8px 24px var(--accent-glow);
}
.experience-badge {
  position: absolute;
  top: 24px; left: -20px;
  background: var(--bg-card);
  border: 1px solid var(--border-accent);
  border-radius: 16px;
  padding: 14px 20px;
  display: flex; align-items: center; gap: 12px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.4);
}
.exp-number { font-size: 28px; font-weight: 700; color: var(--accent); font-family: 'Space Grotesk', sans-serif; line-height: 1; }
.exp-label { font-size: 11px; color: var(--text-muted); line-height: 1.4; }

.hero-content { display: flex; flex-direction: column; gap: 24px; }
.hero-tag {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-dim);
  border: 1px solid var(--border-accent);
  padding: 6px 14px; border-radius: 100px;
  width: fit-content;
  white-space: nowrap;
}
.pulse-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); animation: pulse 2s infinite; flex-shrink: 0; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.4; } }
.hero-name { font-size: 52px; font-weight: 700; line-height: 1.1; letter-spacing: -0.02em; }
.hero-name .accent { color: var(--accent); }
.hero-role { font-size: 18px; font-weight: 500; color: var(--text-subtle); }
.hero-desc { font-size: 15px; color: var(--text-muted); line-height: 1.8; max-width: 480px; }
.skills-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  font-size: 12px; font-weight: 500; color: var(--text-subtle);
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  padding: 5px 12px; border-radius: 6px;
  transition: all 200ms;
}
.chip:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-dim); }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }
.btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 24px; border-radius: 12px;
  background: var(--accent); color: var(--bg-base);
  font-size: 14px; font-weight: 600;
  text-decoration: none; cursor: pointer;
  transition: all 200ms;
  box-shadow: 0 4px 20px var(--accent-glow);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 30px var(--accent-glow); }
.btn-ghost {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 24px; border-radius: 12px;
  background: transparent; color: var(--text-subtle);
  font-size: 14px; font-weight: 600;
  border: 1px solid var(--border);
  text-decoration: none; cursor: pointer;
  transition: all 200ms;
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-dim); }

/* ── SECTION LAYOUT ── */
.section {
  position: relative; z-index: 1;
  max-width: 1200px; margin: 0 auto;
  padding: 100px 40px;
}
.section-header { text-align: center; margin-bottom: 64px; }
.section-label {
  display: inline-block;
  font-size: 11px; font-weight: 700; letter-spacing: 0.15em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 12px;
}
.section-title { font-size: 40px; font-weight: 700; letter-spacing: -0.02em; }
.section-sub { font-size: 15px; color: var(--text-muted); margin-top: 12px; }
.divider {
  width: 48px; height: 3px;
  background: linear-gradient(90deg, var(--accent), transparent);
  border-radius: 2px;
  margin: 16px auto 0;
}

/* ── STATS BAR ── */
.stats-bar {
  position: relative; z-index: 1;
  background: var(--bg-surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.stats-inner {
  max-width: 1200px; margin: 0 auto;
  padding: 32px 40px;
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 0;
}
.stat-item {
  padding: 0 32px;
  border-right: 1px solid var(--border);
  text-align: center;
}
.stat-item:last-child { border-right: none; }
.stat-item:first-child { padding-left: 0; }
.stat-number { font-size: 36px; font-weight: 700; color: var(--accent); font-family: 'Space Grotesk', sans-serif; }
.stat-label { font-size: 12px; color: var(--text-muted); margin-top: 4px; }

/* ── ABOUT ── */
.about-content {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.about-content p {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.8;
}

/* ── TIMELINE ── */
.timeline { position: relative; }
.timeline::before {
  content: '';
  position: absolute;
  left: 50%; top: 0; bottom: 0;
  width: 1px;
  background: linear-gradient(to bottom, transparent, var(--border) 10%, var(--border) 90%, transparent);
  transform: translateX(-50%);
}
.timeline-item {
  display: grid;
  grid-template-columns: 1fr 60px 1fr;
  align-items: start;
  margin-bottom: 48px;
  gap: 0;
}
.timeline-item:last-child { margin-bottom: 0; }
.timeline-left { text-align: right; padding-right: 40px; padding-top: 4px; }
.timeline-right { padding-left: 40px; padding-top: 4px; }
.timeline-center {
  display: flex; justify-content: center; align-items: flex-start;
  padding-top: 4px;
}
.timeline-dot {
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--accent);
  border: 3px solid var(--bg-base);
  box-shadow: 0 0 0 4px var(--accent-dim), 0 0 16px var(--accent-glow);
  flex-shrink: 0;
  margin-top: 6px;
}
.tl-company { font-size: 14px; font-weight: 600; color: var(--text-primary); }
.tl-period { font-size: 12px; color: var(--accent); font-weight: 500; margin-top: 2px; }
.tl-role { font-size: 15px; font-weight: 600; color: var(--text-primary); }
.tl-desc { font-size: 13px; color: var(--text-muted); margin-top: 6px; line-height: 1.7; }
.tl-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.tl-tag {
  font-size: 10px; font-weight: 600; letter-spacing: 0.05em;
  color: var(--text-subtle);
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  padding: 3px 8px; border-radius: 4px;
}

/* ── TIMELINE SUBROLES ── */
.tl-subroles {
  display: flex;
  flex-direction: column;
  gap: 0;
  position: relative;
  padding-left: 16px;
}
.tl-subroles::before {
  content: '';
  position: absolute;
  left: 3px;
  top: 8px;
  bottom: 8px;
  width: 1px;
  background: var(--border);
}
.tl-subrole {
  display: flex;
  gap: 16px;
  padding: 16px 0;
  position: relative;
}
.tl-subrole:first-child { padding-top: 0; }
.tl-subrole:not(:last-child) {
  border-bottom: 1px solid rgba(255,255,255,0.04);
}
.tl-subrole-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
  margin-top: 7px;
  margin-left: -16px;
  position: relative;
  z-index: 1;
}
.tl-subrole-content {
  flex: 1;
  padding-left: 4px;
}
.tl-subperiod {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 2px;
}

/* ── PROJECTS ── */
.projects-list { display: flex; flex-direction: column; gap: 48px; }
.project-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
  padding: 40px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 24px;
  transition: all 300ms ease;
  cursor: pointer;
}
.project-card:hover {
  border-color: var(--border-accent);
  box-shadow: 0 20px 60px rgba(0,0,0,0.4), inset 0 0 0 1px rgba(123,44,191,0.08);
  transform: translateY(-4px);
}
.project-card.reverse { direction: rtl; }
.project-card.reverse > * { direction: ltr; }
.project-thumb {
  aspect-ratio: 16/10;
  background: linear-gradient(135deg, #1a1a2e, #16213e);
  border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
  position: relative;
}
.project-thumb--embed {
  aspect-ratio: 16/10;
  background: var(--bg-base);
}
.project-thumb--embed iframe {
  width: 100%;
  height: 100%;
  border: none;
  border-radius: 16px;
}
.project-thumb-img {
  width: 100%; height: 100%;
  object-fit: cover;
  position: relative;
  z-index: 0;
}
.project-thumb-label {
  font-size: 11px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--text-muted);
}
.project-thumb-accent {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--accent-dim) 0%, transparent 60%);
  border-radius: 16px;
}
.project-num { font-size: 12px; font-weight: 700; color: var(--accent); letter-spacing: 0.1em; }
.project-title { font-size: 24px; font-weight: 700; margin-top: 8px; letter-spacing: -0.01em; }
.project-desc { font-size: 14px; color: var(--text-muted); line-height: 1.8; margin-top: 12px; }
.project-problem {
  margin-top: 16px;
  padding: 14px 18px;
  background: rgba(123,44,191,0.06);
  border-left: 3px solid var(--accent);
  border-radius: 0 8px 8px 0;
}
.project-problem-label { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: var(--accent); }
.project-problem-text { font-size: 13px; color: var(--text-subtle); margin-top: 4px; line-height: 1.6; }
.project-tools { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.tool-badge {
  font-size: 11px; font-weight: 600;
  color: var(--text-subtle);
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  padding: 4px 10px; border-radius: 6px;
}
.project-link {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 13px; font-weight: 600;
  color: var(--accent);
  text-decoration: none;
  margin-top: 20px;
  transition: gap 200ms;
}
.project-link:hover { gap: 10px; }

/* ── EDUCATION ── */
.edu-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.edu-card {
  padding: 28px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  transition: all 250ms;
}
.edu-card:hover { border-color: var(--border-accent); transform: translateY(-2px); }
.edu-icon {
  width: 44px; height: 44px;
  background: var(--accent-dim);
  border: 1px solid var(--border-accent);
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
}
.edu-type { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: var(--accent); }
.edu-title { font-size: 15px; font-weight: 600; margin-top: 4px; }
.edu-school { font-size: 13px; color: var(--text-muted); margin-top: 4px; }
.edu-year { font-size: 12px; color: var(--text-subtle); margin-top: 8px; }

/* ── CERTS ── */
.certs-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 24px; }
.cert-badge {
  padding: 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  display: flex; align-items: center; gap: 12px;
  transition: all 250ms;
}
.cert-badge:hover { border-color: var(--border-accent); background: var(--accent-dim); }
.cert-icon {
  width: 36px; height: 36px;
  background: var(--accent-dim);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.cert-name { font-size: 12px; font-weight: 600; }
.cert-issuer { font-size: 11px; color: var(--text-muted); margin-top: 2px; }

/* ── SKILLS ── */
.skills-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  max-width: 900px;
  margin: 0 auto;
}
.skills-column { display: flex; flex-direction: column; gap: 24px; }
.skills-column-title {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}
.skill-bar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}
.skill-bar-header span:first-child {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
}
.skill-pct {
  font-size: 13px;
  font-weight: 700;
  color: var(--accent);
  font-family: 'Space Grotesk', sans-serif;
}
.skill-track {
  width: 100%;
  height: 8px;
  background: rgba(255,255,255,0.06);
  border-radius: 4px;
  overflow: hidden;
}
.skill-fill {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--accent), #9d4edd);
  border-radius: 4px;
  transition: width 1.2s ease;
}

/* ── CONTACT ── */
.contact-section {
  position: relative; z-index: 1;
  text-align: center;
  padding: 100px 40px 80px;
  max-width: 800px;
  margin: 0 auto;
}
.contact-grid { display: flex; justify-content: center; gap: 20px; flex-wrap: wrap; margin-top: 48px; }
.contact-card {
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  padding: 28px 36px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 20px;
  text-decoration: none;
  transition: all 250ms;
  min-width: 130px;
}
.contact-card:hover {
  border-color: var(--accent);
  background: var(--accent-dim);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px var(--accent-glow);
}
.contact-card:hover .contact-icon { background: var(--accent); }
.contact-icon {
  width: 52px; height: 52px;
  background: var(--accent-dim);
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  transition: all 250ms;
}
.contact-card span { font-size: 13px; font-weight: 500; color: var(--text-subtle); }

/* ── FOOTER ── */
footer {
  position: relative; z-index: 1;
  border-top: 1px solid var(--border);
  padding: 28px 40px;
  text-align: center;
  font-size: 13px; color: var(--text-muted);
}

/* ── SCROLL ANIMATION ── */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 600ms ease, transform 600ms ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 100ms; }
.reveal-delay-2 { transition-delay: 200ms; }
.reveal-delay-3 { transition-delay: 300ms; }
.reveal-delay-4 { transition-delay: 400ms; }

@media (max-width: 900px) {
  .hero-section { grid-template-columns: 1fr; padding: 100px 24px 60px; gap: 48px; }
  .photo-container { order: -1; }
  .stats-inner { grid-template-columns: 1fr 1fr; gap: 24px; }
  .stat-item { border-right: none; border-bottom: 1px solid var(--border); padding: 0 0 24px; }
  .stat-item:nth-child(odd) { border-right: 1px solid var(--border); }
  .section { padding: 60px 24px; }
  .timeline::before { left: 20px; }
  .timeline-item { grid-template-columns: 20px 1fr; }
  .timeline-left { display: none; }
  .timeline-center { padding: 0; justify-content: flex-start; }
  .timeline-right { padding-left: 24px; }
  .project-card { grid-template-columns: 1fr; gap: 24px; }
  .project-card.reverse { direction: ltr; }
  .edu-grid { grid-template-columns: 1fr; }
  .certs-grid { grid-template-columns: 1fr 1fr; }
  .hero-name { font-size: 36px; }
  .project-thumb--embed { display: none; }
  .skills-grid { grid-template-columns: 1fr; }
}
