/* Portfolio design system — ported from Next.js portfolio theme */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=JetBrains+Mono:wght@400;500;600;700&display=swap');

:root {
  --background: #0a0a0f;
  --foreground: #fafafa;
  --primary: #00d4ff;
  --primary-dark: #0099cc;
  --primary-light: #66e5ff;
  --secondary: #7c3aed;
  --accent: #f59e0b;
  --surface: #12121a;
  --surface-elevated: #1a1a2e;
  --surface-hover: #252540;
  --muted: #6b7280;
  --muted-foreground: #9ca3af;
  --border: #252540;
  --font-sans: 'Inter', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  --max-width: 80rem;
  --nav-height: 5rem;
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea {
  font: inherit;
}

::selection {
  background: rgba(0, 212, 255, 0.3);
  color: #fafafa;
}

::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--background);
}

::-webkit-scrollbar-thumb {
  background: var(--surface-elevated);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--primary);
}

/* Utilities */
.section-padding {
  padding-left: 1rem;
  padding-right: 1rem;
}

@media (min-width: 640px) {
  .section-padding {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }
}

@media (min-width: 1024px) {
  .section-padding {
    padding-left: 2rem;
    padding-right: 2rem;
  }
}

@media (min-width: 1280px) {
  .section-padding {
    padding-left: 3rem;
    padding-right: 3rem;
  }
}

.container {
  width: 100%;
  max-width: var(--max-width);
  margin-left: auto;
  margin-right: auto;
}

.section {
  position: relative;
  padding: 6rem 0;
  overflow: hidden;
  content-visibility: auto;
  contain-intrinsic-size: 1px 800px;
}

@media (min-width: 768px) {
  .section {
    padding: 8rem 0;
  }
}

.section-line {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0, 212, 255, 0.2), transparent);
}

.section-line--secondary {
  background: linear-gradient(90deg, transparent, rgba(124, 58, 237, 0.2), transparent);
}

.section-line--accent {
  background: linear-gradient(90deg, transparent, rgba(245, 158, 11, 0.2), transparent);
}

.section-label {
  display: inline-block;
  color: var(--primary);
  font-family: var(--font-mono);
  font-size: 0.875rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.section-label--secondary {
  color: var(--secondary);
}

.section-label--accent {
  color: var(--accent);
}

.heading-xl {
  font-size: clamp(2.25rem, 5vw, 4.5rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.heading-lg {
  font-size: clamp(1.875rem, 4vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.heading-md {
  font-size: clamp(1.5rem, 3vw, 1.875rem);
  font-weight: 600;
  letter-spacing: -0.02em;
}

.body-lg {
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  color: var(--muted-foreground);
  line-height: 1.7;
}

.text-gradient {
  background: linear-gradient(135deg, #00d4ff 0%, #7c3aed 50%, #f59e0b 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.text-gradient-primary {
  background: linear-gradient(135deg, #00d4ff 0%, #0099cc 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.glass {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  /* backdrop-filter removed — major scroll/paint cost */
}

.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(64px);
  pointer-events: none;
  contain: strict;
}

.hero-orb-1 {
  top: 5rem;
  left: 2.5rem;
  width: 18rem;
  height: 18rem;
  background: rgba(0, 212, 255, 0.18);
}

.hero-orb-2 {
  bottom: 5rem;
  right: 2.5rem;
  width: 18rem;
  height: 18rem;
  background: rgba(124, 58, 237, 0.18);
}

.hero-orb-3 {
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 28rem;
  height: 28rem;
  background: rgba(245, 158, 11, 0.08);
  filter: blur(72px);
}

.site-nav.is-scrolled {
  background: rgba(10, 10, 15, 0.92);
  border-bottom-color: rgba(255, 255, 255, 0.05);
}

.particle-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  opacity: 0.45;
}

.tilt-card {
  transform-style: preserve-3d;
  transition: transform 0.15s ease, border-color 0.3s, background 0.3s;
  position: relative;
}

.magnetic {
  display: inline-block;
  transition: transform 0.15s ease-out;
}

.glow-primary {
  box-shadow: 0 0 20px rgba(0, 212, 255, 0.3), 0 0 40px rgba(0, 212, 255, 0.1);
}

.tag {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 500;
  background: var(--surface-elevated);
  color: var(--foreground);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.noise-overlay {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
}

/* Particle canvas — full-page like Next portfolio */
.particle-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  opacity: 0.6;
}

main,
.site-footer {
  position: relative;
  z-index: 1;
}

.site-nav {
  z-index: 50;
}

.mobile-menu {
  z-index: 40;
}

/* Custom cursor */
.custom-cursor,
.custom-cursor-dot {
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 10000;
  opacity: 0;
  will-change: transform;
  mix-blend-mode: difference;
}

.custom-cursor {
  width: 2.5rem;
  height: 2.5rem;
  margin-left: -1.25rem;
  margin-top: -1.25rem;
  border: 2px solid rgba(0, 212, 255, 0.85);
  border-radius: 50%;
  transition: width 0.25s ease, height 0.25s ease, margin 0.25s ease, opacity 0.3s;
}

.custom-cursor.is-hover {
  width: 4rem;
  height: 4rem;
  margin-left: -2rem;
  margin-top: -2rem;
}

.custom-cursor-dot {
  width: 0.5rem;
  height: 0.5rem;
  margin-left: -0.25rem;
  margin-top: -0.25rem;
  background: #00d4ff;
  border-radius: 50%;
}

body.has-custom-cursor {
  cursor: none;
}

body.has-custom-cursor a,
body.has-custom-cursor button {
  cursor: none;
}

/* Magnetic + tilt */
.magnetic {
  display: inline-block;
  will-change: transform;
}

.tilt-card {
  transform-style: preserve-3d;
  transition: transform 0.2s ease, border-color 0.4s, background 0.4s;
  position: relative;
  will-change: transform;
}

.tilt-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s;
  background: radial-gradient(
    circle at var(--glare-x, 50%) var(--glare-y, 50%),
    rgba(255, 255, 255, 0.15) 0%,
    transparent 60%
  );
}

.tilt-card.is-tilting::after {
  opacity: 1;
}

.animate-item {
  will-change: transform, opacity;
}

.hero-enter {
  opacity: 0;
}

@media (prefers-reduced-motion: reduce) {
  .hero-enter,
  .reveal {
    opacity: 1 !important;
    transform: none !important;
  }

  .avatar-wrap {
    animation: none !important;
  }

  .custom-cursor,
  .custom-cursor-dot,
  .particle-canvas {
    display: none !important;
  }

  body.has-custom-cursor {
    cursor: auto;
  }
}


/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1rem 2rem;
  border-radius: 9999px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: background 0.3s, color 0.3s, transform 0.25s ease, box-shadow 0.3s ease, opacity 0.2s;
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.btn-primary {
  background: var(--primary);
  color: var(--background);
  box-shadow: 0 0 0 rgba(0, 212, 255, 0);
}

.btn-primary:hover:not(:disabled) {
  background: var(--primary-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 212, 255, 0.25);
}

.btn-outline {
  background: transparent;
  color: var(--foreground);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.05);
  transform: translateY(-2px);
  border-color: rgba(0, 212, 255, 0.35);
}

.btn-sm {
  padding: 0.625rem 1.5rem;
  font-size: 0.875rem;
}

.icon {
  width: 1.25rem;
  height: 1.25rem;
  flex-shrink: 0;
}

.icon-sm {
  width: 1rem;
  height: 1rem;
}

.icon-lg {
  width: 1.75rem;
  height: 1.75rem;
}

.icon-xl {
  width: 2rem;
  height: 2rem;
}

/* Navigation */
.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  height: var(--nav-height);
  transition: background 0.3s, border-color 0.3s;
  border-bottom: 1px solid transparent;
}

.site-nav.is-scrolled {
  background: rgba(10, 10, 15, 0.92);
  border-bottom-color: rgba(255, 255, 255, 0.05);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-height);
}

.nav-logo {
  font-size: 1.5rem;
  font-weight: 700;
}

.nav-logo .accent {
  color: var(--primary);
}

.nav-links {
  display: none;
  align-items: center;
  gap: 0.25rem;
  list-style: none;
}

.nav-links a {
  position: relative;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--muted-foreground);
  border-radius: 0.5rem;
  transition: color 0.3s;
}

.nav-links a:hover,
.nav-links a.is-active {
  color: var(--primary);
}

.nav-links a.is-active::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 212, 255, 0.1);
  border-radius: 0.5rem;
  z-index: -1;
}

.nav-actions {
  display: none;
  align-items: center;
  gap: 1rem;
}

.nav-social {
  color: var(--muted-foreground);
  transition: color 0.3s;
}

.nav-social:hover {
  color: var(--primary);
}

.nav-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  color: var(--foreground);
  cursor: pointer;
  padding: 0.5rem;
}

@media (min-width: 768px) {
  .nav-links,
  .nav-actions {
    display: flex;
  }

  .nav-toggle {
    display: none;
  }
}

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 40;
  background: rgba(10, 10, 15, 0.95);
  backdrop-filter: blur(20px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
}

.mobile-menu.is-open {
  opacity: 1;
  visibility: visible;
}

.mobile-menu a {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--foreground);
  transition: color 0.3s;
}

.mobile-menu a:hover {
  color: var(--primary);
}

.mobile-socials {
  display: flex;
  gap: 1.5rem;
  margin-top: 1rem;
}

/* Hero */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding-top: var(--nav-height);
  overflow: hidden;
  isolation: isolate;
}

.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(64px);
  pointer-events: none;
  contain: strict;
}

.hero-orb-1 {
  top: 5rem;
  left: 2.5rem;
  width: 18rem;
  height: 18rem;
  background: rgba(0, 212, 255, 0.18);
}

.hero-orb-2 {
  bottom: 5rem;
  right: 2.5rem;
  width: 18rem;
  height: 18rem;
  background: rgba(124, 58, 237, 0.18);
}

.hero-orb-3 {
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 28rem;
  height: 28rem;
  background: rgba(245, 158, 11, 0.08);
  filter: blur(72px);
}

.hero-grid {
  display: grid;
  gap: 3rem;
  align-items: center;
  position: relative;
  z-index: 10;
}

@media (min-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.hero-content {
  order: 2;
}

.hero-visual {
  order: 1;
  display: flex;
  justify-content: center;
}

@media (min-width: 1024px) {
  .hero-content {
    order: 1;
  }

  .hero-visual {
    order: 2;
  }
}

.availability-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  background: rgba(0, 212, 255, 0.1);
  border: 1px solid rgba(0, 212, 255, 0.2);
  color: var(--primary);
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 1.5rem;
}

.availability-dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--primary);
  animation: pulse 2s ease infinite;
}

@keyframes pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.4;
  }
}

.hero-subtitle {
  font-size: clamp(1.25rem, 3vw, 2.25rem);
  font-weight: 600;
  color: var(--muted-foreground);
  margin: 1.5rem 0 2rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin: 2.5rem 0;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

.hero-meta-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.hero-meta-item svg {
  color: var(--primary);
}

.avatar-wrap {
  position: relative;
  will-change: transform;
}

.avatar-glow {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: linear-gradient(90deg, var(--primary), var(--secondary), var(--accent));
  opacity: 0.25;
  filter: blur(28px);
  animation: pulse 4s ease infinite;
}

.avatar-circle {
  position: relative;
  width: min(18rem, 70vw);
  height: min(18rem, 70vw);
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid rgba(255, 255, 255, 0.1);
}

@media (min-width: 640px) {
  .avatar-circle {
    width: 20rem;
    height: 20rem;
  }
}

@media (min-width: 768px) {
  .avatar-circle {
    width: 24rem;
    height: 24rem;
  }
}

.avatar-circle img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.avatar-fallback {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--surface-elevated), var(--background));
  font-size: 5rem;
  font-weight: 700;
}

.float-badge {
  position: absolute;
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 600;
  will-change: transform;
}

@keyframes float-badge {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

.float-badge--top {
  top: -1rem;
  right: -1rem;
  color: var(--primary);
  animation: float-badge 4s ease-in-out infinite;
}

.float-badge--bottom {
  bottom: -1rem;
  left: -1rem;
  color: var(--accent);
  animation: float-badge 3.5s ease-in-out infinite;
  animation-delay: 0.5s;
}

.float-badge--side {
  top: 50%;
  right: -2rem;
  font-size: 0.75rem;
  color: var(--secondary);
  animation: float-badge 3s ease-in-out infinite;
  animation-delay: 1s;
}

.scroll-hint {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: var(--muted-foreground);
  background: none;
  border: none;
  cursor: pointer;
  font-size: 0.75rem;
  font-weight: 500;
  transition: color 0.3s;
  z-index: 10;
}

.scroll-hint:hover {
  color: var(--primary);
}

.scroll-hint svg {
  animation: bounce 1.5s ease infinite;
}

@keyframes bounce {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(8px);
  }
}

/* Reveal on scroll — GSAP owns transforms; fallback below */
.reveal {
  opacity: 0;
}

.reveal.is-visible {
  opacity: 1;
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
  }
}

/* About */
.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-header .body-lg {
  max-width: 42rem;
  margin: 1.5rem auto 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-bottom: 4rem;
}

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

.stat-card {
  border-radius: 1rem;
  padding: 1.5rem;
  text-align: center;
  transition: background 0.4s;
}

.stat-card:hover {
  background: rgba(255, 255, 255, 0.1);
}

.stat-card svg {
  color: var(--primary);
  margin: 0 auto 0.75rem;
}

.stat-number {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.stat-label {
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

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

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

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

.highlight-card {
  border-radius: 1rem;
  padding: 1.5rem;
  height: 100%;
  transition: border-color 0.4s, transform 0.3s;
}

.highlight-card:hover {
  border-color: rgba(0, 212, 255, 0.4);
  transform: translateY(-4px);
}

.highlight-icon {
  width: 3rem;
  height: 3rem;
  border-radius: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  color: var(--primary);
}

.highlight-icon--primary {
  background: linear-gradient(135deg, rgba(0, 212, 255, 0.2), rgba(0, 212, 255, 0.05));
}

.highlight-icon--secondary {
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.2), rgba(124, 58, 237, 0.05));
}

.highlight-icon--accent {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.2), rgba(245, 158, 11, 0.05));
}

.highlight-icon--mixed {
  background: linear-gradient(135deg, rgba(0, 212, 255, 0.2), rgba(124, 58, 237, 0.2));
}

.highlight-card h3 {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.highlight-card p {
  font-size: 0.875rem;
  color: var(--muted-foreground);
  line-height: 1.6;
}

.education-block {
  margin-top: 5rem;
}

.education-list {
  max-width: 48rem;
  margin: 3rem auto 0;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.edu-card {
  border-radius: 0.75rem;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition: background 0.3s;
}

.edu-card:hover {
  background: rgba(255, 255, 255, 0.1);
}

@media (min-width: 768px) {
  .edu-card {
    flex-direction: row;
    align-items: flex-start;
  }
}

.edu-period {
  font-family: var(--font-mono);
  font-size: 0.875rem;
  color: var(--primary);
  flex-shrink: 0;
  min-width: 8rem;
}

.edu-card h4 {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
  transition: color 0.3s;
}

.edu-card:hover h4 {
  color: var(--primary);
}

.edu-card .school {
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

.edu-card .desc {
  font-size: 0.875rem;
  color: var(--muted-foreground);
  margin-top: 0.25rem;
}

/* Experience timeline */
.timeline {
  position: relative;
  max-width: 56rem;
  margin: 0 auto;
}

.timeline-line {
  position: absolute;
  left: 1rem;
  top: 0;
  bottom: 0;
  width: 1px;
  background: linear-gradient(to bottom, var(--primary), var(--secondary), var(--accent));
  transform-origin: top center;
}

@media (min-width: 768px) {
  .timeline-line {
    left: 50%;
  }
}

.timeline-items {
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

.timeline-item {
  position: relative;
  display: flex;
  flex-direction: column;
}

@media (min-width: 768px) {
  .timeline-item {
    flex-direction: row;
  }

  .timeline-item--alt {
    flex-direction: row-reverse;
  }
}

.timeline-dot {
  position: absolute;
  left: 1rem;
  width: 1rem;
  height: 1rem;
  border-radius: 50%;
  background: var(--background);
  border: 2px solid var(--primary);
  transform: translateX(-50%);
  z-index: 2;
}

@media (min-width: 768px) {
  .timeline-dot {
    left: 50%;
  }
}

.timeline-dot.is-current::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--primary);
  animation: pulse 2s ease infinite;
}

.timeline-content {
  margin-left: 3rem;
}

@media (min-width: 768px) {
  .timeline-content {
    margin-left: 0;
    width: 50%;
    padding-right: 3rem;
  }

  .timeline-item--alt .timeline-content {
    padding-right: 0;
    padding-left: 3rem;
  }

  .timeline-item:not(.timeline-item--alt) .timeline-content {
    text-align: right;
  }

  .timeline-spacer {
    display: block;
    width: 50%;
  }
}

.timeline-spacer {
  display: none;
}

.exp-card {
  border-radius: 1rem;
  padding: 1.5rem;
  transition: background 0.4s;
}

.exp-card:hover {
  background: rgba(255, 255, 255, 0.1);
}

.exp-badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 500;
  margin-bottom: 0.75rem;
}

.exp-badge--current {
  background: rgba(0, 212, 255, 0.2);
  color: var(--primary);
}

.exp-badge--past {
  background: rgba(107, 114, 128, 0.2);
  color: var(--muted-foreground);
}

.exp-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
  transition: color 0.3s;
}

.exp-card:hover h3 {
  color: var(--primary);
}

.exp-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.875rem;
  color: var(--muted-foreground);
  margin-bottom: 1rem;
}

@media (min-width: 768px) {
  .timeline-item:not(.timeline-item--alt) .exp-meta,
  .timeline-item:not(.timeline-item--alt) .exp-period,
  .timeline-item:not(.timeline-item--alt) .exp-tags {
    justify-content: flex-end;
  }

  .timeline-item:not(.timeline-item--alt) .exp-list li {
    flex-direction: row-reverse;
  }
}

.exp-meta span,
.exp-period {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.exp-period {
  color: var(--primary);
  font-size: 0.875rem;
  margin-bottom: 1rem;
}

.exp-list {
  list-style: none;
  margin-bottom: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.exp-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

.exp-list svg {
  color: var(--primary);
  margin-top: 0.15rem;
  flex-shrink: 0;
}

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

/* Projects */
.projects-grid {
  display: grid;
  gap: 1.5rem;
}

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

  .project-card--featured {
    grid-column: span 2;
  }
}

.project-card {
  border-radius: 1rem;
  overflow: hidden;
  transition: border-color 0.4s, transform 0.3s;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.project-card:hover {
  border-color: rgba(0, 212, 255, 0.3);
  transform: translateY(-4px);
}

.project-header {
  position: relative;
  height: 12rem;
  padding: 1.5rem;
  display: flex;
  align-items: flex-end;
}

@media (min-width: 768px) {
  .project-header {
    height: 14rem;
  }
}

.project-header--primary {
  background: linear-gradient(135deg, rgba(0, 212, 255, 0.2), rgba(0, 212, 255, 0.05));
}

.project-header--secondary {
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.2), rgba(124, 58, 237, 0.05));
}

.project-header--accent {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.2), rgba(245, 158, 11, 0.05));
}

.project-header--mixed {
  background: linear-gradient(135deg, rgba(0, 212, 255, 0.2), rgba(124, 58, 237, 0.2));
}

.project-header-inner {
  display: flex;
  align-items: center;
  gap: 1rem;
  position: relative;
  z-index: 1;
}

.project-icon {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 0.75rem;
  background: rgba(10, 10, 15, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
}

.project-category {
  font-size: 0.75rem;
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(0, 212, 255, 0.8);
}

.project-header h3 {
  font-size: 1.5rem;
  font-weight: 700;
}

.project-body {
  padding: 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.project-body p {
  color: var(--muted-foreground);
  margin-bottom: 1rem;
  line-height: 1.7;
  flex: 1;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.project-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--primary);
  transition: color 0.3s;
}

.project-link:hover {
  color: var(--primary-light);
}

/* Skills */
.skills-grid {
  display: grid;
  gap: 2rem;
  margin-bottom: 4rem;
}

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

.skill-category {
  border-radius: 1.5rem;
  padding: 2rem;
  transition: box-shadow 0.4s, border-color 0.4s;
}

.skill-category-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.skill-category-icon {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.skill-category h3 {
  font-size: 1.25rem;
  font-weight: 700;
}

.skill-category-header p {
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

.skill-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.skill-list li {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.75rem 0.75rem;
  border-radius: 0.75rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--muted-foreground);
  transition: background 0.3s, color 0.3s;
}

.skill-list li:hover {
  color: var(--foreground);
}

.skill-index {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.05em;
  width: 1.5rem;
  flex-shrink: 0;
}

.competencies {
  margin-bottom: 4rem;
}

.competencies-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin-top: 3rem;
}

.comp-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.25rem;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 500;
  transition: transform 0.3s, background 0.3s;
}

.comp-chip:hover {
  transform: translateY(-4px);
  background: rgba(255, 255, 255, 0.1);
}

.tech-stack {
  margin-top: 2rem;
}

.tech-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 3rem;
}

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

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

.tech-item {
  border-radius: 1rem;
  padding: 1.25rem 0.75rem;
  text-align: center;
  transition: transform 0.3s, background 0.3s, border-color 0.3s;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  min-height: 7.5rem;
}

.tech-item:hover {
  transform: translateY(-4px);
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(0, 212, 255, 0.3);
}

.tech-item .tech-logo {
  width: 3rem;
  height: 3rem;
  object-fit: contain;
  margin: 0 auto;
}

.tech-item .tech-logo--wide {
  width: 5.5rem;
  height: 2rem;
  filter: brightness(0) invert(1);
  opacity: 0.9;
}

.tech-item span {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--muted-foreground);
}

/* Contact */
.contact-grid {
  display: grid;
  gap: 3rem;
}

@media (min-width: 1024px) {
  .contact-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.contact-info h3,
.contact-form-card h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 2rem;
}

.contact-info-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

.contact-info-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  transition: color 0.3s;
}

.contact-info-item:hover .info-value {
  color: var(--primary);
}

.info-icon {
  width: 3rem;
  height: 3rem;
  border-radius: 0.75rem;
  background: rgba(0, 212, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  flex-shrink: 0;
}

.info-label {
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

.info-value {
  font-weight: 500;
  transition: color 0.3s;
}

.social-row {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}

.social-btn {
  width: 3rem;
  height: 3rem;
  border-radius: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted-foreground);
  transition: color 0.3s, transform 0.3s, background 0.3s;
}

.social-btn:hover {
  color: var(--primary);
  transform: translateY(-4px) scale(1.05);
}

.availability-card {
  margin-top: 2.5rem;
  border-radius: 1rem;
  padding: 1.5rem;
  border-color: rgba(0, 212, 255, 0.2);
}

.availability-card-title {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.availability-card p {
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

.contact-form-card {
  border-radius: 1rem;
  padding: 2rem;
}

.form-row {
  display: grid;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

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

.form-field {
  margin-bottom: 1.5rem;
}

.form-field label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
}

.form-field input,
.form-field textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  background: var(--surface-elevated);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 0.75rem;
  color: var(--foreground);
  outline: none;
  transition: border-color 0.3s, box-shadow 0.3s;
  resize: none;
}

.form-field input::placeholder,
.form-field textarea::placeholder {
  color: var(--muted);
}

.form-field input:focus,
.form-field textarea:focus {
  border-color: rgba(0, 212, 255, 0.5);
  box-shadow: 0 0 0 1px rgba(0, 212, 255, 0.5);
}

.alert {
  padding: 0.875rem 1rem;
  border-radius: 0.75rem;
  font-size: 0.875rem;
  margin-bottom: 1.5rem;
}

.alert-success {
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: #34d399;
}

.alert-danger {
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #f87171;
}

.alert.is-hidden {
  display: none;
}

.btn-full {
  width: 100%;
}

.spinner {
  width: 1.25rem;
  height: 1.25rem;
  border: 2px solid transparent;
  border-top-color: currentColor;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  display: none;
}

.is-loading .spinner {
  display: inline-block;
}

.is-loading .btn-text {
  opacity: 0.85;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Footer */
.site-footer {
  padding: 3rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .footer-inner {
    flex-direction: row;
  }
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.footer-brand .logo {
  font-size: 1.25rem;
  font-weight: 700;
}

.footer-brand .logo .accent {
  color: var(--primary);
}

.footer-brand p {
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

.footer-socials {
  display: flex;
  gap: 1rem;
}

.footer-socials a,
.back-to-top {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted-foreground);
  transition: color 0.3s, background 0.3s;
  background: none;
  border: none;
  cursor: pointer;
}

.footer-socials a:hover,
.back-to-top:hover {
  color: var(--primary);
  background: rgba(255, 255, 255, 0.1);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* -------------------------------------------------------------------------
 * Light motion polish (CSS-first, scroll-friendly)
 * ---------------------------------------------------------------------- */

.availability-badge {
  animation: soft-fade-up 0.7s ease both;
}

.hero-orb-1 {
  animation: orb-breathe 8s ease-in-out infinite;
}

.hero-orb-2 {
  animation: orb-breathe 10s ease-in-out infinite reverse;
  animation-delay: 1s;
}

.hero-orb-3 {
  animation: orb-breathe-center 12s ease-in-out infinite;
  animation-delay: 2s;
}

@keyframes soft-fade-up {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes orb-breathe {
  0%,
  100% {
    opacity: 0.85;
    transform: scale(1);
  }
  50% {
    opacity: 1;
    transform: scale(1.06);
  }
}

@keyframes orb-breathe-center {
  0%,
  100% {
    opacity: 0.85;
    transform: translate(-50%, -50%) scale(1);
  }
  50% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.05);
  }
}

.stat-card,
.highlight-card,
.project-card,
.skill-category,
.edu-card,
.exp-card,
.contact-form-card,
.availability-card {
  transition: transform 0.3s ease, border-color 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
}

.stat-card:hover,
.highlight-card:hover,
.skill-category:hover,
.edu-card:hover,
.exp-card:hover {
  transform: translateY(-4px);
  border-color: rgba(0, 212, 255, 0.28);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.25);
}

.project-card:hover {
  transform: translateY(-6px);
  border-color: rgba(0, 212, 255, 0.35);
  box-shadow: 0 16px 36px rgba(0, 212, 255, 0.08);
}

.tech-item {
  transition: transform 0.3s ease, background 0.3s, border-color 0.3s, box-shadow 0.3s;
}

.tech-item:hover {
  transform: translateY(-6px) scale(1.03);
  box-shadow: 0 10px 24px rgba(0, 212, 255, 0.1);
}

.comp-chip {
  transition: transform 0.3s ease, background 0.3s, border-color 0.3s;
}

.comp-chip:hover {
  transform: translateY(-4px) scale(1.04);
  border-color: rgba(0, 212, 255, 0.3);
}

.project-link {
  transition: color 0.25s, gap 0.25s, transform 0.25s;
}

.project-link:hover {
  gap: 0.75rem;
}

.project-link svg {
  transition: transform 0.25s ease;
}

.project-link:hover svg {
  transform: translate(3px, -3px);
}

.nav-links a {
  transition: color 0.25s ease, background 0.25s ease;
}

.nav-links a::after {
  content: '';
  position: absolute;
  left: 1rem;
  right: 1rem;
  bottom: 0.35rem;
  height: 2px;
  border-radius: 2px;
  background: var(--primary);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}

.nav-links a:hover::after,
.nav-links a.is-active::after {
  transform: scaleX(1);
}

.social-btn,
.footer-socials a,
.back-to-top {
  transition: color 0.25s, background 0.25s, transform 0.25s ease;
}

.social-btn:hover,
.footer-socials a:hover,
.back-to-top:hover {
  transform: translateY(-3px);
}

.timeline-dot.is-current {
  box-shadow: 0 0 0 0 rgba(0, 212, 255, 0.45);
  animation: soft-ping 2s ease infinite;
}

@keyframes soft-ping {
  0% {
    box-shadow: 0 0 0 0 rgba(0, 212, 255, 0.45);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(0, 212, 255, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(0, 212, 255, 0);
  }
}

.section-label {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.section-label.is-inview {
  opacity: 1;
  transform: translateY(0);
}

.scroll-hint {
  transition: color 0.3s, opacity 0.3s, transform 0.3s;
}

.scroll-hint:hover {
  transform: translateX(-50%) translateY(4px);
}

.highlight-icon,
.skill-category-icon,
.project-icon,
.info-icon {
  transition: transform 0.35s ease;
}

.highlight-card:hover .highlight-icon,
.skill-category:hover .skill-category-icon,
.project-card:hover .project-icon,
.contact-info-item:hover .info-icon {
  transform: scale(1.08);
}

@media (prefers-reduced-motion: reduce) {
  .hero-orb-1,
  .hero-orb-2,
  .hero-orb-3,
  .availability-badge,
  .timeline-dot.is-current,
  .float-badge--top,
  .float-badge--bottom,
  .float-badge--side {
    animation: none !important;
  }

  .section-label {
    opacity: 1 !important;
    transform: none !important;
  }
}

