:root {
  --bg: #050509;
  --bg-2: #0B0A12;
  --purple: #8B5CF6;
  --glow: #A855F7;
  --accent: #C084FC;
  --text: #FFFFFF;
  --muted: #A1A1AA;
  --glass: rgba(255, 255, 255, 0.05);
  --border: rgba(168, 85, 247, 0.25);
  --grad: linear-gradient(120deg, var(--purple), var(--glow), var(--accent));
  --radius: 24px;
  --font-head: "Space Grotesk", sans-serif;
  --font-body: "Inter", sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.2; font-weight: 600; }

.container {
  width: min(1160px, 92%);
  margin-inline: auto;
}
.container.narrow { width: min(760px, 92%); }

::selection { background: rgba(168, 85, 247, 0.4); color: #fff; }

::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: linear-gradient(var(--purple), var(--glow)); border-radius: 8px; }

.bg-orbs { position: fixed; inset: 0; z-index: -2; pointer-events: none; overflow: hidden; }
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(110px);
  opacity: 0.16;
  animation: orbDrift 22s ease-in-out infinite alternate;
}
.orb-1 { width: 480px; height: 480px; background: var(--purple); top: -160px; left: -120px; }
.orb-2 { width: 420px; height: 420px; background: var(--glow); top: 34%; right: -180px; animation-delay: -7s; }
.orb-3 { width: 520px; height: 520px; background: #6D28D9; bottom: -220px; left: 28%; animation-delay: -14s; }

@keyframes orbDrift {
  from { transform: translate(0, 0) scale(1); }
  to { transform: translate(60px, -50px) scale(1.12); }
}

.navbar {
  position: fixed;
  inset-inline: 0;
  top: 0;
  z-index: 100;
  transition: background 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
  border-bottom: 1px solid transparent;
}
.navbar.scrolled {
  background: rgba(5, 5, 9, 0.72);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom-color: rgba(168, 85, 247, 0.15);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.45);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 74px;
}
.logo {
  display: flex;
  align-items: center;
}
.logo-img {
  height: 46px;
  width: auto;
  max-width: 160px;
  object-fit: contain;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 30px;
}
.nav-links > a:not(.nav-cta) {
  font-size: 0.95rem;
  color: var(--muted);
  position: relative;
  transition: color 0.25s ease;
}
.nav-links > a:not(.nav-cta)::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 0;
  height: 2px;
  border-radius: 2px;
  background: var(--grad);
  transition: width 0.3s ease;
}
.nav-links > a:not(.nav-cta):hover,
.nav-links > a.active { color: var(--text); }
.nav-links > a:not(.nav-cta):hover::after,
.nav-links > a.active::after { width: 100%; }
.nav-cta { padding: 10px 22px; font-size: 0.9rem; }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px 11px;
  cursor: pointer;
}
.hamburger span {
  width: 22px;
  height: 2px;
  border-radius: 2px;
  background: var(--text);
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.hamburger.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.98rem;
  padding: 15px 32px;
  border-radius: 999px;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease, border-color 0.3s ease;
  will-change: transform;
}
.btn-lg { padding: 17px 40px; font-size: 1.05rem; }
.btn-primary {
  background: linear-gradient(120deg, #7C3AED, #A855F7);
  color: #fff;
  box-shadow: 0 8px 26px rgba(139, 92, 246, 0.35);
}
.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 38px rgba(168, 85, 247, 0.55);
}
.btn-glass {
  background: var(--glass);
  border: 1px solid var(--border);
  color: var(--text);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.btn-glass:hover {
  transform: translateY(-3px);
  border-color: rgba(192, 132, 252, 0.65);
  box-shadow: 0 10px 30px rgba(168, 85, 247, 0.25);
}
.glow-pulse { animation: glowPulse 3.2s ease-in-out infinite; }
@keyframes glowPulse {
  0%, 100% { box-shadow: 0 8px 26px rgba(139, 92, 246, 0.35); }
  50% { box-shadow: 0 8px 44px rgba(168, 85, 247, 0.65); }
}

.section {
  position: relative;
  padding: 110px 0;
  overflow: hidden;
}

.about-section {
  background:
    radial-gradient(700px 400px at 85% 20%, rgba(139, 92, 246, 0.14), transparent 70%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 100%);
}
.skills-section {
  background: radial-gradient(800px 500px at 50% 0%, rgba(168, 85, 247, 0.08), transparent 65%);
}
.stack-section {
  background:
    radial-gradient(650px 380px at 15% 80%, rgba(139, 92, 246, 0.13), transparent 70%),
    linear-gradient(180deg, var(--bg-2), var(--bg));
}
.toolkit-section {
  background: var(--bg-2);
}
.projects-section {
  background: radial-gradient(750px 450px at 50% 10%, rgba(168, 85, 247, 0.09), transparent 65%);
}
.journey-section {
  background: linear-gradient(180deg, var(--bg-2), var(--bg));
}
.why-section {
  background: var(--bg);
}
.contact-section {
  background:
    radial-gradient(800px 460px at 50% 0%, rgba(139, 92, 246, 0.16), transparent 70%),
    linear-gradient(180deg, var(--bg), var(--bg-2));
}

.section-head { max-width: 720px; margin-bottom: 58px; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-num {
  display: inline-block;
  font-family: var(--font-head);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
  padding: 7px 16px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(168, 85, 247, 0.07);
}
.section-head h2 {
  font-size: clamp(1.9rem, 4vw, 2.9rem);
  letter-spacing: -0.01em;
}
.section-sub {
  margin-top: 18px;
  color: var(--muted);
  font-size: 1.05rem;
}
.section-sub strong { color: var(--accent); font-weight: 600; }

.gradient-text {
  background: var(--grad);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  animation: gradShift 6s ease infinite;
}
@keyframes gradShift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.glass-card {
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 10px 34px rgba(0, 0, 0, 0.35);
  transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}
.glass-card:hover {
  transform: translateY(-8px);
  border-color: rgba(192, 132, 252, 0.6);
  box-shadow: 0 18px 48px rgba(139, 92, 246, 0.28), 0 0 0 1px rgba(192, 132, 252, 0.15) inset;
}

.card-icon {
  display: inline-grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.22), rgba(168, 85, 247, 0.1));
  border: 1px solid var(--border);
  color: var(--accent);
  box-shadow: 0 0 22px rgba(168, 85, 247, 0.25), inset 0 0 14px rgba(168, 85, 247, 0.12);
}
.card-icon svg { width: 26px; height: 26px; }
.card-icon.small { width: 42px; height: 42px; border-radius: 12px; }
.card-icon.small svg { width: 20px; height: 20px; }

.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 140px 0 90px;
  background:
    radial-gradient(900px 520px at 78% 40%, rgba(139, 92, 246, 0.16), transparent 65%),
    radial-gradient(500px 320px at 10% 15%, rgba(168, 85, 247, 0.08), transparent 70%);
}
.hero-particles { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 48px;
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  color: var(--accent);
  border: 1px solid var(--border);
  background: rgba(168, 85, 247, 0.07);
  padding: 8px 16px;
  border-radius: 999px;
  margin-bottom: 22px;
}
.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #4ADE80;
  box-shadow: 0 0 10px #4ADE80;
  animation: blink 2.2s ease-in-out infinite;
}
@keyframes blink { 50% { opacity: 0.35; } }

.hero-name {
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  font-weight: 500;
  color: var(--muted);
  margin-bottom: 6px;
}
.hero-role {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  color: var(--accent);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 20px;
}
.hero-tagline {
  font-size: clamp(2.6rem, 6vw, 4.6rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.06;
  margin-bottom: 24px;
}
.hero-desc {
  color: var(--muted);
  max-width: 540px;
  margin-bottom: 34px;
}
.hero-cta { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 36px; }

.skill-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 0;
  color: var(--muted);
  font-size: 0.88rem;
}
.skill-strip li { display: flex; align-items: center; }
.skill-strip li + li::before {
  content: "";
  width: 5px;
  height: 5px;
  margin: 0 12px;
  border-radius: 50%;
  background: var(--glow);
  box-shadow: 0 0 8px var(--glow);
}

.hero-visual {
  position: relative;
  aspect-ratio: 1 / 1;
  max-width: 520px;
  justify-self: center;
  width: 100%;
}
.hero-glow {
  position: absolute;
  inset: 5%;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, rgba(192, 132, 252, 0.5), rgba(139, 92, 246, 0.22) 45%, transparent 72%);
  filter: blur(46px);
  animation: breathe 6s ease-in-out infinite;
}
@keyframes breathe { 50% { transform: scale(1.07); } }

.hero-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(168, 85, 247, 0.3);
}
.ring-1 {
  inset: 0;
  border-style: dashed;
  animation: spin 40s linear infinite;
}
.ring-2 {
  inset: 6%;
  border-color: rgba(192, 132, 252, 0.35);
  box-shadow: 0 0 24px rgba(168, 85, 247, 0.3), inset 0 0 24px rgba(168, 85, 247, 0.15);
}

.hero-core {
  position: absolute;
  inset: 8.5%;
  border-radius: 50%;
  background: rgba(11, 10, 18, 0.66);
  border: 1px solid rgba(192, 132, 252, 0.35);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.5), inset 0 0 40px rgba(139, 92, 246, 0.1);
  overflow: hidden;
}
.hero-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
@keyframes spin { to { transform: rotate(360deg); } }

.float-card {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 12px 16px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(168, 85, 247, 0.35);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.45);
  font-family: var(--font-head);
  animation: floatY 6s ease-in-out infinite;
}
.float-card strong { display: block; font-size: 0.88rem; line-height: 1.2; }
.float-card small { color: var(--muted); font-size: 0.72rem; font-family: var(--font-body); }
.fc-icon {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: rgba(168, 85, 247, 0.16);
  color: var(--accent);
  border: 1px solid var(--border);
}
.fc-icon svg { width: 17px; height: 17px; }
.fc-1 { top: 4%; left: -4%; animation-delay: 0s; }
.fc-2 { top: 22%; right: -6%; animation-delay: -1.5s; }
.fc-3 { bottom: 20%; left: -7%; animation-delay: -3s; }
.fc-4 { bottom: 3%; right: 2%; animation-delay: -4.5s; }
@keyframes floatY {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-14px); }
}

.scroll-hint {
  position: absolute;
  left: 50%;
  bottom: 26px;
  width: 26px;
  height: 42px;
  border: 2px solid rgba(168, 85, 247, 0.5);
  border-radius: 999px;
  transform: translateX(-50%);
}
.scroll-hint span {
  position: absolute;
  top: 7px;
  left: 50%;
  width: 4px;
  height: 8px;
  margin-left: -2px;
  border-radius: 4px;
  background: var(--accent);
  animation: scrollDot 1.8s ease-in-out infinite;
}
@keyframes scrollDot {
  0% { opacity: 1; transform: translateY(0); }
  70% { opacity: 0; transform: translateY(14px); }
  100% { opacity: 0; }
}

.about-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 64px;
  align-items: center;
}
.about-visual { position: relative; display: grid; place-items: center; padding: 30px 0; }
.profile-glass {
  position: relative;
  z-index: 2;
  width: min(360px, 100%);
  padding: 34px 30px 30px;
  border-radius: 30px;
  text-align: center;
  background: var(--glass);
  border: 1px solid rgba(192, 132, 252, 0.4);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5), 0 0 60px rgba(139, 92, 246, 0.18);
}
.profile-avatar {
  width: min(230px, 68%);
  aspect-ratio: 1 / 1;
  margin: 0 auto 24px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: radial-gradient(circle at 30% 25%, rgba(192, 132, 252, 0.35), rgba(139, 92, 246, 0.12) 60%, transparent);
  border: 2px solid rgba(192, 132, 252, 0.5);
  box-shadow: 0 0 44px rgba(168, 85, 247, 0.45), inset 0 0 30px rgba(168, 85, 247, 0.2);
}
.about-photo {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  object-position: center 25%;
}
.profile-meta strong { display: block; font-family: var(--font-head); font-size: 1rem; margin-bottom: 5px; }
.profile-meta small { color: var(--muted); font-size: 0.84rem; }

.mini-float {
  position: absolute;
  z-index: 3;
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 16px;
  color: var(--accent);
  background: rgba(11, 10, 18, 0.8);
  border: 1px solid rgba(192, 132, 252, 0.45);
  box-shadow: 0 0 26px rgba(168, 85, 247, 0.35);
  animation: floatY 5.5s ease-in-out infinite;
}
.mini-float svg { width: 23px; height: 23px; }
.mf-1 { top: 0; right: 8%; animation-delay: -1s; }
.mf-2 { bottom: 4%; left: 2%; animation-delay: -2.6s; }
.mf-3 { top: 38%; left: -4%; animation-delay: -4s; }

.about-grid-lines {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(168, 85, 247, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(168, 85, 247, 0.07) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: radial-gradient(circle at 50% 50%, black 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(circle at 50% 50%, black 30%, transparent 75%);
  animation: gridPan 18s linear infinite;
}
@keyframes gridPan { to { background-position: 42px 42px; } }

.about-copy p { color: var(--muted); margin-bottom: 20px; }
.about-copy p:first-child { color: #D4D4D8; }
.about-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 30px;
}
.stat {
  padding: 20px 14px;
  text-align: center;
  border-radius: 18px;
  background: var(--glass);
  border: 1px solid var(--border);
  transition: transform 0.3s ease, border-color 0.3s ease;
}
.stat:hover { transform: translateY(-5px); border-color: rgba(192, 132, 252, 0.55); }
.stat strong {
  display: block;
  font-family: var(--font-head);
  font-size: 1.7rem;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.stat strong small { font-size: 1rem; }
.stat span { font-size: 0.78rem; color: var(--muted); line-height: 1.4; display: block; margin-top: 6px; }

.skills-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.skill-card { padding: 30px 26px; }
.skill-card h3 { font-size: 1.14rem; margin: 20px 0 10px; }
.skill-card p { color: var(--muted); font-size: 0.92rem; margin-bottom: 18px; }
.tags { display: flex; flex-wrap: wrap; gap: 7px; }
.tags span {
  font-size: 0.72rem;
  padding: 5px 11px;
  border-radius: 999px;
  color: var(--accent);
  background: rgba(168, 85, 247, 0.09);
  border: 1px solid rgba(168, 85, 247, 0.22);
  white-space: nowrap;
}

.stack-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.stack-card { padding: 36px 30px; position: relative; overflow: hidden; }
.stack-card::before {
  content: attr(data-letter);
  position: absolute;
  right: -10px;
  top: -30px;
  font-family: var(--font-head);
  font-size: 8rem;
  font-weight: 700;
  color: rgba(168, 85, 247, 0.06);
  pointer-events: none;
}
.stack-badge {
  display: inline-block;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.1em;
  color: #fff;
  padding: 10px 20px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.4), rgba(168, 85, 247, 0.15));
  border: 1px solid rgba(192, 132, 252, 0.5);
  box-shadow: 0 0 26px rgba(168, 85, 247, 0.3);
  margin-bottom: 22px;
}
.stack-card h3 { font-size: 1.3rem; margin-bottom: 12px; }
.stack-card p { color: var(--muted); font-size: 0.94rem; }
.stack-points {
  margin-top: 16px;
  font-size: 0.82rem !important;
  color: var(--accent) !important;
  letter-spacing: 0.02em;
}

.toolkit-groups {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}
.toolkit-group {
  padding: 30px;
  border-radius: var(--radius);
  background: var(--glass);
  border: 1px solid var(--border);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: transform 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
}
.toolkit-group:hover {
  transform: translateY(-6px);
  border-color: rgba(192, 132, 252, 0.55);
  box-shadow: 0 16px 44px rgba(139, 92, 246, 0.22);
}
.group-label {
  font-family: var(--font-head);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.group-label::before {
  content: "";
  width: 22px;
  height: 2px;
  background: var(--grad);
  border-radius: 2px;
}
.badge-cloud { display: flex; flex-wrap: wrap; gap: 10px; }
.tool-badge {
  font-family: var(--font-head);
  font-size: 0.88rem;
  font-weight: 500;
  color: #EDE9FE;
  padding: 11px 20px;
  border-radius: 999px;
  background: rgba(139, 92, 246, 0.1);
  border: 1px solid rgba(168, 85, 247, 0.35);
  box-shadow: 0 0 16px rgba(168, 85, 247, 0.12);
  transition: all 0.3s ease;
  cursor: default;
  animation: badgeFloat 6s ease-in-out infinite;
}
.toolkit-group:hover .tool-badge {
  border-color: rgba(192, 132, 252, 0.7);
  box-shadow: 0 0 26px rgba(168, 85, 247, 0.4);
  transform: translateY(-4px);
}
@keyframes badgeFloat { 50% { transform: translateY(-5px); } }

.projects-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.project-card { padding: 20px 20px 28px; display: flex; flex-direction: column; }
.project-top {
  height: 160px;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(168, 85, 247, 0.25);
  background: rgba(11, 10, 18, 0.6);
  margin-bottom: 20px;
}
.project-top img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}
.project-card:hover .project-top img { transform: scale(1.07); }
.project-card h3 { font-size: 1.1rem; margin-bottom: 10px; }
.project-card p { color: var(--muted); font-size: 0.89rem; flex-grow: 1; }
.project-skills {
  margin-top: 16px;
  font-size: 0.78rem !important;
  color: var(--accent) !important;
  border-top: 1px solid rgba(168, 85, 247, 0.15);
  padding-top: 14px;
}
.project-skills b { color: var(--muted); font-weight: 500; }

.timeline { position: relative; padding-left: 96px; }
.timeline::before {
  content: "";
  position: absolute;
  left: 39px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: linear-gradient(180deg, var(--purple), var(--glow), var(--accent), var(--glow));
  box-shadow: 0 0 14px rgba(168, 85, 247, 0.6);
}
.tl-item { position: relative; margin-bottom: 26px; }
.tl-node {
  position: absolute;
  left: -96px;
  top: 50%;
  transform: translateY(-50%);
  display: grid;
  place-items: center;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.15rem;
  color: #fff;
  background: radial-gradient(circle at 30% 25%, rgba(192, 132, 252, 0.3), rgba(11, 10, 18, 0.95) 70%);
  border: 1px solid rgba(192, 132, 252, 0.55);
  box-shadow: 0 0 30px rgba(168, 85, 247, 0.35);
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}
.tl-item:hover .tl-node {
  box-shadow: 0 0 46px rgba(168, 85, 247, 0.65);
  transform: translateY(-50%) scale(1.06);
}
.tl-card { padding: 22px 26px; }
.tl-card h3 { font-size: 1.1rem; margin-bottom: 6px; }
.tl-card p { color: var(--muted); font-size: 0.92rem; }
.tl-card p strong { color: var(--accent); font-weight: 600; }

.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.why-card { padding: 30px 28px; text-align: left; }
.why-card h3 { font-size: 1.08rem; margin: 18px 0 8px; }
.why-card p { color: var(--muted); font-size: 0.91rem; }

.contact-wrap { max-width: 900px; margin-inline: auto; }
.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 46px;
}
.contact-card { padding: 30px 26px; text-align: center; display: block; }
.contact-card h3 { font-size: 1.05rem; margin: 16px 0 8px; }
.contact-card p { color: var(--muted); font-size: 0.92rem; }
.social-card ul { display: grid; gap: 8px; margin-top: 4px; }
.social-card a {
  font-size: 0.87rem;
  color: var(--muted);
  transition: color 0.25s ease, text-shadow 0.25s ease;
}
.social-card a:hover { color: var(--accent); text-shadow: 0 0 14px rgba(192, 132, 252, 0.6); }

.map-link-hint {
  display: inline-block;
  margin-top: 12px;
  font-family: var(--font-head);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent);
  opacity: 0.85;
  transition: opacity 0.25s ease, text-shadow 0.25s ease;
}
.contact-card:hover .map-link-hint {
  opacity: 1;
  text-shadow: 0 0 14px rgba(192, 132, 252, 0.6);
}
.center { text-align: center; }

.footer {
  background: linear-gradient(180deg, var(--bg-2), #030308);
  border-top: 1px solid rgba(168, 85, 247, 0.15);
  padding: 64px 0 34px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.footer::before {
  content: "";
  position: absolute;
  top: -120px;
  left: 50%;
  transform: translateX(-50%);
  width: 500px;
  height: 240px;
  background: radial-gradient(ellipse, rgba(139, 92, 246, 0.2), transparent 70%);
  pointer-events: none;
}
.footer-inner { position: relative; }
.footer-name {
  font-size: 1.7rem;
  margin-bottom: 8px;
}
.footer-role { color: var(--accent); font-size: 0.95rem; margin-bottom: 18px; }
.footer-tags, .footer-loc { color: var(--muted); font-size: 0.86rem; }
.footer-tags { margin-bottom: 8px; }
.footer-divider {
  width: 220px;
  height: 1px;
  margin: 28px auto 20px;
  background: linear-gradient(90deg, transparent, rgba(168, 85, 247, 0.5), transparent);
}
.footer-copy { color: #71717A; font-size: 0.82rem; }

.reveal {
  opacity: 0;
  transform: translateY(34px);
  transition: opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1), transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.delay-1 { transition-delay: 0.12s; }
.delay-2 { transition-delay: 0.24s; }

@media (max-width: 1024px) {
  .skills-grid { grid-template-columns: repeat(2, 1fr); }
  .stack-row { grid-template-columns: 1fr; max-width: 560px; margin-inline: auto; }
  .projects-grid { grid-template-columns: repeat(2, 1fr); }
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-inner { grid-template-columns: 1fr; gap: 70px; }
  .hero-visual { max-width: 460px; }
  .about-grid { grid-template-columns: 1fr; gap: 56px; }
  .fc-1 { left: 2%; }
  .fc-3 { left: 0; }
}

@media (max-width: 768px) {
  .section { padding: 84px 0; }
  html { scroll-padding-top: 80px; }

  .hamburger { display: flex; }
  .nav-links {
    position: fixed;
    top: 74px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 26px 20px 30px;
    background: rgba(5, 5, 9, 0.96);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(168, 85, 247, 0.25);
    box-shadow: 0 24px 50px rgba(0, 0, 0, 0.6);
    transform: translateY(-130%);
    opacity: 0;
    visibility: hidden;
    transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.4s ease, visibility 0.4s;
  }
  .nav-links.open { transform: translateY(0); opacity: 1; visibility: visible; }
  .nav-links > a:not(.nav-cta) { font-size: 1.05rem; padding: 10px; }
  .nav-cta { margin-top: 12px; }

  .skills-grid,
  .projects-grid,
  .why-grid,
  .contact-grid { grid-template-columns: 1fr; }

  .timeline { padding-left: 0; }
  .timeline::before { left: 24px; }
  .tl-item { padding-left: 68px; }
  .tl-node {
    left: -16px;
    width: 56px;
    height: 56px;
    font-size: 0.9rem;
  }

  .hero { padding-top: 120px; }
  .float-card { padding: 10px 13px; }
  .fc-2 { right: 0; }
  .fc-4 { right: 0; }
  .scroll-hint { display: none; }
  .about-stats { grid-template-columns: repeat(3, 1fr); gap: 10px; }
  .stat strong { font-size: 1.35rem; }
}

@media (max-width: 480px) {
  body { font-size: 15px; }
  .hero-tagline { font-size: 2.35rem; }
  .hero-cta .btn { width: 100%; justify-content: center; }
  .btn { padding: 14px 24px; }
  .btn-lg { padding: 16px 30px; }
  .skill-strip { justify-content: center; }
  .about-stats { grid-template-columns: 1fr; }
  .stat { display: flex; align-items: baseline; gap: 12px; text-align: left; padding: 16px; }
  .stat span { margin-top: 0; text-align: left; }
  .mini-float, .float-soc { width: 42px; height: 42px; }
  .tl-node { width: 48px; height: 48px; font-size: 0.82rem; }
  .tl-item { padding-left: 58px; }
  .timeline::before { left: 20px; }
  .footer-name { font-size: 1.4rem; }
  .footer-tags { line-height: 1.9; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001s !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001s !important;
  }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
}

.wa-float {
  position: fixed;
  right: 26px;
  bottom: 26px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #25D366, #128C7E);
  color: #ffffff;
  z-index: 90;
  box-shadow: 0 10px 30px rgba(37, 211, 102, 0.35);
  animation: wa-pulse 2.4s ease-out infinite;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.wa-float svg { width: 28px; height: 28px; }
.wa-float:hover {
  transform: translateY(-4px) scale(1.06);
  box-shadow: 0 14px 38px rgba(37, 211, 102, 0.55);
}

@keyframes wa-pulse {
  0% { outline: 0 solid rgba(37, 211, 102, 0.45); }
  70% { outline: 16px solid rgba(37, 211, 102, 0); }
  100% { outline: 16px solid rgba(37, 211, 102, 0); }
}

@media (max-width: 640px) {
  .wa-float { right: 18px; bottom: 18px; width: 50px; height: 50px; }
  .wa-float svg { width: 25px; height: 25px; }
}
