:root {
  --accent: #00e5ff;
  --accent-alt: #7b61ff;
  --accent-xr: #00ffa3;
  --bg-dark: #050510;
  --surface-dark: #0f1228;
  --text-dark: #eaf7ff;
  --bg-light: #f8fafc;
  --surface-light: #ffffff;
  --text-light: #0f172a;
  --font-body: Inter, Segoe UI, Arial, sans-serif;
  --font-heading: Sora, Segoe UI, Arial, sans-serif;
  --container-width: 1120px;
  --card-radius: 14px;
  --transition-fast: 180ms ease;
}

* {
  box-sizing: border-box;
}

/* Component display rules (.btn is inline-flex) must not un-hide optional links. */
[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--bg-dark);
  color: var(--text-dark);
  overflow-x: hidden;
  position: relative;
}

html[data-theme="light"] body {
  background: var(--bg-light);
  color: var(--text-light);
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: min(100% - 2rem, var(--container-width));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(0, 229, 255, 0.24);
  background: color-mix(in srgb, #090b1c, transparent 16%);
}

html[data-theme="light"] .site-header {
  background: color-mix(in srgb, var(--bg-light), transparent 10%);
}

.site-header .container {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  min-height: 72px;
}

.brand {
  font-family: var(--font-heading);
  font-weight: 700;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.site-nav a {
  opacity: 0.9;
  transition: opacity var(--transition-fast), color var(--transition-fast), text-shadow var(--transition-fast);
}

.site-nav a:hover {
  opacity: 1;
  color: var(--accent);
  text-shadow: 0 0 8px color-mix(in srgb, var(--accent), transparent 42%);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid transparent;
  padding: 0.58rem 1rem;
  font-size: 0.95rem;
  cursor: pointer;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast), border-color var(--transition-fast), background var(--transition-fast);
}

.btn:hover {
  transform: translateY(-2px) scale(1.03);
  animation: neonPulse 1.1s ease-in-out infinite alternate;
}

.btn-primary {
  background: linear-gradient(120deg, var(--accent), var(--accent-alt));
  color: #fff;
  box-shadow: 0 0 18px rgba(0, 229, 255, 0.38), 0 0 34px rgba(123, 97, 255, 0.22);
}

.btn-secondary {
  border-color: color-mix(in srgb, var(--accent), transparent 36%);
  background: rgba(15, 18, 40, 0.65);
  box-shadow: inset 0 0 0 1px rgba(0, 229, 255, 0.2);
}

html[data-theme="light"] .btn-secondary {
  background: var(--surface-light);
}

.btn-ghost {
  border-color: rgba(123, 97, 255, 0.45);
  box-shadow: 0 0 15px rgba(123, 97, 255, 0.2);
}

[data-root] section {
  padding: 4.5rem 0;
}

[data-root] {
  display: flex;
  flex-direction: column;
}

.hero h1 {
  margin: 0;
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, 3.25rem);
  text-shadow: 0 0 12px rgba(0, 229, 255, 0.6), 0 0 36px rgba(123, 97, 255, 0.32);
}

.hero h2 {
  margin: 0.75rem 0 0;
  color: color-mix(in srgb, var(--accent), #fff 12%);
  font-size: clamp(1.15rem, 2.2vw, 1.7rem);
  text-shadow: 0 0 10px rgba(0, 229, 255, 0.35);
}

.hero p {
  margin: 1rem 0 1.4rem;
  max-width: 62ch;
  line-height: 1.65;
}

.hero-meta {
  margin: 0 0 1.2rem;
  font-size: 0.95rem;
  opacity: 0.82;
}

.hero-actions {
  display: flex;
  gap: 0.7rem;
  flex-wrap: wrap;
}

.section-heading {
  margin: 0 0 1.3rem;
  font-family: var(--font-heading);
  font-size: 1.8rem;
  background: linear-gradient(120deg, #dffcff 20%, var(--accent) 45%, var(--accent-alt) 82%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 0 14px rgba(0, 229, 255, 0.24), 0 0 24px rgba(123, 97, 255, 0.18);
}

.section-heading-center {
  text-align: center;
}

.about-rotating-title {
  margin: 0 auto 0.7rem;
  min-height: 1.5rem;
  width: fit-content;
  font-family: var(--font-heading);
  font-size: clamp(1.35rem, 3vw, 2.1rem);
  font-weight: 800;
  text-align: center;
  letter-spacing: 0.02em;
  color: color-mix(in srgb, var(--accent), #ffffff 15%);
  text-shadow: 0 0 12px rgba(0, 229, 255, 0.35), 0 0 20px rgba(123, 97, 255, 0.2);
  border-right: 2px solid color-mix(in srgb, var(--accent), #ffffff 20%);
  white-space: nowrap;
  overflow: hidden;
  animation: aboutTypingCaret 0.8s step-end infinite;
}

@keyframes aboutTypingCaret {
  0%, 49% {
    border-right-color: color-mix(in srgb, var(--accent), #ffffff 20%);
  }
  50%, 100% {
    border-right-color: transparent;
  }
}

.holo-panel {
  border: 0;
  background: transparent;
  border-radius: 0;
  padding: 0;
  backdrop-filter: none;
  box-shadow: none;
  animation: none;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}

.service-card {
  border: 1px solid rgba(0, 229, 255, 0.3);
  border-radius: var(--card-radius);
  padding: 1rem;
  background: rgba(20, 22, 42, 0.5);
  backdrop-filter: blur(8px);
  box-shadow: inset 0 0 25px rgba(0, 229, 255, 0.08), 0 0 0 1px rgba(123, 97, 255, 0.15);
}

html[data-theme="light"] .service-card {
  background: var(--surface-light);
}

.service-icon {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(120deg, var(--accent), var(--accent-alt));
  margin-bottom: 0.7rem;
  color: #fff;
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}

.skill-category {
  border: 1px solid rgba(130, 130, 130, 0.3);
  border-radius: var(--card-radius);
  padding: 1rem;
  background: color-mix(in srgb, var(--surface-dark), transparent 10%);
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
  animation: cardFloat 8s ease-in-out infinite;
}

html[data-theme="light"] .skill-category {
  background: var(--surface-light);
}

.skill-category h3 {
  margin: 0 0 0.7rem;
}

.skill-category ul {
  margin: 0;
  padding-left: 0;
  display: grid;
  gap: 0.35rem;
  list-style: none;
}

.skill-category li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.skill-icon {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 0.72rem;
  background: rgba(0, 229, 255, 0.16);
  border: 1px solid rgba(0, 229, 255, 0.45);
  color: #d9fbff;
  box-shadow: 0 0 10px rgba(0, 229, 255, 0.18);
}

.skill-item {
  border: 1px solid rgba(130, 130, 130, 0.3);
  border-radius: var(--card-radius);
  padding: 1rem;
  background: color-mix(in srgb, var(--surface-dark), transparent 10%);
}

html[data-theme="light"] .skill-item {
  background: var(--surface-light);
}

.skill-item header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.65rem;
}

.skill-item h3 {
  margin: 0;
  font-size: 1rem;
}

.skill-meter {
  height: 8px;
  border-radius: 99px;
  background: rgba(120, 120, 120, 0.25);
}

.skill-meter-fill {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent), var(--accent-alt));
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 1rem;
}

.chip {
  border: 1px solid rgba(130, 130, 130, 0.36);
  border-radius: 999px;
  background: transparent;
  color: inherit;
  padding: 0.4rem 0.8rem;
  cursor: pointer;
}

.chip.active {
  border-color: transparent;
  background: linear-gradient(120deg, var(--accent), var(--accent-alt));
  color: #fff;
}

.project-controls {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.project-controls .chip-row {
  margin-bottom: 0;
}

.video-toggle-btn {
  margin-left: auto;
  white-space: nowrap;
  text-decoration: none;
}

.videos-page {
  padding-top: 2rem;
  padding-bottom: 4rem;
}

.videos-carousel {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
}

.videos-viewport {
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: var(--card-radius);
  background: #0a0a0a;
}

.videos-slide {
  display: none;
  width: 100%;
  height: 100%;
}

.videos-slide iframe {
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: var(--card-radius);
}

.videos-empty {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  color: #b8b8b8;
  font-size: 0.95rem;
}

.videos-title {
  text-align: center;
  margin-top: 1rem;
  font-size: 1rem;
  opacity: 0.85;
}

.project-grid {
  display: grid;
  grid-template-columns: 1fr;
  max-width: 1000px;
  margin: 0 auto;
  gap: 1.5rem;
}

.project-card {
  display: flex;
  flex-direction: row;
  border: 1px solid rgba(0, 229, 255, 0.28);
  border-radius: var(--card-radius);
  overflow: hidden;
  background: rgba(17, 20, 46, 0.48);
  backdrop-filter: blur(11px);
  box-shadow: inset 0 0 24px rgba(0, 229, 255, 0.06), 0 0 20px rgba(123, 97, 255, 0.12);
  transition: transform 240ms ease, border-color 240ms ease, box-shadow 240ms ease;
  animation: cardFloat 10s ease-in-out infinite;
}

.project-slider-frame {
  flex: 0 0 80%;
  min-width: 0;
}

.project-card-body {
  flex: 0 0 20%;
  min-width: 0;
  padding: 1rem;
  overflow-y: auto;
}

.project-card:hover {
  transform: translateY(-5px);
  border-color: rgba(0, 255, 163, 0.6);
  box-shadow: inset 0 0 24px rgba(0, 229, 255, 0.12), 0 0 24px rgba(0, 229, 255, 0.2);
}

html[data-theme="light"] .project-card {
  background: var(--surface-light);
}

.project-card h3 {
  margin: 0.3rem 0 0.5rem;
  font-family: var(--font-heading);
  font-size: 0.95rem;
}

.project-card p {
  margin: 0;
  line-height: 1.55;
  font-size: 0.82rem;
}

.tag-row {
  display: flex;
  gap: 0.3rem;
  flex-wrap: wrap;
  margin: 0;
}

.tag-row span {
  font-size: 0.7rem;
  padding: 0.2rem 0.5rem;
  border-radius: 999px;
  background: rgba(127, 127, 127, 0.2);
}

.project-actions {
  margin-top: 0.6rem;
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.project-actions .btn {
  padding: 0.35rem 0.7rem;
  font-size: 0.78rem;
}

.tech-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: 0.5rem;
}

.tech-row span {
  font-size: 0.68rem;
  border: 1px solid rgba(130, 130, 130, 0.35);
  border-radius: 999px;
  padding: 0.15rem 0.45rem;
}

.timeline {
  display: grid;
  gap: 0.9rem;
}

.timeline-item {
  border-left: 2px solid var(--accent);
  padding: 0.2rem 0 0.2rem 0.85rem;
  box-shadow: -10px 0 18px -14px rgba(0, 229, 255, 0.8);
}

.timeline-period {
  margin: 0;
  opacity: 0.8;
  font-size: 0.9rem;
}

.timeline-item h3,
.timeline-item h4 {
  margin: 0.3rem 0;
}

.contact-card {
  border: 1px solid rgba(130, 130, 130, 0.25);
  border-radius: var(--card-radius);
  padding: 1rem;
  background: rgba(17, 20, 44, 0.46);
  backdrop-filter: blur(8px);
  box-shadow: inset 0 0 24px rgba(0, 229, 255, 0.06), 0 0 20px rgba(123, 97, 255, 0.11);
  transition: transform 220ms ease, border-color 220ms ease, box-shadow 220ms ease;
  animation: cardFloat 8.5s ease-in-out infinite;
}

.achievements-grid,
.testimonials-grid,
.certifications-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}

.achievement-card,
.testimonial-card,
.cert-card {
  border: 1px solid rgba(0, 229, 255, 0.28);
  border-radius: var(--card-radius);
  padding: 1rem;
  background: rgba(17, 20, 44, 0.5);
  backdrop-filter: blur(7px);
  transition: transform 240ms ease, box-shadow 240ms ease, border-color 240ms ease;
  animation: cardFloat 9s ease-in-out infinite;
}

.achievement-card:hover,
.testimonial-card:hover,
.cert-card:hover,
.skill-category:hover,
.contact-card:hover {
  transform: translateY(-6px);
  border-color: rgba(0, 229, 255, 0.58);
  box-shadow: 0 0 22px rgba(0, 229, 255, 0.24), 0 0 30px rgba(123, 97, 255, 0.2);
}

html[data-theme="light"] .achievement-card,
html[data-theme="light"] .testimonial-card,
html[data-theme="light"] .cert-card {
  background: var(--surface-light);
}

.achievement-card h3,
.cert-card h3 {
  margin-top: 0;
}

.card-icon-wrap {
  margin-bottom: 0.7rem;
}

.ui-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(0, 229, 255, 0.34);
  background: linear-gradient(
    145deg,
    color-mix(in srgb, var(--surface-dark), #ffffff 6%),
    color-mix(in srgb, var(--surface-dark), #000000 18%)
  );
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.24), inset 0 1px 1px rgba(255, 255, 255, 0.12);
  color: color-mix(in srgb, var(--accent), #ffffff 12%);
}

.ui-icon svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  stroke-width: 1.9;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.testimonial-avatar-wrap {
  margin-bottom: 0.6rem;
}

.testimonial-avatar {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #eaffff;
  background: rgba(10, 21, 40, 0.92);
  border: 1px solid rgba(0, 229, 255, 0.58);
  box-shadow: 0 0 0 3px rgba(0, 229, 255, 0.14), 0 0 18px rgba(0, 229, 255, 0.32), 0 0 28px rgba(123, 97, 255, 0.2);
}

.testimonial-avatar .ui-icon {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  border: 0;
  box-shadow: none;
  background: transparent;
  color: color-mix(in srgb, var(--accent), #ffffff 24%);
}

.testimonial-avatar .ui-icon svg {
  width: 18px;
  height: 18px;
}

.cert-link {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.cert-link:hover {
  color: var(--accent);
}

/* Futuristic background and parallax FX */
.bg-fx-layer {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  --mx: 0px;
  --my: 0px;
}

#particleCanvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.55;
}

.cyber-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0, 229, 255, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(123, 97, 255, 0.08) 1px, transparent 1px);
  background-size: 64px 64px, 64px 64px;
  opacity: 0.23;
  mask-image: radial-gradient(circle at center, black 22%, transparent 85%);
}

.gradient-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.26;
  transform: translate3d(var(--mx), var(--my), 0);
}

.orb-cyan {
  width: 360px;
  height: 360px;
  top: 10%;
  left: 8%;
  background: #00e5ff;
  animation: orbPulse 8s ease-in-out infinite;
}

.orb-purple {
  width: 420px;
  height: 420px;
  top: 20%;
  right: 8%;
  background: #7b61ff;
  animation: orbPulse 11s ease-in-out infinite reverse;
}

.orb-xr {
  width: 300px;
  height: 300px;
  bottom: 12%;
  left: 45%;
  background: #00ffa3;
  animation: orbPulse 10s ease-in-out infinite;
}

.floating-geo {
  position: absolute;
  inset: 0;
  transform: translate3d(calc(var(--mx) * 0.35), calc(var(--my) * 0.35), 0);
}

.floating-shape {
  position: absolute;
  border: 1px solid rgba(0, 229, 255, 0.35);
  box-shadow: 0 0 14px rgba(0, 229, 255, 0.2);
  animation: floatSpin linear infinite;
}

.floating-shape.ring {
  border-radius: 50%;
  background: transparent;
}

.floating-shape.cube {
  background: rgba(123, 97, 255, 0.14);
  transform: rotate(22deg);
}

.floating-shape.sphere {
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, rgba(255, 255, 255, 0.65), rgba(0, 255, 163, 0.08) 60%);
}

#pointerGlow {
  position: fixed;
  top: 0;
  left: 0;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 50;
  box-shadow: 0 0 0 5px rgba(0, 229, 255, 0.15), 0 0 20px rgba(0, 229, 255, 0.8);
  background: #00e5ff;
  transform: translate(-100px, -100px);
}

@keyframes floatSpin {
  0% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-18px) rotate(180deg); }
  100% { transform: translateY(0) rotate(360deg); }
}

@keyframes orbPulse {
  0%, 100% { transform: scale(1) translate3d(var(--mx), var(--my), 0); opacity: 0.2; }
  50% { transform: scale(1.09) translate3d(var(--mx), var(--my), 0); opacity: 0.33; }
}

@keyframes cardFloat {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-4px); }
}

@keyframes sectionFloat {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-3px); }
}

@keyframes neonPulse {
  0% { box-shadow: 0 0 12px rgba(0, 229, 255, 0.22), 0 0 18px rgba(123, 97, 255, 0.14); }
  100% { box-shadow: 0 0 22px rgba(0, 229, 255, 0.42), 0 0 36px rgba(123, 97, 255, 0.28); }
}

@media (prefers-reduced-motion: reduce) {
  .floating-shape,
  .gradient-orb,
  .reveal,
  .reveal.revealed,
  .project-card,
  .skill-category,
  .achievement-card,
  .testimonial-card,
  .cert-card,
  .contact-card,
  .holo-panel,
  .btn {
    animation: none !important;
    transition: none !important;
  }
}

@media (pointer: coarse) {
  #pointerGlow {
    display: none;
  }
}

@media (max-width: 700px) {
  .project-card {
    flex-direction: column;
  }

  .project-slider-frame,
  .project-card-body {
    flex: 1 1 auto;
  }
}

.social-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.social-grid a {
  border: 1px solid rgba(130, 130, 130, 0.3);
  border-radius: 10px;
  padding: 0.56rem 0.75rem;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: rgba(17, 20, 44, 0.45);
  transition: transform var(--transition-fast), border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.social-grid a:hover {
  transform: translateY(-2px);
  border-color: rgba(0, 229, 255, 0.45);
  box-shadow: 0 0 18px rgba(0, 229, 255, 0.18), 0 0 22px rgba(123, 97, 255, 0.14);
}

.social-grid a .ui-icon {
  width: 30px;
  height: 30px;
  border-radius: 8px;
}

.social-grid a .ui-icon svg {
  width: 16px;
  height: 16px;
}

html[data-theme="light"] .ui-icon {
  background: linear-gradient(
    145deg,
    color-mix(in srgb, var(--surface-light), #ffffff 86%),
    color-mix(in srgb, var(--surface-light), #0f172a 9%)
  );
  border-color: color-mix(in srgb, var(--accent-alt), transparent 60%);
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.12), inset 0 1px 1px rgba(255, 255, 255, 0.9);
}

html[data-theme="light"] .social-grid a {
  background: var(--surface-light);
}

.site-footer {
  border-top: 1px solid rgba(130, 130, 130, 0.24);
  padding: 1.2rem 0 2rem;
  opacity: 0.86;
}

/* Slider component */
.media-slider {
  position: relative;
}

.slider-viewport {
  overflow: hidden;
  height: 100%;
  background: #0a0a0a;
}

.slider-track {
  height: 100%;
  display: flex;
  transition: transform 250ms ease;
}

.slider-slide {
  flex: 0 0 100%;
  margin: 0;
  position: relative;
}

.slider-slide img,
.slider-slide video,
.slider-slide iframe {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border: 0;
}

/* Mask Google Drive top-right controls area (e.g. Share). */
.slider-slide-drive::after {
  content: "";
  position: absolute;
  top: 0.45rem;
  right: 0.45rem;
  width: 84px;
  height: 34px;
  border-radius: 999px;
  background: color-mix(in srgb, #0a0a0a, transparent 8%);
  pointer-events: none;
}

.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid color-mix(in srgb, var(--accent), transparent 62%);
  background: linear-gradient(
    145deg,
    color-mix(in srgb, var(--surface-dark), #ffffff 8%),
    color-mix(in srgb, var(--surface-dark), #000000 18%)
  );
  color: var(--text-dark);
  box-shadow:
    0 8px 22px rgba(0, 0, 0, 0.38),
    inset 0 1px 1px rgba(255, 255, 255, 0.11),
    0 0 0 1px rgba(0, 229, 255, 0.08);
  cursor: pointer;
  opacity: 0.95;
  backdrop-filter: blur(4px);
  transition:
    transform var(--transition-fast),
    box-shadow var(--transition-fast),
    border-color var(--transition-fast),
    background var(--transition-fast),
    opacity var(--transition-fast);
}

.slider-btn-icon {
  display: inline-block;
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1;
  text-shadow: 0 1px 5px rgba(0, 0, 0, 0.45);
}

.slider-btn:hover {
  opacity: 1;
  transform: translateY(-50%) translateY(-1px) scale(1.03);
  border-color: color-mix(in srgb, var(--accent), transparent 44%);
  box-shadow:
    0 10px 28px rgba(0, 0, 0, 0.42),
    inset 0 1px 1px rgba(255, 255, 255, 0.16),
    0 0 16px color-mix(in srgb, var(--accent), transparent 72%);
}

.slider-btn:active {
  transform: translateY(-50%) scale(0.98);
}

.slider-btn:focus-visible {
  outline: none;
  border-color: color-mix(in srgb, var(--accent), transparent 24%);
  box-shadow:
    0 0 0 3px color-mix(in srgb, var(--accent), transparent 78%),
    0 10px 24px rgba(0, 0, 0, 0.36);
}

.slider-btn-prev {
  left: 0.5rem;
}

.slider-btn-next {
  right: 0.5rem;
}

html[data-theme="light"] .slider-btn {
  background: linear-gradient(
    145deg,
    color-mix(in srgb, var(--surface-light), #ffffff 85%),
    color-mix(in srgb, var(--surface-light), #0f172a 8%)
  );
  color: var(--text-light);
  border-color: color-mix(in srgb, var(--accent-alt), transparent 64%);
  box-shadow:
    0 8px 22px rgba(15, 23, 42, 0.14),
    inset 0 1px 1px rgba(255, 255, 255, 0.92),
    0 0 0 1px rgba(123, 97, 255, 0.08);
}

.slider-dots {
  position: absolute;
  bottom: 0.45rem;
  width: 100%;
  display: flex;
  justify-content: center;
  gap: 0.35rem;
}

.slider-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  border: 0;
  background: rgba(255, 255, 255, 0.55);
  cursor: pointer;
}

.slider-dot.active {
  background: #fff;
}

.slider-empty {
  height: 100%;
  display: grid;
  place-items: center;
  background: #101010;
  color: #b8b8b8;
}

/* Animation */
.reveal {
  opacity: 0;
  transform: translateY(12px);
}

.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 300ms ease, transform 300ms ease;
}

.error {
  color: #ff5d5d;
  padding: 2rem;
}

/* Project detail page */
.project-layout {
  display: grid;
  gap: 1rem;
}

.detail-panel {
  border: 1px solid rgba(130, 130, 130, 0.3);
  border-radius: var(--card-radius);
  padding: 1rem;
}

.detail-panel ul {
  padding-left: 1rem;
}

.screenshots-grid {
  margin-top: 1rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.6rem;
}

.screenshots-grid img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 10px;
}

/* Header actions + mobile hamburger */
.header-actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  padding: 0;
  border-radius: 10px;
  border: 1px solid rgba(0, 229, 255, 0.34);
  background: rgba(15, 18, 40, 0.65);
  cursor: pointer;
}

.nav-toggle-bar {
  display: block;
  width: 20px;
  height: 2px;
  margin: 0 auto;
  border-radius: 2px;
  background: var(--accent);
  transition: transform var(--transition-fast), opacity var(--transition-fast);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Hero role subtitle (was an h2; now styled paragraph) */
.hero .hero-title {
  margin: 0.75rem 0 0;
  max-width: none;
  font-family: var(--font-heading);
  font-weight: 600;
  color: color-mix(in srgb, var(--accent), #fff 12%);
  font-size: clamp(1.15rem, 2.2vw, 1.7rem);
  text-shadow: 0 0 10px rgba(0, 229, 255, 0.35);
}

/* Availability badge */
.hero .availability-badge,
.availability-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0 0 0.9rem;
  max-width: none;
  padding: 0.32rem 0.8rem;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  color: #c6ffe6;
  background: rgba(0, 255, 163, 0.12);
  border: 1px solid rgba(0, 255, 163, 0.5);
  box-shadow: 0 0 16px rgba(0, 255, 163, 0.18);
  width: fit-content;
}

.availability-badge::before {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #00ffa3;
  box-shadow: 0 0 8px #00ffa3;
  animation: availabilityPulse 1.8s ease-in-out infinite;
}

.contact-card .availability-badge {
  margin-bottom: 0.9rem;
}

@keyframes availabilityPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.55; transform: scale(0.82); }
}

@media (prefers-reduced-motion: reduce) {
  .availability-badge::before {
    animation: none;
  }
}

.contact-rates {
  margin: 0.9rem 0 0;
  font-size: 0.9rem;
  opacity: 0.85;
}

/* About section with profile photo */
.about-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 2rem;
  align-items: center;
}

.about-photo-wrap {
  display: flex;
  justify-content: center;
}

.about-photo {
  width: 220px;
  height: 220px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(0, 229, 255, 0.55);
  box-shadow: 0 0 0 4px rgba(0, 229, 255, 0.12), 0 0 26px rgba(0, 229, 255, 0.3), 0 0 40px rgba(123, 97, 255, 0.22);
}

.about-text {
  margin: 0;
  line-height: 1.7;
  max-width: 70ch;
}

@media (max-width: 720px) {
  .about-layout {
    grid-template-columns: 1fr;
    gap: 1.2rem;
    justify-items: center;
    text-align: center;
  }

  .about-photo {
    width: 160px;
    height: 160px;
  }
}

/* Testimonial rating, meta and source badge */
.testimonial-rating {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin: 0 0 0.5rem;
}

.testimonial-stars {
  color: #ffcc4d;
  letter-spacing: 0.08em;
  font-size: 0.95rem;
}

.testimonial-rating-num {
  font-size: 0.82rem;
  opacity: 0.85;
}

.testimonial-quote {
  margin: 0 0 0.7rem;
  line-height: 1.6;
}

.testimonial-card small {
  display: block;
}

.testimonial-badge {
  display: inline-block;
  margin-top: 0.55rem;
  padding: 0.22rem 0.6rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 600;
  color: #d9fbff;
  background: rgba(0, 229, 255, 0.12);
  border: 1px solid rgba(0, 229, 255, 0.4);
}

@media (max-width: 860px) {
  .site-header .container {
    align-items: center;
    padding: 0.8rem 0;
  }

  .site-nav {
    justify-content: flex-end;
  }
}

@media (max-width: 768px) {
  .nav-toggle {
    display: flex;
  }

  .site-nav {
    position: absolute;
    top: 100%;
    right: 1rem;
    left: 1rem;
    flex-direction: column;
    align-items: stretch;
    gap: 0.25rem;
    padding: 0.6rem;
    border-radius: 12px;
    border: 1px solid rgba(0, 229, 255, 0.28);
    background: color-mix(in srgb, #090b1c, transparent 4%);
    backdrop-filter: blur(10px);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
    transform-origin: top;
    display: none;
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav a {
    padding: 0.6rem 0.7rem;
    border-radius: 8px;
  }

  .site-nav a:hover {
    background: rgba(0, 229, 255, 0.1);
  }
}

/* ============================================================
   Selected Work — three large auto-playing cards, straight
   after the hero. This is the first thing a recruiter sees.
   ============================================================ */

.section-lede {
  margin: -0.35rem 0 1.75rem;
  max-width: 58ch;
  font-size: 0.95rem;
  opacity: 0.78;
}

.featured-grid {
  display: grid;
  gap: 1.5rem;
}

.featured-card {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 0;
  border: 1px solid rgba(0, 229, 255, 0.3);
  border-radius: var(--card-radius);
  overflow: hidden;
  background: rgba(17, 20, 46, 0.55);
  backdrop-filter: blur(11px);
  box-shadow: inset 0 0 28px rgba(0, 229, 255, 0.07), 0 0 26px rgba(123, 97, 255, 0.14);
  transition: transform 240ms ease, border-color 240ms ease, box-shadow 240ms ease;
}

.featured-card:hover {
  transform: translateY(-3px);
  border-color: rgba(0, 229, 255, 0.55);
  box-shadow: inset 0 0 28px rgba(0, 229, 255, 0.1), 0 0 34px rgba(0, 229, 255, 0.24);
}

html[data-theme="light"] .featured-card {
  background: var(--surface-light);
  border-color: rgba(4, 108, 127, 0.28);
  box-shadow: 0 2px 18px rgba(15, 23, 42, 0.1);
}

.featured-media {
  position: relative;
  aspect-ratio: 16 / 9;
  min-height: 260px;
  background: #05060f;
  overflow: hidden;
}

.featured-video,
.featured-poster {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.featured-media-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  height: 100%;
  padding: 1rem;
  text-align: center;
  background:
    radial-gradient(circle at 50% 40%, rgba(0, 229, 255, 0.12), transparent 62%),
    repeating-linear-gradient(45deg, rgba(123, 97, 255, 0.06) 0 10px, transparent 10px 20px);
}

.featured-media-empty p {
  margin: 0;
  font-size: 0.86rem;
  opacity: 0.72;
}

.featured-media-empty-icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid rgba(0, 229, 255, 0.5);
  color: var(--accent);
  font-size: 1rem;
}

.featured-body {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 1.6rem;
}

.featured-kicker {
  margin: 0;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}

html[data-theme="light"] .featured-kicker {
  color: #046c7f;
}

.featured-body h3 {
  margin: 0;
  font-family: var(--font-heading);
  font-size: 1.4rem;
  line-height: 1.2;
}

.featured-highlight {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.5;
  color: color-mix(in srgb, var(--accent-xr), #fff 30%);
}

html[data-theme="light"] .featured-highlight {
  color: #0f766e;
}

.featured-desc {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.6;
  opacity: 0.82;
}

.featured-body .project-actions {
  margin-top: auto;
  padding-top: 0.85rem;
}

@media (max-width: 820px) {
  .featured-card {
    grid-template-columns: 1fr;
  }
  .featured-media {
    min-height: 0;
  }
  .featured-body {
    padding: 1.15rem;
  }
}

/* ---- Résumé button: the one thing a recruiter always looks for ---- */

.btn-resume {
  background: transparent;
  border: 1px solid var(--accent-xr);
  color: color-mix(in srgb, var(--accent-xr), #fff 24%);
  font-weight: 600;
  gap: 0.4rem;
}

.btn-resume:hover {
  background: rgba(0, 255, 163, 0.12);
  box-shadow: 0 0 18px rgba(0, 255, 163, 0.28);
}

html[data-theme="light"] .btn-resume {
  border-color: #0f766e;
  color: #0f766e;
}

.btn-resume-icon {
  font-size: 1rem;
  line-height: 1;
}

.btn-sm {
  padding: 0.38rem 0.8rem;
  font-size: 0.82rem;
}

/* ---- Services, collapsed from six tall cards to a compact list ---- */

.services-compact {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.4rem 2rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.service-line {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.5rem;
  padding: 0.42rem 0;
  border-bottom: 1px solid rgba(0, 229, 255, 0.12);
  font-size: 0.9rem;
}

.service-line-title {
  font-weight: 600;
  color: var(--accent);
}

html[data-theme="light"] .service-line-title {
  color: #046c7f;
}

.service-line-desc {
  opacity: 0.72;
  font-size: 0.85rem;
}

@media (max-width: 720px) {
  .services-compact {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .featured-card {
    transition: none;
  }
  .featured-card:hover {
    transform: none;
  }
}

/* ============================================================
   Hire page — built like a product page: what I build, proof,
   how it works, and a project brief form. Every section ends
   in a way to get in touch.
   ============================================================ */

.btn-lg {
  padding: 0.8rem 1.4rem;
  font-size: 1rem;
  font-weight: 600;
}

.header-cta {
  font-weight: 600;
  white-space: nowrap;
}

.theme-toggle {
  width: 40px;
  height: 40px;
  padding: 0;
  font-size: 1rem;
}

.section-kicker {
  margin: 0 0 0.4rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-xr);
}

html[data-theme="light"] .section-kicker {
  color: #0f766e;
}

.section-cta {
  margin: 2rem 0 0;
  text-align: center;
}

.text-link {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--accent);
}

.text-link:hover {
  text-decoration: underline;
}

html[data-theme="light"] .text-link {
  color: #046c7f;
}

/* ---- Hero ---- */

.hire-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 2.5rem;
  align-items: center;
}

[data-root] .hire-hero {
  padding-top: 4rem;
}

.hire-hero h1 {
  font-size: clamp(2rem, 4.4vw, 3.4rem);
  line-height: 1.12;
}

.hero .hire-hero-sub {
  font-size: 1.12rem;
  opacity: 0.9;
}

.hero .hire-hero-note {
  margin: 1rem 0 0;
  font-size: 0.88rem;
  opacity: 0.75;
}

.hire-hero-card {
  margin: 0;
  padding: 1.5rem;
  text-align: center;
  border: 1px solid rgba(0, 229, 255, 0.3);
  border-radius: var(--card-radius);
  background: rgba(17, 20, 46, 0.6);
  backdrop-filter: blur(11px);
  box-shadow: inset 0 0 28px rgba(0, 229, 255, 0.07), 0 0 26px rgba(123, 97, 255, 0.14);
}

html[data-theme="light"] .hire-hero-card {
  background: var(--surface-light);
  box-shadow: 0 4px 24px rgba(15, 23, 42, 0.1);
}

.hire-hero-card img {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(0, 229, 255, 0.55);
  box-shadow: 0 0 0 4px rgba(0, 229, 255, 0.12), 0 0 26px rgba(0, 229, 255, 0.3);
}

.hire-hero-card figcaption {
  display: grid;
  gap: 0.2rem;
  margin: 0.8rem 0 1.1rem;
}

.hire-hero-card figcaption strong {
  font-family: var(--font-heading);
  font-size: 1.1rem;
}

.hire-hero-card figcaption span {
  font-size: 0.88rem;
  opacity: 0.8;
}

.hire-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.6rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.hire-stats li {
  display: grid;
  gap: 0.1rem;
  padding: 0.7rem 0.4rem;
  border-radius: 10px;
  background: rgba(0, 229, 255, 0.07);
  border: 1px solid rgba(0, 229, 255, 0.16);
}

.hire-stats strong {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  color: var(--accent);
}

html[data-theme="light"] .hire-stats strong {
  color: #046c7f;
}

.hire-stats span {
  font-size: 0.75rem;
  opacity: 0.8;
}

.platform-strip {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem 1rem;
  padding-top: 1.4rem;
  border-top: 1px solid rgba(130, 130, 130, 0.2);
}

.platform-strip-label {
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.65;
}

.platform-strip ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.platform-strip li {
  padding: 0.3rem 0.8rem;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 500;
  border: 1px solid rgba(130, 130, 130, 0.35);
}

/* ---- Services ---- */

.service-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr));
  gap: 1rem;
}

.service-offer {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  padding: 1.4rem;
  border: 1px solid rgba(0, 229, 255, 0.22);
  border-radius: var(--card-radius);
  background: rgba(17, 20, 46, 0.5);
  backdrop-filter: blur(8px);
  transition: transform 220ms ease, border-color 220ms ease, box-shadow 220ms ease;
}

.service-offer:hover {
  transform: translateY(-3px);
  border-color: rgba(0, 229, 255, 0.55);
  box-shadow: 0 0 28px rgba(0, 229, 255, 0.16);
}

html[data-theme="light"] .service-offer {
  background: var(--surface-light);
  box-shadow: 0 2px 14px rgba(15, 23, 42, 0.07);
}

.service-offer h3 {
  margin: 0.2rem 0 0;
  font-family: var(--font-heading);
  font-size: 1.08rem;
}

.service-offer p {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.55;
  opacity: 0.85;
}

.service-offer .text-link {
  margin-top: auto;
  padding-top: 0.4rem;
}

.check-list {
  display: grid;
  gap: 0.35rem;
  margin: 0.2rem 0 0.4rem;
  padding: 0;
  list-style: none;
}

.check-list li {
  display: flex;
  gap: 0.45rem;
  align-items: flex-start;
  font-size: 0.86rem;
  line-height: 1.4;
}

.check-list .ui-icon,
.reason h3 .ui-icon {
  flex: none;
  width: 18px;
  height: 18px;
  border: 0;
  background: none;
  box-shadow: none;
  color: var(--accent-xr);
}

html[data-theme="light"] .check-list .ui-icon,
html[data-theme="light"] .reason h3 .ui-icon {
  background: none;
  box-shadow: none;
  color: #0f766e;
}

.check-list .ui-icon svg,
.reason h3 .ui-icon svg {
  width: 16px;
  height: 16px;
  stroke-width: 2.4;
}

/* ---- Featured work: thumbnail that opens the demo on-page ---- */

.featured-play {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  color: inherit;
}

.featured-play::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(5, 5, 16, 0.55), transparent 55%);
}

.featured-play-badge {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 1;
  transform: translate(-50%, -50%);
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.65rem 1.1rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.92rem;
  color: #fff;
  background: rgba(5, 5, 16, 0.72);
  border: 1px solid rgba(0, 229, 255, 0.6);
  box-shadow: 0 0 24px rgba(0, 229, 255, 0.35);
  transition: transform var(--transition-fast), background var(--transition-fast);
}

.featured-play:hover .featured-play-badge,
.featured-play:focus-visible .featured-play-badge {
  transform: translate(-50%, -50%) scale(1.06);
  background: linear-gradient(120deg, var(--accent), var(--accent-alt));
}

.featured-media.is-missing .featured-poster {
  visibility: hidden;
}

.featured-media.is-missing {
  background:
    radial-gradient(circle at 50% 40%, rgba(0, 229, 255, 0.14), transparent 62%),
    repeating-linear-gradient(45deg, rgba(123, 97, 255, 0.06) 0 10px, transparent 10px 20px);
}

.video-modal {
  width: min(960px, calc(100% - 2rem));
  padding: 0;
  border: 1px solid rgba(0, 229, 255, 0.4);
  border-radius: var(--card-radius);
  background: #05060f;
  color: var(--text-dark);
  overflow: hidden;
}

.video-modal::backdrop {
  background: rgba(2, 3, 10, 0.82);
  backdrop-filter: blur(4px);
}

.video-modal-frame {
  aspect-ratio: 16 / 9;
}

.video-modal-frame iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.video-modal-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  padding: 0.7rem 1rem;
  font-family: var(--font-heading);
}

.video-modal-bar .project-actions {
  margin: 0;
}

/* ---- Process ---- */

.process-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.process-step {
  padding: 1.3rem;
  border-radius: var(--card-radius);
  border: 1px solid rgba(130, 130, 130, 0.25);
  background: rgba(17, 20, 46, 0.4);
}

html[data-theme="light"] .process-step {
  background: var(--surface-light);
}

.process-num {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  margin-bottom: 0.8rem;
  border-radius: 50%;
  font-family: var(--font-heading);
  font-weight: 700;
  color: #fff;
  background: linear-gradient(120deg, var(--accent), var(--accent-alt));
}

.process-step h3 {
  margin: 0 0 0.4rem;
  font-family: var(--font-heading);
  font-size: 1rem;
}

.process-step p {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.55;
  opacity: 0.85;
}

/* ---- Why me ---- */

.why-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 1.5rem;
  align-items: start;
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.2rem 1.6rem;
}

.reason h3 {
  display: flex;
  gap: 0.45rem;
  align-items: center;
  margin: 0 0 0.35rem;
  font-size: 1rem;
}

.reason p {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.55;
  opacity: 0.82;
}

.why-bio {
  padding: 1.3rem;
  border-radius: var(--card-radius);
  border: 1px solid rgba(0, 229, 255, 0.22);
  background: rgba(17, 20, 46, 0.5);
  text-align: center;
}

html[data-theme="light"] .why-bio {
  background: var(--surface-light);
}

.why-bio .about-photo {
  width: 96px;
  height: 96px;
}

.why-bio p {
  margin: 0.8rem 0;
  font-size: 0.88rem;
  line-height: 1.6;
  text-align: left;
  opacity: 0.88;
}

/* ---- Engagement models ---- */

.engagement-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.engagement-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  padding: 1.5rem;
  border-radius: var(--card-radius);
  border: 1px solid rgba(130, 130, 130, 0.28);
  background: rgba(17, 20, 46, 0.45);
}

.engagement-card.is-popular {
  border-color: rgba(0, 229, 255, 0.6);
  box-shadow: 0 0 30px rgba(0, 229, 255, 0.16);
}

html[data-theme="light"] .engagement-card {
  background: var(--surface-light);
}

.engagement-tag {
  position: absolute;
  top: -0.7rem;
  left: 1.5rem;
  padding: 0.2rem 0.65rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(120deg, var(--accent), var(--accent-alt));
}

.engagement-card h3 {
  margin: 0;
  font-family: var(--font-heading);
  font-size: 1.15rem;
}

.engagement-best {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.5;
  opacity: 0.82;
}

.engagement-card .btn {
  margin-top: auto;
}

.engagement-note {
  margin: 1.2rem 0 0;
  text-align: center;
  font-size: 0.9rem;
  opacity: 0.8;
}

/* ---- FAQ ---- */

.faq-list {
  display: grid;
  gap: 0.6rem;
  max-width: 860px;
}

.faq-item {
  border-radius: 12px;
  border: 1px solid rgba(130, 130, 130, 0.26);
  background: rgba(17, 20, 46, 0.4);
}

html[data-theme="light"] .faq-item {
  background: var(--surface-light);
}

.faq-item summary {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.2rem;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  font-size: 1.2rem;
  line-height: 1;
  color: var(--accent);
}

.faq-item[open] summary::after {
  content: "\2212";
}

.faq-item p {
  margin: 0;
  padding: 0 1.2rem 1.1rem;
  line-height: 1.6;
  font-size: 0.92rem;
  opacity: 0.86;
}

/* ---- Contact / project brief ---- */

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 2rem;
  padding: 2rem;
  border-radius: calc(var(--card-radius) + 4px);
  border: 1px solid rgba(0, 229, 255, 0.35);
  background: rgba(17, 20, 46, 0.6);
  backdrop-filter: blur(11px);
  box-shadow: inset 0 0 30px rgba(0, 229, 255, 0.07), 0 0 40px rgba(123, 97, 255, 0.16);
}

html[data-theme="light"] .contact-layout {
  background: var(--surface-light);
  box-shadow: 0 6px 30px rgba(15, 23, 42, 0.1);
}

.contact-intro > p {
  line-height: 1.6;
  opacity: 0.88;
}

.contact-direct {
  display: grid;
  gap: 0.5rem;
  margin: 1rem 0;
  padding: 0;
  list-style: none;
  font-size: 0.92rem;
}

.contact-direct li {
  display: flex;
  gap: 0.8rem;
}

.contact-direct li > span:first-child {
  min-width: 70px;
  opacity: 0.65;
}

.contact-direct a {
  color: var(--accent);
  word-break: break-all;
}

html[data-theme="light"] .contact-direct a {
  color: #046c7f;
}

.brief-form {
  display: grid;
  gap: 0.9rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.9rem;
}

.brief-form label {
  display: grid;
  gap: 0.35rem;
  font-size: 0.85rem;
  font-weight: 500;
}

.brief-form input,
.brief-form select,
.brief-form textarea {
  width: 100%;
  padding: 0.7rem 0.85rem;
  border-radius: 10px;
  border: 1px solid rgba(130, 130, 130, 0.4);
  background: rgba(5, 6, 16, 0.6);
  color: inherit;
  font: inherit;
  font-size: 0.95rem;
}

.brief-form select option {
  color: #0f172a;
}

html[data-theme="light"] .brief-form input,
html[data-theme="light"] .brief-form select,
html[data-theme="light"] .brief-form textarea {
  background: var(--bg-light);
}

.brief-form input:focus,
.brief-form select:focus,
.brief-form textarea:focus {
  outline: 2px solid color-mix(in srgb, var(--accent), transparent 40%);
  border-color: var(--accent);
}

.brief-form textarea {
  resize: vertical;
  min-height: 120px;
}

.form-status {
  margin: 0;
  min-height: 1.2em;
  font-size: 0.88rem;
  opacity: 0.9;
}

/* Portfolio page closing call to action */
.cta-band {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.2rem;
  padding: 2rem;
  border-radius: var(--card-radius);
  border: 1px solid rgba(0, 229, 255, 0.35);
  background: rgba(17, 20, 46, 0.6);
}

html[data-theme="light"] .cta-band {
  background: var(--surface-light);
}

.cta-band .section-heading {
  margin-bottom: 0.5rem;
}

.cta-band p {
  margin: 0 0 0.4rem;
  opacity: 0.88;
}

.cta-band .project-actions .btn {
  padding: 0.8rem 1.3rem;
  font-size: 0.95rem;
}

.footer-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 0.8rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.88rem;
}

.footer-links a:hover {
  color: var(--accent);
}

.mobile-cta {
  display: none;
}

/* ---- Responsive ---- */

@media (max-width: 960px) {
  .hire-hero {
    grid-template-columns: 1fr;
  }

  .hire-hero-card {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0 1rem;
    align-items: center;
    text-align: left;
  }

  .hire-hero-card img {
    width: 72px;
    height: 72px;
  }

  .hire-hero-card figcaption {
    margin: 0;
  }

  .hire-stats {
    grid-column: 1 / -1;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 1rem;
    text-align: center;
  }

  .process-steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .why-layout,
  .contact-layout {
    grid-template-columns: 1fr;
  }

  .engagement-grid {
    grid-template-columns: 1fr;
    max-width: 520px;
  }
}

@media (max-width: 768px) {
  .header-cta,
  .theme-toggle {
    display: none;
  }

  .mobile-cta {
    display: flex;
    position: fixed;
    left: 1rem;
    right: 1rem;
    bottom: 0.9rem;
    z-index: 40;
    padding: 0.85rem 1rem;
    font-weight: 600;
  }

  body[data-page="hire"] {
    padding-bottom: 4.5rem;
  }

  [data-root] section {
    padding: 3rem 0;
  }

  [data-root] .hire-hero {
    padding-top: 2rem;
  }
}

@media (max-width: 600px) {
  .hire-stats {
    grid-template-columns: 1fr 1fr;
  }

  .process-steps,
  .why-grid,
  .form-row {
    grid-template-columns: 1fr;
  }

  .contact-layout,
  .cta-band {
    padding: 1.2rem;
  }
}

/* ============================================================
   Static pages: skip link, checklists without JS icons, service
   pages, the brief fallback panel and the case-study video.
   ============================================================ */

.skip-link {
  position: absolute;
  left: 1rem;
  top: -100px;
  z-index: 100;
  padding: 0.6rem 1rem;
  border-radius: 8px;
  background: var(--accent);
  color: #050510;
  font-weight: 600;
}

.skip-link:focus {
  top: 0.6rem;
}

/* Light theme: the heading gradient starts near-white and the badge text is pale green,
   both unreadable on the light background. */
html[data-theme="light"] .section-heading {
  background: linear-gradient(120deg, #0f172a 20%, #046c7f 55%, #5b45d6 90%);
  -webkit-background-clip: text;
  background-clip: text;
  text-shadow: none;
}

html[data-theme="light"] .availability-badge {
  color: #065f46;
}

/* Spam trap: off-screen for people, still in the form for bots. */
.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.related-links {
  margin: 1.4rem 0 0;
  text-align: center;
  font-size: 0.92rem;
  opacity: 0.9;
}

.related-services ul {
  display: grid;
  gap: 0.5rem;
  margin: 0;
  padding-left: 1.2rem;
  line-height: 1.6;
}

.related-services a {
  font-weight: 600;
  color: var(--accent);
}

html[data-theme="light"] .related-services a {
  color: #046c7f;
}

.brief-checklist {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.5rem 1.5rem;
  max-width: 860px;
}

@media (max-width: 600px) {
  .brief-checklist {
    grid-template-columns: 1fr;
  }
}

/* Sections receive focus from in-page links only to move the keyboard position. */
[tabindex="-1"]:focus {
  outline: none;
}

.check-list li::before {
  content: "✓";
  flex: none;
  width: 1rem;
  font-weight: 700;
  color: var(--accent-xr);
}

html[data-theme="light"] .check-list li::before {
  color: #0f766e;
}

.service-offer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.4rem 1rem;
  margin-top: auto;
  padding-top: 0.4rem;
}

.service-offer-links .text-link {
  margin: 0;
  padding: 0;
}

.text-link-muted {
  opacity: 0.75;
  font-weight: 500;
}

.also-available {
  margin-top: 1.6rem;
  padding: 1.1rem 1.3rem;
  border-radius: var(--card-radius);
  border: 1px dashed rgba(130, 130, 130, 0.35);
}

.also-available h3 {
  margin: 0 0 0.6rem;
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.75;
}

.also-available ul {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.4rem 1.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 0.9rem;
}

.featured-facts {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.3rem 0.8rem;
  margin: 0.2rem 0 0;
  font-size: 0.86rem;
  line-height: 1.5;
}

.featured-facts dt {
  font-weight: 600;
  opacity: 0.7;
}

.featured-facts dd {
  margin: 0;
}

.testimonial-author {
  display: grid;
  gap: 0.1rem;
  margin: 0;
}

.brief-ready {
  padding: 1rem;
  border-radius: 12px;
  border: 1px solid rgba(0, 255, 163, 0.45);
  background: rgba(0, 255, 163, 0.08);
}

.brief-ready p {
  margin: 0 0 0.6rem;
  line-height: 1.55;
  font-size: 0.92rem;
}

.brief-ready a:not(.btn) {
  color: var(--accent);
}

/* 16px stops iOS Safari from zooming the page when a field is focused. */
.brief-form input,
.brief-form select,
.brief-form textarea {
  font-size: 1rem;
}

/* Portfolio cards: a thumbnail beside readable text (the old 80/20 split squeezed the text). */
.project-card .project-slider-frame {
  flex: 0 0 55%;
  min-height: 0;
}

.project-card .project-card-body {
  flex: 1 1 45%;
}

.project-card .project-card-body p {
  font-size: 0.88rem;
}

/* Case-study page */
.project-video .slider-viewport {
  aspect-ratio: 16 / 9;
  height: auto;
}

.project-layout {
  padding: 2rem 0 3rem;
}

.project-layout .cta-band {
  margin-top: 1rem;
}

/* Header links on pages without the mobile menu button stay visible on phones. */
.site-nav-inline {
  flex-wrap: nowrap;
}

@media (max-width: 768px) {
  .site-nav.site-nav-inline {
    position: static;
    display: flex;
    flex-direction: row;
    padding: 0;
    border: 0;
    background: none;
    box-shadow: none;
    backdrop-filter: none;
  }

  .site-nav.site-nav-inline .btn {
    display: inline-flex;
  }

  body[data-page="service"],
  body[data-page="portfolio"] {
    padding-bottom: 4.5rem;
  }

  /* Comfortable touch targets for the small card buttons. */
  .project-actions .btn {
    min-height: 40px;
    padding: 0.5rem 0.9rem;
  }

  .slider-dots {
    flex-wrap: wrap;
  }

  .chip {
    min-height: 36px;
  }
}

/* On the videos page the dots sit below the player, not over a slider, so keep them in flow
   (absolute + width:100% pushed them 16px past the right edge on phones). */
.videos-page .slider-dots {
  position: static;
  margin-top: 0.8rem;
}

/* Service pages */
.service-hero {
  padding: 3.5rem 0 2rem;
}

.service-hero h1 {
  margin: 0;
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4.2vw, 3.1rem);
  line-height: 1.15;
}

.service-intro {
  max-width: 68ch;
  margin: 1rem 0 1.4rem;
  font-size: 1.08rem;
  line-height: 1.65;
  opacity: 0.9;
}

.service-page > section {
  padding: 2.5rem 0;
}

.service-page > section > p {
  max-width: 68ch;
  line-height: 1.65;
}

.crumbs {
  margin-bottom: 1.2rem;
  font-size: 0.85rem;
  opacity: 0.75;
}

.crumbs a:hover {
  color: var(--accent);
}

.symptom-list {
  display: grid;
  gap: 0.5rem;
  max-width: 760px;
  margin: 0;
  padding-left: 1.2rem;
  line-height: 1.6;
}

@media (max-width: 600px) {
  .also-available ul {
    grid-template-columns: 1fr;
  }

  .featured-facts {
    grid-template-columns: 1fr;
  }

  .featured-facts dd {
    margin-bottom: 0.3rem;
  }
}
