﻿/* ==========================================================================
   Bytem Bilişim — stil dosyası
   Renk tonu (--hue) sayfaya göre JS tarafından hafifçe değiştirilir;
   böylece vurgu renkleri arka planla birlikte akar.
   ========================================================================== */

:root {
  --hue: 198;
  --bg-top: #182a4e;
  --bg-bottom: #0f1b35;
  --text: #eaf0fb;
  --muted: #9fb0cc;
  --line: rgba(160, 190, 235, .16);
  --accent: hsl(var(--hue) 92% 68%);
  --accent-a: hsl(var(--hue) 92% 68% / .16);
  --accent-b: hsl(var(--hue) 92% 68% / .38);
  --radius: 16px;
  --pad: clamp(20px, 4vw, 56px);
  --ease: cubic-bezier(.22, 1, .36, 1);
  --font: 'Manrope', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Consolas, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; color: inherit; }

html { -webkit-text-size-adjust: 100%; }
html.menu-open { overflow: hidden; }

body {
  font-family: var(--font);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  background:
    radial-gradient(1100px 720px at 76% 8%, hsl(var(--hue) 55% 24% / .55), transparent 68%),
    linear-gradient(165deg, var(--bg-top) 0%, var(--bg-bottom) 100%);
  background-attachment: fixed;
  background-color: var(--bg-bottom);
}

::selection { background: var(--accent-b); color: #fff; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

/* --------------------------------------------------------------------------
   Arka plan katmanları
   -------------------------------------------------------------------------- */
#bg { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; display: block; }
.vignette {
  position: fixed; inset: 0; z-index: 1; pointer-events: none;
  background: radial-gradient(ellipse at 50% 45%, transparent 45%, rgba(10, 18, 36, .5) 100%);
}
#view, .site-header, .pager { position: relative; z-index: 2; }

/* --------------------------------------------------------------------------
   Üst menü
   -------------------------------------------------------------------------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px var(--pad);
}
.site-header::before {
  content: ''; position: absolute; inset: 0 0 -24px; z-index: -1; pointer-events: none;
  background: linear-gradient(rgba(16, 27, 50, .8), rgba(16, 27, 50, 0));
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  -webkit-mask-image: linear-gradient(#000 55%, transparent);
          mask-image: linear-gradient(#000 55%, transparent);
}

.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.28rem; letter-spacing: -.02em; }
.brand-mark { width: 60px; height: 60px; object-fit: contain; transition: transform .4s var(--ease); }
.brand:hover .brand-mark { transform: rotate(8deg) scale(1.06); }

.nav {
  position: relative; display: flex; gap: 2px; padding: 5px;
  border: 1px solid var(--line); border-radius: 999px;
  background: rgba(20, 33, 62, .5);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
}
.nav a {
  position: relative; z-index: 1; padding: 9px 17px; border-radius: 999px;
  font-size: .9rem; font-weight: 600; color: var(--muted); transition: color .3s;
}
.nav a:hover, .nav a[aria-current="page"] { color: var(--text); }
.nav-pill {
  position: absolute; top: 5px; bottom: 5px; left: 0; width: 0; border-radius: 999px;
  background: var(--accent-a); border: 1px solid var(--accent-b);
  transition: transform .6s var(--ease), width .6s var(--ease);
}

.menu-btn { display: none; }

/* Sağ kenar sayfa göstergesi */
.pager {
  position: fixed; right: clamp(14px, 2vw, 30px); top: 50%; transform: translateY(-50%); z-index: 40;
  display: flex; flex-direction: column; gap: 6px;
}
.pager a { position: relative; display: block; width: 22px; height: 22px; }
.pager a::before {
  content: ''; position: absolute; left: 50%; top: 50%; width: 7px; height: 7px; margin: -3.5px 0 0 -3.5px;
  border-radius: 50%; border: 1px solid hsl(var(--hue) 40% 78% / .55);
  transition: transform .4s var(--ease), background .3s, border-color .3s, box-shadow .3s;
}
.pager a:hover::before { border-color: var(--accent); }
.pager a[aria-current="page"]::before {
  background: var(--accent); border-color: var(--accent); transform: scale(1.5);
  box-shadow: 0 0 14px hsl(var(--hue) 92% 68% / .8);
}
.pager a::after {
  content: attr(data-label); position: absolute; right: 30px; top: 50%; transform: translate(6px, -50%);
  font: 500 .72rem var(--mono); letter-spacing: .1em; text-transform: uppercase; white-space: nowrap;
  color: var(--text); opacity: 0; pointer-events: none; transition: opacity .3s, transform .3s var(--ease);
}
.pager a:hover::after { opacity: 1; transform: translate(0, -50%); }

/* --------------------------------------------------------------------------
   Sayfa iskeleti
   -------------------------------------------------------------------------- */
#view { min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; }
#view.leaving { opacity: 0; transform: translateY(calc(var(--dir, 1) * -34px)); transition: opacity .42s ease, transform .6s var(--ease); }
#view.no-anim { transition: none !important; }

.page { display: none; flex: 1; flex-direction: column; }
.page.active { display: flex; }
.container { width: min(100%, 1240px); margin-inline: auto; padding-inline: var(--pad); }
.page > .container { padding-top: clamp(112px, 16vh, 150px); padding-bottom: 70px; }
.page-home > .container { margin-block: auto; }

/* Tipografi */
.eyebrow {
  display: inline-flex; align-items: center; gap: 12px; margin-bottom: 22px;
  font: 500 .78rem var(--mono); letter-spacing: .18em; text-transform: uppercase; color: var(--accent);
}
.eyebrow .dot { position: relative; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.eyebrow .dot::after {
  content: ''; position: absolute; inset: -5px; border-radius: 50%; border: 1px solid var(--accent);
  animation: ping 2.4s ease-out infinite;
}
@keyframes ping { 0% { transform: scale(.4); opacity: .9; } 100% { transform: scale(1.5); opacity: 0; } }
.eyebrow .idx { color: var(--muted); }
.eyebrow .idx::after { content: ''; display: inline-block; width: 34px; height: 1px; margin-left: 12px; vertical-align: middle; background: var(--accent-b); }

h1, h2, h3 { font-weight: 800; letter-spacing: -.03em; line-height: 1.08; }
h1 { font-size: clamp(2.4rem, 5vw, 4.3rem); max-width: 15em; }
h2 { font-size: clamp(2rem, 3.8vw, 3.2rem); max-width: 16em; }
h3 { font-size: 1.15rem; letter-spacing: -.01em; }
h1 em { font-style: normal; color: var(--accent); }
h1:focus, h2:focus { outline: none; }
.lead { max-width: 34em; margin-top: 22px; font-size: clamp(1rem, 1.25vw, 1.14rem); color: var(--muted); }
.hero { max-width: 760px; margin-left: max(0px, calc((100% - 1240px) / 2)); }
.mono { font-family: var(--mono); }

/* Sözcük sözcük görünme (başlıklar) */
.w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .14em; margin-bottom: -.14em; }
.w > span { display: inline-block; }
.rs .w > span {
  transform: translateY(108%);
  transition: transform 1s var(--ease);
  transition-delay: calc(var(--i, 0) * 80ms + var(--wi, 0) * 55ms + 220ms);
}
.rs.on .w > span { transform: none; }

/* Blok görünme */
.rv {
  opacity: 0; transform: translateY(26px); filter: blur(6px);
  transition: opacity .9s var(--ease), transform .9s var(--ease), filter .9s var(--ease);
  transition-delay: calc(var(--i, 0) * 80ms + 260ms);
}
.rv.on { opacity: 1; transform: none; filter: none; }

/* --------------------------------------------------------------------------
   Butonlar & etiketler
   -------------------------------------------------------------------------- */
.actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.btn {
  display: inline-flex; align-items: center; gap: 10px; padding: 14px 26px; border-radius: 999px;
  font-weight: 700; font-size: .95rem; cursor: pointer; border: 1px solid transparent;
  transition: transform .35s var(--ease), background .3s, border-color .3s, box-shadow .3s;
}
.btn svg { width: 18px; height: 18px; transition: transform .35s var(--ease); }
.btn:hover svg { transform: translateX(4px); }
.btn-primary { background: var(--accent); color: #07111f; box-shadow: 0 10px 30px -10px hsl(var(--hue) 92% 60% / .6); }
.btn-primary:hover { box-shadow: 0 14px 40px -8px hsl(var(--hue) 92% 60% / .8); }
.btn-ghost { background: rgba(255, 255, 255, .03); border-color: var(--line); color: var(--text); }
.btn-ghost:hover { border-color: var(--accent-b); background: var(--accent-a); }

.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tags li, .values li, .stack li {
  padding: 4px 11px; border-radius: 999px; border: 1px solid var(--line);
  font: 500 .72rem var(--mono); letter-spacing: .04em; color: var(--muted); background: rgba(255, 255, 255, .02);
}

.stack { display: flex; align-items: center; flex-wrap: wrap; gap: 14px 18px; margin-top: 54px; padding-top: 24px; border-top: 1px solid var(--line); }
.stack-label { font: 500 .72rem var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.stack ul { display: flex; flex-wrap: wrap; gap: 8px; }

/* --------------------------------------------------------------------------
   Hizmetler
   -------------------------------------------------------------------------- */
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: clamp(30px, 6vh, 60px); }
.card {
  position: relative; display: flex; flex-direction: column; gap: 14px; padding: 28px 24px 26px;
  border-radius: var(--radius); border: 1px solid var(--line); overflow: hidden;
  background: linear-gradient(180deg, rgba(32, 50, 88, .55), rgba(22, 36, 66, .45));
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  transition: transform .5s var(--ease), border-color .4s;
}
.card::before {
  content: ''; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .4s;
  background: radial-gradient(340px circle at var(--mx, 50%) var(--my, 0%), hsl(var(--hue) 92% 68% / .17), transparent 62%);
}
.card:hover { transform: translateY(-6px); border-color: var(--accent-b); }
.card:hover::before { opacity: 1; }
.card > * { position: relative; }
.card-idx { position: absolute; top: 22px; right: 22px; font: 500 .74rem var(--mono); color: var(--muted); }
.icon { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 12px; color: var(--accent); background: var(--accent-a); border: 1px solid var(--accent-b); }
.icon svg { width: 24px; height: 24px; }
.card p { color: var(--muted); font-size: .95rem; flex: 1; }

/* --------------------------------------------------------------------------
   Projeler
   -------------------------------------------------------------------------- */
.work-list { margin-top: clamp(28px, 5vh, 52px); border-top: 1px solid var(--line); }
.work {
  position: relative; display: grid; grid-template-columns: 56px 1fr auto; gap: 22px; align-items: center;
  padding: 28px 14px; border-bottom: 1px solid var(--line);
  transition: background .5s, padding .6s var(--ease);
}
.work::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px; background: var(--accent);
  transform: scaleX(0); transform-origin: left; transition: transform .7s var(--ease);
}
.work:hover { background: linear-gradient(90deg, hsl(var(--hue) 92% 68% / .08), transparent 80%); padding-left: 26px; }
.work:hover::after { transform: scaleX(1); }
.work-idx { font: 500 .8rem var(--mono); color: var(--muted); }
.work-main p { margin-top: 6px; color: var(--muted); font-size: .95rem; max-width: 36em; }
.work h3 { font-size: clamp(1.2rem, 2vw, 1.6rem); }

/* --------------------------------------------------------------------------
   Hakkımızda
   -------------------------------------------------------------------------- */
.split { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(28px, 6vw, 90px); align-items: end; }
.about-text .lead { margin-top: 0; }
.values { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.values li { padding: 7px 16px; font-size: .78rem; color: var(--text); border-color: var(--accent-b); background: var(--accent-a); }

.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; margin-top: clamp(48px, 9vh, 88px); }
.step { position: relative; padding-top: 38px; }
.step::before { content: ''; position: absolute; top: 8px; left: 0; right: -26px; height: 1px; background: linear-gradient(90deg, var(--accent-b), var(--line)); }
.step:last-child::before { right: 0; background: linear-gradient(90deg, var(--accent-b), transparent); }
.step::after {
  content: ''; position: absolute; top: 1px; left: 0; width: 15px; height: 15px; border-radius: 50%;
  background: var(--bg-bottom); border: 2px solid var(--accent); box-shadow: 0 0 0 6px var(--accent-a);
}
.step-n { display: block; margin-bottom: 8px; font: 500 .76rem var(--mono); letter-spacing: .14em; color: var(--accent); }
.step p { margin-top: 8px; color: var(--muted); font-size: .94rem; max-width: 22em; }

/* --------------------------------------------------------------------------
   İletişim
   -------------------------------------------------------------------------- */
.contact { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 7vw, 110px); align-items: start; }
.contact-cards { display: grid; gap: 18px; }
.contact-card { gap: 6px; padding: 26px 28px; }
.contact-card .icon { margin-bottom: 10px; }
.contact-label { font: 500 .72rem var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.contact-value { font-size: clamp(1.15rem, 2vw, 1.5rem); font-weight: 700; overflow-wrap: anywhere; }

/* --------------------------------------------------------------------------
   Alt bilgi
   -------------------------------------------------------------------------- */
.site-footer { padding: 26px 0 30px; border-top: 1px solid var(--line); color: var(--muted); font-size: .84rem; }
.site-footer .container { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 20px; }
.site-footer .mono { font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; }

/* --------------------------------------------------------------------------
   Sayfa geçiş katmanı
   -------------------------------------------------------------------------- */
.transition { position: fixed; inset: 0; z-index: 100; display: grid; grid-template-columns: repeat(5, 1fr); pointer-events: none; }
.transition i {
  display: block; transform: scaleY(0); will-change: transform;
  background: rgba(14, 24, 46, .8);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  box-shadow: inset 1px 0 0 hsl(var(--hue) 92% 68% / .1);
}
.transition.covered { pointer-events: auto; }
.transition.covered i { transform: scaleY(1); }
.t-label {
  position: fixed; inset: 0; z-index: 101; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 10px; opacity: 0; pointer-events: none;
}
.t-label .n { font: 500 .8rem var(--mono); letter-spacing: .24em; color: var(--accent); }
.t-label .t { font-size: clamp(1.8rem, 4.4vw, 3rem); font-weight: 800; letter-spacing: -.03em; }

/* --------------------------------------------------------------------------
   İmleç halkası
   -------------------------------------------------------------------------- */
.cursor-ring {
  position: fixed; left: 0; top: 0; z-index: 120; width: 34px; height: 34px; margin: -17px 0 0 -17px;
  border-radius: 50%; border: 1px solid hsl(var(--hue) 92% 72% / .55); pointer-events: none; opacity: 0;
  transition: width .35s var(--ease), height .35s var(--ease), margin .35s var(--ease), background .3s, opacity .3s;
  will-change: transform;
}
.cursor-ring.visible { opacity: 1; }
.cursor-ring.hover { width: 58px; height: 58px; margin: -29px 0 0 -29px; background: var(--accent-a); }
@media (hover: none), (pointer: coarse) { .cursor-ring { display: none; } }

/* --------------------------------------------------------------------------
   Duyarlı tasarım
   -------------------------------------------------------------------------- */
@media (max-width: 1100px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); row-gap: 44px; }
  .step:nth-child(2)::before { background: linear-gradient(90deg, var(--accent-b), transparent); right: 0; }
}
@media (max-width: 1000px) { .pager { display: none; } }

@media (max-width: 860px) {
  .menu-btn {
    position: relative; z-index: 60; display: grid; place-content: center; gap: 6px; width: 44px; height: 44px;
    border: 1px solid var(--line); border-radius: 50%; background: rgba(20, 33, 62, .5); cursor: pointer;
  }
  .menu-btn span { display: block; width: 18px; height: 1.5px; background: var(--text); transition: transform .4s var(--ease); }
  .menu-open .menu-btn span:first-child { transform: translateY(3.75px) rotate(45deg); }
  .menu-open .menu-btn span:last-child { transform: translateY(-3.75px) rotate(-45deg); }

  .nav {
    position: fixed; inset: 0; z-index: 55; flex-direction: column; justify-content: center; gap: 6px;
    padding: 90px var(--pad) 40px; border: 0; border-radius: 0; background: rgba(12, 21, 40, .95);
    opacity: 0; visibility: hidden; transition: opacity .4s, visibility .4s;
  }
  .menu-open .nav { opacity: 1; visibility: visible; }
  .nav-pill { display: none; }
  .nav a { padding: 10px 0; font-size: 1.9rem; font-weight: 700; letter-spacing: -.02em; border-radius: 0; }
  .nav a[aria-current="page"] { color: var(--accent); }

  .split, .contact { grid-template-columns: 1fr; }
  .work { grid-template-columns: 40px 1fr; }
  .work .tags { grid-column: 2 / 3; grid-row: 2; }
}
@media (max-width: 640px) {
  .cards { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .step::before { right: 0 !important; }
  .work:hover { padding-left: 14px; }
  .stack { margin-top: 40px; }
}

@media (prefers-reduced-motion: reduce) {
  .rv { transform: none; filter: none; transition: opacity .5s; }
  .rs .w > span { transform: none; }
  .eyebrow .dot::after { animation: none; }
  #view.leaving { transform: none; }
}
