:root {
  --bg-color: #030813;
  --panel: rgba(10, 20, 36, 0.95);
  --line: rgba(130, 173, 255, 0.18);
  --text: #f3f6fb;
  --muted: #a9b9d2;
  --accent: #ff8c42;
  --accent-soft: #ffd166;
  --cyan: #59d0ff;
  --success: #8bf0a7;
  --error: #ff8d8d;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}

[data-theme="light"] {
  --bg-color: #ffffff;
  --panel: #ffffff;
  --line: rgba(0, 0, 0, 0.1);
  --text: #1a202c;
  --muted: #4a5568;
  --cyan: #3182ce;
  --accent: #dd6b20;
  --accent-soft: #ed8936;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

* {
  box-sizing: border-box;
}

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

@keyframes shine {
  0% { background-position: 200% center; }
  100% { background-position: -200% center; }
}

@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 15px rgba(255, 140, 66, 0.2); }
  50% { box-shadow: 0 0 30px rgba(255, 140, 66, 0.6); }
}

html {
  scroll-behavior: smooth;
  background-color: #030813; /* Prevent white space on overscroll */
}

body {
  margin: 0;
  font-family: "Plus Jakarta Sans", sans-serif;
  color: var(--text);
  overflow-x: hidden;
  background-color: var(--bg-color);
  transition: background-color 0.5s ease, color 0.5s ease;
}

.bg-grid-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0; /* Updated stacking boundary */
  background:
    radial-gradient(circle at top left, rgba(89, 208, 255, 0.12), transparent 40%),
    radial-gradient(circle at 85% 10%, rgba(255, 140, 66, 0.12), transparent 40%),
    var(--bg-color);
  transition: background 0.5s ease;
  pointer-events: none;
}

[data-theme="light"] .bg-grid-wrapper {
  background: var(--bg-color);
}

#star-canvas {
  width: 100%;
  height: 100%;
  display: block;
  opacity: 1;
  transition: opacity 0.5s ease;
}

.light-bg-gradient {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top right, rgba(49, 130, 206, 0.08), transparent 50%),
              radial-gradient(circle at bottom left, rgba(221, 107, 32, 0.08), transparent 50%);
  opacity: 0;
  transition: opacity 0.5s ease;
}

[data-theme="light"] .light-bg-gradient {
  opacity: 0;
}

/* ── Light Mode Code Animation Overlay ── */
.light-code-bg {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.5s ease;
}

[data-theme="light"] .light-code-bg {
  opacity: 1;
}

.code-snippet-element {
  position: absolute;
  font-family: 'Space Grotesk', monospace;
  color: rgba(0, 0, 0, 0.22); /* Bold dark contrast for light mode */
  white-space: nowrap;
  animation: floatCode linear infinite;
  will-change: transform, opacity;
}

@keyframes floatCode {
  0% { transform: translateY(110vh) translateX(0); opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 1; }
  100% { transform: translateY(-20vh) translateX(30px); opacity: 0; }
}

.scroll-progress {
  position: fixed;
  top: 0; left: 0; height: 4px;
  background: linear-gradient(90deg, var(--cyan), var(--accent));
  width: 0%;
  z-index: 9999;
  transition: width 0.15s ease-out;
}

.page-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding-bottom: 56px;
}

.hero {
  min-height: 100vh;
  position: relative;
  z-index: 1; /* Establishes a local bounding stacking context for absolute children */
  overflow: hidden;
  width: 100vw;
  margin-left: calc(-50vw + 50%); /* Extends hero to exactly match the entire viewport without scrolling */
  padding: 0 max(16px, calc((100vw - 1180px) / 2)); /* Keeps internal content bounded like page-shell */
  display: flex;
  flex-direction: column;
}

.hero-content {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  z-index: 2; /* Sits sharply above background wrappers */
}

/* ── Navbar ── */
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px 20px;
  background: rgba(7, 17, 31, 0.6);
  border: 1px solid var(--line);
  border-radius: 999px;
  backdrop-filter: blur(18px);
  position: sticky;
  top: 18px;
  z-index: 20;
  transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.nav.scrolled {
  padding: 10px 24px;
  background: rgba(7, 17, 31, 0.85);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  border-color: rgba(130, 173, 255, 0.3);
}

[data-theme="light"] .nav {
  background: rgba(255, 255, 255, 0.95);
  border-color: rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .nav.scrolled {
  background: #ffffff;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

/* Enforce pure white backgrounds in light mode */
[data-theme="light"] .summary-card,
[data-theme="light"] .highlight-card,
[data-theme="light"] .project-card,
[data-theme="light"] .stack-card,
[data-theme="light"] input,
[data-theme="light"] textarea,
[data-theme="light"] .social-link,
[data-theme="light"] .button-secondary,
[data-theme="light"] .resume-card,
[data-theme="light"] .contact-card,
[data-theme="light"] .summary-section,
[data-theme="light"] .stack-section,
[data-theme="light"] .projects-section,
[data-theme="light"] .highlights-section,
[data-theme="light"] .resume-section,
[data-theme="light"] .contact-section,
[data-theme="light"] .profile-card,
[data-theme="light"] .profile-photo-wrap,
[data-theme="light"] .floating-panel,
[data-theme="light"] .detail-panel,
[data-theme="light"] .hero-metrics article {
  background: #ffffff;
  border-color: var(--line);
}

[data-theme="light"] .profile-photo-wrap::after {
  display: none;
}

[data-theme="light"] .summary-card:hover,
[data-theme="light"] .highlight-card:hover,
[data-theme="light"] .project-card:hover,
[data-theme="light"] .stack-card:hover,
[data-theme="light"] .stack-card.is-active {
  background: #ffffff;
  border-color: var(--cyan);
  box-shadow: var(--shadow);
}

[data-theme="light"] input:focus,
[data-theme="light"] textarea:focus {
  background: #ffffff;
}

.theme-toggle {
  background: none;
  border: none;
  font-size: 1.25rem;
  cursor: pointer;
  padding: 0 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1), filter 0.4s ease;
}

.theme-toggle:hover {
  transform: scale(1.15) rotate(15deg);
  filter: drop-shadow(0 0 10px rgba(89, 208, 255, 0.8));
}

.theme-toggle:active {
  transform: scale(0.8) rotate(-45deg);
}

/* ── View Transitions (Theme Toggle Ripple) ── */
::view-transition-old(root),
::view-transition-new(root) {
  animation: none;
  mix-blend-mode: normal;
  display: block;
}

::view-transition-old(root) {
  z-index: 1;
}

::view-transition-new(root) {
  z-index: 9999;
  animation: theme-radial-reveal 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}

@keyframes theme-radial-reveal {
  0% {
    clip-path: circle(0px at var(--click-x, 50%) var(--click-y, 50%));
  }
  100% {
    /* 150% ensures it covers the entire screen from any corner */
    clip-path: circle(150% at var(--click-x, 50%) var(--click-y, 50%));
  }
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  color: var(--text);
  text-decoration: none;
}

.brand-mark {
  width: 50px;
  height: 50px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--accent), var(--accent-soft));
  color: #04101d;
  font-weight: 800;
  font-family: "Space Grotesk", sans-serif;
}

.brand-copy {
  display: grid;
}

.brand-copy strong {
  font-size: 0.98rem;
}

.brand-copy small {
  color: var(--muted);
}

.nav-links {
  display: flex;
  gap: 20px;
}

.nav-links a,
.menu-toggle {
  color: var(--text);
  text-decoration: none;
  background: transparent;
  border: 0;
  font: inherit;
  cursor: pointer;
}

.menu-toggle {
  display: none;
}

.hero-content {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 36px;
  align-items: center;
  padding-top: 76px;
}

.contact-section {
  display: block;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--cyan);
  font-size: 0.78rem;
  margin-bottom: 14px;
  min-height: 1.5em; /* Prevents layout shift during typewriter */
  display: flex;
  align-items: center;
}

.cursor {
  display: inline-block;
  font-weight: 700;
  margin-left: 2px;
  color: var(--text);
  animation: blink 1s step-end infinite;
}

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

h1,
h2,
h3 {
  font-family: "Space Grotesk", sans-serif;
  margin: 0;
}

h1 {
  font-size: clamp(2.7rem, 5vw, 5.2rem);
  line-height: 0.98;
  max-width: 11ch;
}

h2 {
  font-size: clamp(2rem, 3vw, 3.1rem);
  max-width: 16ch;
}
.stack-section h2,
.summary-section h2,
.experience-section h2,
.projects-section h2,
.highlights-section h2,
.resume-section h2,
.contact-section h2 {
  font-size: clamp(1.2rem, 2vw, 1.6rem);
  max-width: none;
}

.hero-text,
.detail-list li,
.section-heading p,
.detail-panel p,
.project-card p,
.contact-copy p,
.architecture-card p,
.summary-card p,
.highlight-card p,
.resume-card p,
.stack-card p,
label,
.form-status,
.profile-info p {
  color: var(--muted);
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 30px 0;
}

.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 24px;
}

.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--text);
  text-decoration: none;
  background: rgba(255, 255, 255, 0.04);
  transition: all 0.3s ease;
}

.social-link:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: translateY(-3px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
  color: var(--cyan);
  border-color: var(--cyan);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
  border: 1px solid transparent;
}

.button-primary {
  background: linear-gradient(90deg, var(--accent), var(--accent-soft), var(--accent));
  background-size: 200% auto;
  color: #08111d;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.button-primary:hover {
  animation: shine 2s linear infinite;
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 10px 25px rgba(255, 140, 66, 0.5);
}

.button-secondary {
  color: var(--text);
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.04);
  transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.button-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.hero-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.hero-metrics article,
.floating-panel,
.detail-panel,
.project-card,
.contact-card,
.stack-card,
.architecture-card,
.summary-card,
.highlight-card,
.resume-card,
.profile-card {
  border: 1px solid var(--line);
  background: var(--panel);
  box-shadow: var(--shadow);
}

.hero-metrics article {
  padding: 18px 20px;
  min-width: 150px;
  border-radius: 20px;
}

.hero-metrics strong {
  display: block;
  font-size: 1.2rem;
  margin-bottom: 8px;
}

.hero-visual {
  position: relative;
}

.profile-card {
  border-radius: 32px;
  padding: 24px;
  background: linear-gradient(180deg, rgba(12, 28, 49, 0.94), rgba(6, 14, 26, 0.94));
}

.profile-photo-wrap {
  width: min(100%, 260px);
  margin: 0 auto 22px;
  padding: 10px;
  border-radius: 28px;
  background: linear-gradient(135deg, rgba(89, 208, 255, 0.24), rgba(255, 209, 102, 0.18));
  animation: float 6s ease-in-out infinite;
  position: relative;
}

.profile-photo-wrap::after {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: 30px;
  background: linear-gradient(135deg, var(--cyan), var(--accent));
  z-index: -1;
  opacity: 0.5;
  filter: blur(15px);
  animation: pulse-glow 4s infinite alternate;
}

.profile-photo {
  display: block;
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  border-radius: 24px;
  border: 4px solid var(--panel);
  box-shadow: 0 0 0 2px var(--cyan), 0 10px 30px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
}

[data-theme="light"] .profile-photo {
  border-color: #ffffff;
  box-shadow: 0 0 0 3px var(--cyan), 0 8px 24px rgba(0, 0, 0, 0.15);
}

.profile-photo:hover {
  transform: scale(1.02);
  box-shadow: 0 0 0 3px var(--accent), 0 15px 40px rgba(255, 140, 66, 0.4);
}

.profile-info {
  display: grid;
  gap: 14px;
}

.profile-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.profile-tags span,
.project-top span,
.api-chip,
.highlight-badge {
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--accent-soft);
  font-size: 0.85rem;
  display: inline-flex;
  align-items: center;   
  gap: 8px;             
  width: fit-content;
}
.floating-panel {
  width: min(280px, 80%);
  padding: 20px;
  border-radius: 22px;
}

.floating-panel-inline {
  position: static;
  width: 100%;
  margin-top: 8px;
}

.floating-panel p {
  margin: 0 0 10px;
  color: var(--muted);
}



main {
  display: grid;
  gap: 34px;
}

.summary-section,
.stack-section,
.experience-section,
.projects-section,
.highlights-section,
.resume-section,
.contact-section {
  padding: 38px;
  border-radius: 32px;
  border: 1px solid var(--line);
  background: var(--panel);
}

.section-heading {
  margin-bottom: 28px;
}

.summary-grid,
.stack-grid,
.projects-grid,
.highlights-grid,
.experience-grid {
  display: grid;
  gap: 18px;
}

.summary-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.projects-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.experience-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.stack-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

/* 4 equal columns for achievements */
.highlights-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.summary-card,
.highlight-card,
.project-card {
  padding: 24px;
  border-radius: 24px;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.summary-card:hover,
.highlight-card:hover,
.project-card:hover {
  transform: translateY(-8px) scale(1.02);
  border-color: rgba(89, 208, 255, 0.6);
  background: rgba(255, 255, 255, 0.06);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4), 0 0 20px rgba(89, 208, 255, 0.2);
}

.stack-card {
  text-align: left;
  border-radius: 24px;
  padding: 24px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line);
  color: var(--text);
  font: inherit;
}

.stack-card strong {
  display: block;
  color: var(--text);
  font-size: 1.1rem;
  margin-top: 4px;
  margin-bottom: 8px;
}

.stack-card:hover,
.stack-card.is-active {
  transform: translateY(-8px) scale(1.02);
  border-color: rgba(255, 209, 102, 0.6);
  background: rgba(18, 35, 60, 0.95);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4), 0 0 20px rgba(255, 209, 102, 0.2);
}

.stack-icon {
  display: inline-grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  margin-bottom: 18px;
  color: #05101d;
  background: linear-gradient(135deg, var(--cyan), #daf4ff);
  font-weight: 800;
}

.detail-panel {
  margin-top: 24px;
  border-radius: 28px;
  padding: 24px;
}

.project-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.project-top p {
  margin: 0;
}

.resume-card {
  border-radius: 28px;
  padding: 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.contact-links {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.contact-card {
  padding: 24px;
  border-radius: 28px;
  display: grid;
  gap: 16px;
}

label {
  display: grid;
  gap: 8px;
}

input,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  padding: 14px 16px;
  font: inherit;
  transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

input:focus,
textarea:focus {
  outline: none;
  border-color: var(--cyan);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 0 0 4px rgba(89, 208, 255, 0.15);
  transform: translateY(-2px);
}

input::placeholder,
textarea::placeholder {
  color: #8ea1bf;
}

.form-status {
  margin: 0;
  min-height: 28px;
}

.form-status.is-success {
  color: var(--success);
}

.form-status.is-error {
  color: var(--error);
}

.reveal {
  opacity: 0;
  transition: opacity 800ms cubic-bezier(0.25, 1, 0.5, 1), transform 800ms cubic-bezier(0.25, 1, 0.5, 1);
  will-change: opacity, transform;
}

.reveal-up { transform: translateY(40px); }
.reveal-left { transform: translateX(-50px); }
.reveal-right { transform: translateX(50px); }
.reveal-zoom { transform: scale(0.92); }

.reveal.is-visible {
  opacity: 1;
  transform: translate(0, 0) scale(1) !important;
}

/* ── Accessibility: Reduced Motion ── */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .reveal {
    opacity: 1;
    transform: none !important;
  }
}

/* ── Footer ── */
.site-footer {
  margin-top: 80px;
  padding: 32px 0;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.footer-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-content p {
  margin: 0;
  font-size: 0.9rem;
}

.footer-links {
  display: flex;
  gap: 24px;
}

.footer-links a {
  color: var(--text);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: var(--accent);
}

/* ── Tablet (760px – 960px) ── */
@media (max-width: 960px) {
  .hero-content,
  .summary-grid,
  .projects-grid,
  .experience-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .stack-grid,
  .highlights-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .resume-card {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ── Mobile (below 760px) ── */
@media (max-width: 760px) {
  .page-shell {
    width: min(100% - 20px, 1180px);
  }

  .nav {
    border-radius: 28px;
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .menu-toggle {
    display: inline-flex;
    padding: 10px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
  }

  .nav-links {
    width: 100%;
    display: flex;
    flex-direction: column;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
  }

  .nav-links.is-open {
    max-height: 500px;
    opacity: 1;
    padding-top: 16px;
    padding-bottom: 16px;
  }

  .summary-section,
  .stack-section,
  .experience-section,
  .projects-section,
  .highlights-section,
  .resume-section,
  .contact-section {
    padding: 24px;
  }

  .highlights-grid {
    grid-template-columns: 1fr;
  }

  .footer-content {
    flex-direction: column-reverse;
    text-align: center;
    padding-bottom: 16px;
  }

  h1 {
    max-width: none;
  }
}

/* ── Experience & Education ── */
.role-meta {
  margin: 4px 0 14px;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 600;
}

.detail-list {
  margin: 12px 0 0;
  padding-left: 18px;
  display: grid;
  gap: 8px;
}

.detail-list li {
  line-height: 1.65;
}

.detail-list li::marker {
  color: var(--cyan);
}

.experience-grid .highlight-card,
.projects-grid .project-card {
  display: flex;
  flex-direction: column;
}

.project-card h3,
.experience-grid .highlight-card h3 {
  margin: 0;
}

/* ── Contact layout ── */
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr);
  gap: 32px;
  align-items: start;
}

.contact-card {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
}

.contact-card label span {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--muted);
}

.contact-card button[type="submit"] {
  justify-self: start;
}

[data-theme="light"] .contact-card,
[data-theme="light"] .summary-card,
[data-theme="light"] .highlight-card,
[data-theme="light"] .project-card {
  background: rgba(0, 0, 0, 0.02);
  border-color: rgba(0, 0, 0, 0.08);
}

[data-theme="light"] input,
[data-theme="light"] textarea {
  background: rgba(0, 0, 0, 0.03);
}

[data-theme="light"] input::placeholder,
[data-theme="light"] textarea::placeholder {
  color: #718096;
}

@media (max-width: 760px) {
  .projects-grid {
    grid-template-columns: 1fr;
  }
}

/* ── Project card header: keep label and tech-stack chip from cramping ── */
.project-top {
  flex-wrap: wrap;
  align-items: flex-start;
}

.project-top p {
  white-space: nowrap;
  color: var(--muted);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.project-top span {
  flex: 1 1 auto;
  text-align: right;
  line-height: 1.5;
}

.api-chip {
  text-decoration: none;
  align-items: center;
  gap: 8px;
}

.api-chip:hover {
  border-color: rgba(89, 208, 255, 0.6);
  transform: translateY(-2px);
}

/* Skill-focus panel: label only, no meter */
.floating-panel strong {
  display: block;
  margin-top: 6px;
  line-height: 1.4;
}
