/* =====================================================================
   Burak Selçuk — Kişisel site
   1. Tokenlar   2. Reset   3. Yerleşim   4. Bileşenler   5. Bölümler
   6. Responsive
   ===================================================================== */

/* ---------- 1. TOKENLAR ---------- */
:root {
  --accent:        #3ddc84;
  --accent-2:      #22c9a6;
  --accent-soft:   rgba(61, 220, 132, .14);
  --accent-ring:   rgba(61, 220, 132, .35);

  --bg:            #0b0f14;
  --bg-alt:        #0f141b;
  --surface:       rgba(255, 255, 255, .034);
  --surface-2:     rgba(255, 255, 255, .06);
  --border:        rgba(255, 255, 255, .09);
  --border-strong: rgba(255, 255, 255, .16);

  --text:          #e8edf4;
  --text-muted:    #9aa7b8;
  --text-dim:      #6b7a8d;

  --float-bg:      rgba(13, 19, 26, .93);

  --shadow-sm: 0 1px 2px rgba(0,0,0,.28);
  --shadow-md: 0 12px 32px -12px rgba(0,0,0,.6);
  --shadow-lg: 0 28px 70px -28px rgba(0,0,0,.75);

  --radius-sm: 9px;
  --radius:    16px;
  --radius-lg: 22px;

  --font: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  --container: 1140px;
  --header-h: 68px;
  --ease: cubic-bezier(.22, .68, .35, 1);
}

[data-theme="light"] {
  --accent:        #10a15c;
  --accent-2:      #0e8f7e;
  --accent-soft:   rgba(16, 161, 92, .1);
  --accent-ring:   rgba(16, 161, 92, .3);

  --bg:            #f7f8fa;
  --bg-alt:        #eef1f5;
  --surface:       rgba(255, 255, 255, .85);
  --surface-2:     #ffffff;
  --border:        rgba(15, 26, 40, .1);
  --border-strong: rgba(15, 26, 40, .2);

  --text:          #131a24;
  --text-muted:    #4c5a6c;
  --text-dim:      #78879a;

  --float-bg:      rgba(255, 255, 255, .95);

  --shadow-sm: 0 1px 2px rgba(15,26,40,.07);
  --shadow-md: 0 12px 30px -14px rgba(15,26,40,.22);
  --shadow-lg: 0 26px 60px -26px rgba(15,26,40,.3);
}

/* ---------- 2. RESET ---------- */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 20px); -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  transition: background .3s var(--ease), color .3s var(--ease);
}

h1, h2, h3, h4 { margin: 0; line-height: 1.2; font-weight: 700; letter-spacing: -.02em; }
p  { margin: 0 0 1em; }
ul { margin: 0; padding: 0; list-style: none; }
a  { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
/* hidden özniteliği her zaman kazansın (display:grid/flex veren kuralları ezer) */
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--accent-ring); color: #fff; }

.mono { font-family: var(--mono); font-size: .86em; letter-spacing: -.01em; }

.skip-link {
  position: fixed; top: -100px; left: 16px; z-index: 200;
  padding: 10px 16px; border-radius: var(--radius-sm);
  background: var(--accent); color: #05140c; font-weight: 600;
  transition: top .2s var(--ease);
}
.skip-link:focus { top: 14px; }

/* ---------- 3. YERLESIM ---------- */
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }

.bg-grid {
  position: fixed; inset: 0; z-index: -2; pointer-events: none;
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 85% 55% at 50% 0%, #000 20%, transparent 78%);
  -webkit-mask-image: radial-gradient(ellipse 85% 55% at 50% 0%, #000 20%, transparent 78%);
  opacity: .5;
}
.bg-glow {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(620px 420px at 78% -6%, var(--accent-soft), transparent 70%),
    radial-gradient(520px 380px at 8% 12%, rgba(99, 102, 241, .1), transparent 70%);
}

.section { padding: 104px 0; position: relative; }
.section-alt { background: var(--bg-alt); border-block: 1px solid var(--border); }

.section-head { max-width: 640px; margin-bottom: 52px; }
.section-num {
  display: inline-block; color: var(--accent);
  font-weight: 500; letter-spacing: .18em; margin-bottom: 10px;
}
.section-title { font-size: clamp(1.8rem, 4vw, 2.5rem); margin-bottom: 10px; }
.section-title::after {
  content: ""; display: block; width: 52px; height: 3px; border-radius: 3px;
  margin-top: 16px; background: linear-gradient(90deg, var(--accent), transparent);
}
.section-sub { color: var(--text-muted); margin: 0; font-size: 1.02rem; }
.sub-head { font-size: 1.15rem; margin-bottom: 22px; }

/* ---------- 4. BILESENLER ---------- */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  backdrop-filter: blur(10px);
  transition: border-color .25s var(--ease), transform .25s var(--ease), box-shadow .25s var(--ease);
}
.card-title { font-size: 1.03rem; margin-bottom: 14px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 22px; border-radius: 100px;
  font-weight: 600; font-size: .94rem; white-space: nowrap;
  border: 1px solid transparent;
  transition: transform .18s var(--ease), box-shadow .25s var(--ease),
              background .25s var(--ease), border-color .25s var(--ease), color .25s var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #04150c; box-shadow: 0 10px 26px -12px var(--accent-ring);
}
.btn-primary:hover { box-shadow: 0 16px 34px -12px var(--accent-ring); }
.btn-outline { border-color: var(--border-strong); color: var(--text); }
.btn-outline:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-soft); }
.btn-ghost { background: var(--surface-2); border-color: var(--border); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn-sm { padding: 8px 16px; font-size: .84rem; }
.btn-block { width: 100%; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  padding: 6px 12px; border-radius: 100px;
  background: var(--surface-2); border: 1px solid var(--border);
  font-size: .8rem; font-weight: 500; color: var(--text-muted);
  transition: color .2s var(--ease), border-color .2s var(--ease);
}
.chip:hover { color: var(--accent); border-color: var(--accent-ring); }
.chips-sm .chip { padding: 4px 10px; font-size: .74rem; }

.status-dot {
  width: 8px; height: 8px; border-radius: 50%; flex: none;
  background: var(--accent); box-shadow: 0 0 0 0 var(--accent-ring);
  animation: pulse 2.4s infinite;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 var(--accent-ring); }
  70%  { box-shadow: 0 0 0 8px transparent; }
  100% { box-shadow: 0 0 0 0 transparent; }
}

.social-link {
  display: grid; place-items: center; width: 40px; height: 40px;
  border-radius: 12px; border: 1px solid var(--border);
  background: var(--surface); color: var(--text-muted);
  transition: all .22s var(--ease);
}
.social-link:hover {
  color: var(--accent); border-color: var(--accent-ring);
  background: var(--accent-soft); transform: translateY(-3px);
}

.reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
.reveal[data-reveal-delay="1"] { transition-delay: .06s; }
.reveal[data-reveal-delay="2"] { transition-delay: .12s; }
.reveal[data-reveal-delay="3"] { transition-delay: .18s; }
.reveal[data-reveal-delay="4"] { transition-delay: .24s; }
.reveal[data-reveal-delay="5"] { transition-delay: .30s; }

.gradient-text {
  background: linear-gradient(120deg, var(--accent), var(--accent-2) 55%, #7dd3fc);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* ---------- HEADER ---------- */
.scroll-progress {
  position: fixed; top: 0; left: 0; z-index: 120;
  width: 100%; height: 2px; transform-origin: 0 50%; transform: scaleX(0);
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
}

.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 110;
  height: var(--header-h);
  transition: background .3s var(--ease), border-color .3s var(--ease), box-shadow .3s var(--ease);
  border-bottom: 1px solid transparent;
}
.site-header.is-stuck {
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(14px);
  border-bottom-color: var(--border);
  box-shadow: var(--shadow-sm);
}
.header-inner { height: var(--header-h); display: flex; align-items: center; gap: 18px; }

.brand { display: inline-flex; align-items: center; gap: 9px; font-weight: 800; letter-spacing: -.03em; }
.brand-mark {
  display: grid; place-items: center; width: 30px; height: 30px; border-radius: 9px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #04150c; font-family: var(--mono); font-size: .72rem; font-weight: 700;
}
.brand-text { font-size: 1.02rem; }
.brand .accent { color: var(--accent); }

.nav { display: flex; gap: 4px; margin-left: auto; }
.nav-link {
  position: relative; padding: 8px 14px; border-radius: 100px;
  font-size: .9rem; font-weight: 500; color: var(--text-muted);
  transition: color .2s var(--ease), background .2s var(--ease);
}
.nav-link:hover { color: var(--text); background: var(--surface-2); }
.nav-link.is-active { color: var(--accent); background: var(--accent-soft); }

.header-actions { display: flex; align-items: center; gap: 8px; }
.icon-btn {
  display: grid; place-items: center; width: 36px; height: 36px;
  border-radius: 10px; border: 1px solid var(--border); background: var(--surface);
  color: var(--text-muted); font-size: .76rem; font-weight: 700; letter-spacing: .04em;
  transition: all .2s var(--ease);
}
.icon-btn:hover { color: var(--accent); border-color: var(--accent-ring); background: var(--accent-soft); }
[data-theme="dark"]  .icon-sun  { display: none; }
[data-theme="light"] .icon-moon { display: none; }

.menu-btn { display: none; width: 38px; height: 38px; border-radius: 10px; border: 1px solid var(--border); }
.menu-btn span {
  display: block; width: 17px; height: 2px; margin: 3.5px auto; border-radius: 2px;
  background: var(--text); transition: transform .25s var(--ease), opacity .2s var(--ease);
}
.menu-btn.is-open span:nth-child(1) { transform: translateY(5.5px) rotate(45deg); }
.menu-btn.is-open span:nth-child(2) { opacity: 0; }
.menu-btn.is-open span:nth-child(3) { transform: translateY(-5.5px) rotate(-45deg); }

/* ---------- 5. HERO ---------- */
.hero { padding: calc(var(--header-h) + 76px) 0 70px; position: relative; }
.hero-inner {
  display: grid; grid-template-columns: 1.08fr .92fr;
  gap: 60px; align-items: center;
}

.eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 6px 15px; border-radius: 100px; margin-bottom: 22px;
  background: var(--accent-soft); border: 1px solid var(--accent-ring);
  color: var(--accent); font-size: .82rem; font-weight: 600;
}
.hero-title { font-size: clamp(2.4rem, 6.2vw, 4rem); letter-spacing: -.035em; margin-bottom: 14px; }
.hero-title span { display: block; }
.hero-title span:first-child { font-size: .42em; font-weight: 600; color: var(--text-muted); letter-spacing: -.01em; margin-bottom: 6px; }
.hero-role {
  display: flex; align-items: center; flex-wrap: wrap; gap: 10px;
  font-size: 1.1rem; font-weight: 600; color: var(--text); margin-bottom: 18px;
}
.hero-role .sep { color: var(--accent); }
.hero-role .mono { color: var(--text-muted); font-weight: 500; }
.hero-desc { max-width: 52ch; color: var(--text-muted); font-size: 1.04rem; margin-bottom: 30px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 30px; }
.hero-social { display: flex; gap: 10px; }

/* Portre + kod karti — hicbiri portrenin uzerine binmez */
.hero-visual {
  position: relative;
  display: flex; flex-direction: column; align-items: center; gap: 16px;
  padding: 8px 0;
}

.hero-chips {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 10px;
  width: 100%;
}
.float-card {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 14px; border-radius: 12px;
  background: var(--float-bg); border: 1px solid var(--border-strong);
  box-shadow: var(--shadow-md); font-size: .76rem; font-weight: 600;
  color: var(--text); backdrop-filter: blur(12px);
}
.fc-emoji { font-size: 1rem; }

.portrait {
  position: relative; width: 100%; max-width: 312px;
  border-radius: 26px; padding: 8px;
  background: linear-gradient(150deg, var(--accent), transparent 42%, transparent 60%, var(--accent-2));
  box-shadow: var(--shadow-lg);
  animation: float 8s ease-in-out infinite;
}
.portrait img {
  width: 100%; height: auto; display: block;
  border-radius: 20px; object-fit: cover;
  background: var(--surface-2);
}
.portrait-glow {
  position: absolute; inset: -22%; z-index: -1; border-radius: 50%;
  background: radial-gradient(circle, var(--accent-soft), transparent 68%);
  filter: blur(8px);
}

.code-card {
  width: 100%; max-width: 360px;
  border-radius: 14px; overflow: hidden;
  background: #060a0f; border: 1px solid var(--border-strong);
  box-shadow: var(--shadow-md);
}
.code-head {
  display: flex; align-items: center; gap: 6px;
  padding: 9px 12px; border-bottom: 1px solid rgba(255, 255, 255, .08);
}
.code-head .dot { width: 8px; height: 8px; border-radius: 50%; }
.dot.red { background: #ff5f57; } .dot.yellow { background: #febc2e; } .dot.green { background: #28c840; }
.code-file { margin-left: auto; color: #64748b; font-size: .66rem; }
.code {
  margin: 0; padding: 12px 14px 14px; overflow-x: auto;
  font-size: .68rem; line-height: 1.7; color: #cbd5e1;
}
.c-key  { color: #c792ea; }
.c-fn   { color: #82aaff; }
.c-str  { color: #a5e844; }
.c-type { color: #ffcb6b; }
.c-num  { color: #f78c6c; }

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-11px); }
}

/* Istatistik seridi */
.stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px;
  margin-top: 76px; padding-top: 34px; border-top: 1px solid var(--border);
}
.stat { text-align: center; }
.stat-value {
  display: block; font-size: clamp(1.6rem, 3.4vw, 2.2rem); font-weight: 800;
  letter-spacing: -.03em;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.stat-label { font-size: .83rem; color: var(--text-dim); }


/* ---------- TEKNOLOJI SERIDI (marquee) ---------- */
.marquee {
  position: relative; overflow: hidden;
  margin-top: 58px; padding: 17px 0;
  border-block: 1px solid var(--border);
  background: var(--bg-alt);
  /* kenarlarda yumusak kaybolma */
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
}
.marquee-track {
  display: flex; width: max-content;
  animation: marquee-scroll 40s linear infinite;
  will-change: transform;
}
.marquee:hover .marquee-track { animation-play-state: paused; }

.marquee-item {
  display: inline-flex; align-items: center;
  padding-inline: 22px; white-space: nowrap;
  font-size: .92rem; font-weight: 600; color: var(--text-muted);
  letter-spacing: -.01em;
}
.marquee-item::after {
  content: ""; margin-left: 22px;
  width: 6px; height: 6px; border-radius: 2px; transform: rotate(45deg);
  background: var(--accent); opacity: .55;
}

@keyframes marquee-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ---------- HAKKIMDA ---------- */
.about-grid { display: grid; grid-template-columns: 1.25fr .75fr; gap: 44px; align-items: start; }
.about-text p { color: var(--text-muted); font-size: 1.02rem; }
.about-facts { display: grid; gap: 12px; margin-top: 26px; }
.about-facts li { display: flex; align-items: flex-start; gap: 11px; font-size: .95rem; }
.tick { color: var(--accent); display: inline-flex; margin-top: 3px; flex: none; }

.about-side { display: grid; gap: 18px; align-content: start; }

/* Sol sutunun altindaki cagri blogu */
.about-cta {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 18px;
  margin-top: 30px; padding: 22px 24px;
  border-radius: var(--radius);
  border: 1px solid var(--accent-ring);
  background: linear-gradient(120deg, var(--accent-soft), transparent 70%);
}
.cta-title { font-size: 1.05rem; margin-bottom: 4px; }
.cta-text p { margin: 0; font-size: .9rem; color: var(--text-muted); max-width: 40ch; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 10px; }

/* Arac seti tam genislikte — cipler yatayda yayilir */
.card-toolbox { margin-top: 22px; }
.now-list { display: grid; gap: 12px; }
.now-list li {
  position: relative; padding-left: 20px; font-size: .92rem; color: var(--text-muted);
}
.now-list li::before {
  content: ""; position: absolute; left: 0; top: .62em;
  width: 7px; height: 7px; border-radius: 50%; background: var(--accent);
}

.lang-list { display: grid; gap: 13px; }
.lang-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.lang-info { display: flex; flex-direction: column; }
.lang-name { font-size: .9rem; font-weight: 600; }
.lang-level { font-size: .76rem; color: var(--text-dim); }
.lang-dots { display: inline-flex; gap: 5px; flex: none; }
.lang-dots i { width: 8px; height: 8px; border-radius: 50%; display: block; }
.lang-dots .dot-on  { background: var(--accent); }
.lang-dots .dot-off { background: var(--border-strong); }

/* ---------- YETENEKLER ---------- */
.skills-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 20px; }
.skill-card:hover { transform: translateY(-4px); border-color: var(--accent-ring); box-shadow: var(--shadow-md); }
.skill-head { display: flex; align-items: center; gap: 12px; margin-bottom: 4px; }
.skill-head .card-title { margin: 0; }
.skill-icon {
  display: grid; place-items: center; width: 38px; height: 38px; flex: none;
  border-radius: 11px; background: var(--accent-soft);
  border: 1px solid var(--accent-ring); color: var(--accent);
}
.skill-list { display: grid; gap: 9px; margin-top: 16px; }
.skill-list li {
  position: relative; padding-left: 17px; font-size: .9rem; color: var(--text-muted);
}
.skill-list li::before {
  content: ""; position: absolute; left: 0; top: .64em;
  width: 5px; height: 5px; border-radius: 1px; transform: rotate(45deg);
  background: var(--accent);
}

/* ---------- DENEYIM ---------- */
.timeline { position: relative; padding-left: 30px; }
.timeline::before {
  content: ""; position: absolute; left: 5px; top: 8px; bottom: 8px; width: 2px;
  background: linear-gradient(180deg, var(--accent), var(--border) 85%);
}
.tl-item { position: relative; padding: 0 0 40px; }
.tl-item:last-child { padding-bottom: 0; }
.tl-dot {
  position: absolute; left: -30px; top: 7px;
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--bg); border: 2px solid var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
}
.tl-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 12px; }
.tl-role { font-size: 1.16rem; }
.tl-period {
  padding: 3px 11px; border-radius: 100px;
  background: var(--surface-2); border: 1px solid var(--border);
  color: var(--text-dim); font-size: .74rem;
}
.tl-company { margin: 5px 0 12px; font-weight: 600; color: var(--accent); font-size: .94rem; }
.tl-company a { display: inline-flex; align-items: center; gap: 5px; }
.tl-company a:hover { text-decoration: underline; }
.tl-summary { color: var(--text-muted); font-size: .96rem; margin-bottom: 12px; }
.tl-bullets { display: grid; gap: 8px; margin-bottom: 16px; }
.tl-bullets li {
  position: relative; padding-left: 18px; font-size: .92rem; color: var(--text-muted);
}
.tl-bullets li::before {
  content: "▸"; position: absolute; left: 0; color: var(--accent); font-size: .8rem;
}

.edu-wrap { margin-top: 64px; padding-top: 44px; border-top: 1px solid var(--border); }
.edu-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 18px; }
.edu-card:hover { border-color: var(--accent-ring); transform: translateY(-3px); }
.edu-period { color: var(--accent); font-size: .76rem; }
.edu-title { font-size: 1.02rem; margin: 8px 0 4px; }
.edu-place { color: var(--text-muted); font-size: .9rem; margin: 0 0 8px; }
.edu-note { color: var(--text-dim); font-size: .85rem; margin: 0; }

/* ---------- PROJELER ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 9px; margin-bottom: 30px; }
.filter-btn {
  padding: 8px 17px; border-radius: 100px;
  border: 1px solid var(--border); background: var(--surface);
  color: var(--text-muted); font-size: .86rem; font-weight: 500;
  transition: all .2s var(--ease);
}
.filter-btn:hover { color: var(--text); border-color: var(--border-strong); }
.filter-btn.is-active {
  background: var(--accent); border-color: var(--accent);
  color: #04150c; font-weight: 600;
}

.projects-grid { display: grid; gap: 26px; }

.project-block {
  display: grid; grid-template-columns: 300px 1fr;
  overflow: hidden;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: border-color .28s var(--ease), box-shadow .28s var(--ease), transform .28s var(--ease);
}
.project-block:hover {
  border-color: var(--accent-ring); box-shadow: var(--shadow-lg); transform: translateY(-3px);
}
.project-block:nth-child(even) { grid-template-columns: 1fr 300px; }
.project-block:nth-child(even) .pb-cover { order: 2; }

.pb-cover {
  position: relative; display: grid; place-items: center; min-height: 230px; overflow: hidden;
}
.pb-cover img { width: 100%; height: 100%; object-fit: cover; }
.cover-initial {
  font-size: 4.6rem; font-weight: 800; color: rgba(255, 255, 255, .3); letter-spacing: -.05em;
}
.pb-cover img.cover-icon {
  width: 108px; height: 108px; border-radius: 26px;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, .28);
  box-shadow: 0 16px 38px -12px rgba(0, 0, 0, .65);
  transition: transform .3s var(--ease);
}
.project-block:hover .cover-icon { transform: scale(1.05); }
.badge-featured {
  position: absolute; top: 14px; right: 14px;
  padding: 4px 11px; border-radius: 100px;
  background: rgba(0, 0, 0, .45); backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, .25);
  color: #fff; font-size: .7rem; font-weight: 600;
}
.pb-category {
  position: absolute; left: 14px; bottom: 14px;
  padding: 4px 12px; border-radius: 100px;
  background: rgba(0, 0, 0, .42); backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, .25);
  color: #fff; font-size: .72rem; font-weight: 600;
}

.pb-body { padding: 26px 28px; display: flex; flex-direction: column; }
.pb-head {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 12px;
}
.pb-title { font-size: 1.42rem; }
.pb-metrics { display: flex; flex-wrap: wrap; gap: 8px; }
.metric-pill {
  display: inline-flex; align-items: baseline; gap: 5px;
  padding: 5px 12px; border-radius: 100px;
  background: var(--accent-soft); border: 1px solid var(--accent-ring);
  font-size: .76rem; color: var(--text-muted);
}
.metric-pill strong { color: var(--accent); font-size: .92rem; font-weight: 700; }

.pb-meta {
  margin: 6px 0 0; font-size: .82rem; font-weight: 600;
  letter-spacing: .04em; text-transform: uppercase; color: var(--text-dim);
}
.pb-role {
  display: flex; align-items: flex-start; gap: 8px;
  margin: 14px 0 0; font-size: .91rem;
}
.pb-role-icon { color: var(--accent); display: inline-flex; margin-top: 2px; flex: none; }
.pb-role-label { font-weight: 600; }
.pb-summary { margin: 14px 0 0; color: var(--text-muted); font-size: .96rem; }

.pb-highlights { display: grid; gap: 7px; margin-top: 14px; }
.pb-highlights li {
  position: relative; padding-left: 18px; font-size: .9rem; color: var(--text-muted);
}
.pb-highlights li::before {
  content: ""; position: absolute; left: 0; top: .62em;
  width: 6px; height: 6px; border-radius: 2px; transform: rotate(45deg);
  background: var(--accent);
}

.pb-tech { margin-top: 20px; }
.pb-sub {
  margin: 0 0 10px; font-size: .74rem; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase; color: var(--text-dim);
}

.pb-stores {
  display: flex; flex-wrap: wrap; gap: 10px;
  margin-top: auto; padding-top: 20px;
}
.store-badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 16px; border-radius: 100px;
  border: 1px solid var(--border-strong); background: var(--surface-2);
  font-size: .84rem; font-weight: 600; color: var(--text);
  transition: all .2s var(--ease);
}
a.store-badge:hover {
  border-color: var(--accent); color: var(--accent);
  background: var(--accent-soft); transform: translateY(-2px);
}
.store-badge.is-static { color: var(--text-muted); border-style: dashed; }
.project-soon { font-size: .84rem; color: var(--text-dim); font-style: italic; }

.empty-state { margin-top: 28px; color: var(--text-dim); text-align: center; }


/* ---------- VIDEO SLIDER ---------- */
.slider-bar {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; flex-wrap: wrap; margin-bottom: 26px;
}
.slider-nav { display: flex; gap: 8px; }
.slider-btn {
  display: grid; place-items: center; width: 42px; height: 42px;
  border-radius: 13px; border: 1px solid var(--border);
  background: var(--surface); color: var(--text-muted);
  transition: all .2s var(--ease);
}
.slider-btn:hover:not(:disabled) {
  color: var(--accent); border-color: var(--accent-ring); background: var(--accent-soft);
}
.slider-btn:disabled { opacity: .35; cursor: default; }

/* Kenarlardan tasan yatay serit: container disina cikar */
.slider-viewport { position: relative; }
.slider-viewport::before,
.slider-viewport::after {
  content: ""; position: absolute; top: 0; bottom: 14px; width: 60px;
  pointer-events: none; z-index: 2;
}
.slider-viewport::before { left: 0;  background: linear-gradient(90deg, var(--bg), transparent); }
.slider-viewport::after  { right: 0; background: linear-gradient(270deg, var(--bg), transparent); }

.video-track {
  display: flex; gap: 18px;
  overflow-x: auto; overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  /* Serit container disina tasar; scroll-padding ayni olmali, yoksa
     scroll-snap ilk karti hizalamak icin seridi kaydiriyor. */
  --track-pad: max(24px, calc((100vw - var(--container)) / 2 + 24px));
  padding: 4px var(--track-pad) 14px;
  scroll-padding-inline: var(--track-pad);
  scrollbar-width: none; -ms-overflow-style: none;
}
.video-track::-webkit-scrollbar { display: none; }
.video-track:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; border-radius: 8px; }

.video-card { flex: 0 0 320px; scroll-snap-align: start; }
.video-btn {
  display: flex; flex-direction: column; gap: 12px; width: 100%; text-align: left;
  padding: 0; background: none; border: 0;
}
.video-thumb {
  position: relative; display: block; aspect-ratio: 16 / 9;
  border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--border); background: var(--surface-2);
  transition: border-color .25s var(--ease), transform .25s var(--ease), box-shadow .25s var(--ease);
}
.video-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.video-play {
  position: absolute; inset: 0; margin: auto;
  width: 54px; height: 54px; border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(220, 40, 40, .92); color: #fff;
  box-shadow: 0 8px 24px -8px rgba(0, 0, 0, .7);
  transition: transform .25s var(--ease), background .25s var(--ease);
}
.video-btn:hover .video-thumb {
  border-color: var(--accent-ring); transform: translateY(-4px); box-shadow: var(--shadow-lg);
}
.video-btn:hover .video-play { transform: scale(1.12); background: #ff0033; }
.video-btn:focus-visible .video-thumb { outline: 2px solid var(--accent); outline-offset: 3px; }
.video-title {
  font-size: .92rem; font-weight: 600; line-height: 1.45; color: var(--text);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.video-btn:hover .video-title { color: var(--accent); }

/* ---------- VIDEO MODAL ---------- */
body.no-scroll { overflow: hidden; }
.video-modal {
  position: fixed; inset: 0; z-index: 200;
  display: grid; place-items: center; padding: 20px;
}
.vm-backdrop {
  position: absolute; inset: 0;
  background: rgba(2, 6, 12, .82); backdrop-filter: blur(6px);
  animation: fade .2s var(--ease);
}
.vm-panel {
  position: relative; width: min(980px, 100%);
  background: var(--bg-alt); border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-lg);
  padding: 16px; animation: pop .22s var(--ease);
}
.vm-head { display: flex; align-items: center; gap: 14px; margin-bottom: 12px; }
.vm-title { font-size: 1rem; flex: 1; }
.vm-close {
  display: grid; place-items: center; width: 36px; height: 36px; flex: none;
  border-radius: 10px; border: 1px solid var(--border);
  background: var(--surface); color: var(--text-muted); transition: all .2s var(--ease);
}
.vm-close:hover { color: var(--accent); border-color: var(--accent-ring); }
.vm-frame { aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; background: #000; }
.vm-frame iframe { width: 100%; height: 100%; border: 0; display: block; }
.vm-link {
  display: inline-flex; margin-top: 12px;
  font-size: .86rem; font-weight: 600; color: var(--text-muted);
}
.vm-link:hover { color: var(--accent); }

@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes pop  { from { opacity: 0; transform: translateY(10px) scale(.98); } to { opacity: 1; transform: none; } }


/* ---------- PROJE DETAY SAYFASI ---------- */
.detail-page { padding-top: var(--header-h); }

.detail-hero { padding: 40px 0 34px; border-bottom: 1px solid var(--border); }
.back-link {
  display: inline-flex; align-items: center; gap: 8px; margin-bottom: 26px;
  font-size: .87rem; font-weight: 600; color: var(--text-muted);
  transition: color .2s var(--ease), gap .2s var(--ease);
}
.back-link:hover { color: var(--accent); gap: 11px; }

.dh-top { display: flex; align-items: flex-start; gap: 26px; flex-wrap: wrap; }
.dh-icon {
  width: 104px; height: 104px; flex: none; border-radius: 26px; overflow: hidden;
  display: grid; place-items: center;
  border: 1px solid var(--border-strong); box-shadow: var(--shadow-md);
}
.dh-icon img { width: 100%; height: 100%; object-fit: cover; }
.dh-initial { font-size: 3rem; font-weight: 800; color: rgba(255, 255, 255, .35); }

.dh-info { flex: 1; min-width: 260px; }
.dh-meta {
  margin: 0 0 6px; font-size: .78rem; font-weight: 600;
  letter-spacing: .09em; text-transform: uppercase; color: var(--text-dim);
}
.dh-title { font-size: clamp(1.9rem, 4.4vw, 2.7rem); margin-bottom: 12px; }
.dh-role { display: flex; align-items: flex-start; gap: 8px; margin: 0 0 14px; font-size: .95rem; }
.dh-stores { margin-top: 18px; padding-top: 0; }
.dh-info .pb-metrics { margin-top: 4px; }

.detail-body { padding: 52px 0 84px; }
.detail-grid { display: grid; grid-template-columns: 1fr 320px; gap: 44px; align-items: start; }
.detail-main { min-width: 0; }
.detail-h2 { font-size: 1.28rem; margin: 38px 0 14px; }
.detail-main > .detail-h2:first-child { margin-top: 0; }
.detail-lead { color: var(--text-muted); font-size: 1.02rem; max-width: 68ch; }
.detail-note { font-size: .82rem; color: var(--text-dim); margin: -6px 0 16px; }

.detail-list { display: grid; gap: 10px; }
.detail-list li {
  position: relative; padding-left: 22px; color: var(--text-muted); font-size: .96rem;
}
.detail-list li::before {
  content: ""; position: absolute; left: 0; top: .62em;
  width: 7px; height: 7px; border-radius: 2px; transform: rotate(45deg); background: var(--accent);
}
.feature-list { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }

.shot-gallery {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(168px, 1fr)); gap: 16px;
}
.shot-item {
  padding: 0; border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--border); background: var(--surface-2);
  transition: transform .25s var(--ease), border-color .25s var(--ease), box-shadow .25s var(--ease);
}
.shot-item img { width: 100%; height: auto; display: block; }
.shot-item:hover {
  transform: translateY(-4px); border-color: var(--accent-ring); box-shadow: var(--shadow-lg);
}
.shot-item:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.detail-side { display: grid; gap: 18px; position: sticky; top: calc(var(--header-h) + 22px); }
.fact-list { display: grid; grid-template-columns: auto 1fr; gap: 10px 16px; margin: 0; }
.fact-list dt {
  font-size: .75rem; font-weight: 700; letter-spacing: .07em;
  text-transform: uppercase; color: var(--text-dim);
}
.fact-list dd { margin: 0; font-size: .9rem; }

.detail-nav {
  display: grid; grid-template-columns: 1fr 1fr; gap: 16px;
  margin-top: 60px; padding-top: 34px; border-top: 1px solid var(--border);
}
.dn-item {
  display: grid; gap: 4px; padding: 18px 20px;
  border: 1px solid var(--border); border-radius: var(--radius);
  background: var(--surface); transition: all .22s var(--ease);
}
.dn-item:hover { border-color: var(--accent-ring); background: var(--accent-soft); transform: translateY(-2px); }
.dn-next { text-align: right; }
.dn-label { font-size: .75rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--text-dim); }
.dn-title { font-size: 1.02rem; font-weight: 700; }

.detail-missing { padding: 90px 0; text-align: center; }
.detail-missing .section-title::after { margin-inline: auto; }
.detail-missing .btn { margin-top: 22px; }

.shot-panel { width: min(460px, 100%); }
.shot-panel img { width: 100%; height: auto; border-radius: var(--radius); display: block; }

.pb-title-link { transition: color .2s var(--ease); }
.pb-title-link:hover { color: var(--accent); }

/* ---------- ILETISIM ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; align-items: start; }
.contact-lead { color: var(--text-muted); font-size: 1.02rem; margin-bottom: 28px; max-width: 46ch; }
.contact-row {
  display: flex; align-items: center; gap: 16px;
  padding: 14px 0; border-top: 1px solid var(--border);
}
.contact-label {
  min-width: 92px; font-size: .78rem; font-weight: 600;
  letter-spacing: .06em; text-transform: uppercase; color: var(--text-dim);
}
.contact-value { display: inline-flex; align-items: center; gap: 9px; font-size: .94rem; }
.contact-value a:hover { color: var(--accent); }
.copy-btn {
  position: relative; display: grid; place-items: center;
  width: 28px; height: 28px; border-radius: 8px;
  border: 1px solid var(--border); color: var(--text-dim);
  transition: all .2s var(--ease);
}
.copy-btn:hover { color: var(--accent); border-color: var(--accent-ring); }
.copy-btn.is-copied { color: var(--accent); border-color: var(--accent); }
.copy-btn.is-copied::after {
  content: attr(data-tip);
  position: absolute; bottom: calc(100% + 7px); left: 50%; transform: translateX(-50%);
  padding: 3px 9px; border-radius: 6px; white-space: nowrap;
  background: var(--accent); color: #04150c; font-size: .7rem; font-weight: 600;
}
.contact-social { margin-top: 26px; }

.contact-form { display: grid; gap: 16px; padding: 28px; }
.field { display: grid; gap: 7px; }
.field label { font-size: .84rem; font-weight: 600; color: var(--text-muted); }
.field input, .field textarea {
  width: 100%; padding: 12px 14px; border-radius: var(--radius-sm);
  background: var(--bg); border: 1px solid var(--border);
  color: var(--text); font: inherit; font-size: .94rem;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
  resize: vertical;
}
.field input::placeholder, .field textarea::placeholder { color: var(--text-dim); }
.field input:focus, .field textarea:focus {
  outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft);
}
.field input.has-error, .field textarea.has-error { border-color: #ef4444; }
.field-error { font-size: .78rem; color: #ef4444; min-height: 1em; }
.form-note { margin: 4px 0 0; font-size: .86rem; color: var(--text-muted); min-height: 1.2em; }
.form-note.is-ok  { color: var(--accent); }
.form-note.is-err { color: #ef4444; }

/* ---------- FOOTER ---------- */
.site-footer { border-top: 1px solid var(--border); background: var(--bg-alt); padding: 34px 0; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.footer-brand { display: inline-flex; align-items: center; gap: 9px; font-weight: 800; }
.footer-copy { margin: 0; font-size: .85rem; color: var(--text-dim); }
.footer-social .social-link { width: 34px; height: 34px; border-radius: 10px; }

.to-top {
  position: fixed; right: 22px; bottom: 22px; z-index: 90;
  display: grid; place-items: center; width: 44px; height: 44px;
  border-radius: 14px; border: 1px solid var(--border);
  background: var(--surface-2); color: var(--text-muted);
  box-shadow: var(--shadow-md);
  opacity: 0; visibility: hidden; transform: translateY(12px);
  transition: all .25s var(--ease);
  backdrop-filter: blur(10px);
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { color: var(--accent); border-color: var(--accent-ring); transform: translateY(-3px); }

/* ---------- 6. RESPONSIVE ---------- */
@media (max-width: 1024px) {
  .hero-inner { grid-template-columns: 1fr; gap: 54px; }
  .hero-visual { order: -1; max-width: 390px; margin: 0 auto; }

  .about-grid, .contact-grid { grid-template-columns: 1fr; gap: 34px; }
  .video-track { --track-pad: 24px; }
  .detail-grid { grid-template-columns: 1fr; gap: 32px; }
  .detail-side { position: static; }
  .project-block { grid-template-columns: 220px 1fr; }
  .project-block:nth-child(even) { grid-template-columns: 1fr 220px; }
}

@media (max-width: 760px) {
  .section { padding: 76px 0; }
  .container { padding: 0 18px; }

  .nav {
    position: fixed; inset: var(--header-h) 0 auto; flex-direction: column; gap: 2px;
    margin: 0; padding: 14px 18px 20px;
    background: color-mix(in srgb, var(--bg) 96%, transparent);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-md);
    transform: translateY(-14px); opacity: 0; visibility: hidden;
    transition: all .25s var(--ease);
  }
  .nav.is-open { transform: none; opacity: 1; visibility: visible; }
  .nav-link { padding: 12px 14px; font-size: .96rem; }
  .menu-btn { display: block; }
  .header-cv { display: none; }

  .hero { padding-top: calc(var(--header-h) + 36px); }
  .hero-visual { max-width: 300px; gap: 13px; }
  .portrait { max-width: 250px; }
  .code-card { max-width: 300px; }
  .code { font-size: .62rem; }
  .float-card { padding: 7px 11px; font-size: .7rem; }
  .stats { grid-template-columns: repeat(2, 1fr); gap: 26px 12px; margin-top: 54px; }
  .marquee { margin-top: 44px; padding: 14px 0; }
  .marquee-item { font-size: .84rem; padding-inline: 16px; }
  .marquee-item::after { margin-left: 16px; }
  .project-block,
  .project-block:nth-child(even) { grid-template-columns: 1fr; }
  .project-block:nth-child(even) .pb-cover { order: 0; }
  .pb-cover { min-height: 160px; }
  .pb-cover img.cover-icon { width: 88px; height: 88px; border-radius: 22px; }
  .cover-initial { font-size: 3.2rem; }
  .pb-body { padding: 22px 20px; }
  .pb-title { font-size: 1.24rem; }
  .video-card { flex-basis: 268px; }
  .video-track { --track-pad: 18px; gap: 14px; }
  .slider-viewport::before, .slider-viewport::after { width: 24px; }
  .vm-panel { padding: 12px; }
  .footer-inner { flex-direction: column; text-align: center; }
  .contact-row { flex-direction: column; align-items: flex-start; gap: 6px; }
  .contact-label { min-width: 0; }
  .detail-hero { padding: 28px 0 26px; }
  .dh-top { gap: 18px; }
  .dh-icon { width: 76px; height: 76px; border-radius: 20px; }
  .detail-body { padding: 40px 0 64px; }
  .shot-gallery { grid-template-columns: repeat(auto-fill, minmax(138px, 1fr)); gap: 12px; }
  .detail-nav { grid-template-columns: 1fr; }
  .dn-next { text-align: left; }
  .about-cta { flex-direction: column; align-items: flex-start; padding: 20px; }
  .cta-actions { width: 100%; }
  .cta-actions .btn { flex: 1; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important; animation-iteration-count: 1 !important;
    transition-duration: .01ms !important; scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; transform: none; }
  /* Serit donmesin: sabit kalsin ve elle kaydirilabilsin */
  .marquee { overflow-x: auto; }
  .marquee-track { animation: none !important; transform: none !important; }
}

@media print {
  .site-header, .to-top, .contact-form, .bg-grid, .bg-glow, .hero-visual, .filters { display: none !important; }
  body { background: #fff; color: #000; }
  .section { padding: 24px 0; page-break-inside: avoid; }
}
