@charset "UTF-8";
.blog-card-grid {
  justify-content: flex-start;
}

.blog-card {
  width: 240px;
  min-width: 240px;
  min-height: 210px;
  max-height: fit-content;
}

.blog-card .project-card-body {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.blog-card .project-card-meta {
  flex: 1 1 auto;
}

.blog-page .legal-section {
  overflow-y: auto;
}

html.in-ide-preview .blog-page .theme-switcher-grid,
html.in-ide-preview .blog-page .theme-toggle.night-theme {
  display: none;
}
html.in-ide-preview .blog-page .top-info,
html.in-ide-preview .blog-page .site-footer,
html.in-ide-preview .blog-page .footer-link-btn.legal-back {
  display: none;
}
@media (max-width: 840px) {
  html.in-ide-preview .blog-page section p {
    overflow: clip !important;
  }
}
@media (max-width: 550px) {
  html.in-ide-preview .section-page-main section {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
  }
  html.in-ide-preview .section-page-main section#hero {
    justify-content: center;
  }
}
html.in-ide-preview .blog-card .project-card-meta {
  padding-bottom: 20px;
}

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

::-webkit-scrollbar {
  display: none;
}

body {
  background: radial-gradient(circle at top, #020617 0%, #020617 40%, #020617 70%, #020617 100%), radial-gradient(circle at 80% 120%, #020617 0%, #020617 70%, #020617 100%);
  color: #f9fafb;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  overflow-x: hidden;
  position: relative;
  isolation: isolate;
}

body.intro-scroll-lock {
  overflow: hidden;
}

.lang-block[data-lang] {
  display: none;
}

html[lang=en] .lang-block[data-lang=en],
html[data-lang=en] .lang-block[data-lang=en],
html[lang^=de] .lang-block[data-lang=de],
html[data-lang=de] .lang-block[data-lang=de] {
  display: grid !important;
  gap: 1.1rem;
}

.crystal-layer {
  position: fixed;
  inset: -8%;
  pointer-events: none;
  z-index: -1;
  mix-blend-mode: screen;
  opacity: 0.9;
  filter: blur(4px);
}
.crystal-layer::before, .crystal-layer::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(45, 212, 191, 0) 0%, rgba(45, 212, 191, 0.45) 32%, rgba(56, 189, 248, 0) 70%), linear-gradient(305deg, rgba(236, 72, 153, 0) 0%, rgba(236, 72, 153, 0.5) 40%, rgba(59, 130, 246, 0) 82%), radial-gradient(circle at 10% 90%, rgba(56, 189, 248, 0.2), transparent 60%);
  opacity: 0.85;
  mix-blend-mode: screen;
  transform-origin: center;
}
.crystal-layer::before {
  clip-path: polygon(5% 10%, 38% 0%, 80% 18%, 96% 46%, 70% 78%, 24% 86%);
  animation: crystal-drift-1 24s ease-in-out infinite alternate;
}
.crystal-layer::after {
  clip-path: polygon(8% 78%, 34% 58%, 72% 66%, 96% 38%, 82% 6%, 40% 14%);
  animation: crystal-drift-2 28s ease-in-out infinite alternate;
}

body::before {
  content: "";
  position: fixed;
  inset: -25%;
  background: radial-gradient(circle at 12% -4%, rgba(56, 189, 248, 0.26), transparent 60%), radial-gradient(circle at 90% 110%, rgba(147, 51, 234, 0.32), transparent 60%), conic-gradient(from 210deg at 50% 40%, rgba(56, 189, 248, 0), rgba(56, 189, 248, 0.22), rgba(236, 72, 153, 0.18), rgba(129, 140, 248, 0.18), rgba(56, 189, 248, 0));
  mix-blend-mode: screen;
  opacity: 0.95;
  pointer-events: none;
  z-index: -2;
  animation: aurora-shift 22s ease-in-out infinite alternate;
}

body::after {
  content: "";
  position: fixed;
  inset: -40%;
  background-image: linear-gradient(rgba(15, 23, 42, 0.9), rgba(15, 23, 42, 0.9)), linear-gradient(90deg, transparent 0, transparent 23px, rgba(30, 64, 175, 0.18) 24px), linear-gradient(0deg, transparent 0, transparent 23px, rgba(30, 64, 175, 0.18) 24px);
  background-size: 100% 100%, 24px 24px, 24px 24px;
  mix-blend-mode: overlay;
  opacity: 0.85;
  pointer-events: none;
  z-index: -3;
}

.scroll-wrapper {
  height: 800vh;
  position: relative;
}

.intro-search-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  background: radial-gradient(circle at top, rgba(15, 23, 42, 0.9), rgba(15, 23, 42, 0.98));
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  transition: opacity 0.3s ease-out, transform 0.3s ease-out, visibility 0.3s ease-out;
}
.intro-search-overlay.intro-search-overlay--hidden {
  opacity: 0;
  transform: translateY(-8px);
  visibility: hidden;
  pointer-events: none;
}

.intro-search-panel {
  max-width: 540px;
  width: 100%;
  padding: 1.8rem 1.7rem 1.7rem;
  border-radius: 24px;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.96), rgba(15, 23, 42, 0.94)), radial-gradient(circle at 0% 0%, rgba(56, 189, 248, 0.18), transparent 60%), radial-gradient(circle at 100% 100%, rgba(129, 140, 248, 0.16), transparent 60%);
  background-blend-mode: normal, screen, screen;
  border: 1px solid rgba(148, 163, 184, 0.5);
  box-shadow: 0 0 0 1px rgba(15, 23, 42, 0.95), 0 22px 75px rgba(15, 23, 42, 0.98);
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.intro-search-tag {
  margin-bottom: 0.1rem;
}

.intro-search-panel h2 {
  font-size: clamp(1.3rem, 4vw, 1.7rem);
}

.intro-search-panel p {
  font-size: 0.85rem;
  color: #cbd5f5;
}

.intro-search-input-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 0.4rem;
}

.intro-search-input {
  flex: 1 1 180px;
  min-width: 0;
  padding: 0.6rem 0.8rem;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.7);
  background: rgba(15, 23, 42, 0.9);
  color: #f9fafb;
  font-size: 0.85rem;
  outline: none;
  box-shadow: 0 0 0 1px rgba(15, 23, 42, 0.9);
}
.intro-search-input::placeholder {
  color: rgba(148, 163, 184, 0.9);
}
.intro-search-input:focus {
  border-color: #22d3ee;
  box-shadow: 0 0 0 1px rgba(56, 189, 248, 0.7), 0 0 0 6px rgba(56, 189, 248, 0.18);
}

.intro-search-btn {
  white-space: nowrap;
}

.intro-search-suggestions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.intro-search-chip {
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.7);
  background: radial-gradient(circle at 0% 0%, rgba(148, 163, 184, 0.2), transparent 55%);
  color: #cbd5f5;
  font-size: 0.72rem;
  padding: 0.18rem 0.8rem 0.22rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  cursor: pointer;
  transition: border-color 0.16s ease-out, background-color 0.16s ease-out, transform 0.12s ease-out, box-shadow 0.16s ease-out;
}
.intro-search-chip:hover {
  border-color: rgba(56, 189, 248, 0.9);
  background: radial-gradient(circle at 0% 0%, rgba(56, 189, 248, 0.22), transparent 60%);
  color: #f9fafb;
  transform: translateY(-1px);
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.9);
}

.intro-search-skip {
  align-self: flex-end;
  margin-top: 0.4rem;
  background: transparent;
  border: none;
  color: #9ca3af;
  font-size: 0.75rem;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
  padding: 0;
}
.intro-search-skip:hover {
  color: #cbd5f5;
}

@media (max-width: 600px) {
  .intro-search-panel {
    padding: 1.4rem 1.2rem 1.3rem;
  }
  .intro-search-input-row {
    flex-direction: column;
  }
  .intro-search-btn {
    width: 100%;
  }
}
.horizontal-container {
  position: sticky;
  top: 0;
  left: 0;
  height: 100vh;
  overflow: hidden;
  display: flex;
  align-items: stretch;
  justify-content: flex-start;
  perspective: 1200px;
}

.horizontal-track {
  display: flex;
  height: 100vh;
  will-change: transform;
}

section {
  min-width: 100vw;
  height: 99vh;
  margin: auto;
  padding: 3rem 8vw;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1.4rem;
  border-radius: 28px;
  border: 1px solid rgba(148, 163, 184, 0.35);
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.96), rgba(15, 23, 42, 0.9)), radial-gradient(circle at 0% 0%, rgba(56, 189, 248, 0.16), transparent 60%), radial-gradient(circle at 100% 100%, rgba(129, 140, 248, 0.14), transparent 60%);
  background-blend-mode: normal, screen, screen;
  box-shadow: 0 0 0 1px rgba(15, 23, 42, 0.9), 0 18px 65px rgba(15, 23, 42, 0.95), 0 0 80px rgba(45, 212, 191, 0.15);
  transform: translateZ(0);
  backdrop-filter: blur(22px) saturate(130%);
  -webkit-backdrop-filter: blur(22px) saturate(130%);
  overflow: hidden;
  position: relative;
  transition: transform 0.5s ease-out, opacity 0.5s ease-out, box-shadow 0.5s ease-out, border-color 0.5s ease-out;
}
section::before {
  content: "";
  position: absolute;
  inset: -40%;
  background: radial-gradient(circle at 0% 0%, rgba(56, 189, 248, 0.45), transparent 55%), radial-gradient(circle at 100% 100%, rgba(236, 72, 153, 0.4), transparent 55%);
  opacity: 0.35;
  mix-blend-mode: screen;
  pointer-events: none;
  transition: opacity 0.7s ease-out;
}
section h1, section h2 {
  font-size: clamp(2.6rem, 4.2vw, 3.8rem);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  line-height: 1.05;
}
section p {
  max-width: 42rem;
  line-height: 1.7;
  color: #cbd5f5;
}

/* ── Mobile: sections with grids must not overflow ── */
@media (max-width: 840px) {
  section.fixed-width {
    min-width: 100vw;
  }
  section {
    min-width: 100vw;
    max-width: 100vw;
    width: 100vw;
    padding-top: 2rem;
    padding-bottom: 2rem;
  }
  section h1,
  section h2 {
    font-size: clamp(1.6rem, 6vw, 2.4rem);
    letter-spacing: 0.1em;
  }
  section p {
    font-size: 0.85rem;
    line-height: 1.6;
    max-height: 4.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
  }
  .projects-grid {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    gap: 0.7rem !important;
    margin-top: 0.8rem !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    padding-bottom: 0.5rem;
    flex-shrink: 0;
    touch-action: pan-x;
  }
  .projects-grid .project-card {
    flex: 0 0 200px !important;
    min-width: 200px !important;
    max-width: 200px !important;
    scroll-snap-align: start;
  }
  .project-card-meta {
    font-size: 0.72rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
}
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.4rem;
  margin-top: 1.4rem;
  overflow-y: visible !important;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.4rem;
  margin-top: 2rem;
}

.project-card {
  background: radial-gradient(circle at top, rgba(15, 23, 42, 0.9), rgba(15, 23, 42, 0.98));
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.35);
  box-shadow: 0 16px 45px rgba(15, 23, 42, 0.9);
  display: flex;
  flex-direction: column;
}

.project-card img {
  width: 100%;
  height: 150px;
  object-fit: cover;
}

.project-card-body {
  padding: 0.9rem 1rem 1.1rem;
}

.project-card-title {
  font-size: 0.85rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 0.3rem;
}

.project-card-title a {
  text-decoration: none;
  font-weight: 600;
}

.project-card-meta {
  font-size: 0.8rem;
  color: #cbd5f5;
  opacity: 0.8;
}

.project-card-meta a {
  text-decoration: none;
  font-weight: 500;
}

.project-card.search-card-highlight {
  box-shadow: 0 0 0 1px rgba(56, 189, 248, 0.9), 0 22px 70px rgba(56, 189, 248, 0.4);
  transform: translateY(-4px);
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.2rem 0.8rem;
  border-radius: 999px;
  border: 2px solid rgba(148, 163, 184, 0.6);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: #9ca3af;
}

.accent {
  color: #22d3ee;
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1.2rem;
}

.btn {
  padding: 0.7rem 1.4rem;
  border-radius: 999px;
  border: 1px solid rgba(56, 189, 248, 0.4);
  color: #e5e7eb;
  background: linear-gradient(135deg, #0f172a, #020617);
  cursor: pointer;
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}
.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 40px rgba(56, 189, 248, 0.35);
  border-color: rgba(56, 189, 248, 0.9);
  background: linear-gradient(135deg, #020617, #0f172a);
}

.scroll-hint {
  position: fixed;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.7rem;
  color: #9ca3af;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  pointer-events: none;
  opacity: 0.8;
  mix-blend-mode: difference;
}

.scroll-dot {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: #22d3ee;
  box-shadow: 0 0 12px #22d3ee;
  animation: pulse 1.2s ease-out infinite;
}

/* Theme toggle (top-left) - sun/moon grid switch */
:root {
  --bg-color-light: #f0f0e8;
  --bg-color-dark: #1c2135;
  --border-color-light: #1c2135;
  --border-color-dark: #f0f0e8;
  --sun-color: #fabc1c;
  --moon-color: #fffdf2;
  --day-bg-color: #0dbdf6;
  --night-bg-color: #272a30;
  --cloud-color: #fffdf2;
  --star-color: #fffdf2;
}

.theme-toggle {
  position: fixed;
  top: 0.75rem;
  right: 1rem;
  left: auto;
  z-index: 60;
  display: grid;
  grid-template-columns: repeat(54, 1px);
  grid-template-rows: repeat(24, 1px);
  gap: 0;
  background-color: var(--day-bg-color);
  border-radius: 49px;
  border: 1px solid var(--border-color-light);
  cursor: pointer;
  transition: background-color 0.8s ease, border-color 0.8s ease;
  appearance: none;
  padding: 0;
  width: 88px;
  height: 40px;
  overflow: hidden;
}

.theme-toggle.night-theme {
  background-color: var(--night-bg-color);
  border-color: var(--border-color-dark);
}

.theme-toggle .sun {
  background-color: var(--sun-color);
  grid-column: 3/23;
  grid-row: 3/23;
  border-radius: 50%;
  transition: grid-column 0.8s ease, background-color 0.8s ease;
}

.theme-toggle.night-theme .sun {
  grid-column: 33/53;
  background-color: var(--moon-color);
}

.theme-toggle .moon-overlay {
  position: absolute;
  border-radius: 50%;
  transition: left 0.8s ease, background-color 0.8s ease;
  z-index: 1;
  background-color: var(--day-bg-color);
}

.theme-toggle.night-theme .moon-overlay {
  display: block;
  left: 51.8518518519%;
  top: 13.7931034483%;
  width: 18px;
  height: 18px;
  background-color: var(--night-bg-color);
}

.theme-toggle .cloud-ball {
  background-color: var(--cloud-color);
  border-radius: 50%;
  width: 9px;
  height: 9px;
  position: absolute;
  transition: all 0.8s ease;
  z-index: 2;
}

.theme-toggle #ball1 {
  top: 33.3333333333%;
  left: 22.2222222222%;
}

.theme-toggle #ball2 {
  top: 33.3333333333%;
  left: 31.4814814815%;
}

.theme-toggle #ball3 {
  top: 33.3333333333%;
  left: 40.7407407407%;
}

.theme-toggle #ball4 {
  top: 25%;
  left: 31.4814814815%;
}

.theme-toggle.night-theme #ball1 {
  top: 66.6666666667%;
  left: 29.6296296296%;
  width: 2px;
  height: 2px;
}

.theme-toggle.night-theme #ball2 {
  top: 12.5%;
  left: 40.7407407407%;
  width: 2px;
  height: 2px;
}

.theme-toggle.night-theme #ball3 {
  top: 41.6666666667%;
  left: 53.7037037037%;
  width: 2px;
  height: 2px;
}

.theme-toggle.night-theme #ball4 {
  top: 20.8333333333%;
  left: 62.962962963%;
  width: 2px;
  height: 2px;
}

.theme-toggle .star {
  background-color: var(--star-color);
  width: 1px;
  height: 1px;
  position: absolute;
  opacity: 0;
  transition: opacity 0.8s ease;
}

.theme-toggle #star1 {
  top: 29.1666666667%;
  left: 18.5185185185%;
  border-radius: 50%;
}

.theme-toggle #star2 {
  top: 37.5%;
  left: 29.6296296296%;
  border-radius: 50%;
}

.theme-toggle #star3 {
  top: 54.1666666667%;
  left: 42.5925925926%;
  border-radius: 50%;
}

.theme-toggle #star4 {
  top: 75%;
  left: 53.7037037037%;
  border-radius: 50%;
}

.theme-toggle.night-theme #star1,
.theme-toggle.night-theme #star2,
.theme-toggle.night-theme #star3,
.theme-toggle.night-theme #star4 {
  opacity: 1;
}

/* Top info (time / date / weather) */
.top-info {
  position: fixed;
  top: 3.1rem;
  right: 1rem;
  left: auto;
  z-index: 55;
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  padding: 0.35rem 0.6rem;
  max-width: 150px;
  border-radius: 14px;
  background: rgba(15, 23, 42, 0.78);
  border: 1px solid rgba(148, 163, 184, 0.6);
  box-shadow: 0 6px 20px rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  font-size: 0.7rem;
  color: #cbd5f5;
}

.top-info-time {
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.top-info-date {
  font-size: 0.64rem;
  letter-spacing: 0.06em;
  opacity: 0.85;
}

.top-info-weather {
  font-size: 0.64rem;
  letter-spacing: 0.06em;
  opacity: 0.9;
}

[data-theme=light] .top-info {
  background: rgba(255, 255, 255, 0.9);
  border-color: rgba(148, 163, 184, 0.5);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.16);
  color: #111827;
}

/* Footer legal buttons (index + legal pages) */
.site-footer {
  position: fixed;
  left: 1rem;
  bottom: 1rem;
  pointer-events: none;
  z-index: 50;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.25s ease-out, transform 0.25s ease-out;
}

.site-footer--visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.site-footer-inner {
  display: inline-flex;
  gap: 0.5rem;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  background: radial-gradient(circle at 0% 0%, rgba(15, 23, 42, 0.96), rgba(15, 23, 42, 0.9)), radial-gradient(circle at 100% 100%, rgba(15, 23, 42, 0.96), rgba(15, 23, 42, 0.9));
  box-shadow: 0 14px 40px rgba(15, 23, 42, 0.95);
  border: 1px solid rgba(148, 163, 184, 0.6);
  backdrop-filter: blur(18px) saturate(130%);
  -webkit-backdrop-filter: blur(18px) saturate(130%);
  pointer-events: auto;
}

.footer-link-btn {
  position: relative;
  padding: 0.32rem 1.1rem;
  border-radius: 999px;
  border: 1px solid rgba(56, 189, 248, 0.65);
  background: radial-gradient(circle at 0% 0%, rgba(56, 189, 248, 0.2), transparent 55%), radial-gradient(circle at 100% 100%, rgba(129, 140, 248, 0.2), transparent 55%), rgba(15, 23, 42, 0.95);
  color: #cbd5f5;
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: 0 0 0 1px rgba(15, 23, 42, 0.9), 0 8px 24px rgba(15, 23, 42, 0.9), 0 0 18px rgba(56, 189, 248, 0.35);
  transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease, background 0.16s ease;
}
.footer-link-btn:hover {
  transform: translateY(-1px);
  border-color: rgba(56, 189, 248, 0.95);
  box-shadow: 0 0 0 1px rgba(15, 23, 42, 0.9), 0 14px 36px rgba(15, 23, 42, 0.95), 0 0 26px rgba(56, 189, 248, 0.55);
  background: radial-gradient(circle at 0% 0%, rgba(56, 189, 248, 0.32), transparent 60%), radial-gradient(circle at 100% 100%, rgba(129, 140, 248, 0.32), transparent 60%), rgba(15, 23, 42, 0.98);
}
.footer-link-btn:active {
  transform: translateY(0);
  box-shadow: 0 0 0 1px rgba(15, 23, 42, 0.9), 0 6px 20px rgba(15, 23, 42, 0.9), 0 0 18px rgba(56, 189, 248, 0.4);
}

@keyframes pulse {
  0% {
    transform: scale(1);
    opacity: 1;
  }
  100% {
    transform: scale(2.1);
    opacity: 0;
  }
}
/* Horizontal-scroll legal page (Impressum & Datenschutz) */
.legal-scroll-wrapper {
  height: 220vh;
  position: relative;
}

.legal-horizontal-container {
  position: sticky;
  top: 0;
  left: 0;
  height: 100vh;
  overflow: hidden;
  display: flex;
  align-items: stretch;
  justify-content: flex-start;
}

.legal-horizontal-track {
  display: flex;
  height: 100vh;
  will-change: transform;
}

.legal-section {
  min-width: 100vw;
  height: 99vh;
  margin: auto;
  padding: 4.5rem 8vw;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 1.4rem;
  border-radius: 28px;
  border: 1px solid rgba(148, 163, 184, 0.35);
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.96), rgba(15, 23, 42, 0.9)), radial-gradient(circle at 0% 0%, rgba(56, 189, 248, 0.16), transparent 60%), radial-gradient(circle at 100% 100%, rgba(129, 140, 248, 0.14), transparent 60%);
  background-blend-mode: normal, screen, screen;
  box-shadow: 0 0 0 1px rgba(15, 23, 42, 0.9), 0 18px 65px rgba(15, 23, 42, 0.95), 0 0 80px rgba(45, 212, 191, 0.15);
  transform: translateZ(0);
  backdrop-filter: blur(22px) saturate(130%);
  -webkit-backdrop-filter: blur(22px) saturate(130%);
  overflow: hidden;
  position: relative;
}

/* When rendered inside the IDE iframe, stack legal sections vertically
   so the page scrolls in a natural top-to-bottom flow. */
html.in-ide-preview .legal-scroll-wrapper {
  height: auto;
}
html.in-ide-preview .legal-horizontal-container {
  position: static;
  height: auto;
  overflow: visible;
}
html.in-ide-preview .legal-horizontal-track {
  display: block;
  height: auto;
}

.legal-section h1 {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  line-height: 1.15;
}

.legal-section h2 {
  font-size: 0.9rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-top: 1rem;
  margin-bottom: 0.4rem;
}

.legal-section p {
  max-width: 46rem;
  line-height: 1.7;
  color: #cbd5f5;
  font-size: 0.9rem;
}

.lang-block[data-lang] {
  display: none;
}

html[lang=en] .lang-block[data-lang=en],
html[data-lang=en] .lang-block[data-lang=en],
html[lang^=de] .lang-block[data-lang=de],
html[data-lang=de] .lang-block[data-lang=de] {
  display: block;
}

.legal-section .lang-block {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

/* Light theme overrides */
[data-theme=light] body {
  background: #f9fafb;
  color: #020617;
}

[data-theme=light] .crystal-layer {
  opacity: 0;
}

[data-theme=light] body::before {
  opacity: 0;
}

[data-theme=light] body::after {
  opacity: 0;
}

[data-theme=light] section,
[data-theme=light] .legal-section {
  height: 99vh;
  background: rgba(255, 255, 255, 0.14);
  border-radius: 28px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  box-shadow: none;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

[data-theme=light] section p,
[data-theme=light] .legal-section p {
  color: #111827;
}

[data-theme=light] .tag {
  border-color: rgba(15, 23, 42, 0.25);
  color: #4b5563;
}

[data-theme=light] .project-card {
  background: #ffffff;
  border-color: rgba(15, 23, 42, 0.06);
  box-shadow: none;
}

[data-theme=dark] .intro-search-panel {
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.96), rgba(15, 23, 42, 0.94)), radial-gradient(circle at 0% 0%, rgba(56, 189, 248, 0.18), transparent 60%), radial-gradient(circle at 100% 100%, rgba(129, 140, 248, 0.16), transparent 60%);
}

[data-theme=light] .intro-search-overlay {
  background: radial-gradient(circle at top, rgba(248, 250, 252, 0.9), rgba(241, 245, 249, 0.96));
}

[data-theme=light] .intro-search-panel {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(148, 163, 184, 0.4);
  box-shadow: 0 0 0 1px rgba(148, 163, 184, 0.18), 0 20px 65px rgba(15, 23, 42, 0.16);
}

[data-theme=light] .intro-search-input {
  background: rgba(255, 255, 255, 0.96);
  color: #0f172a;
}
[data-theme=light] .intro-search-input::placeholder {
  color: #9ca3af;
}

[data-theme=light] .intro-search-panel h2 {
  color: #020617;
}

[data-theme=light] .intro-search-panel p {
  color: #4b5563;
}

[data-theme=light] .intro-search-chip {
  background: radial-gradient(circle at 0% 0%, rgba(148, 163, 184, 0.22), transparent 55%);
  color: #4b5563;
  border-color: rgba(148, 163, 184, 0.9);
}

[data-theme=light] .intro-search-chip:hover {
  background: radial-gradient(circle at 0% 0%, rgba(59, 130, 246, 0.16), transparent 60%);
  color: #0f172a;
}

/* Light theme overrides specifically for the IDE layout (ide.html) */
[data-theme=light] .ide-page {
  color: #020617;
}

[data-theme=light] .ide-shell {
  background: rgba(255, 255, 255, 0.9);
  border-color: rgba(148, 163, 184, 0.45);
  box-shadow: 0 6px 24px rgba(15, 23, 42, 0.08);
}

[data-theme=light] .ide-sidebar {
  background: rgba(255, 255, 255, 0.9);
  border-color: rgba(148, 163, 184, 0.45);
}

[data-theme=light] .ide-main {
  background: rgba(249, 250, 251, 0.96);
  border-color: rgba(148, 163, 184, 0.5);
}

[data-theme=light] .ide-sidebar-title {
  color: #4b5563;
  opacity: 0.95;
}

[data-theme=light] .ide-sidebar-section-label {
  color: #6b7280;
}

[data-theme=light] .ide-file {
  color: #111827;
}

[data-theme=light] .ide-file--active {
  color: #111827;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.12);
}

[data-theme=light] .ide-file-name {
  color: #111827;
}

[data-theme=light] .ide-file-icon {
  background: #ffffff;
  border-color: rgba(148, 163, 184, 0.7);
  color: #111827;
}

[data-theme=light] .ide-editor-bar {
  background: rgba(248, 250, 252, 0.9);
  border-color: rgba(148, 163, 184, 0.7);
}

[data-theme=light] .ide-preview-frame-wrapper {
  background: rgba(255, 255, 255, 0.96);
  border-color: rgba(148, 163, 184, 0.7);
  box-shadow: 0 8px 26px rgba(15, 23, 42, 0.08);
}

[data-theme=light] .ide-menubar {
  background: rgba(255, 255, 255, 0.9);
  border-color: rgba(148, 163, 184, 0.5);
}

[data-theme=light] .ide-menubar-item {
  color: #374151;
}

[data-theme=light] .ide-menubar-item:hover {
  background: rgba(37, 99, 235, 0.08);
}

[data-theme=light] .ide-main-title h1 {
  color: #020617;
}

[data-theme=light] .ide-main-title p {
  color: #4b5563;
}

[data-theme=light] .ide-main-meta-pill {
  border-color: rgba(148, 163, 184, 0.9);
  color: #374151;
}

[data-theme=light] .ide-preview-status-text span {
  color: #374151;
}

[data-theme=light] .ide-tab {
  color: #111827;
}

[data-theme=light] .ide-tab-label {
  color: #111827;
}

[data-theme=light] .ide-tab-icon {
  color: #4b5563;
}

[data-theme=dark] .project-card-meta {
  color: #e2e8f0;
  opacity: 1;
}

[data-theme=light] .project-card-meta {
  color: #4b5563;
}

[data-theme=dark] .project-card-meta a {
  color: #ffffff;
}

[data-theme=light] .project-card-meta a {
  color: #111827;
}

[data-theme=dark] .project-card-title a {
  color: #ffffff;
}

[data-theme=light] .project-card-title a {
  color: #111827;
}

[data-theme=light] .scroll-hint {
  color: #111827;
  mix-blend-mode: normal;
}

[data-theme=light] .scroll-dot {
  background: #111827;
  box-shadow: 0 0 6px rgba(15, 23, 42, 0.3);
}

[data-theme=light] .site-footer-inner {
  background: rgba(255, 255, 255, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.4);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

[data-theme=light] .footer-link-btn {
  background: radial-gradient(circle at 0% 0%, rgba(15, 23, 42, 0.04), transparent 55%), radial-gradient(circle at 100% 100%, rgba(15, 23, 42, 0.06), transparent 55%), rgba(255, 255, 255, 0.92);
  color: #0f172a;
  border-color: rgba(148, 163, 184, 0.8);
  box-shadow: 0 0 0 1px rgba(226, 232, 240, 0.9), 0 8px 18px rgba(15, 23, 42, 0.12);
}

[data-theme=light] .footer-link-btn:hover {
  background: radial-gradient(circle at 0% 0%, rgba(59, 130, 246, 0.08), transparent 60%), radial-gradient(circle at 100% 100%, rgba(37, 99, 235, 0.08), transparent 60%), rgba(255, 255, 255, 0.98);
}

[data-theme=light] .theme-toggle {
  background: radial-gradient(circle at 0% 0%, rgba(255, 255, 255, 0.95), rgba(249, 250, 251, 0.95)), radial-gradient(circle at 100% 100%, rgba(255, 255, 255, 0.92), rgba(241, 245, 249, 0.95));
  border-color: rgba(148, 163, 184, 0.7);
  color: #0f172a;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
}

/* ===== SPEED BUMPS ===== */
.speed-bump {
  position: fixed;
  bottom: 0;
  z-index: 9998;
  pointer-events: none;
  transform: translateX(-50%);
  width: 36px;
  height: 10px;
  border-radius: 999px 999px 4px 4px;
  background: linear-gradient(180deg, #fbbf24, #d97706);
  border: 1.5px solid #92400e;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(251, 191, 36, 0.2);
}
.speed-bump::before {
  content: "";
  position: absolute;
  inset: 2px 4px;
  border-radius: 999px;
  background: repeating-linear-gradient(90deg, rgba(0, 0, 0, 0.25) 0px, rgba(0, 0, 0, 0.25) 3px, transparent 3px, transparent 7px);
}
.speed-bump::after {
  content: "⚠";
  position: absolute;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 10px;
  line-height: 1;
  opacity: 0.5;
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.speed-bump.speed-bump--near {
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.6), 0 0 16px rgba(251, 191, 36, 0.7);
}
.speed-bump.speed-bump--near::after {
  opacity: 1;
  transform: translateX(-50%) scale(1.3);
}

/* ===== WALKER / SKATER ===== */
.walker {
  position: fixed;
  bottom: 18px;
  left: 0;
  z-index: 9999;
  pointer-events: none;
  transform-origin: bottom center;
}

.walker-inner {
  position: relative;
  width: 54px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  transform-origin: bottom center;
}

.walker-head {
  position: relative;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #fed7aa, #f97316);
  border: 2.5px solid #7c3412;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.6);
  overflow: visible;
}
.walker-head::before {
  content: "";
  position: absolute;
  top: -8px;
  left: -3px;
  right: -3px;
  height: 18px;
  border-radius: 50% 50% 30% 30%;
  background: #1e1b4b;
  box-shadow: 0 2px 0 rgba(0, 0, 0, 0.5);
}

.walker-eye {
  position: absolute;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #1e1b4b;
  top: 13px;
}
.walker-eye::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: inherit;
  animation: blink 4s ease-in-out infinite;
}

.walker-eye--left {
  left: 7px;
}

.walker-eye--right {
  right: 7px;
}

.walker-mouth {
  position: absolute;
  width: 12px;
  height: 5px;
  border: 2px solid #7c3412;
  border-top: none;
  border-radius: 0 0 8px 8px;
  bottom: 2px;
  left: 50%;
  transform: translateX(-50%);
}

.walker.jumping .walker-mouth {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: 2px solid #7c3412;
  border-top: 2px solid #7c3412;
  bottom: 3px;
}

.walker-torso {
  position: relative;
  width: 36px;
  height: 26px;
  border-radius: 10px;
  background: linear-gradient(135deg, #4a90d9, #2563eb);
  border: 2px solid #1d4ed8;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.5);
}

.walker-arm {
  position: absolute;
  width: 9px;
  height: 20px;
  border-radius: 999px;
  background: linear-gradient(180deg, #4a90d9, #1d4ed8);
  border: 2px solid #1d4ed8;
  top: 2px;
  transform-origin: top center;
}

.walker-arm--left {
  left: -10px;
}

.walker-arm--right {
  right: -10px;
}

.walker-legs {
  display: flex;
  gap: 5px;
}

.walker-leg {
  width: 11px;
  border-radius: 999px;
  background: linear-gradient(180deg, #1e293b, #020617);
  border: 2px solid #334155;
  transform-origin: top center;
  position: relative;
}
.walker-leg::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: -3px;
  width: 16px;
  height: 7px;
  border-radius: 999px;
  background: linear-gradient(90deg, #f97316, #ea580c);
  border: 1.5px solid #7c3412;
}

.walker-leg--left {
  height: 36px;
  transform: rotate(4deg);
}

.walker-leg--right {
  height: 36px;
  transform: rotate(-32deg) translateY(2px);
}
.walker-leg--right::after {
  width: 12px;
  height: 6px;
  left: -2px;
}

.walker-inner::after {
  content: "";
  position: absolute;
  bottom: -8px;
  left: 2px;
  width: 50px;
  height: 5px;
  border-radius: 999px;
  background: linear-gradient(90deg, #f97316, #ea580c);
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.7);
}

.walker-inner::before {
  content: "";
  position: absolute;
  bottom: -15px;
  left: 6px;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #0f172a;
  box-shadow: 28px 0 0 #0f172a, 0 0 0 2px #94a3b8, 28px 0 0 2px #94a3b8;
}

.walker-inner--jump {
  animation: walker-jump 0.5s ease-out forwards;
}

.walker.jumping .walker-arm--left {
  transform: rotate(-60deg) !important;
  animation: none !important;
}

.walker.jumping .walker-arm--right {
  transform: rotate(60deg) !important;
  animation: none !important;
}

.walker.jumping .walker-leg--left {
  transform: rotate(-20deg) translateY(-4px) !important;
  animation: none !important;
}

.walker.jumping .walker-leg--right {
  transform: rotate(20deg) translateY(-4px) !important;
  animation: none !important;
}

.walker-bubble {
  position: absolute;
  bottom: 82px;
  left: 50%;
  transform: translateX(-50%) translateY(6px);
  background: rgba(15, 23, 42, 0.95);
  border: 1.5px solid rgba(148, 163, 184, 0.5);
  border-radius: 12px;
  padding: 7px 12px;
  font-size: 12px;
  white-space: nowrap;
  color: #cbd5f5;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.6);
}
.walker-bubble::after {
  content: "";
  position: absolute;
  bottom: -9px;
  left: 50%;
  transform: translateX(-50%);
  border: 6px solid transparent;
  border-top-color: rgba(148, 163, 184, 0.5);
}
.walker-bubble::before {
  content: "";
  position: absolute;
  bottom: -6px;
  left: 50%;
  transform: translateX(-50%);
  border: 5px solid transparent;
  border-top-color: rgba(15, 23, 42, 0.95);
  z-index: 1;
}

.walker-bubble--visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.walker.walking .walker-leg--left {
  animation: skate-stand 0.8s ease-in-out infinite alternate;
}

.walker.walking .walker-leg--right {
  animation: skate-push 0.8s ease-in-out infinite alternate;
}

.walker.walking .walker-arm--left {
  animation: skate-arm-l 0.8s ease-in-out infinite alternate;
}

.walker.walking .walker-arm--right {
  animation: skate-arm-r 0.8s ease-in-out infinite alternate;
}

@keyframes skate-stand {
  0% {
    transform: rotate(-4deg);
  }
  100% {
    transform: rotate(4deg);
  }
}
@keyframes skate-push {
  0% {
    transform: rotate(-38deg) translateY(-2px);
  }
  100% {
    transform: rotate(12deg) translateY(0);
  }
}
@keyframes skate-arm-l {
  0% {
    transform: rotate(-18deg);
  }
  100% {
    transform: rotate(8deg);
  }
}
@keyframes skate-arm-r {
  0% {
    transform: rotate(8deg);
  }
  100% {
    transform: rotate(-18deg);
  }
}
.walker:not(.walking):not(.jumping) .walker-leg--left {
  transform: rotate(0deg);
}

.walker:not(.walking):not(.jumping) .walker-leg--right {
  transform: rotate(0deg) translateY(0px);
}

.walker:not(.walking):not(.jumping) .walker-arm--left {
  transform: rotate(0);
}

.walker:not(.walking):not(.jumping) .walker-arm--right {
  transform: rotate(0);
}

@keyframes blink {
  0%, 90%, 100% {
    transform: scaleY(1);
  }
  95% {
    transform: scaleY(0.1);
  }
}
@keyframes walker-jump {
  0% {
    transform: translateY(0);
  }
  35% {
    transform: translateY(-28px);
  }
  100% {
    transform: translateY(0);
  }
}
@keyframes aurora-shift {
  0% {
    transform: translate3d(-4%, -2%, 0) scale(1);
  }
  100% {
    transform: translate3d(6%, 4%, 0) scale(1.1);
  }
}
@keyframes crystal-drift-1 {
  0% {
    transform: translate3d(-3%, -4%, 0) rotate(0deg) scale(1.05);
  }
  50% {
    transform: translate3d(1%, 2%, 0) rotate(6deg) scale(1.1);
  }
  100% {
    transform: translate3d(4%, 6%, 0) rotate(-4deg) scale(1.08);
  }
}
@keyframes crystal-drift-2 {
  0% {
    transform: translate3d(3%, 4%, 0) rotate(-4deg) scale(1);
  }
  50% {
    transform: translate3d(-2%, -1%, 0) rotate(3deg) scale(1.06);
  }
  100% {
    transform: translate3d(-5%, -5%, 0) rotate(-6deg) scale(1.02);
  }
}
/* ==== IDE-LIKE FRONTEND PREVIEW LAYOUT (ide.html) ==== */
.ide-page {
  min-height: 100vh;
  color: #f9fafb;
  overflow-x: hidden;
}

.ide-shell {
  position: relative;
  width: calc(100vw - 2rem);
  max-width: calc(100vw - 2rem);
  height: calc(100vh - 2.5rem);
  margin: 1.25rem auto;
  padding: 0.75rem;
  border-radius: 28px;
  border: 1px solid rgba(148, 163, 184, 0.45);
  background: radial-gradient(circle at 0% 0%, rgba(56, 189, 248, 0.26), transparent 55%), radial-gradient(circle at 100% 100%, rgba(129, 140, 248, 0.24), transparent 55%), rgba(15, 23, 42, 0.96);
  background-blend-mode: screen, screen, normal;
  box-shadow: 0 0 0 1px rgba(15, 23, 42, 0.9), 0 26px 80px rgba(15, 23, 42, 0.96), 0 0 80px rgba(45, 212, 191, 0.18);
  display: flex;
  gap: 0.75rem;
  backdrop-filter: blur(20px) saturate(130%);
  -webkit-backdrop-filter: blur(20px) saturate(130%);
  overflow: hidden;
}

@media (max-width: 960px) {
  .ide-shell {
    width: calc(100vw - 1.5rem);
    max-width: calc(100vw - 1.5rem);
    height: calc(100vh - 2.5rem);
  }
}
@media (max-width: 720px) {
  .ide-shell {
    flex-direction: column;
  }
}
.ide-sidebar {
  width: 260px;
  min-width: 220px;
  max-width: 280px;
  border-radius: 22px;
  padding: 0.8rem 0.7rem 0.7rem;
  background: radial-gradient(circle at 0% 0%, rgba(15, 23, 42, 0.82), rgba(15, 23, 42, 0.96));
  border: 1px solid rgba(148, 163, 184, 0.6);
  box-shadow: inset 0 0 0 1px rgba(15, 23, 42, 0.9);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

@media (max-width: 720px) {
  .ide-sidebar {
    width: 100%;
    max-width: 100%;
    flex-direction: column;
    align-items: flex-start;
    overflow-x: auto;
    padding-inline: 0.6rem;
  }
}
.ide-sidebar-header {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 0.1rem;
}

.ide-sidebar-dot {
  width: 14px;
  height: 14px;
  border-radius: 999px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.9);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  color: #020617;
}
.ide-sidebar-dot--red {
  background: #f97373;
}
.ide-sidebar-dot--amber {
  background: #facc15;
}
.ide-sidebar-dot--green {
  background: #22c55e;
}

.ide-sidebar-dot-symbol {
  line-height: 1;
}

.ide-sidebar-title {
  margin-left: 0.35rem;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #e5e7eb;
  opacity: 0.75;
}

.ide-sidebar-section {
  margin-top: 0.45rem;
}

.ide-sidebar-section-label {
  font-size: 0.64rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #9ca3af;
  margin-bottom: 0.35rem;
}

.ide-file {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.32rem 0.45rem;
  border-radius: 10px;
  border: none;
  background: transparent;
  color: #d1d5db;
  font-size: 0.78rem;
  text-align: left;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, transform 0.12s ease, box-shadow 0.15s ease;
}
.ide-file:hover {
  background: radial-gradient(circle at 0% 0%, rgba(56, 189, 248, 0.15), transparent 60%);
  color: #f9fafb;
  transform: translateY(-1px);
}
.ide-file--active {
  background: radial-gradient(circle at 0% 0%, rgba(56, 189, 248, 0.22), transparent 60%), radial-gradient(circle at 100% 100%, rgba(129, 140, 248, 0.22), transparent 60%);
  box-shadow: 0 0 0 1px rgba(56, 189, 248, 0.7), 0 14px 35px rgba(15, 23, 42, 0.9);
  color: #f9fafb;
}

.ide-file-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 18px;
  border-radius: 6px;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(148, 163, 184, 0.8);
  font-size: 0.6rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.ide-file-name {
  flex: 1 1 auto;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ide-sidebar-footer {
  margin-top: auto;
}

.ide-sidebar-link {
  width: 100%;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.7);
  background: rgba(15, 23, 42, 0.9);
  color: #e5e7eb;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  cursor: pointer;
  text-align: center;
  transition: background 0.15s ease, transform 0.12s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}
.ide-sidebar-link:hover {
  background: rgba(15, 23, 42, 0.98);
  border-color: rgba(56, 189, 248, 0.9);
  transform: translateY(-1px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.8);
}

@media (max-width: 720px) {
  .ide-sidebar-section {
    min-width: 190px;
  }
  .ide-sidebar-footer {
    min-width: 160px;
  }
}
.ide-main {
  flex: 1 1 auto;
  border-radius: 22px;
  padding: 0.8rem 0.9rem 0.85rem;
  background: radial-gradient(circle at 0% 0%, rgba(15, 23, 42, 0.9), rgba(15, 23, 42, 0.98));
  border: 1px solid rgba(148, 163, 184, 0.65);
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  overflow: hidden;
}

.ide-menubar {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.25rem 0.5rem;
  border-radius: 10px;
  background: radial-gradient(circle at 0% 0%, rgba(15, 23, 42, 0.9), rgba(15, 23, 42, 0.98));
  border: 1px solid rgba(30, 64, 175, 0.7);
  box-shadow: inset 0 0 0 1px rgba(15, 23, 42, 0.9);
  font-size: 0.72rem;
}

.ide-menubar-item {
  border: none;
  background: transparent;
  color: #cbd5f5;
  padding: 0.1rem 0.45rem;
  border-radius: 6px;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: default;
}
.ide-menubar-item:hover {
  background: rgba(30, 64, 175, 0.6);
}

.ide-sidebar-toggle {
  display: none;
}

.ide-main-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.5rem;
}

.ide-main-title h1 {
  font-size: clamp(1.2rem, 2.1vw, 1.7rem);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  margin-top: 0.5rem;
}
.ide-main-title p {
  margin-top: 0.5rem;
  max-width: 32rem;
  font-size: 0.85rem;
  color: #cbd5f5;
}

.ide-main-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.3rem;
  font-size: 0.7rem;
}

.ide-main-meta-pill {
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.8);
  color: #e5e7eb;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

@media (max-width: 720px) {
  .ide-main-header {
    flex-direction: column;
    align-items: flex-start;
  }
  .ide-main-meta {
    flex-direction: row;
    flex-wrap: wrap;
  }
  .ide-shell {
    flex-direction: column;
    position: relative;
  }
  .ide-sidebar-toggle {
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    gap: 3px;
    margin-bottom: 0.4rem;
    width: 26px;
    height: 50px;
    border-radius: 6px;
    border: 1px solid rgba(148, 163, 184, 0.7);
    background: rgba(15, 23, 42, 0.9);
    cursor: pointer;
  }
  .ide-sidebar-toggle span {
    display: block;
    width: 16px;
    height: 2px;
    border-radius: 999px;
    background: #e5e7eb;
    margin-inline: auto;
  }
  .ide-sidebar {
    position: absolute;
    top: 3.2rem;
    left: 0.75rem;
    right: 0.75rem;
    width: auto;
    max-height: 60vh;
    overflow-y: auto;
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.2s ease-out, opacity 0.2s ease-out;
    z-index: 70;
  }
  .ide-sidebar.ide-sidebar--open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
}
.ide-editor-bar {
  margin-top: 0.25rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.25rem 0.45rem;
  border-radius: 12px;
  background: radial-gradient(circle at 0% 0%, rgba(15, 23, 42, 0.95), rgba(15, 23, 42, 0.98));
  border: 1px solid rgba(30, 64, 175, 0.6);
  box-shadow: inset 0 0 0 1px rgba(15, 23, 42, 0.9);
}

.ide-tab {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.32rem 0.7rem;
  border-radius: 10px;
  font-size: 0.74rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #e5e7eb;
  background: transparent;
  border: 1px solid transparent;
}
.ide-tab--active {
  background: radial-gradient(circle at 0% 0%, rgba(56, 189, 248, 0.2), transparent 60%), radial-gradient(circle at 100% 100%, rgba(129, 140, 248, 0.2), transparent 60%);
  border-color: rgba(56, 189, 248, 0.85);
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.9), 0 0 18px rgba(56, 189, 248, 0.5);
}

.ide-tab-icon {
  font-size: 0.8rem;
}

section.ide-preview-shell {
  margin-top: 0.4rem;
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  width: 100%;
  min-width: 100%;
  padding: 0;
}

.ide-preview-frame-wrapper {
  flex: 1 1 auto;
  border-radius: 18px;
  border: 1px solid rgba(30, 64, 175, 0.7);
  background: radial-gradient(circle at 0% 0%, rgba(15, 23, 42, 0.96), rgba(15, 23, 42, 0.98));
  box-shadow: inset 0 0 0 1px rgba(15, 23, 42, 0.9), 0 26px 70px rgba(15, 23, 42, 0.96);
  overflow-y: auto;
  overflow-x: hidden;
}

.ide-preview-frame-wrapper iframe {
  width: 100%;
  min-height: 100%;
  border: none;
  background: #020617;
}

.ide-preview-footer {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.7rem;
  color: #9ca3af;
  padding-inline: 0.1rem;
  justify-content: center;
}

.ide-preview-status-dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: #22c55e;
  box-shadow: 0 0 10px rgba(34, 197, 94, 0.8);
}

.ide-preview-status-text span {
  color: #e5e7eb;
}

[data-theme=light] .ide-shell {
  background: rgba(255, 255, 255, 0.9);
  border-color: rgba(148, 163, 184, 0.45);
  box-shadow: 0 18px 55px rgba(15, 23, 42, 0.12);
}
[data-theme=light] .ide-sidebar {
  background: rgba(255, 255, 255, 0.9);
  border-color: rgba(148, 163, 184, 0.45);
}
[data-theme=light] .ide-main {
  background: rgba(249, 250, 251, 0.96);
  border-color: rgba(148, 163, 184, 0.5);
}
[data-theme=light] .ide-file-icon {
  background: rgba(255, 255, 255, 0.96);
}
[data-theme=light] .ide-file--active {
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.18);
}
[data-theme=light] .ide-editor-bar {
  background: rgba(248, 250, 252, 0.9);
  border-color: rgba(148, 163, 184, 0.7);
}
[data-theme=light] .ide-preview-frame-wrapper {
  background: rgba(255, 255, 255, 0.96);
  border-color: rgba(148, 163, 184, 0.7);
  box-shadow: 0 18px 55px rgba(15, 23, 42, 0.12);
}

/* Standalone section previews (used inside IDE iframe) */
.section-page {
  overflow-x: auto;
  overflow-y: auto;
}

.section-page-main {
  min-height: 100vh;
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  padding: 0;
}

.section-page section {
  width: 100%;
  min-width: 100%;
  overflow: visible;
  margin: 0 auto;
}

@media (max-width: 900px) {
  .section-page-main {
    align-items: stretch;
  }
  .section-page section {
    min-width: 100%;
    max-width: 100%;
  }
}
/* Hide chrome when a page is rendered inside the IDE iframe */
html.in-ide-preview .theme-toggle,
html.in-ide-preview .top-info,
html.in-ide-preview .site-footer,
html.in-ide-preview .footer-link-btn.legal-back,
html.in-ide-preview .footer-link-btn-ide,
html.in-ide-preview .scroll-hint,
html.in-ide-preview .walker,
html.in-ide-preview .intro-search-overlay {
  display: none !important;
}
html.in-ide-preview {
  /* Force the main email address to white inside IDE previews */
}
html.in-ide-preview a[href="mailto:shoaibsarwar187@gmail.com"] {
  color: #ffffff !important;
}

/* Hide theme toggle + weather on the IDE host page itself */
.ide-page .theme-toggle,
.ide-page .top-info {
  display: none !important;
}

.in-ide-preview .section-page section {
  min-height: fit-content;
}

@media (max-width: 768px) {
  .footer-link-btn-ide,
  #preview-ide-btn {
    display: none !important;
  }
}

/*# sourceMappingURL=styles.css.map */
