/* nurettincoban.github.io — all styles.
   Colours are tokens on :root, redefined for dark mode; the galaxy and the overlay
   read --accent and --dot-far from here, so a theme change reaches the stars too. */

:root {
  --bg: #f6f4f0; --text: #1a1917; --muted: #67635b; --border: #e0dbd1;
  --card: rgba(255,255,255,.88); --accent: #c2603f; --dot-far: #5b4bc4;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #07070a; --text: #eeebe5; --muted: #9a96a0; --border: #26252c;
    --card: rgba(15,14,19,.86); --accent: #ff9a76; --dot-far: #7d6cff;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #07070a; --text: #eeebe5; --muted: #9a96a0; --border: #26252c;
  --card: rgba(15,14,19,.86); --accent: #ff9a76; --dot-far: #7d6cff;
  color-scheme: dark;
}
* { box-sizing: border-box; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 17px/1.6 ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
}
.mono { font-family: ui-monospace, "SF Mono", "Cascadia Code", Menlo, Consolas, monospace; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
.ico { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* ---- the sky: a band at the top on phones, the whole background on wide screens.
   It is the drawing surface; the text sits above it and lets the pointer through
   its empty space, so you can draw between paragraphs and still select words. */
.sky {
  position: absolute; top: 0; left: 0; right: 0; height: 58vh; z-index: 0;
  cursor: crosshair; touch-action: none; user-select: none; -webkit-user-select: none;
}
.sky.off { display: none; }
#bg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; opacity: 0; transition: opacity 1.2s ease; }
#bg.on { opacity: 1; }
.fx { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 4; pointer-events: none; }
.sky::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(to bottom, transparent 70%, var(--bg)); }
/* ---- the dock: fixed at the bottom right, the cue and sound button over a small
   player. On phones it is a strip along the bottom of the screen. */
.dock {
  position: fixed; right: 16px; bottom: 14px; z-index: 6; width: 430px;
  display: grid; gap: 4px; justify-items: end;
}
.hud { display: flex; align-items: center; gap: 6px; opacity: 0; transition: opacity 1s; }
.hud.on { opacity: 1; }
.cue { font-size: 12.5px; letter-spacing: .05em; color: var(--accent); transition: opacity 1.2s; }
.sound {
  width: 44px; height: 44px; display: grid; place-items: center; padding: 0;
  border: 0; border-radius: 50%; background: none; color: var(--text); cursor: pointer;
  transition: color .2s, transform .2s;
}
.sound:hover { color: var(--accent); transform: scale(1.08); }
.sound svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.sound .off, .sound[aria-pressed="false"] .on { display: none; }
.sound[aria-pressed="false"] .off { display: block; }
.sound[aria-pressed="false"] { color: var(--muted); }

main { position: relative; z-index: 2; pointer-events: none; max-width: 600px; margin: 0 auto; padding: calc(58vh + 4px) 16px 140px; }
main :is(a, button, p, h1, h2, li, img, .card, .fact, footer, .meta) { pointer-events: auto; }
body.nosky main { padding-top: 96px; }
.veil { display: none; }

@media (min-width: 1000px) {
  .sky { position: fixed; inset: 0; height: auto; }
  .sky::after { display: none; }
  /* Dim the sky under the text column, so the words never compete with the stars. */
  .veil {
    display: block; position: fixed; inset: 0; z-index: 1; pointer-events: none;
    background: linear-gradient(90deg, color-mix(in srgb, var(--bg) 82%, transparent) 0, color-mix(in srgb, var(--bg) 55%, transparent) 36%, transparent 52%);
  }
  main { margin: 0 0 0 max(48px, 7vw); padding: 96px 0 140px; }
}

/* theme switch: the new theme spreads from the button as a circle (View Transitions) */
::view-transition-old(root), ::view-transition-new(root) { animation: none; mix-blend-mode: normal; }
.theme {
  position: fixed; top: 16px; right: 16px; z-index: 5;
  width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center;
  border: 1px solid var(--border); background: var(--card); color: var(--text); cursor: pointer;
  transition: transform .3s cubic-bezier(.3,1.6,.5,1);
}
.theme:hover { transform: rotate(-20deg) scale(1.08); }
.theme svg { width: 20px; height: 20px; }
.theme .sun { display: none; }
:root[data-theme="dark"] .theme .sun { display: block; }
:root[data-theme="dark"] .theme .moon { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme .sun { display: block; }
  :root:not([data-theme="light"]) .theme .moon { display: none; }
}

/* ---- intro */
.me { display: flex; align-items: center; gap: 20px; margin-bottom: 22px; }
.me img { width: 84px; height: 84px; border-radius: 50%; flex: none; box-shadow: 0 0 0 4px var(--bg), 0 0 0 5px var(--border); }
h1 { font-size: clamp(30px, 6vw, 40px); line-height: 1.1; letter-spacing: -.025em; margin: 0 0 4px; cursor: default; white-space: nowrap; }
.meta { color: var(--muted); font-size: 15px; margin: 0; }
.bio { font-size: clamp(20px, 3.6vw, 24px); line-height: 1.35; margin: 0 0 20px; max-width: 30ch; letter-spacing: -.01em; }
.bio em { font-style: normal; color: var(--accent); }

/* at a glance: one fact per line, each with an icon, scannable in two seconds */
.facts { list-style: none; margin: 0 0 26px; padding: 0; display: grid; gap: 8px; }
.fact { display: flex; align-items: flex-start; gap: 12px; font-size: 15.5px; line-height: 1.45; }
.fact .ico { margin-top: 2px; color: var(--accent); }
.fact b { font-weight: 600; }
.fact span { color: var(--muted); }

.links { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 64px; }
.links a, .links button {
  display: inline-flex; align-items: center; gap: 7px; padding: 7px 15px;
  border: 1px solid var(--border); border-radius: 999px; color: var(--text); font: inherit; font-size: 15px;
  background: var(--card); cursor: pointer; transition: border-color .2s, transform .2s;
}
.links a:hover, .links button:hover { border-color: var(--accent); text-decoration: none; transform: translateY(-2px); }
.links svg { width: 16px; height: 16px; fill: currentColor; }
.links a.cv { background: var(--accent); border-color: var(--accent); color: #fff; font-weight: 600; }
:root[data-theme="dark"] .links a.cv { color: #1a0f0b; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .links a.cv { color: #1a0f0b; } }

/* ---- section titles: icon, title, one line saying what is below */
.sec { margin-top: 60px; content-visibility: auto; contain-intrinsic-size: auto 520px; }
.sec-head { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.sec-ico { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; flex: none; color: var(--accent); background: color-mix(in srgb, var(--accent) 13%, transparent); }
h2 { font-size: 19px; letter-spacing: -.01em; margin: 0; line-height: 1.2; }
.sec-sub { margin: 1px 0 0; font-size: 14px; color: var(--muted); }

.cards { display: grid; gap: 12px; perspective: 900px; }
.card {
  contain: layout paint;
  --rx: 0deg; --ry: 0deg; --mx: 50%; --my: 50%;
  position: relative; display: block; padding: 16px 18px; overflow: hidden;
  background: var(--card); border: 1px solid var(--border); border-radius: 14px; color: var(--text);
  transform: rotateX(var(--rx)) rotateY(var(--ry));
  transition: transform .25s ease, border-color .25s;
}
/* a soft light that follows the pointer across the card */
.card::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .25s;
  background: radial-gradient(260px circle at var(--mx) var(--my), color-mix(in srgb, var(--accent) 14%, transparent), transparent 70%);
}
a.card:hover { border-color: color-mix(in srgb, var(--accent) 45%, var(--border)); text-decoration: none; }
.card:hover::before { opacity: 1; }
.card-head { display: flex; align-items: center; gap: 10px; }
.card-head .ico { color: var(--accent); }
.card-name { font-weight: 650; }
.card-side { margin-left: auto; color: var(--muted); font-size: 13px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.card p { margin: 4px 0 0; color: var(--muted); font-size: 15px; }
.all { display: inline-block; margin-top: 14px; font-size: 15px; }

/* the Ad Astra card in the dock: the full card on wide screens, a strip on phones */
.mini {
  width: 100%; display: grid; grid-template-columns: 120px 1fr; align-items: start; gap: 16px;
  padding: 12px; background: var(--card); border: 1px solid var(--border); border-radius: 14px;
  box-shadow: 0 10px 30px color-mix(in srgb, #000 22%, transparent);
}
.cover { position: relative; width: 120px; aspect-ratio: 1; padding: 0; border: 0; border-radius: 10px; overflow: hidden; cursor: pointer; background: #000; }
.cover img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.36); transition: transform .5s ease; display: block; }
.cover:hover img { transform: scale(1.45); }
.play-icon { position: absolute; inset: 0; display: grid; place-items: center; background: radial-gradient(circle, rgba(0,0,0,.1), rgba(0,0,0,.45)); }
.play-icon svg { width: 38px; height: 38px; fill: #fff; filter: drop-shadow(0 2px 8px rgba(0,0,0,.5)); transition: transform .2s; }
.cover:hover .play-icon svg { transform: scale(1.12); }
.mini-text { min-width: 0; }
.track-label { font-size: 11px; letter-spacing: .04em; color: var(--muted); margin-bottom: 2px; }
.track-title { font-size: 21px; font-weight: 700; letter-spacing: -.01em; line-height: 1.2; }
.track-meta { color: var(--muted); font-size: 14px; margin-bottom: 6px; }
.mini .desc { margin: 0 0 6px; font-size: 14px; line-height: 1.45; color: var(--muted); }
.track-links { margin: 0; font-size: 13.5px; line-height: 1.5; color: var(--muted); }
.mini-link { display: none; width: 36px; height: 36px; place-items: center; border-radius: 50%; color: var(--muted); }
.mini-link:hover { color: var(--accent); }
.mini-link svg { width: 18px; height: 18px; fill: currentColor; }
.player { grid-column: 1 / -1; aspect-ratio: 16 / 9; min-height: 200px; border-radius: 9px; overflow: hidden; }
.player iframe { width: 100%; height: 100%; border: 0; display: block; }
.mini.playing .cover { animation: pulse calc(60s / 122) ease-out infinite; }
@keyframes pulse { 0% { transform: scale(1.05); } 60%, 100% { transform: scale(1); } }
@media (max-width: 999px) {
  .dock { left: 10px; right: 10px; bottom: 10px; width: auto; }
  main { padding-bottom: 180px; }
  .mini { grid-template-columns: 52px 1fr auto; align-items: center; gap: 12px; padding: 8px 10px 8px 8px; }
  .cover { width: 52px; border-radius: 9px; }
  .play-icon svg { width: 22px; height: 22px; }
  .track-title { font-size: 15px; }
  .track-meta { font-size: 12.5px; margin: 0; }
  .track-label, .mini .desc, .track-links { display: none; }
  .mini-link { display: grid; }
}

/* ---- experience: each company card plays a tiny scene of the work done there */
.jobs { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.job { padding: 16px 18px; min-height: 112px; }
.job-text { position: relative; z-index: 1; max-width: 78%; }
.job-head { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.job-co { font-weight: 700; font-size: 17px; }
.job-when { font-size: 12.5px; color: var(--muted); }
.job-role { display: flex; align-items: center; gap: 7px; font-size: 14px; font-weight: 600; margin: 2px 0 4px; }
.job-role .ico { width: 15px; height: 15px; color: var(--accent); }
.job p { margin: 0; font-size: 14.5px; }
.scene {
  position: absolute; right: -4px; top: 50%; width: 44%; max-width: 230px; transform: translateY(-50%);
  color: var(--accent); opacity: .55; pointer-events: none;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 35%); mask-image: linear-gradient(90deg, transparent, #000 35%);
}
@media (max-width: 520px) { .job-text { max-width: none; } .scene { opacity: .22; width: 62%; } }
.scene .ln { fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.scene .thin { stroke-width: .8; opacity: .45; }
.scene .fl { fill: currentColor; }
.scene * { animation-play-state: paused; }
.live .scene * { animation-play-state: running; }
.has-scene { min-height: 108px; }
.has-scene > :not(.scene) { position: relative; z-index: 1; max-width: 76%; }
@media (max-width: 520px) { .has-scene > :not(.scene) { max-width: none; } }
.s-lbl { font: 600 7px ui-monospace, Menlo, Consolas, monospace; fill: currentColor; letter-spacing: .04em; }
/* ai-prd-workflow: an idea travels the pipeline and comes out as checked code */
.s-check { stroke-dasharray: 20; animation: tick 7s linear infinite; }
@keyframes tick { 0%, 88% { stroke-dashoffset: 20; } 95%, 100% { stroke-dashoffset: 0; } }
/* diff2ai: a diff scrolls past while a review band reads it */
.s-scroll { animation: scrollup 7s linear infinite; }
@keyframes scrollup { to { transform: translateY(-96px); } }
.s-scan { fill: currentColor; opacity: .14; animation: scan 3.2s ease-in-out infinite; }
@keyframes scan { 50% { transform: translateY(26px); } }
/* any other repository: lines of code being typed */
.s-type { transform-box: fill-box; transform-origin: left center; animation: type 4s steps(14) infinite; }
@keyframes type { 0% { transform: scaleX(0); } 55%, 100% { transform: scaleX(1); } }
/* Virta: energy flows down the cable and the car's battery fills */
.s-flow { fill: none; stroke: currentColor; stroke-width: 3; stroke-linecap: round; stroke-dasharray: 1.5 9; animation: flow .9s linear infinite; }
@keyframes flow { to { stroke-dashoffset: -10.5; } }
.s-charge { transform-box: fill-box; transform-origin: left center; animation: charge 4.5s ease-in-out infinite; }
@keyframes charge { 0% { transform: scaleX(.06); } 80%, 100% { transform: scaleX(1); } }
.s-blink { animation: blink 1.4s steps(2, jump-none) infinite; }
@keyframes blink { 50% { opacity: .25; } }
/* Devolon: order tickets slide into the kitchen; steam rises */
.s-ticket { animation: ticket 4.2s linear infinite; opacity: 0; }
@keyframes ticket { 0% { transform: translateX(0); opacity: 0; } 12%, 78% { opacity: 1; } 100% { transform: translateX(96px); opacity: 0; } }
.s-steam { animation: steam 2.4s ease-in-out infinite; opacity: 0; }
@keyframes steam { 0% { transform: translateY(4px); opacity: 0; } 40% { opacity: .9; } 100% { transform: translateY(-8px); opacity: 0; } }
/* Safee: vehicles drive their routes; a ping marks the one being tracked */
.s-car { fill: none; stroke: currentColor; stroke-width: 6; stroke-linecap: round; stroke-dasharray: .01 100; animation: drive 7s linear infinite; }
@keyframes drive { to { stroke-dashoffset: -100; } }
.s-ping { transform-box: fill-box; transform-origin: center; animation: ping 2s ease-out infinite; }
@keyframes ping { 0% { transform: scale(.3); opacity: .9; } 100% { transform: scale(2.4); opacity: 0; } }
/* Metanet: the sun turns, the panel's cells light up one after another */
.s-sun { transform-box: fill-box; transform-origin: center; animation: spin 14s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.s-cell { animation: cell 3.2s ease-in-out infinite; opacity: .15; }
@keyframes cell { 0%, 100% { opacity: .15; } 30% { opacity: .85; } }

footer { margin-top: 72px; color: var(--muted); font-size: 14px; }

/* entrance */
.rise { opacity: 0; transform: translateY(12px); animation: rise .8s cubic-bezier(.2,.7,.2,1) forwards; animation-delay: calc(var(--i, 0) * 70ms + 250ms); }
@keyframes rise { to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .rise { animation: none; opacity: 1; transform: none; }
  .card, .theme, .links a, .links button { transition: none; }
  .mini.playing .cover { animation: none; }
  .scene * { animation: none !important; }
  .s-ticket, .s-steam { opacity: 1; }
}
