:root {
  --bg: #0f1419;
  --bg-elevated: #1a222d;
  --surface: #232d3b;
  --text: #e8eef4;
  --text-muted: #8fa3b8;
  --accent: #3d9cfd;
  --accent-soft: rgba(61, 156, 253, 0.15);
  --accent-2: #7c5cff;
  --linkedin: #0a66c2;
  --border: rgba(255, 255, 255, 0.08);
  --font-sans: "DM Sans", system-ui, sans-serif;
  --font-display: "Fraunces", Georgia, serif;
  --radius: 12px;
  --shadow: 0 24px 48px rgba(0, 0, 0, 0.35);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes heroFadeUp {
  from {
    opacity: 0;
    transform: translateY(28px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes glowDrift {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
    opacity: 1;
  }
  50% {
    transform: translate(4%, -3%) scale(1.06);
    opacity: 0.85;
  }
}

@keyframes shimmerBorder {
  0% {
    background-position: 0% 50%;
  }
  100% {
    background-position: 200% 50%;
  }
}

@keyframes bodyFadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes gridPulse {
  from {
    opacity: 0.28;
  }
  to {
    opacity: 0.55;
  }
}

@keyframes particleFloat {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
    opacity: 0.35;
  }
  50% {
    transform: translate(12px, -18px) scale(1.15);
    opacity: 0.9;
  }
}

@keyframes caretBlink {
  0%,
  49% {
    opacity: 1;
  }
  50%,
  100% {
    opacity: 0;
  }
}

@keyframes contactPulse {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(61, 156, 253, 0);
  }
  50% {
    box-shadow: 0 0 48px 4px rgba(61, 156, 253, 0.12);
  }
}

@keyframes iconPop {
  0% {
    transform: scale(1) rotate(0deg);
  }
  45% {
    transform: scale(1.12) rotate(-8deg);
  }
  100% {
    transform: scale(1) rotate(0deg);
  }
}

@keyframes pillPop {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.92);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes phDotPulse {
  0%,
  100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(61, 156, 253, 0.4);
  }
  50% {
    transform: scale(1.15);
    box-shadow: 0 0 0 6px rgba(61, 156, 253, 0);
  }
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  opacity: 0;
  animation: bodyFadeIn 0.65s var(--ease-out) 0.05s forwards;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.container {
  width: min(1120px, 92vw);
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(15, 20, 25, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition:
    box-shadow 0.4s var(--ease-out),
    background 0.4s ease;
}

.site-header.is-scrolled {
  box-shadow: 0 14px 44px rgba(0, 0, 0, 0.38);
  background: rgba(12, 16, 22, 0.94);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
  gap: 1rem;
}

.logo {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.15rem;
  color: var(--text);
  text-decoration: none;
  transition: color 0.25s ease, letter-spacing 0.35s var(--ease-out);
}

.logo:hover {
  text-decoration: none;
  color: var(--accent);
  letter-spacing: 0.02em;
}

.nav-toggle {
  display: none;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 0.5rem 0.75rem;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.875rem;
}

.nav {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}

.nav a {
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
}

.nav a:hover {
  color: var(--text);
  text-decoration: none;
}

.nav a:not(.btn-nav) {
  position: relative;
  padding-bottom: 2px;
}

.nav a:not(.btn-nav)::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.3s var(--ease-out);
}

.nav a:not(.btn-nav):hover::after {
  transform: scaleX(1);
}

.nav .btn-nav {
  color: var(--bg);
  background: var(--accent);
  padding: 0.5rem 1rem;
  border-radius: 999px;
  font-weight: 600;
}

.nav .btn-nav:hover {
  filter: brightness(1.08);
  text-decoration: none;
}

.hero {
  padding: clamp(4rem, 12vw, 8rem) 0 clamp(5rem, 10vw, 7rem);
  position: relative;
  overflow: hidden;
}

.hero-grid-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 75% 65% at 50% 20%, #000 20%, transparent 70%);
  pointer-events: none;
  animation: gridPulse 9s ease-in-out infinite alternate;
}

.hero-particles {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.hero-particles span {
  position: absolute;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(61, 156, 253, 0.5);
  box-shadow: 0 0 18px rgba(61, 156, 253, 0.35);
  animation: particleFloat 7s ease-in-out infinite;
}

.hero-particles span:nth-child(1) {
  left: 8%;
  top: 22%;
  animation-duration: 9s;
  animation-delay: 0s;
}

.hero-particles span:nth-child(2) {
  left: 18%;
  top: 68%;
  animation-duration: 11s;
  animation-delay: -2s;
  background: rgba(124, 92, 255, 0.45);
}

.hero-particles span:nth-child(3) {
  left: 42%;
  top: 15%;
  animation-duration: 8s;
  animation-delay: -1s;
}

.hero-particles span:nth-child(4) {
  left: 72%;
  top: 38%;
  animation-duration: 10s;
  animation-delay: -3s;
}

.hero-particles span:nth-child(5) {
  left: 88%;
  top: 72%;
  animation-duration: 12s;
  animation-delay: -4s;
  background: rgba(124, 92, 255, 0.4);
}

.hero-particles span:nth-child(6) {
  left: 55%;
  top: 58%;
  animation-duration: 9.5s;
  animation-delay: -1.5s;
}

.hero-particles span:nth-child(7) {
  left: 30%;
  top: 42%;
  animation-duration: 8.5s;
  animation-delay: -2.5s;
}

.hero-particles span:nth-child(8) {
  left: 65%;
  top: 12%;
  animation-duration: 10.5s;
  animation-delay: -0.5s;
}

.hero::before {
  content: "";
  position: absolute;
  inset: -40% 20% auto -20%;
  height: 70%;
  background: radial-gradient(ellipse at center, var(--accent-soft), transparent 65%);
  pointer-events: none;
}

.hero-glow {
  position: absolute;
  inset: -20% -30% 40% -30%;
  background:
    radial-gradient(ellipse 50% 40% at 20% 30%, rgba(124, 92, 255, 0.18), transparent 55%),
    radial-gradient(ellipse 45% 35% at 75% 55%, rgba(61, 156, 253, 0.22), transparent 50%);
  pointer-events: none;
  animation: glowDrift 14s var(--ease-out) infinite alternate;
}

.hero-inner {
  position: relative;
  display: grid;
  gap: 2rem;
}

.hero-copy {
  position: relative;
  z-index: 1;
}

.hero-reveal {
  opacity: 0;
  animation: heroFadeUp 0.85s var(--ease-out) forwards;
}

.hero-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.hero-list li {
  font-size: 0.9rem;
  color: var(--text-muted);
  padding-left: 0.85rem;
  border-left: 3px solid var(--accent);
  line-height: 1.45;
  opacity: 0;
  animation: heroFadeUp 0.65s var(--ease-out) forwards;
}

.hero-list li:nth-child(1) {
  animation-delay: 0.42s;
}

.hero-list li:nth-child(2) {
  animation-delay: 0.5s;
}

.hero-list li:nth-child(3) {
  animation-delay: 0.58s;
}

.hero-list li:nth-child(4) {
  animation-delay: 0.66s;
}

.hero-list span {
  display: block;
  font-weight: 600;
  color: var(--text);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.15rem;
}

@media (min-width: 900px) {
  .hero-inner {
    grid-template-columns: 1.1fr 0.9fr;
    align-items: center;
    gap: 3rem;
  }
}

.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 5vw, 3.5rem);
  font-weight: 600;
  line-height: 1.15;
  margin: 0 0 0.75rem;
  letter-spacing: -0.02em;
}

.hero-roles {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
  font-size: 1.05rem;
  color: var(--text-muted);
  margin: 0 0 1.1rem;
  min-height: 1.55em;
}

.hero-roles-label {
  font-weight: 500;
}

.hero-roles-text {
  font-weight: 700;
  color: var(--accent);
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-roles-caret {
  display: inline-block;
  width: 2px;
  height: 1.15em;
  margin-left: 1px;
  background: var(--accent);
  animation: caretBlink 1s step-end infinite;
  border-radius: 1px;
}

.hero-lead {
  font-size: 1.125rem;
  color: var(--text-muted);
  max-width: 42ch;
  margin: 0 0 1.75rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.35rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.15s ease, filter 0.15s ease;
}

.btn:hover {
  text-decoration: none;
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--accent);
  color: var(--bg);
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-ghost:hover {
  background: var(--surface);
}

.btn-linkedin {
  background: var(--linkedin);
  color: #fff;
  box-shadow: 0 8px 24px rgba(10, 102, 194, 0.35);
}

.btn-linkedin:hover {
  filter: brightness(1.08);
  box-shadow: 0 12px 28px rgba(10, 102, 194, 0.45);
}

.btn-block {
  width: 100%;
  margin-top: 0.75rem;
  text-align: center;
}

.hero-card {
  position: relative;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
  z-index: 1;
  transition: transform 0.35s var(--ease-out), box-shadow 0.35s ease;
}

.hero-card::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(
    120deg,
    rgba(61, 156, 253, 0.5),
    rgba(124, 92, 255, 0.35),
    rgba(61, 156, 253, 0.5)
  );
  background-size: 200% 200%;
  animation: shimmerBorder 6s linear infinite;
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  opacity: 0.65;
}

.hero-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 28px 56px rgba(0, 0, 0, 0.45);
}

.hero-card h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  margin: 0 0 1rem;
  font-weight: 600;
  position: relative;
}

section {
  padding: clamp(3.5rem, 8vw, 5rem) 0;
}

.section-head {
  max-width: 560px;
  margin-bottom: 2.5rem;
}

.section-head h2 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  margin: 0 0 0.75rem;
  letter-spacing: -0.02em;
  position: relative;
  display: inline-block;
}

.section-head h2::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -10px;
  width: 100%;
  height: 3px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.8s var(--ease-out);
}

.section-head.reveal.is-visible h2::after {
  transform: scaleX(1);
}

.section-head p {
  margin: 0;
  color: var(--text-muted);
  font-size: 1.05rem;
}

.grid-3 {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 700px) {
  .grid-3 {
    grid-template-columns: repeat(3, 1fr);
  }
}

.grid-expertise {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 640px) {
  .grid-expertise {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .grid-expertise {
    grid-template-columns: repeat(3, 1fr);
  }
}

.band-muted {
  background: linear-gradient(180deg, rgba(26, 34, 45, 0.5) 0%, var(--bg) 100%);
  border-block: 1px solid var(--border);
}

.highlights-grid {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 800px) {
  .highlights-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.highlight-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.35rem 1.5rem;
  transition: border-color 0.25s ease, transform 0.25s var(--ease-out);
}

.highlight-card:hover {
  border-color: rgba(124, 92, 255, 0.35);
  transform: translateY(-3px);
}

.highlight-card h3 {
  font-family: var(--font-display);
  font-size: 1rem;
  margin: 0 0 0.85rem;
  color: var(--text);
}

.checklist {
  margin: 0;
  padding: 0 0 0 1.1rem;
  color: var(--text-muted);
  font-size: 0.92rem;
}

.checklist li {
  margin-bottom: 0.5rem;
}

.checklist li:last-child {
  margin-bottom: 0;
}

.stack-groups {
  display: grid;
  gap: 1.75rem;
}

@media (min-width: 900px) {
  .stack-groups {
    grid-template-columns: repeat(2, 1fr);
  }
}

.stack-block h3 {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin: 0 0 0.65rem;
}

.vision-block {
  max-width: 720px;
  margin-inline: auto;
  text-align: center;
}

.vision-block .section-head {
  margin-inline: auto;
  text-align: center;
}

.vision-block .section-head p {
  max-width: 52ch;
  margin-inline: auto;
}

.vision-lead {
  margin: 0;
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.65;
}

.reveal {
  opacity: 0;
  transform: translateY(36px);
  transition:
    opacity 0.7s var(--ease-out),
    transform 0.7s var(--ease-out);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.card-tilt {
  position: relative;
  overflow: hidden;
  transition:
    transform 0.35s var(--ease-out),
    border-color 0.25s ease,
    box-shadow 0.35s ease;
}

.card-tilt::after {
  content: "";
  position: absolute;
  top: -60%;
  left: -100%;
  width: 55%;
  height: 220%;
  background: linear-gradient(
    105deg,
    transparent 0%,
    rgba(255, 255, 255, 0.07) 45%,
    transparent 70%
  );
  transform: rotate(18deg) translateX(0);
  transition: transform 0.85s var(--ease-out);
  pointer-events: none;
}

.card-tilt:hover::after {
  transform: rotate(18deg) translateX(320%);
}

.card-tilt:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.28);
  border-color: rgba(61, 156, 253, 0.35);
}

.card-tilt:hover .card-icon {
  animation: iconPop 0.55s var(--ease-out);
}

.project-animate {
  transition:
    transform 0.35s var(--ease-out),
    border-color 0.25s ease,
    box-shadow 0.35s ease;
}

.project-animate:hover {
  transform: translateX(6px);
  border-color: rgba(61, 156, 253, 0.35);
  box-shadow: -6px 0 0 var(--accent);
}

.card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  transition: border-color 0.2s ease;
}

.card:not(.card-tilt):hover {
  border-color: rgba(61, 156, 253, 0.35);
}

.card-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--accent-soft);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  margin-bottom: 1rem;
}

.card h3 {
  font-size: 1.1rem;
  margin: 0 0 0.5rem;
}

.card p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--text-muted);
}

.projects {
  background: linear-gradient(180deg, var(--bg) 0%, #121920 50%, var(--bg) 100%);
}

.project-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.project {
  display: grid;
  gap: 1rem;
  padding: 1.5rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  align-items: start;
}

@media (min-width: 768px) {
  .project {
    grid-template-columns: auto 1fr auto;
    align-items: center;
  }
}

.project-tag {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  white-space: nowrap;
}

.project h3 {
  margin: 0 0 0.35rem;
  font-size: 1.15rem;
}

.project p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.project a {
  font-weight: 600;
  font-size: 0.9rem;
  white-space: nowrap;
}

.about-grid {
  display: grid;
  gap: 2rem;
  align-items: start;
}

@media (min-width: 800px) {
  .about-grid {
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
  }
}

.about-text p {
  color: var(--text-muted);
  margin: 0 0 1rem;
}

.about-text p:last-child {
  margin-bottom: 0;
}

.profile-section {
  padding-top: 2.5rem;
  border-top: 1px solid var(--border);
  background: radial-gradient(ellipse 80% 50% at 50% 0%, rgba(124, 92, 255, 0.06), transparent 55%);
}

.profile-layout {
  display: grid;
  gap: 1.5rem;
  align-items: stretch;
}

@media (min-width: 900px) {
  .profile-layout {
    grid-template-columns: 1fr 1fr;
  }
}

.linkedin-card {
  position: relative;
  background: linear-gradient(155deg, rgba(10, 102, 194, 0.14), var(--bg-elevated));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.35s var(--ease-out), border-color 0.25s ease;
}

.linkedin-card:hover {
  transform: translateY(-4px);
  border-color: rgba(10, 102, 194, 0.45);
}

.linkedin-card::before {
  content: "";
  position: absolute;
  top: -40%;
  right: -35%;
  width: 70%;
  height: 120%;
  background: radial-gradient(circle, rgba(10, 102, 194, 0.22), transparent 65%);
  pointer-events: none;
  animation: glowDrift 14s var(--ease-out) infinite alternate;
}

.linkedin-card-top {
  position: relative;
  z-index: 1;
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  margin-bottom: 1.25rem;
}

.linkedin-badge {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 10px;
  background: var(--linkedin);
  color: #fff;
  font-weight: 800;
  font-size: 1.15rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-sans);
  box-shadow: 0 8px 24px rgba(10, 102, 194, 0.4);
}

.linkedin-card h3 {
  margin: 0 0 0.35rem;
  font-size: 1.2rem;
  font-family: var(--font-display);
}

.linkedin-headline {
  margin: 0;
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.45;
}

.linkedin-facts {
  position: relative;
  z-index: 1;
  list-style: none;
  margin: 0 0 0.25rem;
  padding: 0;
}

.linkedin-facts li {
  font-size: 0.92rem;
  color: var(--text-muted);
  padding: 0.65rem 0;
  border-top: 1px solid var(--border);
  line-height: 1.45;
}

.linkedin-facts li:first-child {
  border-top: none;
  padding-top: 0;
}

.linkedin-facts strong {
  display: block;
  color: var(--text);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.2rem;
}

.linkedin-facts a {
  font-weight: 600;
  word-break: break-all;
}

.profile-highlights {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  transition: border-color 0.3s ease;
}

.profile-highlights:hover {
  border-color: rgba(124, 92, 255, 0.3);
}

.profile-highlights-title {
  margin: 0 0 1rem;
  font-size: 1rem;
  font-family: var(--font-display);
}

.profile-highlight-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.profile-highlight-list li {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  margin-bottom: 1rem;
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.profile-highlight-list li:last-child {
  margin-bottom: 0;
}

.ph-dot {
  flex-shrink: 0;
  width: 10px;
  height: 10px;
  margin-top: 0.35rem;
  border-radius: 50%;
  background: var(--accent);
  animation: phDotPulse 2.8s ease-in-out infinite;
}

.profile-highlight-list li:nth-child(2) .ph-dot {
  animation-delay: 0.4s;
  background: var(--accent-2);
}

.profile-highlight-list li:nth-child(3) .ph-dot {
  animation-delay: 0.8s;
}

.profile-note {
  margin: 1.25rem 0 0;
  font-size: 0.85rem;
  color: var(--text-muted);
  opacity: 0.9;
}

.skills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.skill-pill {
  padding: 0.4rem 0.85rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 0.85rem;
  color: var(--text-muted);
  transition:
    transform 0.2s var(--ease-out),
    border-color 0.2s ease,
    color 0.2s ease,
    background 0.2s ease;
}

.skill-pill:hover {
  transform: scale(1.04);
  border-color: rgba(61, 156, 253, 0.45);
  color: var(--text);
  background: rgba(61, 156, 253, 0.08);
}

.about-text.reveal.is-visible .skill-pill-pop {
  animation: pillPop 0.5s var(--ease-out) both;
}

.about-text.reveal.is-visible .skill-pill-pop:nth-child(1) {
  animation-delay: 0.05s;
}

.about-text.reveal.is-visible .skill-pill-pop:nth-child(2) {
  animation-delay: 0.12s;
}

.about-text.reveal.is-visible .skill-pill-pop:nth-child(3) {
  animation-delay: 0.19s;
}

.about-text.reveal.is-visible .skill-pill-pop:nth-child(4) {
  animation-delay: 0.26s;
}

.about-text.reveal.is-visible .skill-pill-pop:nth-child(5) {
  animation-delay: 0.33s;
}

.contact {
  text-align: center;
  padding-bottom: clamp(4rem, 10vw, 6rem);
}

.contact-box {
  max-width: 560px;
  margin-inline: auto;
  padding: 2.5rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) + 4px);
}

.contact-box-glow {
  animation: contactPulse 5s ease-in-out infinite;
}

.contact-box h2 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin: 0 0 0.75rem;
}

.contact-box p {
  color: var(--text-muted);
  margin: 0 0 1.5rem;
}

.site-footer {
  border-top: 1px solid var(--border);
  padding: 1.5rem 0;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  text-align: center;
}

@media (min-width: 600px) {
  .footer-inner {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}

.footer-inner a {
  color: var(--accent);
  word-break: break-all;
}

@media (prefers-reduced-motion: reduce) {
  body {
    opacity: 1;
    animation: none;
  }

  .hero-reveal {
    opacity: 1;
    animation: none;
    transform: none;
  }

  .hero-glow,
  .linkedin-card::before {
    animation: none;
  }

  .hero-grid-bg,
  .hero-particles span {
    animation: none;
  }

  .hero-list li {
    opacity: 1;
    animation: none;
  }

  .hero-roles-caret {
    animation: none;
    opacity: 0.6;
  }

  .hero-card::before {
    animation: none;
  }

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .section-head h2::after {
    transform: scaleX(1);
    transition: none;
  }

  .card-tilt:hover,
  .project-animate:hover,
  .highlight-card:hover,
  .hero-card:hover,
  .linkedin-card:hover {
    transform: none;
  }

  .card-tilt::after {
    display: none;
  }

  .skill-pill:hover {
    transform: none;
  }

  .about-text.reveal.is-visible .skill-pill-pop {
    animation: none;
  }

  .contact-box-glow {
    animation: none;
  }

  .ph-dot {
    animation: none;
  }

  .card-tilt:hover .card-icon {
    animation: none;
  }

  .nav a:not(.btn-nav)::after {
    transition: none;
  }
}

@media (max-width: 768px) {
  .nav-toggle {
    display: block;
  }

  .nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    padding: 1rem;
    background: var(--bg-elevated);
    border-bottom: 1px solid var(--border);
    gap: 0;
    display: none;
  }

  .nav.is-open {
    display: flex;
  }

  .nav a {
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border);
  }

  .nav a:last-child {
    border-bottom: none;
    margin-top: 0.5rem;
    text-align: center;
  }

  .header-inner {
    position: relative;
  }
}
