/* ─── RESET & BASE ─────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: 'Inter', sans-serif;
  background: #07070f;
  color: #e2e8f0;
  overflow-x: hidden;
  line-height: 1.6;
  cursor: none; /* hidden on desktop; shown on touch via media query */
}
@media (pointer: coarse) { body { cursor: auto; } }

/* ─── PAGE LOADER ──────────────────────────────────────────────── */
#page-loader {
  position: fixed;
  inset: 0;
  background: var(--bg);
  z-index: 99999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 32px;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}
#page-loader.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.loader-crystals {
  position: relative;
  width: 90px;
  height: 90px;
  perspective: 500px;
}
.lc {
  position: absolute;
  top: 50%; left: 50%;
  width: 28px; height: 28px;
  border-radius: 6px;
  opacity: 0;
  animation: lcSpin 3s linear infinite, lcEmerge 1.5s ease-in-out infinite alternate;
}
.lc:nth-child(1) { background: linear-gradient(135deg,#1e0050,#6366f1); animation-delay: 0s;    }
.lc:nth-child(2) { background: linear-gradient(135deg,#2d0078,#818cf8); animation-delay: 0.25s; }
.lc:nth-child(3) { background: linear-gradient(135deg,#4700a0,#a5b4fc); animation-delay: 0.5s;  }
.lc:nth-child(4) { background: linear-gradient(135deg,#0e7490,#22d3ee); animation-delay: 0.75s; }
.lc:nth-child(5) { background: linear-gradient(135deg,#1d4ed8,#60a5fa); animation-delay: 1s;    }
.lc:nth-child(6) { background: linear-gradient(135deg,#6366f1,#22d3ee); animation-delay: 1.25s; }
@keyframes lcSpin {
  from { transform: translate(-50%,-50%) rotateX(45deg) rotateZ(0deg); }
  to   { transform: translate(-50%,-50%) rotateX(45deg) rotateZ(360deg); }
}
@keyframes lcEmerge {
  0%,100% { opacity: 0; transform: translate(-50%,-50%) rotateX(45deg) rotateZ(inherit) scale(0.4); }
  50%     { opacity: 1; transform: translate(-50%,-50%) rotateX(45deg) rotateZ(inherit) scale(1);   }
}
.loader-name {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-3);
  font-family: 'JetBrains Mono', monospace;
  animation: loaderPulse 1.5s ease-in-out infinite;
}
@keyframes loaderPulse {
  0%,100% { opacity: 0.4; }
  50%     { opacity: 1;   }
}

/* ─── SCROLL PROGRESS BAR ──────────────────────────────────────── */
#scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 2px;
  width: 0%;
  background: linear-gradient(90deg, var(--accent), var(--accent-cyan));
  z-index: 9999;
  transition: width 0.1s linear;
  pointer-events: none;
}

/* ─── CUSTOM CURSOR ────────────────────────────────────────────── */
#cursor-dot {
  position: fixed;
  top: -4px; left: -4px;
  width: 8px; height: 8px;
  background: var(--accent-cyan);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9998;
  transition: opacity 0.3s, background 0.3s;
  will-change: transform;
}
#cursor-ring {
  position: fixed;
  top: -18px; left: -18px;
  width: 36px; height: 36px;
  border: 1.5px solid rgba(99,102,241,0.6);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9997;
  transition: opacity 0.3s, width 0.25s, height 0.25s, top 0.25s, left 0.25s, border-color 0.25s, background 0.25s;
  will-change: transform;
}
#cursor-ring.hovered {
  width: 52px; height: 52px;
  top: -26px; left: -26px;
  border-color: var(--accent);
  background: rgba(99,102,241,0.06);
}
#cursor-dot.hovered {
  background: var(--accent);
  transform: scale(1.5) !important;
}
@media (pointer: coarse) {
  #cursor-dot, #cursor-ring { display: none; }
}

/* ─── NAV ACTIVE LINK ──────────────────────────────────────────── */
.nav-links a.nav-active {
  color: var(--text-1);
}
.nav-links a.nav-active::after {
  width: 100%;
}

/* ─── CSS VARIABLES ────────────────────────────────────────────── */
:root {
  --bg:           #07070f;
  --bg-surface:   #0d0d1a;
  --bg-card:      rgba(255,255,255,0.032);
  --bg-card-h:    rgba(255,255,255,0.058);
  --border:       rgba(255,255,255,0.07);
  --border-h:     rgba(99,102,241,0.4);
  --accent:       #6366f1;
  --accent-cyan:  #22d3ee;
  --accent-soft:  rgba(99,102,241,0.12);
  --text-1:       #f1f5f9;
  --text-2:       #94a3b8;
  --text-3:       #64748b;
  --glow:         0 0 60px rgba(99,102,241,0.18);
  --glow-sm:      0 0 24px rgba(99,102,241,0.22);
  --radius:       16px;
  --radius-sm:    10px;
  --radius-pill:  999px;
  --transition:   0.35s cubic-bezier(.4,0,.2,1);
}

/* ─── SCROLLBAR ────────────────────────────────────────────────── */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: rgba(99,102,241,0.35); border-radius: 99px; }

/* ─── SELECTION ────────────────────────────────────────────────── */
::selection { background: rgba(99,102,241,0.3); color: #fff; }

/* ─── TYPOGRAPHY HELPERS ───────────────────────────────────────── */
.mono { font-family: 'JetBrains Mono', monospace; }
.gradient-text {
  background: linear-gradient(135deg, #fff 30%, var(--accent-cyan) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.accent-text { color: var(--accent); }
.muted { color: var(--text-2); }

/* ─── LAYOUT ───────────────────────────────────────────────────── */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 28px;
}
section { padding: 110px 0; }

/* ─── SECTION LABEL ────────────────────────────────────────────── */
.section-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
}
.section-label::before {
  content: '';
  display: block;
  width: 24px;
  height: 1px;
  background: var(--accent);
}
.section-title {
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 800;
  color: var(--text-1);
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 60px;
}

/* ─── SCROLL REVEAL ────────────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity 0.7s cubic-bezier(.4,0,.2,1), transform 0.7s cubic-bezier(.4,0,.2,1);
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }
.reveal-delay-5 { transition-delay: 0.5s; }

/* ─── NAV ──────────────────────────────────────────────────────── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 0 28px;
  transition: background var(--transition), backdrop-filter var(--transition), border-color var(--transition);
  border-bottom: 1px solid transparent;
}
nav.scrolled {
  background: rgba(7,7,15,0.82);
  backdrop-filter: blur(20px);
  border-color: var(--border);
}
.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}
.nav-logo {
  font-family: 'JetBrains Mono', monospace;
  font-size: 15px;
  font-weight: 500;
  color: var(--text-1);
  text-decoration: none;
  letter-spacing: 0.04em;
}
.nav-logo span { color: var(--accent); }
.nav-links {
  display: flex;
  gap: 36px;
  list-style: none;
}
.nav-links a {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-2);
  text-decoration: none;
  letter-spacing: 0.02em;
  transition: color var(--transition);
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -3px; left: 0;
  width: 0; height: 1px;
  background: var(--accent);
  transition: width var(--transition);
}
.nav-links a:hover { color: var(--text-1); }
.nav-links a:hover::after { width: 100%; }
.nav-cta {
  padding: 8px 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  font-size: 13px;
  font-weight: 500;
  color: var(--text-1) !important;
  text-decoration: none;
  transition: border-color var(--transition), background var(--transition), box-shadow var(--transition) !important;
}
.nav-cta:hover {
  border-color: var(--accent) !important;
  background: var(--accent-soft) !important;
  box-shadow: var(--glow-sm) !important;
}
.nav-cta::after { display: none !important; }
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}
.hamburger span {
  display: block;
  width: 22px; height: 1.5px;
  background: var(--text-2);
  transition: var(--transition);
}
.hamburger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ─── MOBILE NAV MENU ──────────────────────────────────────────── */
.mobile-menu {
  display: none;
  position: fixed;
  top: 68px; left: 0; right: 0;
  background: rgba(7,7,15,0.97);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  z-index: 99;
  padding: 24px 28px;
  flex-direction: column;
  gap: 20px;
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  font-size: 15px;
  font-weight: 500;
  color: var(--text-2);
  text-decoration: none;
  transition: color var(--transition);
}
.mobile-menu a:hover { color: var(--text-1); }

/* ─── HERO ─────────────────────────────────────────────────────── */
#hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 0;
}
#hero-canvas {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}
.hero-glow-1 {
  position: absolute;
  width: 600px; height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(99,102,241,0.14) 0%, transparent 70%);
  top: -100px; left: -200px;
  pointer-events: none;
  animation: floatGlow 8s ease-in-out infinite alternate;
}
.hero-glow-2 {
  position: absolute;
  width: 400px; height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(34,211,238,0.08) 0%, transparent 70%);
  bottom: 0; right: -100px;
  pointer-events: none;
  animation: floatGlow 10s ease-in-out infinite alternate-reverse;
}
@keyframes floatGlow {
  from { transform: translate(0, 0) scale(1); }
  to   { transform: translate(40px, 30px) scale(1.1); }
}
.hero-content {
  position: relative;
  z-index: 2;
  padding: 140px 0 80px;
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-cyan);
  margin-bottom: 28px;
  opacity: 0;
  animation: fadeUp 0.8s 0.2s ease forwards;
}
.hero-eyebrow-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent-cyan);
  animation: pulseDot 2s ease infinite;
}
@keyframes pulseDot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.5; transform: scale(0.8); }
}
.hero-name {
  font-size: clamp(3.2rem, 8vw, 7rem);
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 0.95;
  color: var(--text-1);
  margin-bottom: 20px;
  opacity: 0;
  animation: fadeUp 0.8s 0.4s ease forwards;
}
.hero-name .line2 {
  display: block;
  background: linear-gradient(135deg, #c7d2fe 0%, #818cf8 40%, var(--accent-cyan) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-role {
  font-size: clamp(1rem, 2.2vw, 1.25rem);
  font-weight: 400;
  color: var(--text-2);
  margin-bottom: 28px;
  opacity: 0;
  animation: fadeUp 0.8s 0.6s ease forwards;
  max-width: 520px;
}
.hero-role strong { color: var(--text-1); font-weight: 600; }
.hero-tagline {
  font-size: clamp(0.875rem, 1.5vw, 1rem);
  color: var(--text-3);
  max-width: 500px;
  line-height: 1.7;
  margin-bottom: 44px;
  opacity: 0;
  animation: fadeUp 0.8s 0.8s ease forwards;
}
.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  opacity: 0;
  animation: fadeUp 0.8s 1s ease forwards;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius-pill);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: var(--transition);
  cursor: pointer;
  border: none;
}
.btn-primary {
  background: var(--accent);
  color: #fff;
  position: relative;
  z-index: 1;
}
/* Neon glow halo — inspired by uiverse.io */
.btn-primary::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius-pill);
  background: radial-gradient(circle farthest-corner at 50% 130%,
    rgba(99,102,241,0.9) 0%,
    rgba(34,211,238,0.5) 100%);
  filter: blur(16px);
  z-index: -1;
  opacity: 0;
  transition: opacity var(--transition);
}
.btn-primary:hover {
  background: #4f46e5;
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(99,102,241,0.35);
}
.btn-primary:hover::after { opacity: 1; }
.btn-secondary {
  background: transparent;
  color: var(--text-1);
  border: 1px solid var(--border);
}
.btn-secondary:hover {
  border-color: var(--accent);
  background: var(--accent-soft);
  transform: translateY(-2px);
}
.hero-stats {
  display: flex;
  gap: 40px;
  margin-top: 70px;
  opacity: 0;
  animation: fadeUp 0.8s 1.2s ease forwards;
}
.hero-stat-num {
  font-size: 2rem;
  font-weight: 800;
  color: var(--text-1);
  letter-spacing: -0.04em;
  line-height: 1;
}
.hero-stat-num span { color: var(--accent); }
.hero-stat-label {
  font-size: 12px;
  color: var(--text-3);
  margin-top: 4px;
  letter-spacing: 0.04em;
}
.hero-stat-divider {
  width: 1px;
  height: 40px;
  background: var(--border);
  align-self: center;
}
.hero-scroll-hint {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  opacity: 0;
  animation: fadeIn 1s 2s ease forwards;
}
.hero-scroll-hint span {
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-3);
  font-family: 'JetBrains Mono', monospace;
}
.scroll-line {
  width: 1px; height: 40px;
  background: linear-gradient(to bottom, var(--border), transparent);
  animation: scrollPulse 2s ease infinite;
}
@keyframes scrollPulse {
  0%   { transform: scaleY(0); transform-origin: top; }
  50%  { transform: scaleY(1); transform-origin: top; }
  51%  { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* ─── ABOUT ────────────────────────────────────────────────────── */
#about { background: var(--bg-surface); }
.about-grid {
  display: grid;
  grid-template-columns: 260px 1fr 300px;
  gap: 48px;
  align-items: start;
}

/* Photo column */
.about-photo-col {}
.about-photo-wrap {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--glow);
  transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition);
  aspect-ratio: 3 / 4;
}
.about-photo-wrap:hover {
  border-color: var(--border-h);
  box-shadow: 0 0 80px rgba(99,102,241,0.28);
  transform: translateY(-4px);
}
.about-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
  transition: transform 0.6s cubic-bezier(.4,0,.2,1);
}
.about-photo-wrap:hover .about-photo {
  transform: scale(1.04);
}
.about-photo-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    transparent 55%,
    rgba(7,7,15,0.55) 100%
  );
  pointer-events: none;
}
.about-bio {
  font-size: 1.05rem;
  color: var(--text-2);
  line-height: 1.8;
  margin-bottom: 24px;
}
.about-bio strong { color: var(--text-1); font-weight: 600; }
.about-contact-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 32px;
}
.about-contact-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  color: var(--text-2);
}
.about-contact-list li i {
  width: 32px; height: 32px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 8px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--accent);
  font-size: 13px;
  flex-shrink: 0;
}
.about-contact-list a {
  color: var(--text-2);
  text-decoration: none;
  transition: color var(--transition);
}
.about-contact-list a:hover { color: var(--accent-cyan); }
.about-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.about-card:hover {
  border-color: var(--border-h);
  box-shadow: var(--glow);
}
.about-card-title {
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-3);
  font-family: 'JetBrains Mono', monospace;
  margin-bottom: 20px;
}
.langs-grid {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.lang-top {
  display: flex;
  justify-content: space-between;
  margin-bottom: 7px;
}
.lang-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-1);
}
.lang-level {
  font-size: 12px;
  color: var(--text-3);
  font-family: 'JetBrains Mono', monospace;
}
.lang-bar {
  height: 3px;
  background: var(--border);
  border-radius: 99px;
  overflow: hidden;
}
.lang-bar-fill {
  height: 100%;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--accent), var(--accent-cyan));
  transform-origin: left;
  transform: scaleX(0);
  transition: transform 1.2s cubic-bezier(.4,0,.2,1);
}

/* ─── EXPERIENCE ───────────────────────────────────────────────── */
.experience-header { margin-bottom: 60px; }
.timeline {
  position: relative;
  padding-left: 30px;
}
.timeline::before {
  content: '';
  position: absolute;
  left: 0; top: 12px;
  width: 1px;
  bottom: 12px;
  background: linear-gradient(to bottom, var(--accent) 0%, rgba(99,102,241,0.1) 100%);
}
.timeline-item {
  position: relative;
  margin-bottom: 48px;
}
.timeline-item:last-child { margin-bottom: 0; }
.timeline-dot {
  position: absolute;
  left: -37px; top: 18px;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--accent);
  transition: background var(--transition), box-shadow var(--transition);
}
.timeline-item:hover .timeline-dot {
  background: var(--accent);
  box-shadow: 0 0 16px rgba(99,102,241,0.5);
}
.timeline-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px 32px;
  transition: border-color var(--transition), background var(--transition), box-shadow var(--transition), transform var(--transition);
  position: relative;
  overflow: hidden;
}
/* Light sweep shimmer on hover — inspired by uiverse.io metallic card */
.timeline-card::after {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 60%; height: 100%;
  background: linear-gradient(
    115deg,
    transparent 20%,
    rgba(255,255,255,0.04) 50%,
    transparent 80%
  );
  transform: skewX(-15deg);
  transition: left 0.6s cubic-bezier(.4,0,.2,1);
  pointer-events: none;
}
.timeline-card:hover::after { left: 160%; }
.timeline-card:hover {
  border-color: var(--border-h);
  background: var(--bg-card-h);
  box-shadow: var(--glow);
  transform: translateX(4px);
}
.timeline-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 6px;
}
.timeline-company-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
}
.timeline-logo {
  background: #fff;
  border-radius: 8px;
  padding: 5px 10px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.timeline-logo img {
  height: 22px;
  width: auto;
  max-width: 90px;
  object-fit: contain;
  display: block;
}
.timeline-company {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-1);
  letter-spacing: -0.02em;
}
.timeline-period {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--accent);
  background: var(--accent-soft);
  border: 1px solid rgba(99,102,241,0.2);
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  white-space: nowrap;
  flex-shrink: 0;
}
.timeline-role {
  font-size: 14px;
  font-weight: 500;
  color: var(--accent-cyan);
  margin-bottom: 4px;
}
.timeline-location {
  font-size: 12px;
  color: var(--text-3);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 5px;
}
.timeline-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 20px;
}
.stack-pill {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--accent-cyan);
  background: rgba(34,211,238,0.07);
  border: 1px solid rgba(34,211,238,0.15);
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  transition: background var(--transition), border-color var(--transition);
}
.stack-pill:hover {
  background: rgba(34,211,238,0.14);
  border-color: rgba(34,211,238,0.3);
}
.timeline-bullets {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.timeline-bullets li {
  font-size: 14px;
  color: var(--text-2);
  padding-left: 18px;
  position: relative;
  line-height: 1.6;
}
.timeline-bullets li::before {
  content: '';
  position: absolute;
  left: 0; top: 9px;
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--accent);
}
.timeline-card.non-tech { opacity: 0.75; }
.timeline-card.non-tech:hover { opacity: 1; }

/* ─── EDUCATION ────────────────────────────────────────────────── */
#education { background: var(--bg-surface); }
.edu-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}
.edu-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 30px;
  transition: border-color var(--transition), background var(--transition), box-shadow var(--transition), transform var(--transition);
  position: relative;
  overflow: hidden;
}
.edu-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent-cyan));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition);
}
.edu-card:hover {
  border-color: var(--border-h);
  background: var(--bg-card-h);
  box-shadow: var(--glow);
  transform: translateY(-4px);
}
.edu-card:hover::before { transform: scaleX(1); }
.edu-card-icon {
  width: 40px; height: 40px;
  border-radius: 10px;
  background: var(--accent-soft);
  border: 1px solid rgba(99,102,241,0.2);
  display: flex; align-items: center; justify-content: center;
  color: var(--accent);
  font-size: 16px;
  margin-bottom: 18px;
}
.edu-card-logo {
  background: #fff;
  border-radius: 10px;
  padding: 8px 12px;
  height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}
.edu-card-logo img {
  height: 32px;
  width: auto;
  max-width: 140px;
  object-fit: contain;
  display: block;
}
.edu-degree {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-1);
  margin-bottom: 6px;
  letter-spacing: -0.02em;
  line-height: 1.3;
}
.edu-institution {
  font-size: 13px;
  color: var(--accent-cyan);
  font-weight: 500;
  margin-bottom: 8px;
}
.edu-period {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--text-3);
}
.edu-location {
  font-size: 12px;
  color: var(--text-3);
  margin-top: 4px;
  display: flex;
  align-items: center;
  gap: 4px;
}

/* ─── SKILLS ───────────────────────────────────────────────────── */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
}
.skill-group {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px 28px;
  transition: border-color var(--transition), background var(--transition), box-shadow var(--transition), transform var(--transition);
  position: relative;
  overflow: hidden;
}
/* Floating orb — inspired by uiverse.io glassmorphism card */
.skill-group::before {
  content: '';
  position: absolute;
  width: 80px; height: 80px;
  border-radius: 50%;
  background: rgba(99,102,241,0.18);
  top: -24px; right: -24px;
  transition: transform 0.65s cubic-bezier(.4,0,.2,1), opacity 0.4s ease;
  pointer-events: none;
  opacity: 0;
}
.skill-group:hover::before {
  transform: translate(-12px, 14px) scale(1.5);
  opacity: 1;
}
.skill-group:hover {
  border-color: var(--border-h);
  background: var(--bg-card-h);
  box-shadow: var(--glow);
  transform: translateY(-3px);
}
.skill-group-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
}
.skill-group-icon {
  width: 34px; height: 34px;
  border-radius: 8px;
  background: var(--accent-soft);
  border: 1px solid rgba(99,102,241,0.2);
  display: flex; align-items: center; justify-content: center;
  color: var(--accent);
  font-size: 14px;
  flex-shrink: 0;
}
.skill-group-name {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-1);
  letter-spacing: 0.01em;
}
.skill-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}
.skill-pill {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-2);
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  transition: color var(--transition), border-color var(--transition), background var(--transition), transform var(--transition), opacity 0.4s ease;
  cursor: default;
  opacity: 0;
  transform: translateY(8px);
}
.skill-pill.pill-visible {
  opacity: 1;
  transform: translateY(0);
}
.skill-pill:hover {
  color: var(--accent-cyan);
  border-color: rgba(34,211,238,0.3);
  background: rgba(34,211,238,0.06);
  transform: translateY(-2px) scale(1.04);
}

/* ─── 3D TILT — smooth transition on leave ─────────────────────── */
.timeline-card,
.skill-group,
.edu-card,
.about-card {
  transition-property: border-color, background, box-shadow, transform;
  transform-style: preserve-3d;
  will-change: transform;
}

/* ─── LOOKING FORWARD / GOALS ──────────────────────────────────── */
.goals-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 48px 52px;
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 48px;
  align-items: center;
  position: relative;
  overflow: hidden;
}
.goals-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent-cyan));
}
.goals-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 80% 50%, rgba(99,102,241,0.06) 0%, transparent 60%);
  pointer-events: none;
}
.goals-statement {
  font-size: 1.02rem;
  color: var(--text-2);
  line-height: 1.78;
  margin-bottom: 16px;
}
.goals-statement strong { color: var(--text-1); }
.goals-statement:last-of-type { margin-bottom: 32px; }
.goals-focuses {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.goals-focus-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 18px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(99,102,241,0.28);
  background: rgba(99,102,241,0.07);
  font-size: 13px;
  font-weight: 500;
  color: var(--text-1);
  transition: var(--transition);
  cursor: default;
}
.goals-focus-item i {
  color: var(--accent-cyan);
  font-size: 12px;
}
.goals-focus-item:hover {
  border-color: rgba(34,211,238,0.4);
  background: rgba(34,211,238,0.07);
  color: var(--accent-cyan);
  transform: translateY(-2px);
}
/* Decorative column */
.goals-deco {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 220px;
}
.goals-orb {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}
.goals-orb-1 {
  width: 170px; height: 170px;
  background: radial-gradient(circle, rgba(99,102,241,0.18) 0%, transparent 70%);
  animation: floatGlow 5s ease-in-out infinite;
}
.goals-orb-2 {
  width: 100px; height: 100px;
  background: radial-gradient(circle, rgba(34,211,238,0.14) 0%, transparent 70%);
  animation: floatGlow 7s ease-in-out infinite reverse;
  right: 12px; bottom: 12px;
}
.goals-icon {
  font-size: 68px;
  background: linear-gradient(135deg, var(--accent), var(--accent-cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  position: relative;
  z-index: 1;
  filter: drop-shadow(0 0 22px rgba(99,102,241,0.45));
}

/* ─── CONTACT / FOOTER ─────────────────────────────────────────── */
#contact {
  background: var(--bg-surface);
  text-align: center;
  position: relative;
  overflow: hidden;
}
#contact::before {
  content: '';
  position: absolute;
  width: 600px; height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(99,102,241,0.08) 0%, transparent 70%);
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}
.contact-inner { position: relative; z-index: 1; }
.contact-heading {
  font-size: clamp(2.4rem, 5vw, 4rem);
  font-weight: 900;
  letter-spacing: -0.04em;
  color: var(--text-1);
  margin-bottom: 18px;
  line-height: 1.1;
}
.contact-sub {
  font-size: 1rem;
  color: var(--text-2);
  max-width: 440px;
  margin: 0 auto 44px;
  line-height: 1.7;
}
.contact-links {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 80px;
}
.contact-link {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 13px 26px;
  border-radius: var(--radius-pill);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  border: 1px solid var(--border);
  color: var(--text-2);
  background: var(--bg-card);
  transition: var(--transition);
}
.contact-link i { font-size: 15px; }
.contact-link:hover {
  border-color: var(--accent);
  color: var(--text-1);
  background: var(--accent-soft);
  transform: translateY(-2px);
  box-shadow: var(--glow-sm);
}
.footer-divider {
  width: 100%;
  height: 1px;
  background: var(--border);
  margin-bottom: 32px;
}
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.footer-copy {
  font-size: 12px;
  color: var(--text-3);
  font-family: 'JetBrains Mono', monospace;
}
.footer-copy span { color: var(--accent); }
.footer-built {
  font-size: 12px;
  color: var(--text-3);
}

/* ─── RESPONSIVE ───────────────────────────────────────────────── */

/* ── Tablet landscape ── */
@media (max-width: 1060px) {
  .about-grid { grid-template-columns: 220px 1fr; gap: 36px; }
  .about-right { grid-column: 1 / -1; }
}

/* ── Tablet portrait ── */
@media (max-width: 900px) {
  .about-grid  { grid-template-columns: 1fr; gap: 36px; }
  .about-photo-wrap { max-width: 260px; }
  .nav-links   { display: none; }
  .hamburger   { display: flex; }
  .hero-stats  { gap: 24px; flex-wrap: wrap; }
  .skills-grid { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
  .edu-grid    { grid-template-columns: 1fr 1fr; }
  .goals-card  { grid-template-columns: 1fr; }
  .goals-deco  { display: none; }
}

/* ── Large phone / small tablet ── */
@media (max-width: 640px) {
  section { padding: 72px 0; }
  .container { padding: 0 20px; }

  /* Hero */
  .hero-content      { padding: 120px 0 60px; }
  .hero-actions      { flex-direction: column; gap: 12px; }
  .hero-actions .btn { width: 100%; justify-content: center; }
  .hero-stats        { flex-direction: column; gap: 14px; margin-top: 48px; }
  .hero-stat-divider { display: none; }
  .hero-scroll-hint  { display: none; }

  /* Timeline */
  .timeline          { padding-left: 18px; }
  .timeline-dot      { left: -25px; top: 16px; width: 12px; height: 12px; }
  .timeline-card     { padding: 22px 20px; }
  .timeline-header   { flex-direction: column; gap: 10px; align-items: flex-start; }
  .timeline-period   { align-self: flex-start; }

  /* Education */
  .edu-grid  { grid-template-columns: 1fr; }
  .edu-card  { padding: 22px 22px; }

  /* Skills */
  .skills-grid  { grid-template-columns: 1fr; }
  .skill-group  { padding: 20px 22px; }

  /* Goals */
  .goals-card   { padding: 32px 24px; }
  .goals-focuses { gap: 8px; }
  .goals-focus-item { font-size: 12px; padding: 7px 14px; }

  /* Section titles */
  .section-title { margin-bottom: 40px; }

  /* Contact */
  .contact-links    { flex-direction: column; align-items: center; }
  .contact-link     { width: 100%; max-width: 320px; justify-content: center; }
  .footer-bottom    { flex-direction: column; text-align: center; }
  .contact-heading  { font-size: clamp(2rem, 9vw, 2.8rem); }
}

/* ── Small phone (≤ 390px) ── */
@media (max-width: 390px) {
  .container { padding: 0 16px; }
  .nav-inner { padding: 0; }
  .timeline-card   { padding: 18px 16px; }
  .timeline-stack  { gap: 5px; }
  .stack-pill      { font-size: 10px; padding: 2px 8px; }
  .about-card      { padding: 22px 18px; }
  .hero-eyebrow    { font-size: 10px; }
}
