/* ═══════════════════════════════════════════════════════════
   Wenisch Technologies — style.css
   PlayStation-Inspired Professional Design
   ═══════════════════════════════════════════════════════════ */

/* ── Reset & Base ──────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  /* PlayStation button colors */
  --ps-x:      #5b8edb;
  --ps-o:      #dd5555;
  --ps-tri:    #44bb88;
  --ps-sq:     #cc66cc;

  /* Primary accent */
  --accent:        #00d4ff;
  --accent-dim:    rgba(0, 212, 255, 0.12);
  --accent-glow:   rgba(0, 212, 255, 0.35);

  /* Background */
  --bg:            #000010;
  --bg-alt:        #05051f;
  --surface:       rgba(255,255,255,0.04);
  --surface-hover: rgba(255,255,255,0.07);
  --border:        rgba(0, 100, 200, 0.2);
  --border-bright: rgba(0, 212, 255, 0.3);

  /* Text */
  --text:          #e8f4ff;
  --text-muted:    #6688aa;

  /* Misc */
  --radius:        12px;
  --radius-sm:     6px;
  --transition:    0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --font-mono:     'JetBrains Mono', 'Courier New', monospace;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img, svg { display: block; }
ul { list-style: none; }

/* ── Scrollbar ─────────────────────────────────────────────── */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--accent); border-radius: 3px; }

/* ── Background canvas (PS2 animation) ─────────────────────── */
#bg-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

/* ── Scanlines ──────────────────────────────────────────────── */
.scanlines {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: repeating-linear-gradient(
    to bottom,
    transparent 0px,
    transparent 3px,
    rgba(0, 0, 0, 0.10) 3px,
    rgba(0, 0, 0, 0.10) 4px
  );
}

/* ── Vignette ───────────────────────────────────────────────── */
.vignette {
  position: fixed;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: radial-gradient(ellipse at center,
    transparent 55%,
    rgba(0, 0, 8, 0.65) 100%
  );
}

/* ── Boot Screen ────────────────────────────────────────────── */
#boot-screen {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: #000010;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 24px;
  transition: opacity 0.8s ease;
}

#boot-screen.hidden {
  opacity: 0;
  pointer-events: none;
}

.boot-logo {
  font-family: var(--font-mono);
  font-size: 2.4rem;
  letter-spacing: 0.4em;
  color: var(--accent);
  text-shadow: 0 0 20px var(--accent), 0 0 60px rgba(0, 200, 255, 0.3);
  text-transform: uppercase;
  font-weight: bold;
  animation: bootPulse 1.5s ease-in-out infinite;
}

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

.boot-sub {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.35em;
  color: var(--text-muted);
  text-transform: uppercase;
}

.boot-bar-wrap {
  width: 220px;
  height: 2px;
  background: rgba(0, 100, 200, 0.2);
  border-radius: 1px;
  overflow: hidden;
}

.boot-bar {
  height: 100%;
  background: var(--accent);
  border-radius: 1px;
  box-shadow: 0 0 8px var(--accent);
  width: 0%;
  transition: width 0.05s linear;
}

/* ── Main site wrapper (above canvas, below boot) ─────────── */
#site {
  position: relative;
  z-index: 10;
  opacity: 0;
  transition: opacity 0.8s ease;
}

#site.visible {
  opacity: 1;
}

/* ── Typography helpers ────────────────────────────────────── */
.gradient-text {
  background: linear-gradient(135deg, var(--accent) 0%, #a78bfa 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-label {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}

/* ── Container ─────────────────────────────────────────────── */
.container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ── Section ───────────────────────────────────────────────── */
.section {
  padding: 7rem 0;
  position: relative;
}

.section--alt {
  background: rgba(5, 5, 31, 0.6);
  backdrop-filter: blur(4px);
}

.section-header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 4rem;
}
.section-header h2 {
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
}
.section-header p { color: var(--text-muted); font-size: 1.05rem; }

/* ── Buttons ───────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.75rem;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-weight: 600;
  transition: var(--transition);
  cursor: pointer;
  white-space: nowrap;
  border: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent), #0099cc);
  color: #000;
  box-shadow: 0 0 24px var(--accent-glow);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 40px var(--accent-glow), 0 8px 24px rgba(0, 0, 0, 0.3);
}

.btn-ghost {
  border: 1px solid var(--border-bright);
  color: var(--text);
  background: var(--surface);
}
.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-dim);
  transform: translateY(-2px);
}

.btn-icon-badge {
  font-size: 0.75rem;
  opacity: 0.85;
}

/* ── XMB Navigation ────────────────────────────────────────── */
#navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  transition: background var(--transition), border-color var(--transition);
  border-bottom: 1px solid transparent;
}

#navbar.scrolled {
  background: rgba(0, 0, 16, 0.88);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-color: var(--border);
}

.nav-inner {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  height: 64px;
}

.nav-logo {
  font-family: var(--font-mono);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--accent);
  text-shadow: 0 0 10px var(--accent), 0 0 30px rgba(0, 212, 255, 0.3);
  letter-spacing: 0.08em;
  flex-shrink: 0;
}

.logo-bracket { opacity: 0.6; }

/* XMB category bar */
.xmb-cats {
  display: flex;
  gap: 0;
  align-items: stretch;
}

.cat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 6px 24px;
  cursor: pointer;
  transition: all 0.25s ease;
  border-bottom: 2px solid transparent;
  opacity: 0.45;
  text-decoration: none;
  color: inherit;
}

.cat-item.active,
.cat-item:hover {
  opacity: 1;
}

.cat-item.active {
  border-bottom-color: var(--accent);
}

.cat-icon {
  font-size: 1.3rem;
  line-height: 1;
}

.cat-label {
  font-family: var(--font-mono);
  font-size: 0.55rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.cat-item.active .cat-label {
  color: var(--accent);
  text-shadow: 0 0 8px var(--accent);
}

/* Clock */
#nav-clock {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-muted);
  letter-spacing: 0.12em;
  flex-shrink: 0;
}

/* Mobile hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: var(--transition);
}

/* ── Hero ──────────────────────────────────────────────────── */
#hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  text-align: center;
  padding: 8rem 1.5rem 5rem;
}

.hero-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  pointer-events: none;
  animation: pulse-glow 8s ease-in-out infinite;
}

.hero-glow-1 {
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(0, 212, 255, 0.12) 0%, transparent 70%);
  top: -10%; left: -15%;
}
.hero-glow-2 {
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(167, 139, 250, 0.1) 0%, transparent 70%);
  bottom: 0; right: -10%;
  animation-delay: -4s;
}

@keyframes pulse-glow {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(1.1); }
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1rem;
  border-radius: 100px;
  border: 1px solid var(--border);
  background: var(--surface);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-bottom: 1.75rem;
  letter-spacing: 0.05em;
}

.badge-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 8px #22c55e;
  animation: blink 2s ease-in-out infinite;
}

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

#hero h1 {
  font-size: clamp(3rem, 9vw, 5.5rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: 1.5rem;
}

.hero-sub {
  font-size: clamp(1rem, 2.5vw, 1.15rem);
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto 2.5rem;
  line-height: 1.8;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
}

.hero-stack {
  display: flex;
  gap: 0.5rem 0.2rem;
  justify-content: center;
  flex-wrap: wrap;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
}
.hero-stack .sep { color: var(--accent); opacity: 0.5; }

.hero-scroll-hint {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
  opacity: 0.5;
  animation: float-hint 2.5s ease-in-out infinite;
}
.scroll-line {
  width: 1px;
  height: 36px;
  background: linear-gradient(to bottom, var(--accent), transparent);
}

@keyframes float-hint {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(6px); }
}

/* ── PS Button color accents ───────────────────────────────── */
/* Cards cycle through ps-x → ps-o → ps-tri → ps-sq */

/* Service cards */
.service-card {
  position: relative;
  padding: 2rem;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-left: 3px solid transparent;
  transition: var(--transition);
  overflow: hidden;
  backdrop-filter: blur(8px);
}

.service-card:nth-child(4n+1) { --card-color: var(--ps-x);   --card-color-rgb: 91,142,219; }
.service-card:nth-child(4n+2) { --card-color: var(--ps-o);   --card-color-rgb: 221,85,85;  }
.service-card:nth-child(4n+3) { --card-color: var(--ps-tri); --card-color-rgb: 68,187,136; }
.service-card:nth-child(4n)   { --card-color: var(--ps-sq);  --card-color-rgb: 204,102,204; }

.service-card { border-left-color: var(--card-color); }

.service-card:hover {
  transform: translateY(-4px);
  border-color: rgba(var(--card-color-rgb), 0.5);
  box-shadow: 0 0 24px rgba(var(--card-color-rgb), 0.25),
              -3px 0 0 var(--card-color);
  background: rgba(var(--card-color-rgb), 0.06);
}

.service-icon {
  width: 48px; height: 48px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  background: rgba(var(--card-color-rgb), 0.12);
  border: 1px solid rgba(var(--card-color-rgb), 0.3);
}
.service-icon svg { width: 22px; height: 22px; color: var(--card-color); }

.service-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: var(--text);
}
.service-card p { color: var(--text-muted); font-size: 0.93rem; margin-bottom: 1.25rem; }

.service-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}
.service-tags li {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  padding: 0.2rem 0.6rem;
  border-radius: 100px;
  background: rgba(var(--card-color-rgb), 0.1);
  border: 1px solid rgba(var(--card-color-rgb), 0.25);
  color: var(--card-color);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

/* ── Why Us ───────────────────────────────────────────────── */
.why-wrap {
  display: grid;
  grid-template-columns: minmax(260px, 0.9fr) minmax(360px, 1.1fr);
  gap: 2.5rem;
  align-items: start;
}

.why-intro {
  position: sticky;
  top: 96px;
}

.why-intro h3 {
  font-size: clamp(1.35rem, 2.5vw, 1.9rem);
  line-height: 1.25;
  margin-bottom: 0.9rem;
}

.why-intro p {
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 1.15rem;
}

.why-points {
  border-top: 1px solid var(--border);
}

.why-point {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 1rem;
  padding: 1.05rem 0;
  border-bottom: 1px solid var(--border);
  transition: var(--transition);
}

.why-point:hover {
  border-bottom-color: var(--border-bright);
  transform: translateX(4px);
}

.why-point-key {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  color: var(--accent);
  padding-top: 0.22rem;
}

.why-point h4 {
  font-size: 1rem;
  margin-bottom: 0.25rem;
}

.why-point p {
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.7;
}

/* ── Project cards ─────────────────────────────────────────── */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}

.project-card {
  padding: 1.75rem;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-left: 3px solid transparent;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  backdrop-filter: blur(6px);
}

.project-card:nth-child(4n+1) { --card-color: var(--ps-x);   --card-color-rgb: 91,142,219; }
.project-card:nth-child(4n+2) { --card-color: var(--ps-o);   --card-color-rgb: 221,85,85;  }
.project-card:nth-child(4n+3) { --card-color: var(--ps-tri); --card-color-rgb: 68,187,136; }
.project-card:nth-child(4n)   { --card-color: var(--ps-sq);  --card-color-rgb: 204,102,204; }

.project-card { border-left-color: var(--card-color); }

.project-card:hover {
  transform: translateY(-4px);
  border-color: rgba(var(--card-color-rgb), 0.5);
  box-shadow: 0 0 24px rgba(var(--card-color-rgb), 0.2),
              -3px 0 0 var(--card-color);
  background: rgba(var(--card-color-rgb), 0.05);
}

.project-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.project-icon {
  flex-shrink: 0;
  width: 42px; height: 42px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(var(--card-color-rgb), 0.12);
  border: 1px solid rgba(var(--card-color-rgb), 0.3);
  color: var(--card-color);
}
.project-icon svg { width: 20px; height: 20px; }

.project-meta { flex: 1; min-width: 0; }
.project-meta h3 {
  font-size: 0.98rem;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.project-lang {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  padding: 0.12rem 0.5rem;
  border-radius: 100px;
  font-weight: 500;
  margin-top: 2px;
}
.project-lang.java    { background: rgba(249,115,22,0.12);  color: #fb923c; }
.project-lang.go      { background: rgba(0,212,255,0.12);   color: var(--accent); }
.project-lang.php     { background: rgba(167,139,250,0.12); color: #a78bfa; }
.project-lang.ts      { background: rgba(91,142,219,0.12);  color: var(--ps-x); }
.project-lang.js      { background: rgba(251,191,36,0.12);  color: #facc15; }
.project-lang.other   { background: rgba(255,255,255,0.08); color: var(--text-muted); }

.project-gh-link {
  flex-shrink: 0;
  width: 32px; height: 32px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--surface);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: var(--transition);
}
.project-gh-link:hover {
  border-color: var(--card-color);
  color: var(--card-color);
  background: rgba(var(--card-color-rgb), 0.1);
}
.project-gh-link svg { width: 15px; height: 15px; }

.project-card > p { color: var(--text-muted); font-size: 0.88rem; line-height: 1.65; flex: 1; }

.project-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.project-topics {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
}
.project-topics span {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  padding: 0.18rem 0.5rem;
  border-radius: 100px;
  background: rgba(var(--card-color-rgb), 0.08);
  border: 1px solid rgba(var(--card-color-rgb), 0.2);
  color: var(--card-color);
}

.project-stars {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: #fbbf24;
  flex-shrink: 0;
}
.project-stars svg { width: 13px; height: 13px; }

.project-meta-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  justify-content: space-between;
  flex-wrap: wrap;
}

.project-updated {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.03em;
  color: var(--text-muted);
}

.project-state-card {
  min-height: 220px;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.project-state {
  max-width: 26rem;
  color: var(--text-muted);
  font-size: 0.92rem;
}

.project-card.is-loading {
  border-left-color: var(--accent);
}

.project-card.is-error {
  border-left-color: var(--ps-o);
}

.project-card.is-empty {
  border-left-color: var(--ps-tri);
}

/* ── Featured Projects ─────────────────────────────────────── */
.featured-projects-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  margin-bottom: 2rem;
}

.featured-project-card {
  padding: 2rem;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  backdrop-filter: blur(8px);
  transition: all var(--transition);
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.featured-project-card:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(0, 212, 255, 0.3);
  transform: translateY(-6px);
  box-shadow: 0 12px 48px rgba(0, 212, 255, 0.15);
}

.featured-project-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.featured-project-header h3 {
  font-size: 1.4rem;
  font-weight: 700;
  margin: 0;
  color: #ffffff;
}

.featured-project-link {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: rgba(0, 212, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  font-size: 1.2rem;
  transition: all var(--transition);
  text-decoration: none;
}

.featured-project-link:hover {
  border-color: var(--accent);
  background: rgba(0, 212, 255, 0.15);
  transform: translateX(4px);
}

.featured-project-desc {
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--text-muted);
  margin: 0;
  flex: 1;
}

.featured-project-features {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.featured-project-features span {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  padding: 0.35rem 0.8rem;
  border-radius: 100px;
  background: rgba(0, 212, 255, 0.1);
  border: 1px solid rgba(0, 212, 255, 0.2);
  color: rgba(0, 212, 255, 0.9);
  font-weight: 500;
}

.featured-project-meta {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.meta-badge {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  padding: 0.25rem 0.6rem;
  border-radius: 100px;
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.7);
  letter-spacing: 0.02em;
  font-weight: 600;
}

.projects-cta {
  text-align: center;
  margin-top: 3rem;
}

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

@media (max-width: 700px) {
  .featured-projects-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .featured-project-card {
    padding: 1.5rem;
  }

  .featured-project-header h3 {
    font-size: 1.2rem;
  }
}



/* ── About ─────────────────────────────────────────────────── */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.about-text h2 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1.25rem;
}
.about-text p {
  color: var(--text-muted);
  font-size: 0.97rem;
  margin-bottom: 1rem;
  line-height: 1.8;
}
.about-text .btn { margin-top: 0.75rem; }

.about-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.stat-card {
  padding: 1.5rem 1.25rem;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-left: 3px solid transparent;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  transition: var(--transition);
  backdrop-filter: blur(6px);
}

.stat-card:nth-child(4n+1) { --card-color: var(--ps-x);   --card-color-rgb: 91,142,219;  border-left-color: var(--ps-x);   }
.stat-card:nth-child(4n+2) { --card-color: var(--ps-tri);  --card-color-rgb: 68,187,136;  border-left-color: var(--ps-tri); }
.stat-card:nth-child(4n+3) { --card-color: var(--ps-o);   --card-color-rgb: 221,85,85;   border-left-color: var(--ps-o);   }
.stat-card:nth-child(4n)   { --card-color: var(--ps-sq);  --card-color-rgb: 204,102,204; border-left-color: var(--ps-sq);  }

.stat-card:hover {
  transform: translateY(-2px);
  border-color: rgba(var(--card-color-rgb), 0.4);
  box-shadow: 0 0 16px rgba(var(--card-color-rgb), 0.2);
}

.stat-number {
  font-size: 2.1rem;
  font-weight: 800;
  line-height: 1;
  color: var(--card-color);
  text-shadow: 0 0 12px rgba(var(--card-color-rgb), 0.5);
}
.stat-label { font-size: 0.8rem; color: var(--text-muted); line-height: 1.4; }

/* ── Contact ───────────────────────────────────────────────── */
.contact-inner {
  position: relative;
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
  padding: 3.5rem 2.5rem;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-bright);
  overflow: hidden;
  backdrop-filter: blur(10px);
}

.contact-glow {
  position: absolute;
  top: -80px; left: 50%;
  transform: translateX(-50%);
  width: 400px; height: 200px;
  background: radial-gradient(circle, rgba(0, 212, 255, 0.15) 0%, transparent 70%);
  pointer-events: none;
}

.contact-inner h2 {
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  font-weight: 700;
  margin-bottom: 1rem;
}
.contact-inner p {
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.8;
  margin-bottom: 2rem;
}

.contact-links {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.contact-link {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--surface);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
  transition: var(--transition);
}
.contact-link:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-dim); }
.contact-link svg { width: 18px; height: 18px; }

/* ── Footer ────────────────────────────────────────────────── */
footer {
  padding: 2.5rem 0 6rem; /* extra bottom padding for hints bar */
  border-top: 1px solid var(--border);
  background: rgba(0, 0, 10, 0.7);
  backdrop-filter: blur(8px);
  position: relative;
  z-index: 10;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.footer-gh {
  color: #ffffff;
  opacity: 0.88;
  text-shadow: 0 0 8px rgba(255, 255, 255, 0.2);
  transition: color var(--transition), opacity var(--transition), transform var(--transition), text-shadow var(--transition);
}

.footer-gh:hover {
  color: #ffffff;
  opacity: 1;
  transform: translateY(-1px);
  text-shadow: 0 0 14px rgba(255, 255, 255, 0.35);
}

/* ── Footer hints bar (fixed) ───────────────────────────────── */
#footer-hints {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 40px 14px;
  background: rgba(0, 0, 10, 0.85);
  border-top: 1px solid rgba(0, 100, 200, 0.18);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  pointer-events: none;
}

.hint-group {
  display: flex;
  gap: 18px;
}

.hint {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 0.58rem;
  color: var(--text-muted);
  letter-spacing: 0.1em;
}

.hint-copy {
  letter-spacing: 0.06em;
  opacity: 0.9;
}

.btn-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  font-size: 0.55rem;
  font-weight: bold;
  flex-shrink: 0;
}

.btn-x   { background: var(--ps-x);   color: #fff; }
.btn-o   { background: var(--ps-o);   color: #fff; }
.btn-tri { background: var(--ps-tri); color: #fff; font-size: 0.45rem; }
.btn-sq  { background: var(--ps-sq);  color: #fff; font-size: 0.6rem; border-radius: 2px; }

/* ── D-pad indicator (fixed, bottom-right) ─────────────────── */
#move-indicator {
  position: fixed;
  bottom: 64px;
  right: 36px;
  z-index: 20;
  display: grid;
  grid-template-columns: repeat(3, 26px);
  grid-template-rows: repeat(3, 26px);
  gap: 3px;
  opacity: 0.30;
  pointer-events: none;
}

.dpad-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 50, 100, 0.4);
  border: 1px solid rgba(0, 100, 200, 0.3);
  border-radius: 3px;
  font-size: 0.6rem;
  color: var(--text-muted);
  transition: all 0.1s;
}

.dpad-btn.pressed {
  background: rgba(0, 150, 255, 0.3);
  border-color: var(--accent);
  color: var(--accent);
  box-shadow: 0 0 6px var(--accent);
}

.dpad-center { background: rgba(0, 50, 100, 0.2); border-color: transparent; }
.dpad-empty  { background: transparent; border: none; }

/* ── Scroll animations ─────────────────────────────────────── */
.fade-up {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* stagger siblings */
.services-grid .fade-up:nth-child(2),
.projects-grid .fade-up:nth-child(2),
.why-points    .fade-up:nth-child(2),
.about-stats   .fade-up:nth-child(2) { transition-delay: 0.10s; }
.services-grid .fade-up:nth-child(3),
.projects-grid .fade-up:nth-child(3),
.why-points    .fade-up:nth-child(3),
.about-stats   .fade-up:nth-child(3) { transition-delay: 0.18s; }
.projects-grid .fade-up:nth-child(4),
.why-points    .fade-up:nth-child(4),
.about-stats   .fade-up:nth-child(4) { transition-delay: 0.26s; }

/* Section label colors rotating through PS button colors */
#services .section-label  { color: var(--ps-x); }
#why-us .section-label    { color: var(--accent); }
#projects .section-label  { color: var(--ps-tri); }
#about .section-label     { color: var(--ps-o); }
#contact .section-label   { color: var(--ps-sq); }

/* ── Responsive ────────────────────────────────────────────── */
@media (max-width: 900px) {
  .about-grid { grid-template-columns: 1fr; gap: 3rem; }
  .why-wrap { grid-template-columns: 1fr; gap: 1.4rem; }
  .why-intro { position: static; }
  .xmb-cats { gap: 0; }
  .cat-item { padding: 6px 16px; }
}

@media (max-width: 700px) {
  .xmb-cats {
    display: none;
    flex-direction: column;
    position: fixed;
    inset: 0;
    top: 64px;
    background: rgba(0, 0, 16, 0.96);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    justify-content: center;
    align-items: center;
    gap: 2rem;
    z-index: 99;
  }
  .xmb-cats.open {
    display: flex;
  }
  .xmb-cats.open .cat-item {
    flex-direction: row;
    gap: 1rem;
    padding: 1rem 2rem;
    border-bottom: none;
    border-left: 2px solid transparent;
    font-size: 1.2rem;
  }
  .xmb-cats.open .cat-item.active {
    border-left-color: var(--accent);
    border-bottom-color: transparent;
  }
  .xmb-cats.open .cat-label { font-size: 0.9rem; letter-spacing: 0.1em; }
  .xmb-cats.open .cat-icon { font-size: 1.8rem; }
  .nav-toggle { display: flex; }
  #nav-clock { display: none; }
  .section { padding: 5rem 0; }
  .about-stats { grid-template-columns: 1fr 1fr; }
  .contact-inner { padding: 2.5rem 1.5rem; }
  #footer-hints { padding: 8px 16px 12px; }
  #move-indicator { display: none; }
}

@media (max-width: 480px) {
  .hero-actions { flex-direction: column; align-items: center; }
  .about-stats { grid-template-columns: 1fr; }
  .services-grid, .projects-grid { grid-template-columns: 1fr; }
  .why-point { grid-template-columns: 1fr; gap: 0.4rem; }
  #footer-hints .hint-group:first-child { display: none; }
}
