/* ============================================================
   Set Universe — static site styles (Azure Static Web Apps Free)
   Pure CSS, no build step. Two accents swap via body[data-area].
   ============================================================ */

:root {
  --bg: #0a0b10;
  --bg-elevated: #14161f;
  --bg-card: #171923;
  --border: #262a37;
  --border-soft: #1e2029;
  --text: #f4f5f7;
  --text-muted: #9aa1b2;
  --text-dim: #6b7180;

  /* accent is overridden per practice */
  --accent: #38bdf8;
  --accent-soft: rgba(56, 189, 248, 0.14);
  --accent-glow: rgba(56, 189, 248, 0.35);
  --on-accent: #06121b;

  --radius: 16px;
  --radius-sm: 10px;
  --max-width: 1120px;
  --font-sans: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-display: "Space Grotesk", "Inter", "Segoe UI", system-ui, sans-serif;
}

/* Identity & Access → Azure blue/cyan */
body[data-area="identity"] {
  --accent: #38bdf8;
  --accent-soft: rgba(56, 189, 248, 0.14);
  --accent-glow: rgba(56, 189, 248, 0.40);
  --on-accent: #04121b;
}

/* Games → vibrant green */
body[data-area="games"] {
  --accent: #3ddc84;
  --accent-soft: rgba(61, 220, 132, 0.14);
  --accent-glow: rgba(61, 220, 132, 0.38);
  --on-accent: #06130b;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

html, body { margin: 0; padding: 0; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* ambient background glow */
body::before {
  content: "";
  position: fixed;
  top: -20%;
  left: 50%;
  width: 900px;
  height: 900px;
  transform: translateX(-50%);
  background: radial-gradient(circle at center, var(--accent-glow) 0%, transparent 62%);
  opacity: 0.5;
  pointer-events: none;
  z-index: 0;
  filter: blur(20px);
}

a { color: inherit; }

/* rising stars background */
#stars-canvas {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.7;
}

.wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 28px;
  position: relative;
  z-index: 1;
}

/* ---------- header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(14px);
  background: rgba(10, 11, 16, 0.72);
  border-bottom: 1px solid var(--border-soft);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 28px;
}

.brand {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  color: var(--text);
}

.brand-logo {
  height: 52px;
  width: auto;
  display: block;
}

.brand:hover .brand-logo { color: var(--accent); }

.main-nav {
  display: flex;
  align-items: center;
  gap: 26px;
}

.main-nav a {
  text-decoration: none;
  color: var(--text-muted);
  font-size: 0.92rem;
  font-weight: 500;
  transition: color 0.15s ease;
}

.main-nav a:hover { color: var(--text); }

.lang-switch select {
  background: var(--bg-elevated);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 7px 10px;
  font-size: 0.82rem;
  font-family: inherit;
  cursor: pointer;
  transition: border-color 0.15s ease;
}

.lang-switch select:hover { border-color: var(--accent); }

/* ---------- area switch ---------- */

.area-switch {
  background: linear-gradient(180deg, var(--bg-elevated), var(--bg));
  border-bottom: 1px solid var(--border-soft);
}

.area-switch-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  padding: 16px 28px;
}

.area-switch-label {
  color: var(--text-dim);
  font-size: 0.82rem;
  letter-spacing: 0.01em;
}

.area-pills {
  display: flex;
  gap: 8px;
  background: var(--bg);
  padding: 5px;
  border-radius: 999px;
  border: 1px solid var(--border);
}

.area-pill {
  text-decoration: none;
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 8px 18px;
  border-radius: 999px;
  transition: color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}

.area-pill:hover { color: var(--text); }

.area-pill.active {
  background: var(--accent);
  color: var(--on-accent);
  box-shadow: 0 4px 18px var(--accent-glow);
}

/* ---------- hero ---------- */

.hero {
  padding: 104px 0 84px;
}

.hero .hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.76rem;
  color: var(--accent);
  font-weight: 700;
  margin: 0 0 20px;
  padding: 7px 14px;
  border: 1px solid var(--accent-soft);
  background: var(--accent-soft);
  border-radius: 999px;
  max-width: max-content;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 6vw, 4.4rem);
  margin: 0 0 20px;
  line-height: 1.03;
  letter-spacing: -0.03em;
  background: linear-gradient(180deg, #ffffff 30%, #b9c0d0 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero p {
  color: var(--text-muted);
  font-size: 1.18rem;
  max-width: 640px;
  margin: 0 0 36px;
}

.hero .hero-headline {
  font-size: clamp(2.1rem, 4.8vw, 3.4rem);
}

.hero .hero-sub {
  color: var(--text);
  font-size: 1.25rem;
  font-weight: 600;
  margin: 0 0 14px;
}

.btn-row {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  padding: 13px 26px;
  border-radius: 999px;
  font-size: 0.96rem;
  font-weight: 600;
  transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.btn-primary {
  background: var(--accent);
  color: var(--on-accent);
  box-shadow: 0 6px 22px var(--accent-glow);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px var(--accent-glow);
}

.btn-secondary {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-secondary:hover {
  transform: translateY(-2px);
  border-color: var(--accent);
}

/* ---------- sections ---------- */

section {
  padding: 68px 0;
  position: relative;
}

section + section { border-top: 1px solid var(--border-soft); }

.section-head { margin-bottom: 34px; }

h2 {
  font-family: var(--font-display);
  font-size: 1.9rem;
  margin: 0 0 10px;
  letter-spacing: -0.02em;
}

.section-subtitle {
  color: var(--text-muted);
  margin: 0;
  font-size: 1.02rem;
}

.about-body {
  max-width: 680px;
  color: var(--text-muted);
  font-size: 1.1rem;
}

/* ---------- skills / expertise ---------- */

.skills-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 14px;
}

.skills-list li {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  font-size: 0.98rem;
  font-weight: 500;
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.skills-list li:hover {
  transform: translateY(-3px);
  border-color: var(--accent);
  background: var(--bg-elevated);
}

.skill-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: var(--radius-sm);
  background: var(--accent-soft);
  color: var(--accent);
}

.skill-icon svg { width: 20px; height: 20px; }

/* ---------- pillar / service cards ---------- */

.cards-grid {
  display: grid;
  gap: 18px;
}

.cards-3 { grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); }
.cards-2 { grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr)); }

.info-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.info-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
  background: var(--bg-elevated);
}

.info-card h3 {
  font-family: var(--font-display);
  margin: 0;
  font-size: 1.12rem;
  letter-spacing: -0.01em;
  line-height: 1.35;
}

.info-card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.94rem;
}

/* ---------- games grid ---------- */

.games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(270px, 100%), 1fr));
  gap: 22px;
}

.game-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.game-card:hover {
  transform: translateY(-5px);
  border-color: var(--accent);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
}

.game-thumb {
  aspect-ratio: 16 / 9;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: flex-start;
  padding: 12px;
  position: relative;
}

.game-thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0) 45%, rgba(0,0,0,0.6) 100%);
}

.game-status {
  position: relative;
  z-index: 1;
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  background: rgba(10, 11, 16, 0.7);
  backdrop-filter: blur(4px);
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid var(--border);
}

.game-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 9px;
  flex: 1;
}

.game-body h3 {
  font-family: var(--font-display);
  margin: 0;
  font-size: 1.15rem;
  letter-spacing: -0.01em;
}

.game-body p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.92rem;
  flex: 1;
}

.game-links {
  display: flex;
  gap: 10px;
  margin-top: 8px;
}

.game-links a {
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--on-accent);
  background: var(--accent);
  padding: 8px 16px;
  border-radius: 999px;
  transition: transform 0.15s ease, box-shadow 0.2s ease;
}

.game-links a:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px var(--accent-glow);
}

.game-links span {
  font-size: 0.86rem;
  color: var(--text-dim);
  padding: 8px 0;
}

/* ---------- contact ---------- */

.contact-list {
  list-style: none;
  margin: 26px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
  gap: 14px;
  max-width: 760px;
}

.contact-list li {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 18px;
  transition: border-color 0.18s ease, transform 0.18s ease;
}

.contact-list li:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}

.contact-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: var(--radius-sm);
  background: var(--accent-soft);
  color: var(--accent);
}

.contact-icon svg { width: 20px; height: 20px; }

.contact-text { display: flex; flex-direction: column; min-width: 0; }

.contact-label {
  color: var(--text-dim);
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.contact-text a {
  color: var(--text);
  text-decoration: none;
  font-size: 0.98rem;
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: color 0.15s ease;
}

.contact-text a:hover { color: var(--accent); }

/* ---------- footer ---------- */

.site-footer {
  border-top: 1px solid var(--border-soft);
  padding: 34px 0;
  color: var(--text-dim);
  font-size: 0.86rem;
}

.site-footer .wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}

.site-footer .brand-mini {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--text-muted);
}

.footer-link {
  margin-left: auto;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.15s ease;
}

.footer-link:hover { color: var(--accent); }

/* ---------- legal / privacy page ---------- */

.legal {
  padding: 72px 0 80px;
}

.legal .wrap { max-width: 780px; }

.legal h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.5vw, 2.8rem);
  letter-spacing: -0.02em;
  margin: 0 0 8px;
}

.legal-updated {
  color: var(--text-dim);
  font-size: 0.88rem;
  margin: 0 0 28px;
}

.legal-intro {
  color: var(--text);
  font-size: 1.12rem;
  margin: 0 0 8px;
}

.legal h2 {
  font-size: 1.2rem;
  margin: 34px 0 8px;
}

.legal p {
  color: var(--text-muted);
  margin: 0 0 6px;
}

.legal-back { margin-top: 40px; }

/* ---------- entrance animation ---------- */

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

.hero > .wrap > *,
section .wrap > * {
  animation: fadeUp 0.6s ease both;
}

.hero-kicker { animation-delay: 0.02s; }
.hero h1 { animation-delay: 0.08s; }
.hero p { animation-delay: 0.14s; }
.hero .btn-row { animation-delay: 0.2s; }

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto; }
}

/* ---------- responsive ---------- */

@media (max-width: 640px) {
  .main-nav { gap: 16px; }
  .main-nav a { display: none; }
  .main-nav .lang-switch { display: block; }
  .hero { padding: 72px 0 60px; }
  .area-switch-inner { flex-direction: column; align-items: flex-start; }
}
