/* İzzet Kadir Karataş — portfolyo
   İlke: zemin nötr ve sessiz, rengi ekran görüntüleri taşır. Tek vurgulu an: dönen galeri. */

@font-face {
  font-family: 'Geist'; font-style: normal; font-weight: 300 800; font-display: swap;
  src: url(/p/fonts/geist-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Geist'; font-style: normal; font-weight: 300 800; font-display: swap;
  src: url(/p/fonts/geist-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --zemin: #f6f6f7;
  --yuzey: #ffffff;
  --metin: #0e0e11;
  --ikincil: #5b5b66;
  --cizgi: #e3e3e8;
  --odak: #3d63ff;
  --golge: 0 1px 2px rgba(14, 14, 17, .06), 0 18px 40px -18px rgba(14, 14, 17, .28);
  --font: 'Geist', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --olcu: min(1240px, 100% - 32px);
  --yavas: cubic-bezier(.16, 1, .3, 1);
  --kose: 18px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --zemin: #0a0a0c; --yuzey: #131317; --metin: #f2f2f4; --ikincil: #a0a0ab; --cizgi: #26262d; --odak: #7d98ff;
    --golge: 0 1px 2px rgba(0, 0, 0, .4), 0 18px 40px -18px rgba(0, 0, 0, .8);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --zemin: #0a0a0c; --yuzey: #131317; --metin: #f2f2f4; --ikincil: #a0a0ab; --cizgi: #26262d; --odak: #7d98ff;
  --golge: 0 1px 2px rgba(0, 0, 0, .4), 0 18px 40px -18px rgba(0, 0, 0, .8);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 72px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--zemin); color: var(--metin); font: 400 1rem/1.6 var(--font); -webkit-font-smoothing: antialiased; overflow-x: clip; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .2em; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--odak); outline-offset: 3px; border-radius: 8px; }
.kap { width: var(--olcu); margin-inline: auto; }
.atla { position: absolute; left: 16px; top: -64px; z-index: 60; background: var(--metin); color: var(--zemin); padding: 10px 16px; border-radius: 10px; text-decoration: none; }
.atla:focus { top: 12px; }
.ok path, .isik-btn path { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ── Üst bar ─────────────────────────────────────────── */
.ust {
  position: sticky; top: 0; z-index: 40;
  background: color-mix(in srgb, var(--zemin) 80%, transparent);
  backdrop-filter: saturate(1.4) blur(16px); -webkit-backdrop-filter: saturate(1.4) blur(16px);
  border-bottom: 1px solid transparent; transition: border-color .3s;
}
.ust.kaydi { border-bottom-color: var(--cizgi); }
.ust .kap { display: flex; align-items: center; gap: 4px; height: 64px; }
.ad { font-weight: 600; letter-spacing: -.01em; text-decoration: none; margin-right: auto; padding: 10px 0; }
.ust nav { display: flex; gap: 2px; }
.ust nav a, .dil {
  min-height: 44px; display: inline-flex; align-items: center; padding: 0 14px; border-radius: 999px;
  color: var(--ikincil); text-decoration: none; font: 500 .9375rem var(--font); transition: color .2s, background .2s;
}
.ust nav a:hover, .dil:hover { color: var(--metin); background: color-mix(in srgb, var(--metin) 6%, transparent); }
.dil { background: none; border: 0; cursor: pointer; }
@media (max-width: 640px) { .ust nav { display: none; } }

/* ── Giriş ───────────────────────────────────────────── */
.giris { position: relative; padding-top: clamp(56px, 9vw, 112px); isolation: isolate; }
#doku {
  position: absolute; inset: 0 0 auto; width: 100%; height: 70vh; z-index: -1; pointer-events: none;
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 30%, #000 25%, transparent 72%);
          mask-image: radial-gradient(ellipse 80% 70% at 50% 30%, #000 25%, transparent 72%);
}
.giris h1 { margin: 0; font-weight: 650; letter-spacing: -.05em; line-height: .86; font-size: clamp(4.5rem, 17vw, 14rem); margin-left: -.04em; }
.altbaslik { margin: clamp(12px, 1.6vw, 20px) 0 0; font-size: clamp(1.375rem, 2.8vw, 2.25rem); font-weight: 500; letter-spacing: -.025em; line-height: 1.1; }
.giris-alt { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 24px 48px; margin-top: clamp(24px, 3vw, 40px); }
.giris-alt p { margin: 0; font-size: clamp(1.125rem, 1.8vw, 1.5rem); line-height: 1.4; color: var(--ikincil); max-width: 30ch; letter-spacing: -.01em; }
.olgular { display: flex; margin: 0; }
.olgular div { padding: 0 clamp(16px, 2.4vw, 28px); border-left: 1px solid var(--cizgi); }
.olgular div:first-child { padding-left: 0; border-left: 0; }
.olgular dt { font-size: .8125rem; color: var(--ikincil); }
.olgular dd { margin: 2px 0 0; font-size: 1.375rem; font-weight: 600; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }

/* ── Dönen galeri (silindir) ─────────────────────────── */
.halka-sahne {
  --kg: clamp(132px, 14vw, 208px);
  --ky: calc(var(--kg) * 1170 / 540);
  position: relative; height: calc(var(--ky) + 150px); margin-top: clamp(32px, 5vw, 56px);
  perspective: 2400px; overflow: hidden; cursor: grab; touch-action: pan-y; user-select: none; -webkit-user-select: none;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}
.halka-sahne.surukleniyor { cursor: grabbing; }
.halka {
  position: absolute; left: 50%; top: 104px; width: var(--kg); height: var(--ky); margin-left: calc(var(--kg) / -2);
  transform-style: preserve-3d; will-change: transform;
}
.halka-kart {
  position: absolute; inset: 0; border-radius: var(--kose); overflow: hidden; background: #111;
  backface-visibility: hidden; -webkit-backface-visibility: hidden;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .06), var(--golge);
}
.halka-kart img { width: 100%; height: 100%; object-fit: cover; pointer-events: none; -webkit-user-drag: none; }
.halka-kart { transition: opacity .6s var(--yavas), filter .6s var(--yavas), box-shadow .6s var(--yavas); }
/* Öndeki uygulamanın kartları kendi renginde parlar, diğerleri geri çekilir */
.halka.odakli .halka-kart:not(.aktif) { opacity: .34; filter: saturate(.4); }
.halka-kart.aktif { box-shadow: 0 0 0 2px var(--ton), 0 0 44px -6px var(--ton), var(--golge); }

/* Grup etiketi + kapsama çizgisi */
.kume {
  --ton: #3b82f6; position: absolute; top: 34px; left: 0; width: 0; height: 52px; z-index: 2;
  pointer-events: none; will-change: transform, width;
}
.kume-cizgi {
  position: absolute; left: 0; right: 0; bottom: 0; height: 16px;
  border: 1.5px solid var(--ton); border-bottom: 0; border-radius: 12px 12px 0 0;
  filter: drop-shadow(0 0 6px var(--ton)); transition: border-color .5s;
}
.kume-cizgi::before, .kume-cizgi::after {   /* uçlarda karta inen oklar */
  content: ""; position: absolute; bottom: -7px; width: 7px; height: 7px;
  border-right: 1.5px solid var(--ton); border-bottom: 1.5px solid var(--ton); rotate: 45deg;
}
.kume-cizgi::before { left: -4.6px; }
.kume-cizgi::after { right: -4.6px; }
.kume-etiket {
  position: absolute; left: 50%; bottom: 26px; translate: calc(-50% + var(--kay, 0px)) 0;
  width: max-content; max-width: calc(100vw - 32px);   /* çizgi kısa olsa da etiket içeriği kadar genişler */
  display: inline-flex; align-items: center; gap: 8px; padding: 5px 12px 5px 5px; white-space: nowrap;
  border-radius: 999px; background: var(--yuzey); color: var(--metin); text-decoration: none;
  font-size: .9375rem; font-weight: 600; letter-spacing: -.01em; pointer-events: auto;
  border: 1px solid color-mix(in srgb, var(--ton) 55%, transparent);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--ton) 14%, transparent), 0 0 28px -2px color-mix(in srgb, var(--ton) 70%, transparent);
  transition: opacity .25s, border-color .5s, box-shadow .5s;
}
.kume-etiket::after {   /* etiketten çizgiye inen sap; etiket kaysa da çizginin ortasını gösterir */
  content: ""; position: absolute; left: calc(50% - var(--kay, 0px)); top: 100%; width: 1.5px; height: 11px; margin-left: -.75px; background: var(--ton);
}
.kume-etiket img { width: 24px; height: 24px; border-radius: 7px; }
.kume-tur { font-size: .75rem; font-weight: 500; color: var(--ikincil); padding-left: 8px; border-left: 1px solid var(--cizgi); }
.kume.degis .kume-etiket { opacity: 0; }
@media (prefers-reduced-motion: no-preference) {
  .kume-etiket { animation: parla 2.6s ease-in-out infinite alternate; }
  @keyframes parla {
    to { box-shadow: 0 0 0 6px color-mix(in srgb, var(--ton) 20%, transparent), 0 0 44px 2px color-mix(in srgb, var(--ton) 85%, transparent); }
  }
}
.halka-alt { display: flex; justify-content: flex-end; margin-top: 4px; }
.halka-ipucu { color: var(--ikincil); font-size: .8125rem; }
@media (prefers-reduced-motion: no-preference) {
  .halka-sahne { animation: belir 1.2s var(--yavas) both .1s; }
  @keyframes belir { from { opacity: 0; translate: 0 40px; } }
}

/* ── Projeler ────────────────────────────────────────── */
.bolum { padding-top: clamp(88px, 12vw, 160px); }
.bolum-baslik, .iletisim h2 { margin: 0 0 clamp(8px, 2vw, 24px); font-size: clamp(2rem, 4.4vw, 3.5rem); font-weight: 600; letter-spacing: -.035em; line-height: 1; }

.proje { padding: clamp(36px, 5vw, 56px) 0; border-bottom: 1px solid var(--cizgi); }
.proje:last-child { border-bottom: 0; }
.proje-bilgi { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; gap: 16px 24px; align-items: start; }
.proje-ikon { width: 64px; height: 64px; border-radius: 15px; box-shadow: 0 0 0 1px var(--cizgi); }
.proje h3 { margin: 2px 0 0; font-size: clamp(1.375rem, 2.2vw, 1.75rem); font-weight: 600; letter-spacing: -.025em; line-height: 1.15; }
.proje .tur { margin: 2px 0 0; color: var(--ikincil); font-size: .9375rem; }
.proje .ozet { margin: 12px 0 0; max-width: 56ch; }
.magazalar { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }
.magaza {
  min-height: 44px; display: inline-flex; align-items: center; gap: 8px; padding: 0 18px;
  border-radius: 999px; background: var(--metin); color: var(--zemin);
  font-size: .875rem; font-weight: 500; text-decoration: none; white-space: nowrap; transition: opacity .2s, background .2s;
}
.magaza:hover { opacity: .82; }
.magaza svg { width: 16px; height: 16px; flex: none; }
.magaza.ikincil { background: transparent; color: var(--metin); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--metin) 22%, transparent); }
.magaza.ikincil:hover { opacity: 1; background: color-mix(in srgb, var(--metin) 6%, transparent); }
.magazalar.sol { justify-content: flex-start; }
@media (max-width: 760px) {
  .proje-bilgi { grid-template-columns: 56px minmax(0, 1fr); }
  .proje-ikon { width: 56px; height: 56px; border-radius: 13px; }
  .magazalar { grid-column: 1 / -1; justify-content: flex-start; }
}

/* Galeri şeridi: aynı projedeki tüm görseller eşit boyutta, sayfa kenarına kadar taşar */
.galeri { --kenar: max(16px, (100vw - 1240px) / 2); margin-top: 28px; }
.serit {
  list-style: none; margin: 0 calc(-1 * var(--kenar)); padding: 4px var(--kenar) 8px;
  display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--kenar);
  scrollbar-width: none; overscroll-behavior-x: contain;
}
.serit::-webkit-scrollbar { display: none; }
.serit li { flex: none; scroll-snap-align: start; }
.galeri.dikey li { width: clamp(148px, 16vw, 208px); }
.galeri.yatay li { width: clamp(256px, 30vw, 384px); }
.galeri.genis li { width: clamp(300px, 40vw, 520px); }
.kare { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; border-radius: var(--kose); }
.kare img { width: 100%; border-radius: var(--kose); box-shadow: 0 0 0 1px var(--cizgi); background: var(--cizgi); transition: transform .5s var(--yavas); }
.kare:hover img { transform: scale(1.025); }
.oklar { display: flex; justify-content: flex-end; gap: 8px; margin-top: 14px; }
.galeri:not(.tasma) .oklar { display: none; }
.ok {
  width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; cursor: pointer;
  background: none; border: 1px solid var(--cizgi); color: var(--metin); transition: background .2s, opacity .2s;
}
.ok:hover:not(:disabled) { background: color-mix(in srgb, var(--metin) 6%, transparent); }
.ok:disabled { opacity: .3; cursor: default; }
.ok svg, .isik-btn svg { width: 20px; height: 20px; }

/* ── Işık kutusu ─────────────────────────────────────── */
.isik {
  width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0;
  background: transparent; color: #f2f2f4; overflow: hidden;
}
.isik::backdrop { background: rgba(8, 8, 10, .88); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.isik[open] { display: grid; place-items: center; }
.isik figure { margin: 0; display: grid; justify-items: center; gap: 14px; }
.isik img { max-width: min(88vw, 1100px); max-height: calc(100dvh - 120px); width: auto; height: auto; border-radius: var(--kose); }
.isik figcaption { font-size: .875rem; color: #b4b4bd; font-variant-numeric: tabular-nums; }
.isik-btn {
  position: fixed; width: 48px; height: 48px; display: grid; place-items: center; border-radius: 50%; cursor: pointer;
  border: 0; background: rgba(255, 255, 255, .1); color: #fff; transition: background .2s;
}
.isik-btn:hover { background: rgba(255, 255, 255, .2); }
.isik-kapat { top: 16px; right: 16px; }
.isik-geri { left: 16px; top: 50%; translate: 0 -50%; }
.isik-ileri { right: 16px; top: 50%; translate: 0 -50%; }
@media (prefers-reduced-motion: no-preference) {
  .isik[open] img { animation: buyu .35s var(--yavas); }
  @keyframes buyu { from { opacity: 0; scale: .96; } }
}

/* ── İletişim ───────────────────────────────────────── */
.iletisim .kap { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 32px clamp(32px, 6vw, 96px); align-items: start; }
.iletisim .bolum-not { margin: 0; color: var(--ikincil); max-width: 34ch; }
.kanallar { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--cizgi); }
.kanallar a {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 72px;
  padding: 12px 4px; border-bottom: 1px solid var(--cizgi); text-decoration: none; transition: padding .3s var(--yavas);
}
.kanallar a:hover { padding-inline: 14px 0; }
.kanallar span { color: var(--ikincil); font-size: .9375rem; }
.kanallar strong { font-weight: 500; font-size: clamp(1rem, 1.8vw, 1.25rem); letter-spacing: -.01em; text-align: right; overflow-wrap: anywhere; }
@media (max-width: 760px) {
  .iletisim .kap { grid-template-columns: minmax(0, 1fr); }
  .kanallar a { flex-direction: column; align-items: flex-start; justify-content: center; gap: 2px; }
  .kanallar strong { text-align: left; }
}

/* ── Alt bilgi ──────────────────────────────────────── */
.alt { margin-top: clamp(88px, 12vw, 160px); padding: 28px 0 36px; border-top: 1px solid var(--cizgi); font-size: .875rem; color: var(--ikincil); }
.alt .kap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; }
.alt nav { display: flex; gap: 20px; }
.alt a { color: var(--metin); text-decoration: none; }
.alt a:hover { text-decoration: underline; }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition-duration: .01ms !important; animation: none !important; } }
