/* ═══════════════════════════════════════════════════════════════════
   ALİ UTKU KÖSOĞLU — PORTFOLYO STİLLERİ
   Parlament blue · indigo · mor — koyu, modern, scroll-odaklı
   Mobile-first responsive
   ═══════════════════════════════════════════════════════════════════ */

/* ──────────────── DEĞİŞKENLER ──────────────── */
:root {
  /* Backgrounds — koyu lacivert/indigo */
  --bg:        #04061A;
  --bg-2:      #080C24;
  --bg-3:      #0D1230;
  --bg-card:   rgba(13, 18, 48, 0.85);
  --bg-glass:  rgba(15, 22, 50, 0.6);

  /* Renk paleti */
  --parl:      #1B2D5C;        /* Parlament blue */
  --indigo:    #4F46E5;        /* Ana indigo */
  --indigo-2:  #6366F1;        /* Acik indigo */
  --indigo-3:  #818CF8;        /* Acik indigo */
  --violet:    #7C3AED;        /* Mor */
  --cyan:      #22D3EE;        /* Cyan accent (status dot) */

  /* Yazı */
  --txt:       #E8EDFF;
  --txt-2:     #9BA8D0;
  --txt-3:     #5B6B9A;

  /* Borders */
  --bdr:       rgba(99, 102, 241, 0.18);
  --bdr-2:     rgba(99, 102, 241, 0.45);
  --bdr-3:     rgba(99, 102, 241, 0.7);

  /* Glow */
  --glow:      rgba(79, 70, 229, 0.4);
  --glow-2:    rgba(124, 58, 237, 0.3);

  /* Gradient */
  --grad:      linear-gradient(135deg, var(--indigo) 0%, var(--violet) 100%);
  --grad-soft: linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 100%);

  /* Fonts */
  --fd:        'Space Grotesk', sans-serif;
  --fb:        'Inter', system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --fm:        'Space Mono', monospace;

  /* Easing */
  --ease:      cubic-bezier(.23, 1, .32, 1);
  --snap:      cubic-bezier(.77, 0, .18, 1);

  /* Layout */
  --container: 1320px;
  --pad-x:     clamp(20px, 4vw, 64px);
}

/* ──────────────── RESET ──────────────── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--fb);
  color: var(--txt);
  background: var(--bg);
  line-height: 1.55;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, video, canvas { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: 0; background: transparent; color: inherit; }
ul { list-style: none; }
::selection { background: var(--indigo); color: #fff; }

/* Noise grain overlay — premium his */
body::after {
  content: '';
  position: fixed; inset: 0; z-index: 8999; pointer-events: none;
  opacity: .035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 180px;
}

/* ──────────────── ÖZEL İMLEÇ (sadece desktop) ──────────────── */
.cDot, .cRing {
  position: fixed; top: 0; left: 0; pointer-events: none; z-index: 9998;
  transform: translate(-50%, -50%);
}
.cDot {
  width: 6px; height: 6px;
  background: var(--indigo-3); border-radius: 50%;
  transition: transform .1s;
}
.cRing {
  width: 32px; height: 32px;
  border: 1.5px solid rgba(99, 102, 241, .55);
  border-radius: 50%;
  z-index: 9997;
  transition: width .35s var(--ease), height .35s var(--ease),
              border-color .3s, background .3s, border-radius .3s;
}
.cRing.big { width: 56px; height: 56px; border-color: var(--indigo); background: rgba(99, 102, 241, .08); }
.cRing.sq  { width: 48px; height: 48px; border-radius: 8px; }
@media (hover: none) { .cDot, .cRing { display: none; } body { cursor: auto; } }
@media (hover: hover) and (pointer: fine) { body { cursor: none; } a, button, input, textarea { cursor: none; } }

/* ──────────────── LOADER ──────────────── */
.loader {
  position: fixed; inset: 0; z-index: 9996;
  background: var(--bg);
  display: flex; align-items: center; justify-content: center;
  transition: opacity .9s var(--ease), visibility .9s;
}
.loader.hide { opacity: 0; visibility: hidden; }
.loader-inner { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 22px; }
.loader-name {
  font-family: var(--fd); font-weight: 700;
  font-size: clamp(28px, 5vw, 64px);
  letter-spacing: -.03em; color: var(--txt);
}
.loader-name em {
  font-style: normal;
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.loader-bar {
  width: 180px; height: 1px; background: rgba(99, 102, 241, .2);
  border-radius: 2px; overflow: hidden;
}
.loader-bar span {
  display: block; height: 100%; width: 0%;
  background: var(--grad);
  transition: width .35s var(--ease);
}
.loader-pct {
  font-family: var(--fm); font-size: 10px; letter-spacing: .3em; color: var(--txt-3);
}

/* ──────────────── SCROLL PROGRESS ──────────────── */
.scroll-progress {
  position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 999;
  background: var(--grad); transform-origin: left; transform: scaleX(0);
  transition: transform .08s linear;
}

/* ──────────────── NAVİGASYON ──────────────── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px;
  padding: 22px var(--pad-x);
  border-bottom: 1px solid transparent;
  transition: padding .35s var(--ease), background .35s, border-color .35s;
}
.nav.sc {
  padding: 14px var(--pad-x);
  background: rgba(4, 6, 26, .82);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  border-bottom-color: var(--bdr);
}

.nav-logo { display: flex; align-items: center; gap: 12px; font-weight: 600; }
.logo-mark {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: 10px;
  background: var(--grad); color: #fff;
  font-weight: 800; font-size: 13px; letter-spacing: .05em;
  box-shadow: 0 6px 24px var(--glow);
}
.logo-name { font-family: var(--fd); font-size: 15px; font-weight: 700; letter-spacing: -.02em; }
.logo-name i { font-style: normal; color: var(--indigo-2); }

.nav-links { display: flex; gap: 36px; }
.nav-links a {
  font-family: var(--fm); font-size: 10px; letter-spacing: .22em;
  text-transform: uppercase; color: var(--txt-2);
  position: relative; transition: color .3s;
}
.nav-links a::after {
  content: ''; position: absolute; bottom: -5px; left: 0; right: 0; height: 1px;
  background: var(--indigo-2); transform: scaleX(0); transform-origin: left;
  transition: transform .3s var(--ease);
}
.nav-links a:hover { color: var(--txt); }
.nav-links a:hover::after { transform: scaleX(1); }

.nav-cta {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 22px; border: 1px solid var(--bdr-2); border-radius: 99px;
  font-family: var(--fm); font-size: 10px; letter-spacing: .18em;
  text-transform: uppercase; color: var(--txt);
  transition: background .3s, border-color .3s, box-shadow .3s, color .3s;
}
.nav-cta:hover { background: var(--indigo); border-color: var(--indigo); box-shadow: 0 0 30px var(--glow); color: #fff; }

.nav-toggle {
  display: none; width: 44px; height: 44px;
  border: 1px solid var(--bdr); border-radius: 8px;
  flex-direction: column; align-items: center; justify-content: center; gap: 5px;
}
.nav-toggle span {
  width: 18px; height: 1px; background: var(--txt); display: block;
  transition: all .32s var(--ease);
}
.nav-toggle.open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* Mobil menü */
.mobile-menu {
  position: fixed; inset: 0; z-index: 199;
  background: rgba(4, 6, 26, .96); backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 28px;
  opacity: 0; visibility: hidden; transition: opacity .4s, visibility .4s;
}
.mobile-menu.open { opacity: 1; visibility: visible; }
.mobile-menu a {
  font-family: var(--fd); font-weight: 700;
  font-size: clamp(34px, 8vw, 52px);
  color: var(--txt); transition: color .3s;
}
.mobile-menu a:hover { color: var(--indigo-2); }
.mobile-menu-social { display: flex; gap: 16px; margin-top: 24px; }
.mobile-menu-social a {
  width: 48px; height: 48px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--bdr-2); color: var(--txt);
  transition: background .3s, border-color .3s;
}
.mobile-menu-social a:hover { background: var(--indigo); border-color: var(--indigo); }
.mobile-menu-social svg { width: 20px; height: 20px; fill: currentColor; }

/* ═══════════════════════════════════════════════════════════════
   HERO + 3D KARAKTER
═══════════════════════════════════════════════════════════════ */
.hero {
  position: relative;
  min-height: 88vh; min-height: 88svh;
  display: grid; grid-template-columns: 1fr;
  align-items: center; gap: 40px;
  padding: 120px var(--pad-x) 40px;
  overflow: hidden;
  background:
    radial-gradient(ellipse at top right, rgba(99, 102, 241, 0.18) 0%, transparent 50%),
    radial-gradient(ellipse at bottom left, rgba(124, 58, 237, 0.12) 0%, transparent 50%),
    var(--bg);
}
/* Edge-bleed killer — sits above canvas (z:1) but below text (z:3).
   Fades all four borders of the hero to the background colour so no
   canvas artefact line is ever visible, on any device. */
.hero::before {
  content: '';
  position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background:
    linear-gradient(to bottom,  var(--bg) 0%,   transparent  9%, transparent 68%, var(--bg) 100%),
    linear-gradient(to right,   var(--bg) 0%,   transparent 10%),
    linear-gradient(to left,    var(--bg) 0%,   transparent  4%);
}
/* Mobil: orijinal gradient yüksekliği korunur */
@media (max-width: 1024px) {
  .hero::before {
    background:
      linear-gradient(to bottom,  var(--bg) 0%,   transparent  9%, transparent 88%, var(--bg) 100%),
      linear-gradient(to right,   var(--bg) 0%,   transparent 10%),
      linear-gradient(to left,    var(--bg) 0%,   transparent  4%);
  }
}
.hero-content {
  max-width: min(640px, 44%);
  margin-left: clamp(60px, 13vw, 260px);
}

/* ── 21:9 ultra-wide ── */
@media (min-aspect-ratio: 21/9) {
  .hero-content {
    margin-left: clamp(200px, 25vw, 700px);
  }
  .hero-gif {
    right: 20%;
  }
}

/* ── 32:9 super ultra-wide (örn. 5120×1440) ──
   5120×1440 değerleri TAVAN: daha geniş ekranlarda öğeler arası boşluk artmaz */
@media (min-aspect-ratio: 30/9) {
  .hero-content {
    /* 30vw + 200px doğal olarak büyür; 5120 genişliğinde 1736px'e ulaşır ve orada kilitlenir */
    margin-left: clamp(700px, calc(30vw + 200px), 1736px);
  }
  .hero-gif {
    right: auto;
    left: 2500px;
  }
}

.hero-topo {
  position: absolute; inset: 0; z-index: 0;
  pointer-events: none;
}

.hero-orb {
  position: absolute; border-radius: 50%;
  filter: blur(140px); pointer-events: none; z-index: 1;
}
.hero-orb-1 {
  width: 700px; height: 700px;
  background: rgba(99, 102, 241, .15);
  top: -180px; right: -180px;
  animation: orbDrift 9s ease-in-out infinite;
}
.hero-orb-2 {
  width: 500px; height: 500px;
  background: rgba(124, 58, 237, .12);
  bottom: -150px; left: 10%;
  animation: orbDrift 12s ease-in-out infinite reverse;
}
@keyframes orbDrift {
  0%, 100% { transform: translate(0,0) scale(1); }
  50% { transform: translate(40px, -50px) scale(1.12); }
}

/* Hero content (sol) */
.hero-content { position: relative; z-index: 3; }

.hero-eye {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--fm); font-size: 10px; letter-spacing: .25em;
  text-transform: uppercase; color: var(--indigo-3);
  padding: 8px 16px; border-radius: 99px;
  background: rgba(99, 102, 241, .08);
  border: 1px solid var(--bdr);
  margin-bottom: 28px;
  opacity: 0; transform: translateY(14px);
  animation: fadeUp .7s .5s var(--ease) forwards;
}
.dot-sep { color: var(--txt-3); }
/* Desktop: konum bilgisini gizle, sadece durum metni kalsın */
.dot-sep, #heroKonum { display: none; }
.status-dot {
  width: 8px; height: 8px; border-radius: 50%; background: var(--cyan);
  box-shadow: 0 0 0 3px rgba(34, 211, 238, .25);
  animation: statusPulse 2.2s ease-in-out infinite;
}
@keyframes statusPulse {
  0%, 100% { box-shadow: 0 0 0 3px rgba(34, 211, 238, .25); }
  50% { box-shadow: 0 0 0 7px rgba(34, 211, 238, .07); }
}

.hero-name {
  font-family: var(--fd);
  font-size: clamp(56px, 9vw, 140px);
  line-height: .9; letter-spacing: -.04em; font-weight: 700;
  color: var(--txt); margin-bottom: 28px;
}
.hero-name .ln { display: block; overflow: hidden; }
.hero-name .ln span { display: block; transform: translateY(110%); }
.hero-name .ln:nth-child(1) span { animation: clipUp 1s .2s var(--snap) forwards; }
.hero-name .ln:nth-child(2) span { animation: clipUp 1s .38s var(--snap) forwards; }
.hero-name .ln:nth-child(3) span { animation: clipUp 1s .56s var(--snap) forwards; }
.hero-name .outline { -webkit-text-stroke: 2px var(--indigo-2); color: transparent; }
.hero-name .grad {
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
@keyframes clipUp { to { transform: translateY(0); } }
@keyframes fadeUp { to { opacity: 1; transform: none; } }

.hero-sub {
  font-family: var(--fd); font-weight: 500;
  font-size: clamp(16px, 1.6vw, 22px);
  color: var(--indigo-3); margin-bottom: 14px;
  opacity: 0; transform: translateY(14px);
  animation: fadeUp .8s .85s var(--ease) forwards;
}
.hero-desc {
  font-size: 15px; color: var(--txt-2);
  max-width: 480px; margin-bottom: 36px;
  opacity: 0; transform: translateY(14px);
  animation: fadeUp .8s 1s var(--ease) forwards;
}

.hero-cta {
  display: flex; gap: 14px; flex-wrap: wrap;
  opacity: 0; transform: translateY(14px);
  animation: fadeUp .8s 1.15s var(--ease) forwards;
}

.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 28px; border-radius: 6px;
  font-family: var(--fm); font-size: 11px; font-weight: 700;
  letter-spacing: .2em; text-transform: uppercase;
  transition: transform .3s var(--ease), box-shadow .3s, background .3s, color .3s, border-color .3s;
  position: relative; overflow: hidden;
}
.btn svg { width: 16px; height: 16px; transition: transform .3s var(--ease); }
.btn-primary {
  background: var(--indigo); color: #fff;
  box-shadow: 0 8px 24px rgba(79, 70, 229, .35);
}
.btn-primary::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg, var(--indigo), var(--violet));
  transform: scaleX(0); transform-origin: left;
  transition: transform .45s var(--snap);
}
.btn-primary:hover::before { transform: scaleX(1); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 36px var(--glow); }
.btn-primary:hover svg { transform: translateX(4px); }
.btn-primary > * { position: relative; z-index: 1; }

.btn-ghost {
  background: transparent; color: var(--txt);
  border: 1px solid var(--bdr-2);
}
.btn-ghost:hover { background: rgba(99, 102, 241, .08); border-color: var(--indigo-2); color: var(--indigo-3); transform: translateY(-2px); }

/* 3D Karakter — NO visible border.
   The wrap is pushed 3 px outside the hero on every side so the canvas
   edge pixels (WebGL alpha-blending artefact) fall outside the clipped area.
   A CSS mask fades the left entrance so there is no hard edge visible there either. */
.hero-karakter-wrap {
  position: absolute;
  top: -3px; right: -3px; bottom: -3px; left: -3px;
  z-index: 1;
  display: flex; align-items: center; justify-content: center;
  pointer-events: none;
  overflow: hidden;
  background: transparent;
  /* fade the left ~37 % of the canvas so it blends into the hero background */
  -webkit-mask-image: linear-gradient(to right, transparent 37%, #000 58%);
          mask-image: linear-gradient(to right, transparent 5%, #000 58%);
}
#karakterCanvas {
  display: block;                /* removes inline-baseline gap that draws as a line */
  width: 100%; height: 100%;
  touch-action: pan-y;
  pointer-events: auto;
  border: 0 !important;
  outline: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}
.karakter-yedek {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: contain;
}
.karakter-grid { display: none; }   /* invisible frame */

/* ── HERO GIF — replaces the 3D character when gifDosyasi is set ── */
.hero-gif {
  position: absolute;
  right: 10%;
  top: 50%;
  transform: translateY(-44%);
  height: 90%;
  width: auto;         /* keeps 1:1 ratio */
  object-fit: cover;
  pointer-events: none;
  user-select: none;
  image-rendering: auto;
  will-change: transform;   /* GPU layer — smooth JS scroll animation */
}

.hero-bottom {
  grid-column: 1 / -1;
  display: flex; align-items: flex-end; justify-content: flex-end;
  margin-bottom: 32px;
}
.hero-scroll-hint {
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  font-family: var(--fm); font-size: 9px; letter-spacing: .35em;
  text-transform: uppercase; color: var(--txt-3);
  opacity: 0; animation: fadeUp .8s 1.4s var(--ease) forwards;
}
.scroll-line {
  width: 2px; height: 80px;
  background: linear-gradient(to bottom, var(--indigo-2), transparent);
  animation: scrollBreath 2.4s ease-in-out infinite;
}
@keyframes scrollBreath {
  0%, 100% { opacity: 1; transform: scaleY(1); }
  50% { opacity: .35; transform: scaleY(.6); }
}

/* ═══════════════════════════════════════════════════════════════
   MARQUEE
═══════════════════════════════════════════════════════════════ */
.marquee {
  border-top: 1px solid var(--bdr); border-bottom: 1px solid var(--bdr);
  background: var(--bg-2);
  padding: 18px 0; overflow: hidden;
  position: relative; z-index: 5;
  margin-top: -60px;
}

.marquee-track {
  display: flex; align-items: center; gap: 56px;
  width: max-content;
  animation: marqueeMove 28s linear infinite;
}
.marquee-track:hover { animation-play-state: paused; }
.marquee-track span {
  font-family: var(--fd); font-size: 14px; font-weight: 500;
  letter-spacing: .15em; text-transform: uppercase;
  color: var(--txt-3); white-space: nowrap;
}
.marquee-track i { color: var(--indigo-2); font-style: normal; font-size: 10px; }
@keyframes marqueeMove { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ═══════════════════════════════════════════════════════════════
   SECTION GENERIC
═══════════════════════════════════════════════════════════════ */
.section {
  position: relative;
  padding: clamp(80px, 12vw, 160px) var(--pad-x);
  max-width: var(--container);
  margin: 0 auto;
}
.section-head { margin-bottom: 60px; max-width: 760px; }
.section-label {
  display: inline-flex; align-items: center; gap: 14px;
  font-family: var(--fm); font-size: 10px; letter-spacing: .3em;
  text-transform: uppercase; color: var(--indigo-2);
  margin-bottom: 18px;
}
.section-label::before { content: ''; width: 24px; height: 1px; background: var(--indigo); }

.section-title {
  font-family: var(--fd);
  font-size: clamp(40px, 6.5vw, 88px);
  font-weight: 700; letter-spacing: -.03em; line-height: .92;
  color: var(--txt);
}
.section-title .hl { color: var(--indigo-3); }
.section-title .ol { -webkit-text-stroke: 1.5px var(--txt-3); color: transparent; }
.section-title .grad {
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.section-sub {
  font-size: 16px; color: var(--txt-2); max-width: 560px;
  margin-top: 18px;
}

/* Reveal */
.rv { opacity: 0; transform: translateY(40px); transition: opacity .85s var(--ease), transform .85s var(--ease); }
.rv.in { opacity: 1; transform: none; }
.d1 { transition-delay: .1s; }
.d2 { transition-delay: .22s; }
.d3 { transition-delay: .34s; }
.d4 { transition-delay: .46s; }

/* ═══════════════════════════════════════════════════════════════
   HAKKIMDA
═══════════════════════════════════════════════════════════════ */
.section-about { background: var(--bg-2); max-width: 100%; }
.section-about > * { max-width: var(--container); margin-left: auto; margin-right: auto; }

.about-grid {
  display: grid; grid-template-columns: .9fr 1.2fr;
  gap: 100px; align-items: start;
}

.about-img-wrap { position: relative; }
.about-3d {
  aspect-ratio: 3/4;
  background: var(--bg-3);
  border: 1px solid var(--bdr);
  border-radius: 12px; overflow: hidden;
  position: relative;
  transform: perspective(1000px) rotateY(-7deg) rotateX(3deg);
  transition: transform .65s var(--ease), box-shadow .65s;
  box-shadow: 24px 32px 90px rgba(0,0,0,.6), 0 0 60px rgba(99, 102, 241, .12);
}
.about-3d:hover {
  transform: perspective(1000px) rotateY(0deg) rotateX(0deg);
  box-shadow: 30px 40px 120px rgba(0,0,0,.8), 0 0 100px rgba(99, 102, 241, .25);
}
.about-3d img { width: 100%; height: 100%; object-fit: cover; }
.about-ph {
  width: 100%; height: 100%;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px;
  background: linear-gradient(135deg, var(--bg-3), var(--parl));
}
.about-ph-icon { font-size: 42px; opacity: .25; }
.about-ph-text { font-family: var(--fm); font-size: 9px; letter-spacing: .25em; text-transform: uppercase; color: var(--txt-3); text-align: center; padding: 0 20px; }

.about-frame {
  position: absolute; top: -16px; left: -16px;
  width: 100%; height: 100%;
  border: 1px solid var(--bdr);
  border-radius: 12px; z-index: -1;
}
.about-badge { display: none; }

.about-text { padding-top: 12px; }
.about-text p {
  font-size: 16px; color: var(--txt-2); line-height: 1.85; margin-bottom: 14px;
}
.about-text p strong { color: var(--txt); font-weight: 500; }
.about-text p em { font-style: normal; color: var(--indigo-3); font-weight: 500; }

/* "Who am I?" subheading */
.about-whoami {
  font-family: var(--fd); font-weight: 600;
  font-size: clamp(14px, 1.5vw, 18px);
  letter-spacing: .06em; text-transform: uppercase;
  color: var(--indigo-2); margin-bottom: 20px;
}

/* Bold lead paragraph */
.about-lead {
  font-size: clamp(16px, 1.4vw, 18px) !important;
  font-weight: 600 !important;
  color: var(--txt) !important;
  line-height: 1.7 !important;
  margin-bottom: 18px !important;
}

/* Info table */
.about-info-table {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 0; border-top: 1px solid var(--bdr);
  margin-top: 28px; margin-bottom: 28px;
}
.ait-row {
  display: flex; align-items: baseline; gap: 10px;
  padding: 12px 0; border-bottom: 1px solid var(--bdr);
}
.ait-label {
  font-family: var(--fm); font-size: 10px; letter-spacing: .18em;
  text-transform: uppercase; color: var(--txt-3);
  min-width: 44px; flex-shrink: 0;
}
.ait-value {
  font-size: 14px; color: var(--txt); font-weight: 500;
}
.ait-value a { color: var(--indigo-2); transition: color .2s; }
.ait-value a:hover { color: var(--txt); }

/* CV button (left) + Email ait-style (right) — same row */
.about-actions {
  display: flex; align-items: center;
  justify-content: space-between;
  gap: 20px; flex-wrap: wrap;
  margin-top: 28px;
}
/* Email in the old info-table style — line above + below */
.about-email-ait {
  display: flex; align-items: baseline; gap: 10px;
  padding: 12px 0;
  border-top: 1px solid var(--bdr);
  border-bottom: 1px solid var(--bdr);
  flex: 0 0 auto;
}
.about-cv-btn svg { width: 18px; height: 18px; }

.stats-row {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 1px; background: var(--bdr);
  border: 1px solid var(--bdr);
  margin-top: 44px; border-radius: 8px; overflow: hidden;
}
.stat { background: var(--bg-2); padding: 28px 22px; transition: background .3s; }
.stat:hover { background: var(--bg-3); }
.stat-n {
  font-family: var(--fd); font-weight: 700; line-height: 1;
  font-size: clamp(36px, 4vw, 52px);
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  margin-bottom: 8px;
}
.stat-l {
  font-family: var(--fm); font-size: 9px; letter-spacing: .25em;
  text-transform: uppercase; color: var(--txt-3);
}

/* ═══════════════════════════════════════════════════════════════
   TEXT DIVIDER (büyük outlined yazı, scroll eden)
═══════════════════════════════════════════════════════════════ */
.text-div {
  font-family: var(--fd);
  font-size: clamp(80px, 14vw, 220px);
  font-weight: 700; letter-spacing: -.04em;
  color: transparent; -webkit-text-stroke: 1px rgba(99, 102, 241, .15);
  white-space: nowrap; user-select: none; line-height: 1;
  overflow: hidden; padding: 12px 0;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 6%, #000 94%, transparent 100%);
          mask-image: linear-gradient(to right, transparent 0%, #000 6%, #000 94%, transparent 100%);
  animation: textScroll 24s linear infinite;
}
@keyframes textScroll { from { transform: translateX(0); } to { transform: translateX(-25%); } }

/* ═══════════════════════════════════════════════════════════════
   PORTFOLYO KATEGORİLERİ
═══════════════════════════════════════════════════════════════ */
.section-portfolio { padding-top: clamp(40px, 5vw, 70px); }
.section-contact   { padding-top: clamp(40px, 5vw, 70px); }
/* Contact + Experience: tüm öğeler aynı anda görünsün — gecikme sıfırla */
.section-contact .d1,
.section-contact .d2,
.section-experience .d1,
.section-experience .d2 { transition-delay: 0s !important; }
.categories {
  display: grid; grid-template-columns: repeat(12, 1fr);
  gap: 20px;
}
.category {
  position: relative; overflow: hidden;
  border-radius: 14px;
  background: var(--bg-3);
  border: 1px solid var(--bdr);
  cursor: pointer; aspect-ratio: 4/3;
  transition: border-color .4s, box-shadow .4s, transform .5s var(--ease);
}

/* Asymmetric layout */
.category:nth-child(8n+1) { grid-column: span 7; aspect-ratio: 16/10; }
.category:nth-child(8n+2) { grid-column: span 5; aspect-ratio: auto; align-self: stretch; }
.category:nth-child(8n+3) { grid-column: span 4; }
.category:nth-child(8n+4) { grid-column: span 4; }
.category:nth-child(8n+5) { grid-column: span 4; }
.category:nth-child(8n+6) { grid-column: span 8; aspect-ratio: 16/9; }
.category:nth-child(8n+7) { grid-column: span 4; aspect-ratio: auto; align-self: stretch; }
.category:nth-child(8n+8) { grid-column: span 12; aspect-ratio: 21/7; }

.category:hover {
  transform: translateY(-7px);
  border-color: var(--bdr-2);
  box-shadow: 0 30px 80px rgba(0, 0, 0, .55), 0 0 60px rgba(99, 102, 241, .18);
}

.category-img {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .8s var(--ease), filter .5s;
  filter: saturate(1.05);
}
.category:hover .category-img { transform: scale(1.06); filter: saturate(1.15); }

.category-ph {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, var(--bg-3) 0%, var(--parl) 100%);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
}
.category-ph-icon {
  font-family: var(--fd); font-size: 64px; font-weight: 800;
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  opacity: .35;
}
.category-ph-text { font-family: var(--fm); font-size: 9px; letter-spacing: .3em; color: var(--txt-3); text-transform: uppercase; }

.category-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(4, 6, 26, 0) 30%, rgba(4, 6, 26, .92) 100%);
}

.category-info {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 24px 26px;
  display: flex; align-items: flex-end; justify-content: space-between; gap: 18px;
  z-index: 2;
}
.category-info h3 {
  font-family: var(--fd); font-weight: 700;
  font-size: clamp(20px, 2.4vw, 28px); line-height: 1.1;
  color: var(--txt); margin-bottom: 6px;
  transition: color .3s;
}
.category:hover .category-info h3 { color: var(--indigo-3); }
.category-info p {
  font-family: var(--fm); font-size: 10px; letter-spacing: .2em;
  text-transform: uppercase; color: var(--txt-2);
}

.category-arrow {
  flex-shrink: 0;
  width: 44px; height: 44px; border-radius: 50%;
  background: rgba(255, 255, 255, .08); backdrop-filter: blur(10px);
  border: 1px solid var(--bdr);
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--txt);
  transition: background .3s, transform .35s var(--ease), border-color .3s;
}
.category-arrow svg { width: 16px; height: 16px; transition: transform .35s var(--ease); }
.category:hover .category-arrow {
  background: var(--indigo); border-color: var(--indigo);
  transform: rotate(-45deg);
  box-shadow: 0 8px 30px var(--glow);
}

.category-count {
  position: absolute; top: 18px; right: 18px; z-index: 2;
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 12px; border-radius: 99px;
  background: rgba(99, 102, 241, .15); backdrop-filter: blur(10px);
  border: 1px solid var(--bdr-2);
  font-family: var(--fm); font-size: 10px; letter-spacing: .15em;
  color: #fff; font-weight: 700;
}

.category-tag {
  position: absolute; top: 18px; left: 18px; z-index: 2;
  font-family: var(--fm); font-size: 9px; letter-spacing: .25em;
  text-transform: uppercase; color: var(--txt-2);
  padding: 6px 10px; border-radius: 4px;
  background: rgba(4, 6, 26, .55); backdrop-filter: blur(10px);
}

/* ═══════════════════════════════════════════════════════════════
   MY WORLD — YOUTUBE
═══════════════════════════════════════════════════════════════ */
.section-myworld { background: var(--bg-2); max-width: 100%; }
.section-myworld > * { max-width: var(--container); margin-left: auto; margin-right: auto; }

.videos-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}
.video-card {
  position: relative; border-radius: 12px; overflow: hidden;
  aspect-ratio: 16/9; background: var(--bg-3);
  border: 1px solid var(--bdr); cursor: pointer;
  transition: transform .42s var(--ease), border-color .42s, box-shadow .42s;
}
.video-card:hover {
  transform: translateY(-7px); border-color: var(--bdr-2);
  box-shadow: 0 24px 70px rgba(0,0,0,.55), 0 0 50px rgba(99, 102, 241, .15);
}
.video-thumb {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .65s var(--ease);
}
.video-card:hover .video-thumb { transform: scale(1.07); }
.video-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(4, 6, 26, .92) 0%, rgba(4, 6, 26, .15) 100%);
}
.video-play {
  position: absolute; left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  width: 64px; height: 64px; border-radius: 50%;
  background: rgba(99, 102, 241, .85); backdrop-filter: blur(8px);
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  box-shadow: 0 8px 32px var(--glow);
  transition: transform .32s var(--ease), background .3s;
}
.video-card:hover .video-play { transform: translate(-50%, -50%) scale(1.12); background: var(--indigo); }
.video-play svg { width: 22px; height: 22px; margin-left: 3px; }
.video-title {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 14px 18px;
  font-family: var(--fd); font-size: 15px; font-weight: 600; color: var(--txt);
}
.myworld-cta { text-align: center; margin-top: 50px; }

/* ═══════════════════════════════════════════════════════════════
   BANNER / QUOTE
═══════════════════════════════════════════════════════════════ */
.banner {
  padding: clamp(80px, 12vw, 140px) var(--pad-x);
  background: var(--bg);
  text-align: center;
  position: relative; overflow: hidden;
}
.banner-glow {
  position: absolute; width: 700px; height: 400px;
  border-radius: 50%; filter: blur(160px);
  background: rgba(99, 102, 241, .14);
  top: 50%; left: 50%; transform: translate(-50%, -50%);
}
.banner-q {
  font-family: var(--fd); font-weight: 700;
  font-size: clamp(34px, 5.5vw, 80px); line-height: 1.1; letter-spacing: -.03em;
  max-width: 1000px; margin: 0 auto 26px;
  color: var(--txt); position: relative;
}
.banner-q em {
  font-style: normal;
  -webkit-text-stroke: 1px var(--indigo-2); color: transparent;
}
.banner-by {
  font-family: var(--fm); font-size: 11px; letter-spacing: .35em;
  text-transform: uppercase; color: var(--txt-3); position: relative;
}

/* ═══════════════════════════════════════════════════════════════
   YETENEKLER (skills + tools)
═══════════════════════════════════════════════════════════════ */
/* ── Skill bars wrapper (under tools grid) ── */
.skills-bars-wrap { margin-top: 80px; max-width: 760px; display: none; }
.col-label {
  font-family: var(--fm); font-size: 10px; letter-spacing: .3em;
  text-transform: uppercase; color: var(--indigo-2);
  margin-bottom: 36px;
  display: flex; align-items: center; gap: 14px;
}
.col-label::before { content: ''; width: 24px; height: 1px; background: var(--indigo); }

.skill-item { margin-bottom: 28px; }
.skill-top { display: flex; justify-content: space-between; margin-bottom: 12px; }
.sk-name { font-size: 14px; color: var(--txt); }
.sk-pct { font-family: var(--fm); font-size: 11px; color: var(--indigo-2); }
.sk-bar { height: 2px; background: rgba(99, 102, 241, .12); border-radius: 2px; overflow: hidden; }
.sk-fill {
  height: 100%; width: 0%; border-radius: 2px;
  background: linear-gradient(to right, var(--indigo), var(--violet));
  transition: width 1.4s var(--snap);
}

/* ═══════════════════════════════════════════════════════════════
   TOOLS GRID — 12 logo tiles with 3D mouse parallax
   Each tile is a macOS-style app icon. If no PNG provided,
   beautiful gradient fallback with monogram is shown.
═══════════════════════════════════════════════════════════════ */
.tools-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 28px 22px;
  max-width: 100%;
  margin-bottom: 20px;
  perspective: 1200px;
}
@media (max-width: 1280px) {
  .tools-grid { grid-template-columns: repeat(4, 1fr); }
  .modal-body  { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 640px)  { .tools-grid { grid-template-columns: repeat(3, 1fr); gap: 18px 14px; } }

.tool-card {
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  cursor: pointer;
  transition: transform .3s var(--ease);
}
.tool-card:hover { transform: translateY(-4px); }

.tool-tile {
  position: relative;
  width: 60%; aspect-ratio: 1;
  border-radius: 24%;
  overflow: hidden;
  background: linear-gradient(135deg, var(--c1, #252638), var(--c2, #4F46E5));
  display: flex; align-items: center; justify-content: center;
  box-shadow:
    0 20px 50px rgba(0, 0, 0, .55),
    0 0 0 1px rgba(255, 255, 255, .04) inset,
    0 -20px 40px rgba(0, 0, 0, .25) inset;
  transform-style: preserve-3d;
  transition: transform .25s var(--ease), box-shadow .35s;
  will-change: transform;
}
.tool-tile::before {
  /* Glossy highlight (top reflection) */
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 55%;
  background: linear-gradient(to bottom, rgba(255, 255, 255, .22), rgba(255, 255, 255, 0));
  pointer-events: none; z-index: 1;
  border-radius: 22% 22% 50% 50% / 32% 32% 100% 100%;
  opacity: .8;
}
.tool-tile::after {
  /* Subtle outer glow on hover */
  content: '';
  position: absolute; inset: -2px;
  border-radius: 24%;
  background: linear-gradient(135deg, var(--c1, #1B2D5C), var(--c2, #4F46E5));
  filter: blur(18px); z-index: -1; opacity: 0;
  transition: opacity .35s;
}
.tool-card:hover .tool-tile { box-shadow: 0 30px 70px rgba(0, 0, 0, .65), 0 0 60px var(--c2, var(--glow)); }
.tool-card:hover .tool-tile::after { opacity: .55; }

.tool-img {
  position: absolute; inset: 0; z-index: 2;
  width: 100%; height: 100%;
  object-fit: cover;
  border-radius: inherit;
  transform: translate3d(0, 0, 0);
  filter: drop-shadow(0 6px 12px rgba(0, 0, 0, .4));
}
.tool-fallback {
  position: relative; z-index: 2;
  font-family: var(--fd); font-weight: 700;
  color: #fff;
  font-size: clamp(20px, 2.5vw, 38px);
  letter-spacing: -.02em;
  text-shadow: 0 3px 14px rgba(0, 0, 0, .5);
  transform: translate3d(0, 0, 30px);
}
/* Hide fallback when image loads successfully */
.tool-tile.has-img .tool-fallback { display: none; }

.tool-name {
  font-family: var(--fm); font-size: 10px; letter-spacing: .15em;
  text-transform: uppercase; color: var(--txt-2);
  text-align: center;
  transition: color .3s;
  line-height: 1.3;
}
.tool-card:hover .tool-name { color: var(--txt); }

/* Mini skill bar under each tool logo */
.tool-bar-wrap {
  width: 100%; height: 3px;
  background: rgba(99, 102, 241, .40);
  border-radius: 3px; overflow: hidden;
}
.tool-bar-fill {
  height: 100%; width: 0%;
  border-radius: 3px;
  background: linear-gradient(to right, var(--tc2, var(--violet)));
  transition: width 1s cubic-bezier(.23, 1, .32, 1);
}

/* ═══════════════════════════════════════════════════════════════
   3D CHARACTER — Status banner (when FBX fails to load)
═══════════════════════════════════════════════════════════════ */
.karakter-status {
  position: absolute; left: 50%; bottom: 12%;
  transform: translateX(-50%);
  display: flex; align-items: center; gap: 14px;
  max-width: min(420px, 90%);
  padding: 14px 18px;
  background: rgba(13, 18, 48, .9);
  border: 1px solid var(--bdr-2);
  border-radius: 12px;
  box-shadow: 0 16px 50px rgba(0, 0, 0, .5);
  backdrop-filter: blur(14px);
  z-index: 5;
  animation: fadeUp .6s .3s var(--ease) backwards;
}
.ks-icon {
  flex-shrink: 0;
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--indigo); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--fd); font-weight: 700; font-size: 16px;
}
.ks-body { display: flex; flex-direction: column; gap: 2px; }
.ks-body strong { font-family: var(--fd); font-size: 13px; font-weight: 600; color: var(--txt); }
.ks-body span { font-size: 11px; color: var(--txt-2); line-height: 1.5; }

/* ═══════════════════════════════════════════════════════════════
   DENEYİM & EĞİTİM
═══════════════════════════════════════════════════════════════ */
.section-experience { background: var(--bg-2); max-width: 100%; }
.section-experience > * { max-width: var(--container); margin-left: auto; margin-right: auto; }

.exp-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; }
.exp-col-title {
  font-family: var(--fd); font-size: 18px; font-weight: 600;
  color: var(--indigo-3); margin-bottom: 0;
  padding-bottom: 14px; border-bottom: 1px solid var(--bdr);
}
.exp-col-title--cert { margin-top: 55px; }
.timeline li {
  display: grid; grid-template-columns: 140px 1fr; gap: 22px;
  padding: 22px 0; border-top: 1px solid var(--bdr);
}
.timeline li:first-child { border-top: 0; }
.timeline .yil { font-family: var(--fm); font-size: 11px; letter-spacing: .15em; color: var(--indigo-2); padding-top: 4px; }
.timeline .pos { font-family: var(--fd); font-size: 17px; font-weight: 600; color: var(--txt); margin-bottom: 4px; }
.timeline .pos em { font-style: normal; color: #F59E0B; }
.timeline .ent { font-size: 14px; color: var(--txt-2); }

/* ═══════════════════════════════════════════════════════════════
   İLETİŞİM
═══════════════════════════════════════════════════════════════ */
.contact-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 100px;
}
.cBig {
  font-family: var(--fd); font-weight: 700;
  font-size: clamp(60px, 9vw, 130px); line-height: .9; letter-spacing: -.04em;
  margin-bottom: 50px; color: var(--txt);
}
.cBig .ol { -webkit-text-stroke: 1.5px var(--indigo-2); color: transparent; }

.contact-links { display: flex; flex-direction: column; }
.cLnk {
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px 0; border-bottom: 1px solid var(--bdr);
  transition: border-color .3s, padding-left .35s var(--ease);
}
.cLnk:first-child { border-top: 1px solid var(--bdr); }
.cLnk:hover { border-color: var(--indigo); padding-left: 10px; }
.cLnk:hover .cl-name { color: var(--indigo-3); }
.cLnk:hover .cl-arrow { transform: rotate(-45deg); }
.cl-name { font-family: var(--fd); font-size: 22px; font-weight: 600; transition: color .3s; }
.cl-arrow { color: var(--indigo-2); transition: transform .35s var(--ease); }
.cl-arrow svg { width: 18px; height: 18px; }

.contact-right { padding-top: 12px; }
.form-label {
  font-family: var(--fm); font-size: 10px; letter-spacing: .3em;
  text-transform: uppercase; color: var(--indigo-2); margin-bottom: 36px;
  display: flex; align-items: center; gap: 14px;
}
.form-label::before { content: ''; width: 24px; height: 1px; background: var(--indigo); }

.contact-form { display: flex; flex-direction: column; gap: 30px; }
.f-field { position: relative; }
.f-field input, .f-field textarea {
  width: 100%; background: transparent; border: none;
  border-bottom: 1px solid var(--bdr);
  padding: 14px 0; color: var(--txt);
  font-family: var(--fb); font-size: 16px; font-weight: 300;
  outline: none; resize: none;
  transition: border-color .3s;
}
.f-field textarea { min-height: 110px; }
.f-field input:focus, .f-field textarea:focus { border-color: var(--indigo); }
.f-field label {
  position: absolute; top: 14px; left: 0;
  font-family: var(--fm); font-size: 10px; letter-spacing: .3em;
  text-transform: uppercase; color: var(--txt-3);
  pointer-events: none; transition: transform .3s, color .3s, font-size .3s;
}
.f-field input:focus ~ label, .f-field input:not(:placeholder-shown) ~ label,
.f-field textarea:focus ~ label, .f-field textarea:not(:placeholder-shown) ~ label {
  transform: translateY(-26px); font-size: 8px; color: var(--indigo-2);
}

/* ═══════════════════════════════════════════════════════════════
   FOOTER
═══════════════════════════════════════════════════════════════ */
.foot {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 32px var(--pad-x);
  border-top: 1px solid var(--bdr);
  background: var(--bg);
  flex-wrap: wrap;
}
.foot-copy { font-family: var(--fm); font-size: 10px; letter-spacing: .2em; text-transform: uppercase; color: var(--txt-3); }
.foot-logo { font-family: var(--fd); font-size: 18px; font-weight: 700; letter-spacing: -.02em; color: var(--txt); }
.foot-logo span { color: var(--indigo-2); }
.foot-social { display: flex; gap: 12px; }
.foot-social a {
  width: 36px; height: 36px; border-radius: 50%;
  border: 1px solid var(--bdr);
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--txt-2); transition: border-color .3s, color .3s, background .3s;
}
.foot-social a:hover { border-color: var(--indigo); color: var(--indigo-3); background: rgba(99, 102, 241, .1); }
.foot-social svg { width: 16px; height: 16px; fill: currentColor; }

/* ═══════════════════════════════════════════════════════════════
   KATEGORİ MODAL (POPUP)
═══════════════════════════════════════════════════════════════ */
.modal {
  position: fixed; inset: 0; z-index: 500;
  /* Overlay scrolls — panel grows to full content height */
  overflow-y: auto;
  overflow-x: hidden;
  display: flex;
  align-items: flex-start;          /* panel sticks to top, not centred */
  justify-content: center;
  padding: 32px 24px 60px;          /* top / sides / extra bottom breathing room */
  opacity: 0; visibility: hidden;
  transition: opacity .4s var(--ease), visibility .4s;
}
.modal.open { opacity: 1; visibility: visible; }
.modal-backdrop {
  position: fixed; inset: 0;        /* fixed so backdrop stays full-screen while scrolling */
  background: rgba(4, 6, 26, .88); backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.modal-panel {
  position: relative;
  width: 100%; max-width: 1300px;
  background: var(--bg-2);
  border: 1px solid var(--bdr-2);
  border-radius: 18px;
  display: flex; flex-direction: column;
  overflow: hidden;                  /* keeps border-radius crisp */
  box-shadow: 0 50px 120px rgba(0, 0, 0, .7), 0 0 100px rgba(99, 102, 241, .15);
  transform: translateY(40px) scale(.95); transition: transform .5s var(--snap);
}
.modal.open .modal-panel { transform: none; }

.modal-close {
  position: absolute; top: 18px; right: 18px; z-index: 5;
  width: 44px; height: 44px; border-radius: 50%;
  background: rgba(99, 102, 241, .1); color: var(--txt);
  border: 1px solid var(--bdr);
  display: flex; align-items: center; justify-content: center;
  transition: background .3s, transform .35s var(--ease), border-color .3s;
}
.modal-close:hover { background: var(--indigo); border-color: var(--indigo); transform: rotate(90deg); color: #fff; }
.modal-close svg { width: 18px; height: 18px; }

.modal-header {
  padding: 36px 40px 22px;
  border-bottom: 1px solid var(--bdr);
  position: relative;
}
.modal-eyebrow {
  display: inline-block;
  font-family: var(--fm); font-size: 10px; letter-spacing: .3em;
  text-transform: uppercase; color: var(--indigo-2); margin-bottom: 12px;
}
.modal-header h3 {
  font-family: var(--fd); font-weight: 700;
  font-size: clamp(28px, 4vw, 44px); letter-spacing: -.02em;
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  margin-bottom: 8px;
}
.modal-header p { color: var(--txt-2); max-width: 600px; }
.modal-count {
  position: absolute; top: 36px; right: 80px;
  font-family: var(--fm); font-size: 11px; letter-spacing: .2em;
  color: var(--txt-3);
  padding: 6px 12px; border-radius: 99px;
  background: rgba(99, 102, 241, .08); border: 1px solid var(--bdr);
}

.modal-body {
  padding: 24px 32px 32px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);   /* varsayılan: 4 sütun */
  row-gap: 20px;
  column-gap: 20px;
  /* Overlay scroll yapıyor — body'nin kendi scroll'u yok */
  overflow: visible;
  align-content: start;
}
.modal-body::-webkit-scrollbar { width: 8px; }
.modal-body::-webkit-scrollbar-track { background: rgba(99, 102, 241, .05); }
.modal-body::-webkit-scrollbar-thumb { background: var(--bdr-2); border-radius: 4px; }

/* ── Kart kutusu: yüksekliği içerideki .work-media belirliyor ── */
.work-thumb {
  position: relative;
  border-radius: 10px; overflow: hidden;
  background: var(--bg-3);
  border: 1px solid var(--bdr);
  cursor: zoom-in;
  transition: transform .35s var(--ease), border-color .35s, box-shadow .35s;
  display: block; padding: 0;
}
.work-thumb:hover {
  transform: translateY(-4px);
  border-color: var(--bdr-2);
  box-shadow: 0 16px 40px rgba(0,0,0,.5);
}

/* ── 16:9 kutu — tüm medya türleri buraya sarılıyor ── */
.work-media {
  position: relative;
  width: 100%;
  padding-top: 56.25%;         /* 9/16 = 56.25% → her zaman 16:9 */
  overflow: hidden;
  background: var(--bg-3);
}
.work-media img,
.work-media video {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .55s var(--ease);
}
.work-thumb:hover .work-media img,
.work-thumb:hover .work-media video { transform: scale(1.07); }

/* Görsel bulunamadı placeholder — 16:9 kutunun üzerini kaplar */
.work-thumb-empty {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--bg-3), var(--parl));
  color: var(--txt-3); font-family: var(--fm); font-size: 9px; letter-spacing: .2em;
}

/* ── Play ikonu — YouTube ve video kartlarında ── */
.work-thumb-play {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%; z-index: 3;
  display: flex; align-items: center; justify-content: center;
  pointer-events: none;
}
.work-thumb-play svg {
  width: 52px; height: 52px; color: #fff;
  filter: drop-shadow(0 4px 14px rgba(0,0,0,.65));
  opacity: .85;
  transition: opacity .25s, transform .25s;
}
.work-thumb:hover .work-thumb-play svg { opacity: 1; transform: scale(1.12); }

/* ── Kart alt yazısı (hover'da görünür) ── */
.work-thumb-cap {
  position: relative; z-index: 4;
  padding: 8px 12px;
  color: var(--txt-2);
  font-family: var(--fm); font-size: 10px; letter-spacing: .12em;
  background: var(--bg-3);
  text-align: left;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
/* Başlık yoksa boşluk bırakma */
.work-thumb:not(:has(.work-thumb-cap)) .work-media { border-radius: 0; }

/* Kategori bazlı sütun sayısı override */
#kategoriModal[data-cat="3d-characters"] .modal-body {
  grid-template-columns: repeat(3, 1fr);
}
/* Mobil dikey: tüm kategoriler 2 sütun */
@media (max-width: 640px) and (orientation: portrait) {
  .modal-body,
  #kategoriModal[data-cat="3d-characters"] .modal-body {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

.modal-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 60px 20px;
  color: var(--txt-3);
  font-family: var(--fm); font-size: 12px; letter-spacing: .15em;
}
.modal-empty code {
  display: inline-block;
  padding: 2px 8px; border-radius: 4px;
  background: rgba(99, 102, 241, .1);
  color: var(--indigo-3);
  font-family: var(--fm);
}

/* ═══════════════════════════════════════════════════════════════
   LIGHTBOX (büyük resim/video)
═══════════════════════════════════════════════════════════════ */
.lightbox {
  position: fixed; inset: 0; z-index: 700;
  background: rgba(4, 6, 26, .96); backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden;
  transition: opacity .35s, visibility .35s;
}
.lightbox.open { opacity: 1; visibility: visible; }
.lightbox-stage {
  width: min(92vw, 1400px); height: min(82vh, 82svh);
  display: flex; align-items: center; justify-content: center;
}
.lightbox-stage img, .lightbox-stage video {
  max-width: 100%; max-height: 100%; object-fit: contain;
  border-radius: 10px; box-shadow: 0 40px 100px rgba(0,0,0,.7);
}
.lightbox-stage iframe {
  width: 100%; height: 100%; aspect-ratio: 16/9; border: 0;
  border-radius: 10px; box-shadow: 0 40px 100px rgba(0,0,0,.7);
}
.lightbox-cap {
  position: absolute; left: 0; right: 0; bottom: 36px;
  text-align: center; color: var(--txt-2);
  font-family: var(--fm); font-size: 11px; letter-spacing: .25em;
}
.lightbox-counter {
  position: absolute; left: 50%; top: 28px; transform: translateX(-50%);
  font-family: var(--fm); font-size: 10px; letter-spacing: .25em;
  color: var(--txt-3);
}
.lightbox-close, .lightbox-prev, .lightbox-next {
  position: absolute;
  width: 52px; height: 52px; border-radius: 50%;
  background: rgba(99, 102, 241, .1); color: #fff;
  border: 1px solid var(--bdr);
  display: flex; align-items: center; justify-content: center;
  transition: background .25s, transform .25s var(--ease), border-color .25s;
}
.lightbox-close { top: 24px; right: 24px; }
.lightbox-close:hover { background: var(--indigo); border-color: var(--indigo); transform: rotate(90deg); }
.lightbox-prev { left: 28px; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 28px; top: 50%; transform: translateY(-50%); }
.lightbox-prev:hover, .lightbox-next:hover { background: var(--indigo); border-color: var(--indigo); }
.lightbox-prev svg, .lightbox-next svg, .lightbox-close svg { width: 22px; height: 22px; }

/* ═══════════════════════════════════════════════════════════════
   RESPONSIVE — TABLET
═══════════════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
  .nav-links, .nav-cta { display: none; }
  .nav-toggle { display: flex; }

  .hero {
    grid-template-columns: 1fr;
    padding-top: 100px; padding-bottom: 40px;
    min-height: auto;
  }
  .hero-content { order: 2; text-align: center; max-width: 720px; margin: 0 auto; }
  .hero-content .hero-eye { margin-left: auto; margin-right: auto; }
  .hero-content .hero-desc { margin-left: auto; margin-right: auto; }
  .hero-cta { justify-content: center; }
  /* Mobile: character is full-screen background, text floats on top */
  .hero-karakter-wrap {
    top: -3px; left: -3px; right: -3px; bottom: -3px;
    width: auto; height: auto; min-height: 0;
    z-index: 1;
    pointer-events: none;
    opacity: .72;
    /* no left-fade mask on mobile — character is centred on full screen */
    -webkit-mask-image: none;
            mask-image: none;
  }
  /* Mobile GIF: square ratio korunur, yatayda ortalanır, sabit kalır */
  .hero-gif {
    right: auto !important;
    left: 50% !important;
    top: 50% !important;
    transform: translate(-50%, -50%) !important;
    height: 85%;
    width: auto;
    will-change: auto;   /* scroll animasyonu GPU layer'ını kapat */
  }
  .hero-content { max-width: 100%; }   /* override the desktop 55% cap */
  .hero-bottom { display: none; }

  .about-grid { grid-template-columns: 1fr; gap: 50px; }
  .about-img-wrap { max-width: 360px; margin: 0 auto; }

  .categories { gap: 16px; }
  .category:nth-child(n) { grid-column: span 6; aspect-ratio: 4/3; }

  .videos-grid { grid-template-columns: repeat(2, 1fr); }
  .skills-layout { grid-template-columns: 1fr; gap: 60px; }
  .exp-grid { grid-template-columns: 1fr; gap: 50px; }
  .contact-grid { grid-template-columns: 1fr; gap: 60px; }
}

/* ═══════════════════════════════════════════════════════════════
   RESPONSIVE — TABLET DİKEY (641px – 1024px, portrait)
═══════════════════════════════════════════════════════════════ */
@media (min-width: 641px) and (max-width: 1024px) and (orientation: portrait) {
  /* Hero: tam ekran yüksekliği */
  .hero {
    min-height: 100svh;
    padding-bottom: 80px;
  }

  /* İçerik: karakterin üstünde okunabilir konumda */
  .hero-content {
    padding-top: 220px;
    position: relative;
    z-index: 3;
  }

  /* Karakter: tam opak, daha büyük */
  .hero-karakter-wrap {
    opacity: 1 !important;
  }
  .hero-gif {
    height: 92% !important;
  }

  /* Gradient: karakterin üstüne okunabilirlik katmanı */
  .hero-karakter-wrap::after {
    content: '';
    position: absolute; inset: 0; z-index: 2;
    pointer-events: none;
    background: linear-gradient(
      to top,
      var(--bg) 0%,
      rgba(4, 6, 26, 0.78) 28%,
      rgba(4, 6, 26, 0.38) 58%,
      transparent 100%
    );
  }

  /* Scroll hint'i göster */
  .hero-bottom { display: flex; margin-bottom: 36px; }
}

/* ═══════════════════════════════════════════════════════════════
   RESPONSIVE — MOBİL
═══════════════════════════════════════════════════════════════ */
@media (max-width: 640px) {
  :root { --pad-x: 20px; }

  .nav { padding: 14px var(--pad-x); }
  .logo-name { display: none; }

  .hero {
    padding-top: 88px;
    padding-bottom: 30px;
  }
  .hero-karakter-wrap {
    height: 100%; min-height: 0;
  }
  .hero-eye { font-size: 9px; padding: 6px 12px; }
  .hero-name { font-size: clamp(48px, 13vw, 80px); margin-bottom: 24px; }
  .hero-sub { font-size: 16px; }
  .hero-desc { font-size: 14px; }
  .hero-cta { flex-direction: column; align-items: stretch; gap: 10px; }
  .hero-cta .btn { justify-content: center; }

  @media (orientation: portrait) {
    .hero-eye { display: none; }

    /* Hero: içeriğe göre boyutlan — alttaki boşluk kalkar, karakter alttan kırpılır */
    .hero {
      min-height: auto;
      padding-bottom: 100px;
    }

    /* Yazı grubu */
    .hero-content {
      padding-top: 370px;
    }

    /* Karakter: daha büyük, tam opak */
    .hero-gif {
      height: 94% !important;
    }
    .hero-karakter-wrap {
      opacity: 1 !important;
    }

    /* Gradient: aşağıdan koyu → yukarı şeffaf — yazı okunabilirliği */
    .hero-karakter-wrap::after {
      content: '';
      position: absolute; inset: 0; z-index: 2;
      pointer-events: none;
      background: linear-gradient(
        to top,
        var(--bg) 0%,
        rgba(4, 6, 26, 0.75) 30%,
        rgba(4, 6, 26, 0.35) 60%,
        transparent 100%
      );
    }
  }

  .section { padding: 70px var(--pad-x); }
  .section-head { margin-bottom: 36px; }

  .about-grid { gap: 40px; }
  .about-3d { transform: none; }
  .about-3d:hover { transform: none; }
  .about-badge { bottom: -12px; right: -12px; padding: 12px 16px; font-size: 9px; }

  .about-info-table { grid-template-columns: 1fr; }

  .stats-row { grid-template-columns: 1fr; }

  .categories { gap: 14px; }
  .category:nth-child(n) { grid-column: span 12; aspect-ratio: 4/3; }
  .category-info { padding: 18px 20px; }
  .category-info p { display: none; }
  .category-arrow { width: 38px; height: 38px; }

  .videos-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  /* Mobil dikey: 2 sütun yan yana */
  @media (orientation: portrait) {
    .videos-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  }
  .video-play { width: 52px; height: 52px; }

  .timeline li { grid-template-columns: 1fr; gap: 6px; padding: 18px 0; }

  .modal { padding: 16px 12px 48px; }
  .modal-panel { border-radius: 14px; }
  .modal-header { padding: 52px 20px 16px; }
  .modal-count { display: none; }
  .modal-body {
    padding: 12px 12px 20px;
    grid-template-columns: repeat(2, 1fr);
    row-gap: 12px; column-gap: 12px;
  }
  .work-thumb-play svg { width: 36px; height: 36px; }

  .lightbox-prev, .lightbox-next { width: 42px; height: 42px; }
  .lightbox-prev { left: 10px; }
  .lightbox-next { right: 10px; }
  .lightbox-close { top: 16px; right: 16px; }

  .foot { flex-direction: column; gap: 18px; padding: 28px var(--pad-x); text-align: center; }
}

/* ═══════════════════════════════════════════════════════════════
   ACCESSIBILITY — Reduced motion
═══════════════════════════════════════════════════════════════ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
  .rv { opacity: 1; transform: none; }
  .hero-name .ln span { transform: none; }
}
