:root {
  --bg: #0b0c10;
  --bg-2: #11131a;
  --text: #e6f1ff;
  --muted: #97a3b6;
  --primary: #7a5cff; /* violet neon */
  --accent: #00ffd1;  /* turquoise neon */
  --danger: #ff3366;
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  background: radial-gradient(1200px 800px at 50% 10%, #121429 0%, var(--bg) 55%, #05060a 100%);
  color: var(--text);
  line-height: 1.5;
}

/* Subtle scanlines overlay */
#scanlines {
  position: fixed; inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(
    to bottom,
    rgba(255,255,255,0.03) 0px,
    rgba(255,255,255,0.03) 1px,
    transparent 2px,
    transparent 3px
  );
  opacity: .25;
  mix-blend-mode: overlay;
  z-index: 2;
}

.container { max-width: 1100px; margin: 0 auto; padding: 0 20px; }

.hero {
  position: relative;
  overflow: hidden;
  padding: 80px 0 60px;
  border-bottom: 1px solid rgba(122,92,255,0.2);
}
.hero__inner { position: relative; z-index: 1; text-align: center; }
.subtitle { margin: 10px 0 6px; color: var(--accent); font-size: 18px; letter-spacing: .5px; }
.tagline { margin: 6px 0 20px; color: var(--muted); }
.cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 14px; }
.contacts { margin-top: 10px; opacity: .9; display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }
.contacts a { color: var(--muted); text-decoration: none; }
.contacts a:hover { color: var(--text); }
.contacts .phone { color: var(--muted); }
.reveal-phone { color: var(--muted); border-bottom: 1px dashed rgba(255,255,255,0.25); cursor: default; }
.reveal-phone--shown { color: var(--text); border-bottom-color: transparent; }
.phone-pop {
  position: fixed; transform: translate(-50%, -110%);
  padding: 6px 10px; border-radius: 8px;
  background: rgba(0,0,0,0.75);
  border: 1px solid rgba(122,92,255,0.4);
  box-shadow: 0 10px 30px rgba(0,0,0,0.35);
  pointer-events: none; z-index: 10;
}

.btn {
  background: linear-gradient(135deg, var(--primary), #4a3ad6);
  color: white; text-decoration: none; border: 1px solid rgba(255,255,255,0.15);
  padding: 10px 16px; border-radius: 10px; font-weight: 700; letter-spacing: .3px;
  box-shadow: 0 8px 30px rgba(122,92,255,0.25);
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 10px 36px rgba(122,92,255,0.35); }
.btn:active { transform: translateY(0); }
.btn--ghost { background: rgba(0,0,0,0.3); color: var(--text); }
.btn--ghost:hover { background: rgba(0,0,0,0.45); }

.glitch { position: relative; font-size: 48px; margin: 0; letter-spacing: 2px; text-transform: uppercase; }
.glitch::before, .glitch::after {
  content: attr(data-text);
  position: absolute; left: 0; top: 0; width: 100%; overflow: hidden;
}
.glitch::before { text-shadow: -2px 0 var(--danger); animation: glitch1 2.2s infinite linear alternate-reverse; }
.glitch::after  { text-shadow:  2px 0 var(--accent); animation: glitch2 2.2s infinite linear alternate-reverse; }
@keyframes glitch1 { 0% { clip-path: inset(0 0 90% 0); } 50% { clip-path: inset(10% 0 30% 0);} 100%{ clip-path: inset(90% 0 0 0);} }
@keyframes glitch2 { 0% { clip-path: inset(90% 0 0 0); } 50% { clip-path: inset(30% 0 10% 0);} 100%{ clip-path: inset(0 0 90% 0);} }

.hero__bg { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.grid3d {
  position: absolute; inset: 40% -10% -30% -10%;
  background:
    linear-gradient(to top, rgba(122,92,255,0.25), rgba(122,92,255,0.02)),
    repeating-linear-gradient(to right, rgba(122,92,255,0.15) 0 1px, transparent 1px 80px),
    repeating-linear-gradient(to top, rgba(122,92,255,0.15) 0 1px, transparent 1px 80px);
  transform: perspective(600px) rotateX(60deg);
  filter: drop-shadow(0 -30px 90px rgba(122,92,255,0.25));
}

.section { padding: 40px 0; }
.section--dark { background: linear-gradient(180deg, var(--bg-2), #0c0e17); border-top: 1px solid rgba(122,92,255,0.15); border-bottom: 1px solid rgba(122,92,255,0.15); }
h3 { margin: 0 0 16px; font-size: 22px; }
.keylist { margin: 8px 0 0; padding: 0 0 0 16px; color: var(--muted); }

.cols { display: grid; grid-template-columns: 1fr; gap: 26px; }
@media (min-width: 860px) { .cols { grid-template-columns: 1fr 1fr; } }
.bullets { margin: 0; padding-left: 18px; color: var(--muted); }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; }

.card {
  position: relative; background: #0b0e1a; border: 1px solid rgba(122,92,255,0.25);
  border-radius: 12px; overflow: hidden; cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.card:hover { transform: translateY(-2px); box-shadow: 0 12px 44px rgba(0,0,0,0.35); border-color: rgba(122,92,255,0.55); }
.card__title { padding: 12px 12px 13px; border-top: 1px solid rgba(122,92,255,0.2); background: rgba(255,255,255,0.02); font-weight: 700; letter-spacing: .2px; }

.crt { position: relative; aspect-ratio: 16 / 9; background: #06070f; }
.crt::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(120% 80% at 50% 0%, rgba(122,92,255,0.28), transparent 55%);
  mix-blend-mode: screen; pointer-events: none;
}
.poster {
  position: absolute; inset: 0; background:
    linear-gradient(135deg, rgba(0,255,209,0.06), rgba(122,92,255,0.07)),
    url('data:image/svg+xml;utf8,\
      <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 800 450">\
        <defs>\
          <linearGradient id="g" x1="0" x2="1">\
            <stop offset="0" stop-color="%2300ffd1" stop-opacity="0.9"/>\
            <stop offset="1" stop-color="%237a5cff" stop-opacity="0.9"/>\
          </linearGradient>\
        </defs>\
        <rect width="100%" height="100%" fill="%23060b18"/>\
        <g fill="url(%23g)" font-family="monospace" font-size="42" opacity="0.6">\
          <text x="50%" y="50%" dominant-baseline="middle" text-anchor="middle">Hover for video ▶</text>\
        </g>\
      </svg>') center/cover no-repeat;
}
.video-holder { position: absolute; inset: 0; opacity: 0; transition: opacity .35s ease; background: black; }
.card:hover .video-holder { opacity: 1; }
.video-holder iframe { width: 100%; height: 100%; border: 0; display: block; }
.video-holder video { width: 100%; height: 100%; display: block; object-fit: contain; object-position: center center; }

/* Overlay controls: fullscreen + link */
.crt { position: relative; }
.controls {
  position: absolute;
  top: 6px;
  right: 6px;
  display: flex;
  gap: 6px;
  z-index: 3;
  opacity: 0;
  transition: opacity .2s ease;
}
.card:hover .controls { opacity: 1; }
.ctrl {
  -webkit-appearance: none;
  appearance: none;
  background: rgba(0,0,0,.55);
  color: #fff;
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 6px;
  width: 32px;
  height: 28px;
  line-height: 26px;
  text-align: center;
  font-size: 16px;
  cursor: pointer;
  text-decoration: none;
}
.ctrl:hover { background: rgba(0,0,0,.75); border-color: rgba(255,255,255,.4); }
.ctrl:active { transform: translateY(1px); }

.timeline { display: grid; gap: 12px; }
.titem { padding: 12px; border: 1px dashed rgba(122,92,255,0.35); border-radius: 10px; background: rgba(122,92,255,0.06); }
.titem__period { color: var(--accent); font-weight: 700; }
.titem__role { margin-top: 4px; font-weight: 700; }
.titem__desc { color: var(--muted); }

.links { margin: 0; padding-left: 18px; }
.links a { color: var(--text); }
.hint { color: var(--muted); margin: -6px 0 16px; font-size: 14px; }

.footer { padding: 20px 0 140px; color: var(--muted); border-top: 1px solid rgba(122,92,255,0.2); }
.footer .container { display: flex; gap: 10px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.footer__cv { color: var(--muted); }
.footer__cv:hover { color: var(--text); }

/* Mini‑game layer (Breakout) */
#arkanoid {
  position: fixed; left: 0; right: 0; bottom: 0;
  height: 55vh; min-height: 200px; max-height: 620px; width: 100vw;
  z-index: 3;
  pointer-events: none; /* does not block page clicks */
  image-rendering: pixelated;
  filter: drop-shadow(0 0 12px rgba(0,255,209,0.25));
}
