/* Skills-Showcase: gleiche Kopfzeile wie index + dunkler Seitenkörper */
:root {
  --primary-color: #6366f1;
  --primary-dark: #4f46e5;
  --primary-light: #8b5cf6;
  --text-primary: #1f2937;
  --text-secondary: #6b7280;
  --border-color: #e5e7eb;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.page-skills {
  margin: 0;
  font-family: Inter, system-ui, sans-serif;
  color: #0f172a;
  background: #020617;
  overflow-x: hidden;
  padding-top: 72px;
}
.page-skills .header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-color);
  z-index: 1001;
}
.page-skills .nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
}
.page-skills .nav__logo {
  font-weight: 700;
  color: var(--primary-color);
  text-decoration: none;
  display: flex;
  align-items: center;
}
@media (min-width: 769px) {
  .page-skills .nav__toggle {
    display: none !important;
  }
  .page-skills .nav {
    justify-content: flex-start;
    gap: 1rem;
  }
  .page-skills .nav__menu {
    flex: 1;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem 1.25rem;
  }
}
.page-skills .nav__menu {
  display: flex;
  list-style: none;
  gap: 2rem;
  align-items: center;
  margin: 0;
  padding: 0;
}
.page-skills .nav__link {
  text-decoration: none;
  color: var(--text-secondary);
  font-weight: 500;
  transition: var(--transition);
  position: relative;
}
.page-skills .nav__link:hover,
.page-skills .nav__link--active {
  color: var(--primary-color);
}
.page-skills .nav__link::after {
  content: "";
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -4px;
  left: 0;
  background: var(--primary-color);
  transition: width 0.3s ease;
}
.page-skills .nav__link:hover::after,
.page-skills .nav__link--active::after {
  width: 100%;
}
.page-skills .nav__toggle,
.page-skills .nav__close {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--text-primary);
  cursor: pointer;
  padding: 0.5rem;
}
.page-skills .nav__close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 1001;
}
@media (max-width: 768px) {
  .page-skills .nav__toggle {
    display: block;
  }
  .page-skills .nav__menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 300px;
    height: 100vh;
    background: #fff;
    flex-direction: column;
    align-items: flex-start;
    padding: 4rem 2rem 2rem;
    gap: 0;
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
    transition: right 0.3s ease;
    z-index: 1000;
    overflow-y: auto;
  }
  .page-skills .nav__menu.active {
    right: 0;
  }
  .page-skills .nav__menu li {
    width: 100%;
    border-bottom: 1px solid var(--border-color);
  }
  .page-skills .nav__link {
    display: block;
    padding: 1rem 0;
    width: 100%;
    font-size: 1.1rem;
  }
  .page-skills .nav__close {
    display: block;
  }
}

/* --- Skills-spezifisch (dunkel) --- */
.skills-noise {
  pointer-events: none;
  position: fixed;
  inset: 0;
  opacity: 0.035;
  z-index: 9998;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.skills-aurora {
  position: fixed;
  inset: -20%;
  z-index: 0;
  background: conic-gradient(from 120deg at 50% 50%, #6366f1, #ec4899, #14b8a6, #fbbf24, #6366f1);
  opacity: 0.12;
  animation: skills-aurora-spin 28s linear infinite;
  filter: blur(80px);
}
@keyframes skills-aurora-spin {
  to {
    transform: rotate(360deg);
  }
}
.skills-wrap {
  position: relative;
  z-index: 1;
}
.skills-hero {
  min-height: calc(100vh - 72px);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 3rem 1rem;
}
.skills-hero__mesh {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 50% at 50% -20%, rgba(99, 102, 241, 0.5), transparent),
    radial-gradient(ellipse 50% 40% at 100% 60%, rgba(20, 184, 166, 0.25), transparent),
    radial-gradient(ellipse 40% 35% at 0% 80%, rgba(251, 191, 36, 0.2), transparent);
  animation: mesh-shift 10s ease-in-out infinite alternate;
}
@keyframes mesh-shift {
  from {
    filter: hue-rotate(0deg);
    transform: scale(1);
  }
  to {
    filter: hue-rotate(35deg);
    transform: scale(1.04);
  }
}
.skills-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(48px);
  opacity: 0.5;
  animation: orb-float 16s ease-in-out infinite;
}
.skills-orb--1 {
  width: 260px;
  height: 260px;
  background: #6366f1;
  top: 12%;
  left: 6%;
}
.skills-orb--2 {
  width: 200px;
  height: 200px;
  background: #ec4899;
  bottom: 18%;
  right: 10%;
  animation-delay: -5s;
}
.skills-orb--3 {
  width: 160px;
  height: 160px;
  background: #2dd4bf;
  top: 50%;
  right: 18%;
  animation-delay: -10s;
}
@keyframes orb-float {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }
  50% {
    transform: translate(25px, -30px) scale(1.1);
  }
}
.skills-hero__inner {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 920px;
}
.skills-hero h1 {
  font-size: clamp(2rem, 5.5vw, 3.6rem);
  font-weight: 900;
  line-height: 1.05;
  margin: 0 0 1rem;
  background: linear-gradient(120deg, #fff 0%, #a5b4fc 40%, #5eead4 75%, #fde047 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: shine 4.5s linear infinite;
}
@keyframes shine {
  to {
    background-position: 200% center;
  }
}
.skills-glitch {
  display: inline-block;
  animation: glitch-skew 4s infinite linear alternate-reverse;
}
@keyframes glitch-skew {
  0%,
  90%,
  100% {
    transform: skewX(0);
    text-shadow: none;
  }
  91% {
    transform: skewX(-0.8deg);
    text-shadow: 2px 0 #ec4899, -2px 0 #14b8a6;
  }
  93% {
    transform: skewX(0.6deg);
    text-shadow: -1px 0 #fbbf24;
  }
}
.skills-hero p.lead {
  color: #94a3b8;
  font-size: clamp(1rem, 2.2vw, 1.15rem);
  line-height: 1.65;
  margin-bottom: 1.5rem;
}
.skills-scroll-hint {
  color: #64748b;
  font-size: 0.75rem;
  animation: bounce-hint 2s ease infinite;
}
@keyframes bounce-hint {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(8px);
  }
}

.skills-marquee {
  overflow: hidden;
  border-block: 1px solid rgba(148, 163, 184, 0.2);
  background: rgba(15, 23, 42, 0.85);
  padding: 0.65rem 0;
}
.skills-marquee__track {
  display: flex;
  gap: 2.5rem;
  width: max-content;
  animation: skills-marquee 38s linear infinite;
  color: #94a3b8;
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 0.82rem;
}
@keyframes skills-marquee {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

.skills-section-dark {
  padding: 4.5rem 1rem;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.95) 0%, #020617 100%);
  color: #e2e8f0;
}
.skills-section-dark h2 {
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  margin: 0 0 0.5rem;
}
.skills-section-dark .lead {
  color: #94a3b8;
  max-width: 42rem;
  line-height: 1.7;
  margin-bottom: 2rem;
}

.skills-tilt-grid {
  display: grid;
  gap: 1.25rem;
  max-width: 1100px;
  margin: 0 auto;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}
.skills-tilt-card {
  background: rgba(30, 41, 59, 0.55);
  border: 1px solid rgba(99, 102, 241, 0.3);
  border-radius: 1rem;
  padding: 1.5rem;
  transform-style: preserve-3d;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
  animation: card-in 0.75s ease backwards;
}
.skills-tilt-card:nth-child(1) {
  animation-delay: 0.05s;
}
.skills-tilt-card:nth-child(2) {
  animation-delay: 0.12s;
}
.skills-tilt-card:nth-child(3) {
  animation-delay: 0.2s;
}
@keyframes card-in {
  from {
    opacity: 0;
    transform: translateY(36px) rotateX(10deg);
  }
  to {
    opacity: 1;
    transform: translateY(0) rotateX(0);
  }
}
.skills-tilt-card:hover {
  transform: translateY(-8px) rotateX(3deg) rotateY(-4deg);
  box-shadow: 0 28px 60px rgba(99, 102, 241, 0.22);
}
.skills-spin-border {
  max-width: 420px;
  margin: 2rem auto 0;
  padding: 3px;
  border-radius: 1.25rem;
  background: conic-gradient(from var(--spin, 0deg), #6366f1, #ec4899, #14b8a6, #fbbf24, #6366f1);
  animation: spin-conic 6s linear infinite;
}
@keyframes spin-conic {
  to {
    --spin: 360deg;
  }
}
@property --spin {
  syntax: "<angle>";
  initial-value: 0deg;
  inherits: false;
}
.skills-spin-border__inner {
  background: #0f172a;
  border-radius: 1.1rem;
  padding: 1.25rem 1.5rem;
  text-align: center;
  color: #cbd5e1;
  font-size: 0.9rem;
}

.skills-section-light {
  background: #f8fafc;
  color: #0f172a;
  padding: 4.5rem 1rem;
}
.skills-section-light h2 {
  font-size: clamp(1.6rem, 3.5vw, 2.35rem);
  margin-bottom: 0.5rem;
}
.skills-section-light .lead {
  color: #475569;
  max-width: 42rem;
  line-height: 1.7;
  margin-bottom: 2rem;
}

.skills-ref-cta {
  margin: 3rem auto 0;
  max-width: 720px;
  text-align: center;
  padding: 2.5rem 1.5rem;
  border-radius: 1.5rem;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.25), rgba(20, 184, 166, 0.2));
  border: 1px solid rgba(255, 255, 255, 0.15);
  position: relative;
  overflow: hidden;
}
.skills-ref-cta::before {
  content: "";
  position: absolute;
  inset: -50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.08), transparent 55%);
  animation: cta-glow 5s ease-in-out infinite;
}
@keyframes cta-glow {
  0%,
  100% {
    transform: translate(-10%, -10%);
  }
  50% {
    transform: translate(10%, 10%);
  }
}
.skills-ref-cta h3 {
  position: relative;
  margin: 0 0 0.75rem;
  font-size: 1.5rem;
}
.skills-ref-cta p {
  position: relative;
  color: #cbd5e1;
  margin-bottom: 1.25rem;
  line-height: 1.6;
}
.skills-ref-cta a {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.75rem;
  border-radius: 999px;
  background: #fff;
  color: #312e81;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.25);
  transition: transform 0.2s ease;
}
.skills-ref-cta a:hover {
  transform: scale(1.05);
}

.skills-subnav {
  position: sticky;
  top: 72px;
  z-index: 900;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.55rem 1rem;
  background: rgba(15, 23, 42, 0.92);
  border-bottom: 1px solid rgba(148, 163, 184, 0.15);
}
.skills-subnav a {
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  font-size: 0.8rem;
  color: #cbd5e1;
  text-decoration: none;
  border: 1px solid transparent;
  transition: 0.2s;
}
.skills-subnav a:hover {
  border-color: rgba(99, 102, 241, 0.5);
  color: #fff;
}

.skills-foot {
  text-align: center;
  padding: 2rem 1rem;
  background: #020617;
  color: #64748b;
  font-size: 0.85rem;
}
.skills-foot a {
  color: #a5b4fc;
}

@supports (animation-timeline: view()) {
  .skills-reveal {
    animation: skills-fade-up linear both;
    animation-timeline: view();
    animation-range: entry 0% cover 35%;
  }
  @keyframes skills-fade-up {
    from {
      opacity: 0;
      transform: translateY(40px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
}

.page-skills .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

.skills-react-tree {
  display: flex;
  justify-content: center;
  padding: 2rem 0;
  perspective: 800px;
}
.skills-react-tree__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}
.skills-node {
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  background: linear-gradient(135deg, #312e81, #1e1b4b);
  border: 1px solid rgba(129, 140, 248, 0.5);
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 0.8rem;
  color: #c7d2fe;
  animation: skills-node-pulse 2.4s ease-in-out infinite;
}
.skills-node--root {
  font-size: 0.95rem;
}
.skills-node--c1 {
  animation-delay: 0.2s;
}
.skills-node--c2 {
  animation-delay: 0.4s;
}
.skills-node--c3 {
  animation-delay: 0.6s;
}
@keyframes skills-node-pulse {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(99, 102, 241, 0.4);
  }
  50% {
    box-shadow: 0 0 24px 4px rgba(99, 102, 241, 0.15);
  }
}
.skills-react-row {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
}

.skills-bootstrap-showcase {
  border-radius: 1rem;
  overflow: hidden;
  border: 1px solid #e2e8f0;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.08);
}

.skills-vanilla-demo {
  max-width: 520px;
  margin: 0 auto;
  padding: 2rem;
  border-radius: 1.25rem;
  background: #fff;
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.12);
  border: 1px solid #e2e8f0;
}
.skills-vanilla-demo .skills-counter {
  font-size: 3.5rem;
  font-weight: 800;
  text-align: center;
  background: linear-gradient(90deg, #6366f1, #14b8a6);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  transition: transform 0.15s ease;
}
.skills-vanilla-demo .skills-counter.pop {
  transform: scale(1.15);
}
.skills-vanilla-demo .btn-row {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  margin-top: 1rem;
  flex-wrap: wrap;
}

.skills-parallax-layer {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 2;
  opacity: 0.35;
  background: radial-gradient(circle at var(--px, 50%) var(--py, 50%), rgba(255, 255, 255, 0.07), transparent 42%);
}

/* —— Playground (Code + Live) —— */
.skills-play-wrap {
  max-width: 1100px;
  margin: 0 auto;
  padding: 1.5rem;
  border-radius: 1.25rem;
  background: rgba(15, 23, 42, 0.65);
  border: 1px solid rgba(99, 102, 241, 0.35);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}
.skills-play-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}
.skills-play-tab {
  cursor: pointer;
  border: 1px solid rgba(148, 163, 184, 0.35);
  background: rgba(30, 41, 59, 0.6);
  color: #cbd5e1;
  font-family: inherit;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.45rem 1rem;
  border-radius: 999px;
  transition: background 0.2s, border-color 0.2s, transform 0.15s;
}
.skills-play-tab:hover {
  border-color: rgba(129, 140, 248, 0.7);
  transform: translateY(-1px);
}
.skills-play-tab.is-active {
  background: linear-gradient(135deg, #4f46e5, #6366f1);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 6px 20px rgba(99, 102, 241, 0.35);
}
.skills-play-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}
@media (min-width: 900px) {
  .skills-play-grid {
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
  }
}
.skills-play-code-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #64748b;
  margin-bottom: 0.35rem;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}
.skills-play-code {
  margin: 0;
  padding: 1rem 1.1rem;
  border-radius: 0.75rem;
  background: #0f172a;
  border: 1px solid rgba(51, 65, 85, 0.9);
  color: #a5f3fc;
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 0.72rem;
  line-height: 1.45;
  overflow: auto;
  max-height: min(52vh, 22rem);
  white-space: pre-wrap;
  word-break: break-word;
}
.skills-play-out-wrap {
  min-height: 12rem;
}
.skills-play-out {
  min-height: 12rem;
  border-radius: 0.75rem;
  background: linear-gradient(180deg, #f8fafc 0%, #e2e8f0 100%);
  border: 1px solid #cbd5e1;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  color: #0f172a;
}
.skills-play-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1.25rem;
  justify-content: center;
}
.skills-play-btn {
  cursor: pointer;
  border: 1px solid rgba(148, 163, 184, 0.45);
  background: rgba(30, 41, 59, 0.85);
  color: #e2e8f0;
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  padding: 0.55rem 1.1rem;
  border-radius: 0.5rem;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  transition: transform 0.15s, box-shadow 0.2s;
}
.skills-play-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(99, 102, 241, 0.25);
}
.skills-play-btn--accent {
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  border-color: transparent;
  color: #fff;
}
.skills-play-btn--ghost {
  background: transparent;
  color: #94a3b8;
}

/* Live-Demos innerhalb .skills-play-out */
.skills-play-out .demo-caption {
  text-align: center;
  font-size: 0.78rem;
  color: #64748b;
  margin: 0.5rem 0 0;
}
@keyframes demo-glow-pulse {
  0%,
  100% {
    box-shadow: 0 0 0 1px rgba(129, 140, 248, 0.5), 0 0 32px rgba(99, 102, 241, 0.45);
    filter: brightness(1);
  }
  50% {
    box-shadow: 0 0 0 1px rgba(244, 114, 182, 0.4), 0 0 52px rgba(236, 72, 153, 0.55);
    filter: brightness(1.08);
  }
}
.demo-flip-hint {
  text-align: center;
  font-size: 0.75rem;
  color: #64748b;
  margin: 0 0 0.5rem;
}
.demo-flip-scene {
  width: 11rem;
  height: 8rem;
  margin: 0 auto;
  perspective: 900px;
  cursor: pointer;
  outline: none;
}
.demo-flip-scene:focus-visible {
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.5);
  border-radius: 0.75rem;
}
.demo-flip-card {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transition: transform 0.75s cubic-bezier(0.4, 0, 0.2, 1);
}
.demo-flip-scene:hover .demo-flip-card,
.demo-flip-scene:focus-within .demo-flip-card {
  transform: rotateY(180deg);
}
.demo-flip-face {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border-radius: 0.75rem;
  font-weight: 700;
  backface-visibility: hidden;
}
.demo-flip-front {
  background: linear-gradient(145deg, #6366f1, #4f46e5);
  color: #fff;
}
.demo-flip-back {
  background: linear-gradient(145deg, #0d9488, #0f766e);
  color: #ecfdf5;
  transform: rotateY(180deg);
}
.demo-blob {
  width: 10rem;
  height: 10rem;
  margin: 0.5rem auto;
  background: conic-gradient(#6366f1, #ec4899, #14b8a6, #6366f1);
  clip-path: polygon(50% 0%, 100% 35%, 82% 100%, 18% 100%, 0% 35%);
  animation: demo-morph 5s ease-in-out infinite;
}
@keyframes demo-morph {
  0%,
  100% {
    clip-path: polygon(50% 0%, 100% 35%, 82% 100%, 18% 100%, 0% 35%);
    transform: rotate(0deg);
  }
  50% {
    clip-path: polygon(50% 5%, 95% 40%, 75% 95%, 25% 95%, 5% 40%);
    transform: rotate(180deg);
  }
}
.demo-spring-btn {
  display: block;
  margin: 0 auto 0.75rem;
  cursor: pointer;
  border: none;
  background: linear-gradient(135deg, #6366f1, #7c3aed);
  color: #fff;
  font-weight: 700;
  font-size: 0.8rem;
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  box-shadow: 0 4px 14px rgba(99, 102, 241, 0.4);
}
.demo-spring-btn:active {
  transform: scale(0.97);
}
.demo-spring-lane {
  position: relative;
  height: 3.5rem;
  margin: 0 auto;
  max-width: 220px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.06);
  border: 1px dashed #cbd5e1;
}
.demo-spring-ball {
  position: absolute;
  left: 6px;
  top: 50%;
  width: 2.25rem;
  height: 2.25rem;
  margin-top: -1.125rem;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #fde68a, #f59e0b 40%, #ea580c);
  box-shadow: 0 4px 12px rgba(234, 88, 12, 0.45);
}
.demo-spring-ball.demo-spring-go {
  animation: demo-spring-run 0.95s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}
@keyframes demo-spring-run {
  0% {
    transform: translateX(0) scale(1);
  }
  55% {
    transform: translateX(132px) scale(1.12);
  }
  78% {
    transform: translateX(108px) scale(0.96);
  }
  100% {
    transform: translateX(118px) scale(1);
  }
}
@media (min-width: 900px) {
  .demo-spring-lane {
    max-width: 260px;
  }
}

/* Konfetti */
.skills-fx-layer {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 8999;
  overflow: hidden;
}
.skills-konfetti {
  position: absolute;
  width: 8px;
  height: 12px;
  border-radius: 2px;
  background: var(--kc, #6366f1);
  animation: skills-konfetti-fall var(--kd, 1s) ease-out forwards;
  transform: translate3d(0, 0, 0) rotate(0deg);
}
@keyframes skills-konfetti-fall {
  to {
    transform: translate3d(var(--kx, 0), 110vh, 0) rotate(var(--kr, 360deg));
    opacity: 0.85;
  }
}

/* Modal */
.skills-modal {
  position: fixed;
  inset: 0;
  z-index: 12050;
  display: grid;
  place-items: center;
  padding: 1rem;
}
.skills-modal[hidden] {
  display: none;
}
.skills-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2, 6, 23, 0.72);
  backdrop-filter: blur(6px);
  animation: skills-modal-in 0.25s ease;
}
.skills-modal__box {
  position: relative;
  z-index: 1;
  width: min(100%, 28rem);
  max-height: min(85vh, 32rem);
  overflow: auto;
  padding: 1.75rem 1.5rem 1.5rem;
  border-radius: 1.25rem;
  background: linear-gradient(165deg, #1e293b, #0f172a);
  border: 1px solid rgba(99, 102, 241, 0.45);
  color: #e2e8f0;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.55);
  animation: skills-modal-pop 0.35s cubic-bezier(0.34, 1.4, 0.64, 1);
}
@keyframes skills-modal-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
@keyframes skills-modal-pop {
  from {
    opacity: 0;
    transform: scale(0.92) translateY(12px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}
.skills-modal__title {
  margin: 0 0 0.75rem;
  font-size: 1.25rem;
  color: #fff;
}
.skills-modal__body {
  font-size: 0.9rem;
  line-height: 1.55;
  color: #cbd5e1;
}
.skills-modal__body code {
  font-size: 0.8rem;
  background: rgba(15, 23, 42, 0.9);
  padding: 0.1rem 0.35rem;
  border-radius: 0.25rem;
  color: #a5f3fc;
}
.skills-modal__x {
  position: absolute;
  top: 0.65rem;
  right: 0.65rem;
  width: 2.25rem;
  height: 2.25rem;
  border: none;
  border-radius: 0.5rem;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s;
}
.skills-modal__x:hover {
  background: rgba(239, 68, 68, 0.35);
}

html.skills-html-shake {
  animation: skills-html-shake 0.52s ease;
}
@keyframes skills-html-shake {
  0%,
  100% {
    transform: translateX(0);
  }
  20% {
    transform: translateX(-8px) rotate(-0.3deg);
  }
  40% {
    transform: translateX(8px) rotate(0.3deg);
  }
  60% {
    transform: translateX(-5px);
  }
  80% {
    transform: translateX(5px);
  }
}

.skills-tilt-card--click {
  cursor: pointer;
  position: relative;
}
.skills-tilt-card--click:active {
  transform: translateY(-4px) scale(0.98);
}
.skills-tilt-hint {
  display: block;
  margin-top: 1rem;
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #818cf8;
  opacity: 0.85;
}

.skills-node--click {
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.skills-node--click:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 12px 28px rgba(99, 102, 241, 0.35);
}
.skills-node--click:focus {
  outline: 2px solid #a5b4fc;
  outline-offset: 3px;
}
.skills-react-hint {
  text-align: center;
  color: #64748b;
  font-size: 0.82rem;
  max-width: 28rem;
  margin: 1rem 0 0;
  line-height: 1.5;
}
.skills-react-hint kbd {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 0.75rem;
  padding: 0.1rem 0.35rem;
  border-radius: 0.25rem;
  background: #e2e8f0;
  color: #334155;
}

/* Pure-CSS Chaos (#chaos) */
.skills-css-only {
  max-width: 520px;
  margin: 0 auto;
  padding: 1.5rem;
  border-radius: 1.25rem;
  background: rgba(15, 23, 42, 0.55);
  border: 1px solid rgba(99, 102, 241, 0.35);
}
.skills-css-toggle {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.skills-css-toggle-label {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  cursor: pointer;
  font-weight: 700;
  color: #c7d2fe;
  user-select: none;
  margin-bottom: 1rem;
}
.skills-css-knob {
  width: 2.75rem;
  height: 1.5rem;
  border-radius: 999px;
  background: #334155;
  position: relative;
  transition: background 0.25s ease;
}
.skills-css-knob::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: calc(1.5rem - 6px);
  height: calc(1.5rem - 6px);
  border-radius: 50%;
  background: #e2e8f0;
  transition: transform 0.25s cubic-bezier(0.34, 1.4, 0.64, 1);
}
.skills-css-toggle:checked + .skills-css-toggle-label .skills-css-knob {
  background: linear-gradient(90deg, #6366f1, #ec4899);
}
.skills-css-toggle:checked + .skills-css-toggle-label .skills-css-knob::after {
  transform: translateX(1.15rem);
}
.skills-css-panel {
  padding: 1.25rem;
  border-radius: 0.85rem;
  background: rgba(30, 41, 59, 0.65);
  border: 1px solid rgba(148, 163, 184, 0.25);
  color: #cbd5e1;
  font-size: 0.88rem;
  line-height: 1.55;
  transition: border-color 0.3s, box-shadow 0.3s, transform 0.3s;
}
.skills-css-panel p {
  margin: 0 0 0.65rem;
}
.skills-css-panel p:last-child {
  margin-bottom: 0;
}
.skills-css-toggle:checked ~ .skills-css-panel {
  border-color: rgba(236, 72, 153, 0.55);
  box-shadow: 0 0 40px rgba(236, 72, 153, 0.2), inset 0 0 40px rgba(99, 102, 241, 0.08);
  animation: skills-chaos-wobble 2.5s ease-in-out infinite;
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 0.82rem;
}
@keyframes skills-chaos-wobble {
  0%,
  100% {
    transform: rotate(0deg);
  }
  25% {
    transform: rotate(-0.6deg);
  }
  75% {
    transform: rotate(0.6deg);
  }
}

/* —— Nerd-Bereich (#nerd) —— */
.skills-nerd-inner {
  container-type: inline-size;
  container-name: nerd;
}
.skills-nerd-h3 {
  font-size: 1rem;
  color: #475569;
  margin: 0 0 0.75rem;
}
.skills-nerd-grid {
  display: grid;
  gap: 1.5rem;
  margin-bottom: 2rem;
}
@container nerd (min-width: 720px) {
  .skills-nerd-grid {
    grid-template-columns: 1.2fr 0.8fr;
    align-items: start;
  }
}
.skills-periodic {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.45rem;
}
@media (min-width: 480px) {
  .skills-periodic {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }
}
.skills-pel {
  position: relative;
  border-radius: 0.35rem;
  padding: 0.35rem 0.25rem 0.45rem;
  text-align: center;
  background: linear-gradient(180deg, #f1f5f9, #e2e8f0);
  border: 1px solid #cbd5e1;
  cursor: default;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.skills-pel:hover {
  transform: translateY(-4px) scale(1.04);
  box-shadow: 0 12px 28px rgba(99, 102, 241, 0.2);
  z-index: 1;
}
.skills-pel:active {
  transform: scale(0.96);
}
.skills-pel-n {
  display: block;
  font-size: 0.55rem;
  color: #64748b;
  line-height: 1;
}
.skills-pel-s {
  display: block;
  font-size: 1.15rem;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.1;
}
.skills-pel-nm {
  display: block;
  font-size: 0.55rem;
  color: #475569;
  margin-top: 0.15rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.skills-pel--accent {
  border-color: #6366f1;
  background: linear-gradient(180deg, #eef2ff, #e0e7ff);
}
.skills-pel--php {
  border-color: #8b5cf6;
  background: linear-gradient(180deg, #f5f3ff, #ede9fe);
}
.skills-pel--gl {
  border-color: #14b8a6;
  background: linear-gradient(180deg, #f0fdfa, #ccfbf1);
}
.skills-pel--wide {
  grid-column: span 2;
  background: linear-gradient(135deg, #0f172a, #312e81);
  border-color: #6366f1;
}
.skills-pel--wide .skills-pel-s,
.skills-pel--wide .skills-pel-nm {
  color: #e0e7ff;
}
.skills-pel--wide .skills-pel-n {
  color: #a5b4fc;
}
.skills-radar-block {
  padding: 0.5rem;
  border-radius: 1rem;
  background: #fff;
  border: 1px solid #e2e8f0;
  box-shadow: var(--shadow-md, 0 4px 20px rgba(15, 23, 42, 0.06));
}
.skills-radar-wrap {
  max-width: 200px;
  margin: 0 auto;
}
.skills-radar-svg {
  width: 100%;
  height: auto;
  display: block;
  overflow: visible;
}
.skills-radar-fill {
  fill: rgba(99, 102, 241, 0.35);
  stroke: #6366f1;
  stroke-width: 0.8;
  transform-origin: 50px 50px;
  transition: transform 0.35s ease, fill 0.35s ease;
}
.skills-radar-wrap:hover .skills-radar-fill {
  transform: scale(1.08) rotate(6deg);
  fill: rgba(20, 184, 166, 0.45);
  stroke: #0d9488;
}

.skills-terminal-wrap {
  max-width: 640px;
  margin: 0 auto;
}
.skills-terminal {
  border-radius: 0.65rem;
  overflow: hidden;
  border: 1px solid #1e293b;
  background: #0f172a;
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.2);
}
.skills-terminal-bar {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.45rem 0.75rem;
  background: #1e293b;
  color: #94a3b8;
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 0.72rem;
}
.skills-terminal-dot {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: #f87171;
}
.skills-terminal-dot:nth-child(2) {
  background: #fbbf24;
}
.skills-terminal-dot:nth-child(3) {
  background: #4ade80;
}
.skills-terminal-out {
  margin: 0;
  padding: 0.75rem 1rem;
  min-height: 7rem;
  max-height: 14rem;
  overflow: auto;
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 0.78rem;
  line-height: 1.45;
  color: #4ade80;
  background: #020617;
  white-space: pre-wrap;
}
.skills-terminal-label {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}
.skills-terminal-input {
  display: block;
  width: 100%;
  border: 0;
  border-top: 1px solid #1e293b;
  padding: 0.6rem 1rem;
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 0.8rem;
  background: #0f172a;
  color: #e2e8f0;
  outline: none;
}
.skills-terminal-input:focus {
  box-shadow: inset 0 0 0 2px rgba(99, 102, 241, 0.45);
}

/* —— WebGL-Zone —— */
.skills-webgl-zone {
  position: relative;
  min-height: min(92vh, 880px);
  padding: 2.5rem 1rem 3rem;
  overflow: hidden;
  border-top: 1px solid rgba(99, 102, 241, 0.25);
  background: radial-gradient(ellipse 120% 80% at 50% 0%, rgba(30, 27, 75, 0.95), #020617 55%);
}
.skills-webgl-canvas-host {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.skills-webgl-canvas-host canvas {
  display: block;
  width: 100% !important;
  height: 100% !important;
  cursor: crosshair;
}
.skills-webgl-ui {
  position: relative;
  z-index: 2;
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
  pointer-events: none;
}
.skills-webgl-ui * {
  pointer-events: auto;
}
.skills-webgl-title {
  font-size: clamp(1.5rem, 4vw, 2.25rem);
  font-weight: 900;
  color: #f8fafc;
  margin: 0 0 0.75rem;
  text-shadow: 0 0 40px rgba(99, 102, 241, 0.4);
}
.skills-webgl-lead {
  color: #94a3b8;
  font-size: 0.95rem;
  line-height: 1.65;
  margin: 0 auto 1.25rem;
  max-width: 38rem;
}
.skills-webgl-lead code {
  font-size: 0.8rem;
  color: #a5f3fc;
}
.skills-webgl-lead a {
  color: #7dd3fc;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.skills-webgl-lead a:hover {
  color: #bae6fd;
}
.skills-webgl-fallback {
  color: #fcd34d;
  font-size: 0.88rem;
  max-width: 32rem;
  margin: 0 auto 1rem;
  padding: 0.75rem 1rem;
  border-radius: 0.5rem;
  background: rgba(30, 27, 75, 0.6);
  border: 1px solid rgba(251, 191, 36, 0.35);
}
.skills-webgl-hud {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.65rem;
  margin-top: 0.5rem;
}
.skills-webgl-collect {
  margin: 0;
  color: #cbd5e1;
  font-size: 0.9rem;
}
.skills-collected-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  justify-content: center;
  min-height: 1.5rem;
}
.skills-chip {
  display: inline-block;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  background: rgba(99, 102, 241, 0.35);
  border: 1px solid rgba(165, 180, 252, 0.5);
  color: #e0e7ff;
  animation: skills-chip-pop 0.35s cubic-bezier(0.34, 1.4, 0.64, 1);
}
@keyframes skills-chip-pop {
  from {
    transform: scale(0.6);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}
.skills-webgl-theme {
  cursor: pointer;
  border: 1px solid rgba(148, 163, 184, 0.4);
  background: rgba(15, 23, 42, 0.75);
  color: #e2e8f0;
  font-weight: 700;
  font-size: 0.8rem;
  padding: 0.5rem 1.1rem;
  border-radius: 999px;
  transition: transform 0.15s, box-shadow 0.2s;
}
.skills-webgl-theme:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(99, 102, 241, 0.3);
}
.skills-webgl-konami-hint {
  margin: 1.25rem 0 0;
  font-size: 0.72rem;
  color: #64748b;
}
.skills-fps {
  position: fixed;
  bottom: 5.5rem;
  right: 1rem;
  z-index: 12040;
  margin: 0;
  padding: 0.35rem 0.65rem;
  border-radius: 0.35rem;
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 0.7rem;
  font-weight: 700;
  color: #4ade80;
  background: rgba(2, 6, 23, 0.85);
  border: 1px solid rgba(74, 222, 128, 0.35);
  pointer-events: none;
}

@supports (animation-timeline: view()) {
  .skills-webgl-title {
    animation: skills-webgl-title-rise linear both;
    animation-timeline: view();
    animation-range: entry 5% cover 45%;
  }
  @keyframes skills-webgl-title-rise {
    from {
      opacity: 0;
      transform: translateY(36px) scale(0.96);
    }
    to {
      opacity: 1;
      transform: translateY(0) scale(1);
    }
  }
}

.page-skills.skills-matrix-mode .skills-webgl-zone {
  box-shadow: inset 0 0 120px rgba(0, 255, 80, 0.06);
}
.page-skills.skills-matrix-mode .skills-webgl-lead,
.page-skills.skills-matrix-mode .skills-webgl-collect {
  color: #86efac;
}
.page-skills.skills-void-mode .skills-webgl-zone {
  background: radial-gradient(ellipse 100% 60% at 50% 100%, #0f172a, #020617);
  filter: saturate(0.65);
}
.page-skills.skills-defiebre-mode .skills-webgl-zone::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0, 255, 65, 0.03) 2px,
    rgba(0, 255, 65, 0.03) 3px
  );
  opacity: 0.5;
}

.skills-aurora {
  transform-origin: calc(var(--skills-mx, 0.5) * 100%) calc(var(--skills-my, 0.5) * 100%);
}

.page-skills:not(.skills-matrix-mode):not(.skills-void-mode) .skills-webgl-zone {
  background: radial-gradient(
      ellipse 120% 80% at calc(var(--skills-mx, 0.5) * 100%) calc(var(--skills-my, 0.3) * 100%),
      rgba(99, 102, 241, 0.22),
      transparent 50%
    ),
    radial-gradient(ellipse 120% 80% at 50% 0%, rgba(30, 27, 75, 0.95), #020617 55%);
}
