/* ==========================================================================
   1. VARIABLES
   ========================================================================== */
:root {
  --bg: #070B10;
  --bg-2: #0B1118;
  --surface: #101820;
  --elevated: #151F29;

  --text: #EAF7FA;
  --muted: #91A7B2;
  --faint: #5B707B;

  --accent: #22D3EE;
  --accent-2: #0891B2;
  --accent-3: #60A5FA;

  --border: rgba(255, 245, 225, 0.08);
  --border-strong: rgba(255, 245, 225, 0.15);

  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 20px;

  --shadow-soft: 0 20px 60px -20px rgba(0, 0, 0, 0.6);
  --shadow-lift: 0 30px 80px -24px rgba(0, 0, 0, 0.7);

  --font-display: 'Manrope', sans-serif;
  --font-sans: 'Inter', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-soft: cubic-bezier(0.25, 0.8, 0.25, 1);

  --nav-h: 76px;
}

@supports (color: oklch(50% 0.1 200)) {
  :root {
    --bg: oklch(13% 0.014 250);
    --bg-2: oklch(15.5% 0.017 245);
    --surface: oklch(20% 0.022 245);
    --elevated: oklch(24.5% 0.025 245);
    --text: oklch(94.5% 0.014 205);
    --muted: oklch(70% 0.03 210);
    --faint: oklch(48% 0.02 215);
    --accent: #22D3EE;
    --accent-2: #0891B2;
    --accent-3: oklch(70% 0.12 255);
  }
}

html { color-scheme: dark; }

::selection {
  background: var(--accent);
  color: var(--bg);
}

/* ==========================================================================
   2. RESET
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 16px);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

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

ul { list-style: none; margin: 0; padding: 0; }

button {
  font: inherit;
  color: inherit;
  background: none;
  border: none;
  cursor: pointer;
}

input, textarea {
  font: inherit;
  color: inherit;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--elevated);
  color: var(--text);
  padding: 12px 18px;
  border-radius: var(--radius-sm);
  z-index: 999;
}
.skip-link:focus {
  left: 16px;
  top: 16px;
}

/* ==========================================================================
   3. TYPOGRAPHY
   ========================================================================== */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  margin: 0;
  letter-spacing: -0.02em;
}

p { margin: 0; }

.text-gradient {
  font-style: normal;
  background: linear-gradient(100deg, var(--accent) 10%, var(--accent-2) 90%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.section-kicker {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--accent);
  margin-bottom: 14px;
  letter-spacing: 0.02em;
}

.section-heading {
  font-size: clamp(1.9rem, 3.5vw, 2.75rem);
  line-height: 1.15;
  margin-bottom: 48px;
  max-width: 18ch;
}

/* ==========================================================================
   4. UTILITIES
   ========================================================================== */
.section-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 32px;
}

section {
  position: relative;
  padding: 120px 0;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 24px;
  border-radius: 12px;
  font-size: 0.92rem;
  font-weight: 600;
  white-space: nowrap;
  transition: transform 0.3s var(--ease-soft), background 0.25s ease, border-color 0.25s ease, color 0.25s ease;
  will-change: transform;
}

.btn svg { transition: transform 0.3s var(--ease-soft); }
.btn:hover svg { transform: translateX(3px); }

.btn-solid {
  background: var(--text);
  color: var(--bg);
}
.btn-solid:hover { background: var(--accent); }

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

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--muted);
  transition: color 0.25s ease;
}
.link-arrow:hover { color: var(--accent); }
.link-arrow svg { transition: transform 0.3s var(--ease-soft); }
.link-arrow:hover svg { transform: translate(3px, -3px); }

.tech-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.tech-tags span {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--muted);
  border: 1px solid var(--border);
  padding: 5px 10px;
  border-radius: 8px;
}

/* Scroll reveal base states (JS toggles .is-visible) */
.reveal-up, .reveal-item {
  opacity: 0;
  transform: translateY(28px);
  filter: blur(4px);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out), filter 0.8s var(--ease-out);
}
.reveal-up.is-visible, .reveal-item.is-visible {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}

/* No-JS fallback: never gate content behind a script that won't run */
.no-js .reveal-up, .no-js .reveal-item, .no-js .reveal-line {
  opacity: 1 !important;
  transform: none !important;
  filter: none !important;
}

/* ==========================================================================
   4b. SYSTEM CHROME — ambient canvas, scroll progress, preloader
   ========================================================================== */
#meshCanvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  pointer-events: none;
  opacity: 0.5;
}

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  width: 100%;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  transform-origin: 0 0;
  transform: scaleX(0);
  z-index: 300;
}

.preloader {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 500;
  align-items: center;
  justify-content: center;
  background: var(--bg);
  transition: transform 0.8s var(--ease-out), visibility 0s 0.8s;
}
.js .preloader { display: flex; }
.preloader.is-done {
  transform: translateY(-100%);
  visibility: hidden;
}
.preloader-inner {
  text-align: center;
  display: grid;
  gap: 12px;
  justify-items: center;
}
.preloader-word {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--faint);
}
.preloader-count {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.6rem, 7vw, 4rem);
  color: var(--text);
  font-variant-numeric: tabular-nums;
}
.preloader-tag {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--accent);
}

/* ==========================================================================
   5. NAVIGATION
   ========================================================================== */
.site-nav {
  position: fixed;
  top: 18px;
  left: 0;
  right: 0;
  z-index: 200;
  display: flex;
  justify-content: center;
  padding: 0 20px;
}

.nav-inner {
  width: 100%;
  max-width: 1180px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px 12px 20px;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  background: transparent;
  transition: background 0.4s var(--ease-soft), border-color 0.4s var(--ease-soft), box-shadow 0.4s var(--ease-soft);
}

.site-nav.is-scrolled .nav-inner {
  background: rgba(13, 15, 20, 0.72);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-color: var(--border);
  box-shadow: var(--shadow-soft);
}

.nav-logo {
  display: flex;
  align-items: baseline;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
}

.nav-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: var(--elevated);
  border: 1px solid var(--border-strong);
  font-size: 0.8rem;
  letter-spacing: -0.02em;
}

.nav-fullname {
  font-size: 0.92rem;
  color: var(--muted);
}

.nav-links {
  position: relative;
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-link {
  position: relative;
  padding: 8px 14px;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--muted);
  border-radius: 8px;
  transition: color 0.25s ease;
}
.nav-link:hover, .nav-link.is-active { color: var(--text); }

.nav-indicator {
  position: absolute;
  height: 32px;
  border-radius: 8px;
  background: var(--surface);
  border: 1px solid var(--border);
  top: 0;
  left: 0;
  z-index: -1;
  transition: transform 0.4s var(--ease-out), width 0.4s var(--ease-out);
  opacity: 0;
}
.nav-indicator.is-active { opacity: 1; }

.nav-actions { display: flex; align-items: center; gap: 10px; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
}
.nav-toggle span {
  width: 20px;
  height: 1.5px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.3s var(--ease-soft), opacity 0.3s var(--ease-soft);
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

.mobile-menu {
  position: fixed;
  inset: 0;
  background: var(--bg);
  z-index: 190;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 120px 32px 48px;
  transform: translateY(-100%);
  opacity: 0;
  visibility: hidden;
  transition: transform 0.5s var(--ease-out), opacity 0.5s var(--ease-out), visibility 0.5s;
}
.mobile-menu.is-open {
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
}
.mobile-menu nav { display: flex; flex-direction: column; gap: 8px; }
.mobile-link {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: var(--text);
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}
.mobile-menu-footer {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.mobile-socials {
  display: flex;
  gap: 24px;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--muted);
}

/* ==========================================================================
   6. HERO
   ========================================================================== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: calc(var(--nav-h) + 20px);
  overflow: hidden;
}

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

.mesh-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.35;
  will-change: transform;
}
.mesh-amber {
  width: 480px; height: 480px;
  background: var(--accent);
  top: 8%; left: 4%;
  animation: drift-a 26s ease-in-out infinite;
}
.mesh-ember {
  width: 520px; height: 520px;
  background: var(--accent-2);
  top: 30%; right: -4%;
  animation: drift-b 32s ease-in-out infinite;
}
.mesh-steel {
  width: 420px; height: 420px;
  background: var(--accent-3);
  bottom: -8%; left: 30%;
  animation: drift-c 30s ease-in-out infinite;
}

.hero-grid {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, black 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, black 20%, transparent 75%);
  animation: grid-shift 40s linear infinite;
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 32px;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 64px;
  align-items: center;
  width: 100%;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--muted);
  border: 1px solid var(--border-strong);
  background: rgba(255,255,255,0.03);
  padding: 8px 14px;
  border-radius: 999px;
  margin-bottom: 28px;
}
.badge-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 3px rgba(34, 211, 238, 0.18);
  animation: pulse-dot 2.4s ease-in-out infinite;
}

.hero-heading {
  font-size: clamp(2.4rem, 5vw, 4.1rem);
  line-height: 1.08;
  overflow: hidden;
}
.reveal-line {
  display: block;
  transform: translateY(110%);
  opacity: 0;
}

.hero-desc {
  margin-top: 26px;
  max-width: 46ch;
  font-size: 1.06rem;
  line-height: 1.65;
  color: var(--muted);
}

.hero-actions {
  display: flex;
  gap: 14px;
  margin-top: 38px;
  flex-wrap: wrap;
}

.hero-socials {
  display: flex;
  gap: 20px;
  margin-top: 44px;
  color: var(--faint);
}
.hero-socials a { transition: color 0.25s ease, transform 0.25s ease; }
.hero-socials a:hover { color: var(--accent); transform: translateY(-2px); }

/* Animated portrait — replaces any card/photo with a breathing focus ring */
.hero-visual {
  perspective: 1200px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
}

.portrait-frame {
  position: relative;
  width: min(78vw, 340px);
  aspect-ratio: 1 / 1;
  animation: portrait-float 6s ease-in-out infinite;
}

.portrait-ring {
  position: absolute;
  inset: -18px;
  border-radius: 50%;
  border: 1px dashed var(--border-strong);
  animation: ring-spin 40s linear infinite;
}
.portrait-ring--slow {
  inset: -34px;
  border-color: rgba(34, 211, 238, 0.25);
  animation: ring-spin-rev 60s linear infinite;
}

.portrait-photo {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  overflow: hidden;
  border: 1px solid var(--border-strong);
  background: linear-gradient(150deg, var(--elevated), var(--surface));
  box-shadow: var(--shadow-lift);
  display: flex;
  align-items: center;
  justify-content: center;
}
.portrait-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.portrait-initials {
  display: none;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.6rem, 6vw, 3.6rem);
  color: var(--accent);
  letter-spacing: 0.02em;
}
.portrait-photo.img-fallback .portrait-initials { display: block; }

.portrait-badge {
  position: absolute;
  left: 50%;
  bottom: -14px;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  padding: 8px 14px;
  border-radius: 999px;
  box-shadow: var(--shadow-soft);
}

.status-pulse {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 3px rgba(34, 211, 238, 0.2);
  animation: pulse-dot 2.4s ease-in-out infinite;
}

.portrait-meta {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
  max-width: 300px;
}
.meta-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 0;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  border-bottom: 1px dashed var(--border);
}
.meta-row:last-child { border-bottom: none; }
.meta-key { color: var(--faint); }
.meta-val { color: var(--text); text-align: right; }

.scroll-cue {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--faint);
  letter-spacing: 0.08em;
  z-index: 1;
}
.scroll-line {
  width: 1px;
  height: 30px;
  background: linear-gradient(var(--faint), transparent);
  overflow: hidden;
  position: relative;
}
.scroll-line::after {
  content: '';
  position: absolute;
  top: -30px;
  left: 0;
  width: 100%;
  height: 30px;
  background: linear-gradient(var(--accent), transparent);
  animation: scroll-fall 2.2s ease-in-out infinite;
}

/* ==========================================================================
   7. ABOUT
   ========================================================================== */
.about-heading {
  font-size: clamp(1.9rem, 4vw, 3.1rem);
  line-height: 1.2;
  max-width: 16ch;
  margin-bottom: 56px;
}

.about-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 64px;
}

.about-lede {
  font-size: 1.15rem;
  line-height: 1.7;
  color: var(--muted);
  max-width: 38ch;
}

.about-points {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
}
.about-point {
  background: var(--surface);
  padding: 26px 26px 28px;
}
.about-point h3 {
  font-size: 1.02rem;
  margin-bottom: 10px;
}
.about-point p {
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.6;
}

/* ==========================================================================
   8. SKILLS
   ========================================================================== */
.skills-grid {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.skill-group-title {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 16px;
}

.skill-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.skill-card {
  --mx: 50%;
  --my: 50%;
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 500;
  overflow: hidden;
  transition: transform 0.3s var(--ease-soft), border-color 0.3s ease, background 0.3s ease;
}
.skill-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(180px circle at var(--mx) var(--my), rgba(34,211,238,0.12), transparent 60%);
  opacity: 0;
  transition: opacity 0.35s ease;
}
.skill-card:hover {
  transform: translateY(-3px);
  border-color: rgba(34,211,238,0.4);
}
.skill-card:hover::before { opacity: 1; }

.skill-icon {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--accent);
  transition: transform 0.3s var(--ease-soft);
}
.skill-card:hover .skill-icon { transform: translateY(-2px); }

.marquee {
  margin-top: 64px;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 22px 0;
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, black 10%, black 90%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, black 10%, black 90%, transparent);
}
.marquee-track {
  display: flex;
  gap: 48px;
  width: max-content;
  animation: marquee-scroll 32s linear infinite;
}
.marquee-track span {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--faint);
  white-space: nowrap;
}
.marquee.is-paused .marquee-track { animation-play-state: paused; }

/* ==========================================================================
   9. PROJECTS
   ========================================================================== */
.project-featured {
  --mx: 50%;
  --my: 50%;
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 32px;
  transform-style: preserve-3d;
  will-change: transform;
  box-shadow: var(--shadow-soft);
}

.project-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(420px circle at var(--mx) var(--my), rgba(139,92,246,0.14), transparent 60%);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
  z-index: 1;
}
.project-featured:hover .project-glow,
.project-card:hover .project-glow { opacity: 1; }

.project-featured-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  position: relative;
  z-index: 2;
}

.browser-chrome {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 12px 16px;
  background: var(--bg-2);
  border-bottom: 1px solid var(--border);
}
.browser-chrome span {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--border-strong);
}
.browser-url {
  margin-left: 10px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--faint);
}

.project-preview { background: var(--bg-2); }
.browser-body {
  position: relative;
  aspect-ratio: 16 / 11;
  overflow: hidden;
}

.preview-skeleton {
  position: absolute;
  inset: 0;
  padding: 20px;
  transition: transform 0.6s var(--ease-out);
}
.project-featured:hover .preview-skeleton,
.project-card:hover .preview-skeleton { transform: scale(1.04); }

.skeleton-nav {
  height: 14px;
  width: 40%;
  background: var(--elevated);
  border-radius: 6px;
  margin-bottom: 18px;
}
.skeleton-hero {
  height: 60px;
  background: linear-gradient(120deg, var(--elevated), var(--surface));
  border-radius: 10px;
  margin-bottom: 16px;
}
.skeleton-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.skeleton-grid div {
  height: 46px;
  background: var(--elevated);
  border-radius: 8px;
}

.preview-skeleton--kanban {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.skeleton-col {
  background: var(--elevated);
  border-radius: 8px;
  height: 100%;
}

.preview-skeleton--chart {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  height: 100%;
}
.skeleton-bar {
  flex: 1;
  background: linear-gradient(180deg, var(--accent), var(--accent-2));
  opacity: 0.35;
  border-radius: 4px 4px 0 0;
}

.preview-skeleton--code {
  display: flex;
  flex-direction: column;
  gap: 12px;
  justify-content: center;
}
.code-line {
  height: 10px;
  background: var(--elevated);
  border-radius: 4px;
}

.preview-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(8,9,13,0.55);
  opacity: 0;
  transition: opacity 0.35s ease;
}
.project-featured:hover .preview-overlay,
.project-card:hover .preview-overlay { opacity: 1; }

.preview-arrow {
  width: 52px; height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--text);
  color: var(--bg);
  transform: translate(-6px, 6px);
  transition: transform 0.4s var(--ease-out);
}
.project-featured:hover .preview-arrow,
.project-card:hover .preview-arrow { transform: translate(0,0); }

.project-info { padding: 40px; display: flex; flex-direction: column; }
.project-meta {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--accent-2);
  margin-bottom: 14px;
}
.project-info h3 {
  font-size: 1.5rem;
  margin-bottom: 14px;
}
.project-desc {
  color: var(--muted);
  line-height: 1.65;
  margin-bottom: 22px;
}

.project-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 16px;
  margin-bottom: 24px;
}
.project-features li {
  font-size: 0.85rem;
  color: var(--muted);
  position: relative;
  padding-left: 16px;
}
.project-features li::before {
  content: '';
  position: absolute;
  left: 0; top: 8px;
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--accent);
}

.project-info .tech-tags { margin-bottom: 26px; }

.project-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: auto;
}
.project-actions--compact {
  gap: 12px;
}
.project-actions--compact a {
  width: 34px; height: 34px;
  border-radius: 9px;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  transition: color 0.25s ease, border-color 0.25s ease;
}
.project-actions--compact a:hover {
  color: var(--accent);
  border-color: rgba(34,211,238,0.4);
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.project-card {
  --mx: 50%;
  --my: 50%;
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transform-style: preserve-3d;
  will-change: transform;
}
.project-card-info { padding: 24px; position: relative; z-index: 2; }
.project-card-info h3 { font-size: 1.05rem; margin-bottom: 8px; }
.project-card-info p {
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.55;
  margin-bottom: 16px;
}
.project-card-info .tech-tags { margin-bottom: 18px; }

/* ==========================================================================
   10. EDUCATION
   ========================================================================== */
.edu-list {
  display: flex;
  flex-direction: column;
}
.edu-item {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 32px;
  padding: 28px 0;
  border-bottom: 1px solid var(--border);
}
.edu-item:first-child { padding-top: 0; }
.edu-item:last-child { border-bottom: none; }
.edu-year {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--accent);
}
.edu-body h3 {
  font-size: 1.2rem;
  margin-bottom: 6px;
}
.edu-org {
  color: var(--muted);
  font-size: 0.92rem;
  margin-bottom: 10px;
}
.edu-desc {
  color: var(--muted);
  line-height: 1.65;
  max-width: 60ch;
}

/* ==========================================================================
   11. METRICS
   ========================================================================== */
.metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
}
.metric {
  background: var(--surface);
  padding: 40px 28px;
  text-align: left;
}
.metric-value {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4vw, 3rem);
  font-weight: 800;
  background: linear-gradient(100deg, var(--text), var(--muted));
  -webkit-background-clip: text;
  background-clip: text;
}
.metric-label {
  display: block;
  margin-top: 8px;
  color: var(--faint);
  font-size: 0.88rem;
}
.metrics-note {
  margin-top: 20px;
  color: var(--faint);
  font-size: 0.8rem;
  font-family: var(--font-mono);
}

/* ==========================================================================
   12. CODE SHOWCASE
   ========================================================================== */
.code-window {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}
.code-body {
  margin: 0;
  padding: 28px 30px;
  font-family: var(--font-mono);
  font-size: 0.92rem;
  line-height: 1.85;
  color: var(--muted);
  min-height: 260px;
  overflow-x: auto;
}
.code-body .tok-key { color: var(--accent); }
.code-body .tok-str { color: #A7F3D0; }
.code-body .tok-punc { color: var(--faint); }
.code-body .tok-kw { color: var(--accent-2); }
.code-cursor {
  display: inline-block;
  width: 8px;
  height: 1.1em;
  background: var(--accent);
  vertical-align: text-bottom;
  margin-left: 2px;
  animation: blink-cursor 1s step-end infinite;
}

/* ==========================================================================
   13. CONTACT
   ========================================================================== */
.contact-top { margin-bottom: 64px; max-width: 640px; }
.contact-heading {
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  line-height: 1.15;
  margin-bottom: 22px;
}
.contact-desc {
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.65;
  margin-bottom: 32px;
}
.contact-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.contact-form {
  max-width: 640px;
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  position: relative;
}
.field label {
  font-size: 0.85rem;
  color: var(--muted);
  font-weight: 500;
}
.field input, .field textarea {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 13px 16px;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
  resize: vertical;
}
.field input:focus, .field textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(34,211,238,0.12);
  outline: none;
}
.field.has-error input, .field.has-error textarea {
  border-color: #F87171;
}
.field-error {
  font-size: 0.78rem;
  color: #F87171;
  min-height: 1em;
}
.field.is-valid input, .field.is-valid textarea {
  border-color: rgba(34,211,238,0.5);
}

.form-status {
  font-size: 0.9rem;
  color: var(--accent);
  min-height: 1.2em;
}

/* ==========================================================================
   14. FOOTER
   ========================================================================== */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 48px 0 28px;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  padding-bottom: 32px;
}
.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.footer-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
}
.footer-role {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--faint);
}
.footer-links {
  display: flex;
  gap: 28px;
  font-size: 0.88rem;
  color: var(--muted);
}
.footer-links a:hover { color: var(--accent); }
.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 22px;
  color: var(--faint);
  font-size: 0.78rem;
}

/* ==========================================================================
   15. ANIMATIONS (keyframes)
   ========================================================================== */
@keyframes portrait-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}
@keyframes ring-spin {
  to { transform: rotate(360deg); }
}
@keyframes ring-spin-rev {
  to { transform: rotate(-360deg); }
}
@keyframes drift-a {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(60px, 40px) scale(1.12); }
}
@keyframes drift-b {
  0%, 100% { transform: translate(0, 0) scale(1) rotate(0deg); }
  50% { transform: translate(-50px, 60px) scale(0.94) rotate(8deg); }
}
@keyframes drift-c {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(40px, -50px) scale(1.08); }
}
@keyframes grid-shift {
  0% { background-position: 0 0, 0 0; }
  100% { background-position: 56px 56px, 56px 56px; }
}
@keyframes pulse-dot {
  0%, 100% { box-shadow: 0 0 0 0 rgba(34,211,238,0.35); }
  50% { box-shadow: 0 0 0 5px rgba(34,211,238,0); }
}
@keyframes scroll-fall {
  0% { top: -30px; }
  100% { top: 30px; }
}
@keyframes marquee-scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
@keyframes blink-cursor {
  0%, 50% { opacity: 1; }
  50.01%, 100% { opacity: 0; }
}

/* ==========================================================================
   16. RESPONSIVE
   ========================================================================== */
@media (max-width: 1024px) {
  .hero-inner { grid-template-columns: 1fr; gap: 48px; }
  .hero-visual { order: -1; }
  .portrait-frame { margin: 0 auto; }
  .about-grid { grid-template-columns: 1fr; gap: 36px; }
  .project-featured-grid { grid-template-columns: 1fr; }
  .project-grid { grid-template-columns: 1fr 1fr; }
  .metrics-grid { grid-template-columns: 1fr 1fr; }
  .about-points { grid-template-columns: 1fr; }
}

@media (max-width: 860px) {
  .nav-links { display: none; }
  .nav-actions .btn-ghost { display: none; }
  .nav-toggle { display: flex; }
}

@media (max-width: 720px) {
  section { padding: 88px 0; }
  .section-inner { padding: 0 22px; }
  .hero-inner { padding: 0 22px; }
  .project-grid { grid-template-columns: 1fr; }
  .metrics-grid { grid-template-columns: 1fr 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .project-features { grid-template-columns: 1fr; }
  .edu-item { grid-template-columns: 1fr; gap: 8px; }
  .project-info { padding: 26px; }
  .contact-actions .btn, .hero-actions .btn { width: 100%; justify-content: center; }
  .contact-actions, .hero-actions { flex-direction: column; }
}

@media (max-width: 480px) {
  .metrics-grid { grid-template-columns: 1fr; }
  .nav-fullname { display: none; }
}

/* ==========================================================================
   REDUCED MOTION
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .mesh-blob, .hero-grid, .marquee-track { animation: none !important; }
  .portrait-frame, .portrait-ring { animation: none !important; }
  .reveal-up, .reveal-item, .reveal-line {
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
  }
  .project-featured, .project-card { transform: none !important; }
  .preloader { display: none !important; }
  #meshCanvas { display: none !important; }
}


/* ==========================================================================
   ADDED DIGITAL BACKGROUND — from the previous portfolio background
   ========================================================================== */

/* Keep the existing warm palette, but add the animated digital atmosphere */
body {
  position: relative;
  background:
    radial-gradient(
      900px 520px at 74% 15%,
      rgba(35, 211, 238, 0.07),
      transparent 70%
    ),
    radial-gradient(
      800px 520px at 12% 60%,
      rgba(139, 92, 246, 0.055),
      transparent 70%
    ),
    var(--bg);
}

/* Animated 3D grid */
body::before {
  content: "";
  position: fixed;
  inset: -25%;
  z-index: -2;
  pointer-events: none;

  background-image:
    linear-gradient(
      rgba(255, 255, 255, 0.035) 1px,
      transparent 1px
    ),
    linear-gradient(
      90deg,
      rgba(255, 255, 255, 0.035) 1px,
      transparent 1px
    );

  background-size: 72px 72px;

  transform:
    perspective(700px)
    rotateX(57deg)
    translateY(-4%);

  transform-origin: center top;

  mask-image: linear-gradient(
    to bottom,
    transparent 0%,
    black 24%,
    black 62%,
    transparent 100%
  );

  -webkit-mask-image: linear-gradient(
    to bottom,
    transparent 0%,
    black 24%,
    black 62%,
    transparent 100%
  );

  animation: added-grid-drift 18s linear infinite;
}

/* Moving cyan/violet ambient glow */
body::after {
  content: "";
  position: fixed;
  inset: -15%;
  z-index: -3;
  pointer-events: none;

  background:
    radial-gradient(
      36vw 36vw at 88% 5%,
      rgba(35, 211, 238, 0.11),
      transparent 70%
    ),
    radial-gradient(
      38vw 38vw at 12% 88%,
      rgba(139, 92, 246, 0.09),
      transparent 70%
    ),
    linear-gradient(
      115deg,
      transparent 20%,
      rgba(35, 211, 238, 0.035) 45%,
      transparent 58%,
      rgba(139, 92, 246, 0.035) 72%,
      transparent 88%
    );

  filter: blur(45px);
  opacity: 0.9;

  animation: added-glow-drift 20s ease-in-out infinite;
}

/* Scan light over the grid */
#meshCanvas::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;

  background: linear-gradient(
    90deg,
    transparent,
    rgba(35, 211, 238, 0.12),
    transparent
  );

  filter: blur(20px);
  transform: translateX(-100%);
  animation: added-grid-scan 9s ease-in-out infinite;
}

/* Background animations */
@keyframes added-grid-drift {
  to {
    transform:
      perspective(700px)
      rotateX(57deg)
      translateY(5%);
  }
}

@keyframes added-grid-scan {
  50% {
    transform: translateX(80%);
  }

  100% {
    transform: translateX(100%);
  }
}

@keyframes added-glow-drift {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }

  50% {
    transform: translate(-5vw, 5vh) scale(1.08);
  }
}

/* Mobile */
@media (max-width: 720px) {
  body::before {
    background-size: 55px 55px;
  }
}

/* Respect reduced-motion preference */
@media (prefers-reduced-motion: reduce) {
  body::before,
  body::after,
  #meshCanvas::after {
    animation: none !important;
  }
}

.hero-heading .hero-name {
  font-size: clamp(2rem, 8vw, 7rem);
  line-height: 0.95;
  font-weight: 800;
  letter-spacing: -0.045em;
  margin-bottom: 14px;
}
.saha{
  margin-left: 70px;
}
.portrait-frame {
  position: relative;
  width: 340px;
  height: 340px;
  flex: 0 0 340px;
  aspect-ratio: 1 / 1;
  animation: portrait-float 6s ease-in-out infinite;
}

.portrait-photo {
  position: relative;
  width: 100%;
  height: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  overflow: hidden;
  border: 1px solid var(--border-strong);
  background: var(--surface);
  box-shadow: var(--shadow-lift);
}

.portrait-photo img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center top;
}

.projects-intro {
  max-width: 720px;
  margin: 0 0 38px;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.8;
  letter-spacing: -0.01em;
}


/* =========================================================
   ABOUT — PROFILE STYLE
   ========================================================= */

.about {
  position: relative;
}

.about-heading {
  max-width: 850px;
  margin: 0 0 55px;
  font-size: clamp(1rem, 6vw, 3rem);
  line-height: .98;
  letter-spacing: -.055em;
  font-weight: 600;
}
.about{
font-size: clamp(2rem, 6vw, 1rem);
}

.about-profile {
  display: grid;
  grid-template-columns: 390px minmax(0, 1fr);
  gap: 70px;
  align-items: center;
}


/* =========================================================
   PROFILE IMAGE
   ========================================================= */

.about-photo-wrap {
  position: relative;
  padding: 26px;
}

.about-photo-wrap::before {
  content: "";
  position: absolute;
  inset: 0;

  border: 1px dashed rgba(34, 211, 238, .32);
  border-radius: 28px;

  pointer-events: none;
}

.about-photo-card {
  position: relative;

  padding: 16px;

  border: 1px solid rgba(255,255,255,.12);
  border-radius: 25px;

  background:
    linear-gradient(
      145deg,
      rgba(255,255,255,.055),
      rgba(255,255,255,.015)
    ),
    var(--surface);

  box-shadow:
    0 25px 70px rgba(0,0,0,.30);
}

.about-photo {
  position: relative;

  width: 100%;
  aspect-ratio: 3 / 4;

  overflow: hidden;

  border-radius: 18px;

  background: #0b1014;
}

.about-photo::after {
  content: "";

  position: absolute;
  inset: 0;

  background:
    linear-gradient(
      180deg,
      transparent 55%,
      rgba(0,0,0,.35)
    );

  pointer-events: none;
}

.about-photo img {
  width: 100%;
  height: 100%;

  display: block;

  object-fit: cover;
  object-position: center top;

  transition: transform .7s cubic-bezier(.2,.8,.2,1);
}

.about-photo-card:hover .about-photo img {
  transform: scale(1.035);
}


/* IMAGE FOOTER */

.about-photo-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;

  gap: 8px;

  padding: 15px 5px 3px;

  color: var(--faint);

  font-family: var(--font-mono);
  font-size: .62rem;
  letter-spacing: .12em;
}

.about-photo-footer span:nth-child(2) {
  color: var(--accent);
}


/* =========================================================
   ABOUT CONTENT
   ========================================================= */

.about-content {
  max-width: 700px;
}

.about-lede {
  margin: 0 0 25px;

  color: var(--text);

  font-size: clamp(1.15rem, 2vw, 1.45rem);
  line-height: 1.65;
  letter-spacing: -.015em;
}

.about-description {
  max-width: 650px;

  margin: 0 0 42px;

  color: var(--muted);

  font-size: .98rem;
  line-height: 1.8;
}


/* =========================================================
   EDUCATION
   ========================================================= */

.about-education {
  padding-top: 5px;
}

.about-education-label {
  display: flex;
  align-items: center;
  gap: 18px;

  margin-bottom: 25px;

  color: var(--accent);

  font-family: var(--font-mono);
  font-size: .72rem;
  font-weight: 600;

  text-transform: uppercase;
  letter-spacing: .13em;
}

.about-education-label i {
  display: block;

  width: 45px;
  height: 1px;

  background: rgba(34,211,238,.45);
}


.about-education-item {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  gap: 18px;

  align-items: start;
}

.about-education-year {
  padding-top: 3px;

  color: var(--accent);

  font-family: var(--font-mono);
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .08em;
}

.about-education-info h3 {
  margin: 0 0 8px;

  color: var(--text);

  font-size: 1rem;
  line-height: 1.4;
  font-weight: 600;
}

.about-education-info p {
  margin: 0 0 5px;

  color: var(--muted);

  font-size: .9rem;
  line-height: 1.6;
}

.about-education-info > span {
  color: var(--faint);

  font-family: var(--font-mono);
  font-size: .68rem;
}


/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 900px) {

  .about-heading {
    margin-bottom: 40px;
  }

  .about-profile {
    grid-template-columns: 320px minmax(0, 1fr);
    gap: 45px;
  }

  .about-photo-wrap {
    padding: 18px;
  }

}


@media (max-width: 720px) {

  .about-heading {
    font-size: clamp(2.6rem, 11vw, 1rem);
    
  }

  .about-profile {
    grid-template-columns: 1fr;
    gap: 45px;
  }

  .about-photo-wrap {
    width: min(100%, 340px);
    margin: 0 auto;
  }

  .about-content {
    max-width: none;
  }

  .about-lede {
    font-size: 1.1rem;
  }

}


/* =========================================================
   SKILLS — TECHNOLOGY CONSTELLATION
   ========================================================= */

.skills {
  position: relative;
  overflow: hidden;
}


/* ================= TOP ================= */

.skills-top {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;

  gap: 50px;

  margin-bottom: 35px;
}

.skills-top .section-heading {
  margin-bottom: 0;
}

.skills-description {
  width: 320px;

  margin: 0 0 7px;

  color: var(--muted);

  font-size: .88rem;
  line-height: 1.7;
}


/* =========================================================
   ORBIT AREA
   ========================================================= */

.skills-orbit {
  position: relative;

  width: min(100%, 1050px);
  height: 650px;

  margin: 0 auto;

  display: flex;
  align-items: center;
  justify-content: center;
}


/* ================= RINGS ================= */

.orbit-ring {
  position: absolute;

  left: 50%;
  top: 50%;

  border: 1px solid rgba(34,211,238,.09);

  border-radius: 50%;

  transform: translate(-50%, -50%);

  pointer-events: none;
}

.orbit-ring-1 {
  width: 290px;
  height: 290px;

  animation:
    orbit-rotate 28s linear infinite;
}

.orbit-ring-2 {
  width: 450px;
  height: 450px;

  border-style: dashed;

  animation:
    orbit-rotate-reverse 38s linear infinite;
}

.orbit-ring-3 {
  width: 610px;
  height: 610px;

  border-color: rgba(96,165,250,.07);

  animation:
    orbit-rotate 50s linear infinite;
}

@keyframes orbit-rotate {
  from {
    transform: translate(-50%, -50%) rotate(0deg);
  }

  to {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

@keyframes orbit-rotate-reverse {
  from {
    transform: translate(-50%, -50%) rotate(360deg);
  }

  to {
    transform: translate(-50%, -50%) rotate(0deg);
  }
}


/* =========================================================
   CENTER
   ========================================================= */

.skills-core {
  position: relative;
  z-index: 5;

  width: 165px;
  height: 165px;

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;

  border: 1px solid rgba(34,211,238,.28);
  border-radius: 50%;

  background:
    radial-gradient(
      circle at center,
      rgba(34,211,238,.10),
      rgba(8,15,20,.96) 68%
    );

  box-shadow:
    0 0 70px rgba(34,211,238,.09),
    inset 0 0 35px rgba(34,211,238,.045);

  animation: core-float 5s ease-in-out infinite;
}

@keyframes core-float {
  0%, 100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-7px);
  }
}


.core-glow {
  position: absolute;

  inset: -15px;

  border-radius: 50%;

  border: 1px solid rgba(34,211,238,.06);

  animation:
    core-pulse 3s ease-in-out infinite;
}

@keyframes core-pulse {
  0%, 100% {
    transform: scale(.96);
    opacity: .4;
  }

  50% {
    transform: scale(1.06);
    opacity: 1;
  }
}


.core-icon {
  margin-bottom: 9px;

  color: var(--accent);

  font-family: var(--font-mono);
  font-size: .9rem;

  text-shadow:
    0 0 20px rgba(34,211,238,.6);
}

.skills-core strong {
  color: var(--text);

  font-size: .82rem;
  line-height: 1.05;

  text-align: center;

  letter-spacing: .08em;
}

.skills-core > span {
  margin-top: 8px;

  color: var(--faint);

  font-family: var(--font-mono);
  font-size: .47rem;

  letter-spacing: .18em;
}


/* =========================================================
   SKILL NODES
   ========================================================= */

.orbit-skill {
  position: absolute;
  z-index: 4;

  display: flex;
  align-items: center;
  justify-content: center;

  min-width: 92px;
  height: 38px;

  padding: 0 13px;

  border: 1px solid rgba(255,255,255,.09);
  border-radius: 999px;

  background:
    rgba(12,20,27,.88);

  backdrop-filter: blur(12px);

  color: var(--muted);

  font-family: var(--font-mono);
  font-size: .62rem;

  white-space: nowrap;

  box-shadow:
    0 8px 25px rgba(0,0,0,.18);

  transition:
    transform .35s ease,
    color .3s ease,
    border-color .3s ease,
    background .3s ease,
    box-shadow .3s ease;
}

.orbit-skill::before {
  content: "";

  width: 5px;
  height: 5px;

  margin-right: 8px;

  border-radius: 50%;

  background: var(--accent);

  box-shadow:
    0 0 10px rgba(34,211,238,.6);

  transition: transform .3s ease;
}

.orbit-skill:hover {
  z-index: 10;

  color: var(--text);

  border-color:
    rgba(34,211,238,.35);

  background:
    rgba(18,31,39,.96);

  box-shadow:
    0 0 25px rgba(34,211,238,.12);

  transform: scale(1.1) !important;
}

.orbit-skill:hover::before {
  transform: scale(1.5);
}


/* =========================================================
   NODE POSITIONS
   ========================================================= */

/* outer ring */

.orbit-skill-1 {
  top: 4%;
  left: 42%;
}

.orbit-skill-2 {
  top: 13%;
  right: 17%;
}

.orbit-skill-3 {
  top: 35%;
  right: 3%;
}

.orbit-skill-4 {
  bottom: 19%;
  right: 9%;
}

.orbit-skill-5 {
  bottom: 4%;
  right: 29%;
}

.orbit-skill-6 {
  bottom: 4%;
  left: 29%;
}

.orbit-skill-7 {
  bottom: 19%;
  left: 9%;
}

.orbit-skill-8 {
  top: 35%;
  left: 3%;
}


/* middle ring */

.orbit-skill-9 {
  top: 20%;
  left: 24%;
}

.orbit-skill-10 {
  top: 29%;
  right: 22%;
}

.orbit-skill-11 {
  bottom: 28%;
  right: 22%;
}

.orbit-skill-12 {
  bottom: 20%;
  left: 24%;
}


/* inner ring */

.orbit-skill-13 {
  top: 39%;
  left: 19%;
}

.orbit-skill-14 {
  top: 39%;
  right: 19%;
}

.orbit-skill-15 {
  bottom: 38%;
  left: 27%;
}

.orbit-skill-16 {
  bottom: 38%;
  right: 27%;
}


/* =========================================================
   SUBTLE NODE FLOATING
   ========================================================= */

.orbit-skill-1,
.orbit-skill-5,
.orbit-skill-9,
.orbit-skill-13 {
  animation:
    skill-float-a 4.5s ease-in-out infinite;
}

.orbit-skill-2,
.orbit-skill-6,
.orbit-skill-10,
.orbit-skill-14 {
  animation:
    skill-float-b 5s ease-in-out infinite .4s;
}

.orbit-skill-3,
.orbit-skill-7,
.orbit-skill-11,
.orbit-skill-15 {
  animation:
    skill-float-a 5.5s ease-in-out infinite .8s;
}

.orbit-skill-4,
.orbit-skill-8,
.orbit-skill-12,
.orbit-skill-16 {
  animation:
    skill-float-b 4.8s ease-in-out infinite 1s;
}

@keyframes skill-float-a {
  0%, 100% {
    margin-top: 0;
  }

  50% {
    margin-top: -7px;
  }
}

@keyframes skill-float-b {
  0%, 100% {
    margin-top: 0;
  }

  50% {
    margin-top: 6px;
  }
}


/* =========================================================
   FOOTER
   ========================================================= */

.skills-footer {
  display: flex;
  align-items: center;

  gap: 15px;

  margin-top: 5px;
}

.skills-footer-label,
.skills-footer-count {
  color: var(--faint);

  font-family: var(--font-mono);
  font-size: .57rem;

  letter-spacing: .13em;
}

.skills-footer-line {
  flex: 1;

  height: 1px;

  background:
    linear-gradient(
      90deg,
      rgba(34,211,238,.25),
      rgba(255,255,255,.05)
    );
}


/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 850px) {

  .skills-top {
    align-items: flex-start;

    flex-direction: column;

    gap: 20px;
  }

  .skills-description {
    width: 100%;
    max-width: 600px;
  }

  .skills-orbit {
    height: 560px;
  }

  .orbit-ring-3 {
    width: 520px;
    height: 520px;
  }

  .orbit-ring-2 {
    width: 390px;
    height: 390px;
  }

}


@media (max-width: 650px) {

  .skills-orbit {
    height: auto;

    display: grid;

    grid-template-columns:
      repeat(2, minmax(0, 1fr));

    gap: 9px;

    padding-top: 15px;
  }

  .orbit-ring {
    display: none;
  }

  .skills-core {
    grid-column: 1 / -1;

    width: 130px;
    height: 130px;

    margin: 10px auto 20px;
  }

  .orbit-skill {
    position: relative;

    inset: auto !important;

    width: 100%;
    min-width: 0;

    animation: none !important;
  }

  .skills-footer {
    margin-top: 30px;
  }

}


@media (prefers-reduced-motion: reduce) {

  .orbit-ring,
  .skills-core,
  .orbit-skill {
    animation: none !important;
  }

}