/* ============================================================
   riskworkgames.ro — single stylesheet, no frameworks
   ============================================================ */

:root {
  --bg: #14161b;
  --bg-alt: #1b1e26;
  --ink: #e8e6e0;
  --ink-dim: #9a9890;
  --accent: #f2a33c;
  --accent-ink: #17130b;
  --topbar-h: 52px;
  --sidenav-w: 180px;
  font-size: 16px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--topbar-h) + 12px); }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: system-ui, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.6;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

img { max-width: 100%; display: block; }

/* ======================= TOP BAR ======================= */

.topbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--topbar-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  background: rgba(20, 22, 27, 0.92);
  backdrop-filter: blur(6px);
  border-bottom: 2px solid var(--accent);
  z-index: 100;
}

.brand {
  font-weight: 700;
  letter-spacing: 0.5px;
  color: var(--ink);
  font-size: 1.05rem;
}
.brand span { color: var(--accent); }
.brand:hover { text-decoration: none; }

.topbar-links {
  display: flex;
  align-items: center;
  gap: 22px;
}
.topbar-links > a {
  color: var(--ink);
  font-size: 0.92rem;
}
.topbar-links > a:hover { color: var(--accent); text-decoration: none; }

.lang-switch { display: flex; }
.lang-switch button {
  background: none;
  border: 1px solid var(--ink-dim);
  color: var(--ink-dim);
  padding: 3px 10px;
  cursor: pointer;
  font: inherit;
  font-size: 0.8rem;
}
.lang-switch button:first-child { border-right: none; }
.lang-switch button.active {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-ink);
  font-weight: 700;
}

/* ======================= SIDE NAV ======================= */

.sidenav {
  position: fixed;
  top: 50%;
  left: 0;
  transform: translateY(-50%);
  width: var(--sidenav-w);
  display: flex;
  flex-direction: column;
  gap: 2px;
  z-index: 90;
}

.sidenav a {
  color: var(--ink-dim);
  padding: 8px 14px 8px 22px;
  font-size: 0.88rem;
  border-left: 3px solid transparent;
  transition: color 0.15s, border-color 0.15s, background 0.15s;
}
.sidenav a:hover { color: var(--ink); text-decoration: none; }
.sidenav a.active {
  color: var(--accent);
  border-left-color: var(--accent);
  background: linear-gradient(90deg, rgba(242, 163, 60, 0.08), transparent);
}

/* ======================= LAYOUT ======================= */

main { padding-top: var(--topbar-h); }

.section, .hero {
  padding: 80px max(6vw, 32px) 80px calc(var(--sidenav-w) + 4vw);
}

.section-alt { background: var(--bg-alt); }

.section h2 {
  font-size: 1.7rem;
  margin: 0 0 24px;
  padding-left: 14px;
  border-left: 4px solid var(--accent);
  line-height: 1.25;
}

.section-intro { max-width: 640px; color: var(--ink-dim); }

/* ======================= HERO ======================= */

.hero {
  min-height: calc(88vh - var(--topbar-h));
  display: flex;
  flex-direction: column;
  justify-content: center;
  background:
    radial-gradient(ellipse 60% 50% at 75% 30%, rgba(242, 163, 60, 0.09), transparent),
    var(--bg);
}

.hero-kicker {
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 3px;
  font-size: 0.82rem;
  margin: 0 0 10px;
}

.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  margin: 0 0 16px;
  line-height: 1.1;
}

.hero-sub {
  max-width: 560px;
  font-size: 1.1rem;
  color: var(--ink-dim);
  margin: 0 0 32px;
}

.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* ======================= BUTTONS ======================= */

.btn {
  display: inline-block;
  padding: 11px 26px;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.3px;
}
.btn:hover { text-decoration: none; }

.btn-solid {
  background: var(--accent);
  color: var(--accent-ink);
}
.btn-solid:hover { filter: brightness(1.12); }

.btn-ghost {
  border: 2px solid var(--accent);
  color: var(--accent);
  padding: 9px 24px;
}
.btn-ghost:hover { background: rgba(242, 163, 60, 0.12); }

/* ======================= DIELMA SPLIT ======================= */

.split {
  display: flex;
  gap: 48px;
  align-items: flex-start;
  flex-wrap: wrap;
}
.split-text { flex: 1 1 340px; max-width: 560px; }
.split-media { flex: 1 1 320px; }
.split-media img { box-shadow: 12px 12px 0 rgba(242, 163, 60, 0.18); }

.feature-list {
  list-style: none;
  padding: 0;
  margin: 20px 0 28px;
}
.feature-list li {
  padding: 6px 0 6px 26px;
  position: relative;
}
.feature-list li::before {
  content: "▸";
  color: var(--accent);
  position: absolute;
  left: 4px;
}

/* ======================= CAROUSEL ======================= */

.carousel {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 40px 0 8px;
}

.carousel-stage {
  position: relative;
  flex: 1;
  height: 300px;
  perspective: 1100px;
  overflow: hidden;
}

.carousel-item {
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(440px, 62%);
  aspect-ratio: 16 / 9;
  transform: translate(-50%, -50%);
  transition: transform 0.45s ease, opacity 0.45s ease, filter 0.45s ease;
  cursor: pointer;
}
.carousel-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.carousel-item.pos-0 {
  transform: translate(-50%, -50%) scale(1);
  z-index: 3;
  cursor: default;
}
.carousel-item.pos--1 {
  transform: translate(-108%, -50%) scale(0.72) rotateY(38deg);
  opacity: 0.45;
  filter: saturate(0.4);
  z-index: 2;
}
.carousel-item.pos-1 {
  transform: translate(8%, -50%) scale(0.72) rotateY(-38deg);
  opacity: 0.45;
  filter: saturate(0.4);
  z-index: 2;
}
.carousel-item.pos-hidden {
  transform: translate(-50%, -50%) scale(0.4);
  opacity: 0;
  z-index: 1;
  pointer-events: none;
}

.carousel-btn {
  background: none;
  border: none;
  color: var(--accent);
  font-size: 2rem;
  cursor: pointer;
  padding: 10px;
  line-height: 1;
  transition: transform 0.15s;
}
.carousel-btn:hover { transform: scale(1.25); }

.carousel-caption {
  max-width: 620px;
  margin: 0 auto;
  text-align: center;
  min-height: 130px;
  transition: opacity 0.25s;
}
.carousel-caption.fading { opacity: 0; }

.carousel-caption h3 { margin: 10px 0 4px; font-size: 1.25rem; }

.game-status {
  display: inline-block;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  padding: 2px 10px;
  margin-bottom: 8px;
}
.game-status.published { background: rgba(103, 199, 94, 0.16); color: #7ed873; }
.game-status.wip { background: rgba(242, 163, 60, 0.14); color: var(--accent); }

.carousel-caption p { color: var(--ink-dim); margin: 6px 0 12px; }

.progress-track {
  height: 6px;
  background: rgba(255, 255, 255, 0.08);
  max-width: 300px;
  margin: 0 auto 6px;
}
.progress-fill { height: 100%; background: var(--accent); }
.progress-label { font-size: 0.78rem; color: var(--ink-dim); }

.games-footer { text-align: center; margin-top: 28px; }

/* ======================= ABOUT / CV / CONTACT ======================= */

#about p { max-width: 640px; }

.contact-email {
  display: inline-block;
  font-size: clamp(1.2rem, 3vw, 1.8rem);
  font-weight: 700;
  margin: 8px 0 18px;
  border-bottom: 3px solid var(--accent);
  color: var(--ink);
  padding-bottom: 2px;
}
.contact-email:hover { color: var(--accent); text-decoration: none; }

.contact-links { display: flex; gap: 24px; }
.contact-links a { font-weight: 600; }

/* ======================= FOOTER ======================= */

.footer {
  padding: 24px max(6vw, 32px) 24px calc(var(--sidenav-w) + 4vw);
  color: var(--ink-dim);
  font-size: 0.85rem;
  background: var(--bg-alt);
}

/* ======================= RESPONSIVE ======================= */

@media (max-width: 900px) {
  .sidenav { display: none; }
  .section, .hero, .footer {
    padding-left: max(6vw, 24px);
    padding-right: max(6vw, 24px);
  }
  .topbar-email { display: none; }
  .topbar { padding: 0 12px; }
  .brand { font-size: 0.9rem; margin-right: 12px; }
  .topbar-links { gap: 14px; }
  .carousel-stage { height: 220px; }
  .carousel-item { width: 74%; }
}
