/* portfolio.css — Portfolio (seiten­spezifisch)
   Gemeinsame Bausteine (bg-marquee, Basis-Reset, isometric-grid) in shared.css. */

html, body { overscroll-behavior: none; }
body {
  width: 100vw; height: 100vh;
  background-color: #000000;
  overflow: hidden;
  perspective: 1200px;
  display: flex; justify-content: center; align-items: center;
}

/* Marquee hier 25deg */
.bg-marquee { rotate: 25deg; }

#scene-canvas {
  position: fixed; inset: 0;
  width: 100vw; height: 100vh;
  display: block; z-index: 1;
}

/* ---------- Hero ---------- */
.hero-text {
  position: absolute;
  top: 20%; right: 10%;
  z-index: 10;
  color: white;
  pointer-events: none;
  transform: translateZ(100px);
}
.hero-text h1 {
  margin: 0 0 18px; margin-top: -100px;
  font-size: clamp(2.3rem, 5.6vw, 5.2rem);
  line-height: .98; letter-spacing: -.025em; font-weight: 900;
  background: linear-gradient(90deg, #00ffff, #ff00ff);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero-text p {
  margin: 0;
  font-size: clamp(.75rem, 1.05vw, 1rem);
  letter-spacing: .28em; text-transform: uppercase;
  color: rgba(190, 230, 255, .58); font-weight: 600;
}

/* ---------- Projekt-HUD ---------- */
.project-hud {
  --accent: #00ffff;
  position: fixed;
  left: 6%; bottom: 8%;
  width: min(30vw, 340px);
  min-width: 248px;
  padding: 20px 22px 18px;
  border-radius: 18px;
  z-index: 9;
  color: #dff2ff;
  background: linear-gradient(150deg,
    rgba(255, 255, 255, .10) 0%,
    rgba(0, 170, 255, .05) 100%);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  border: 1px solid rgba(160, 225, 255, .20);
  box-shadow: 0 18px 50px rgba(0, 0, 0, .55),
              inset 0 1px 0 rgba(255, 255, 255, .18);
  opacity: 0; transform: translateY(18px);
  transition: opacity .55s ease, transform .55s ease, border-color .55s ease;
  pointer-events: none;
  overflow: hidden;
}
.project-hud.show {
  opacity: 1;
  transform: translateY(0);
  border-color: color-mix(in srgb, var(--accent) 38%, transparent);
}
.portfolio-info {
  position: fixed;
  left: 6%; top: 8%;
  max-width: 260px;
  padding: 14px 18px;
  background: rgba(0,0,0,0.4);
  color: #eaf6ff;
  font-size: .85rem;
  border-radius: 12px;
  z-index: 9;
  pointer-events: none;
  text-align: right;
}
.ph-top {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 10px;
}
.ph-index {
  font-family: ui-monospace, "SFMono-Regular", monospace;
  font-size: .62rem; font-weight: 700; letter-spacing: .18em;
  color: var(--accent);
}
.ph-cat {
  font-size: .55rem; font-weight: 700; letter-spacing: .22em;
  text-transform: uppercase;
  color: rgba(200, 225, 255, .55);
}
.ph-title {
  margin: 0 0 10px;
  font-size: clamp(1.05rem, 1.7vw, 1.45rem);
  font-weight: 800; letter-spacing: -.01em;
  color: #eaf6ff;
}
.ph-desc {
  margin: 0 0 14px;
  font-size: .72rem; line-height: 1.55;
  color: rgba(200, 225, 255, .68);
}
.ph-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.ph-tags span {
  font-size: .55rem; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase;
  padding: 4px 9px; border-radius: 99px;
  color: var(--accent);
  background: color-mix(in srgb, var(--accent) 14%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent) 35%, transparent);
}
.ph-bar {
  height: 2px; width: 100%;
  border-radius: 99px; overflow: hidden;
  background: rgba(255, 255, 255, .08);
}
.ph-bar i {
  display: block; height: 100%; width: 0%;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--accent), #ffffff);
  box-shadow: 0 0 10px var(--accent);
}

/* ---------- Mobile: Headline oben, Projekt-HUD unten ---------- */
@media (max-width: 900px) {
  .hero-text { top: 4%; left: 6%; right: auto; max-width: 88vw; transform: translateZ(0); }
  .hero-text h1 { margin-top: 0; font-size: clamp(1.8rem, 8vw, 2.6rem); }
  /* Hinweis-Box nur Desktop; auf Mobile Ueberlappung mit Headline vermeiden */
  .portfolio-info { display: none; }
  .project-hud {
    left: 4%; right: 4%; bottom: 4%;
    width: auto; min-width: 0;
    padding: 15px 17px 14px;
  }
}