/* ═══════════════════════════════════════════════════════════
   Batuhan Çelikkaya — Portföy  ·  scroll-driven premium build
   ═══════════════════════════════════════════════════════════ */

:root {
  --bg: #08090d;
  --bg-2: #0d0f16;
  --surface: rgba(255, 255, 255, 0.035);
  --surface-solid: #12141c;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.15);
  --text: #f3f5fa;
  --muted: #99a1b3;
  --faint: #626a7c;
  --accent: #7c8bff;
  --accent-2: #b06bff;
  --accent-3: #22d3ee;
  --grad: linear-gradient(120deg, #7c8bff 0%, #b06bff 50%, #22d3ee 100%);
  --radius: 18px;
  --shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.75);
  --maxw: 1180px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}
:root[data-theme="light"] {
  --bg: #f6f7fc;
  --bg-2: #eceffa;
  --surface: rgba(20, 25, 50, 0.035);
  --surface-solid: #ffffff;
  --border: rgba(20, 25, 50, 0.1);
  --border-strong: rgba(20, 25, 50, 0.18);
  --text: #0f121b;
  --muted: #515b74;
  --faint: #8790a6;
  --shadow: 0 30px 60px -32px rgba(40, 50, 90, 0.3);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; overflow-x: hidden; }
body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg); color: var(--text); line-height: 1.65;
  overflow-x: hidden; width: 100%; max-width: 100%; -webkit-font-smoothing: antialiased;
  transition: background 0.5s var(--ease), color 0.5s var(--ease);
}
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 26px; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
::selection { background: var(--accent-2); color: #fff; }

/* ── Scroll progress + decor ──────────────────────────────── */
.progress {
  position: fixed; top: 0; left: 0; height: 3px; width: 100%; z-index: 200;
  background: var(--grad); transform: scaleX(0); transform-origin: 0 50%;
}
@supports (animation-timeline: scroll()) {
  .progress { animation: growx linear both; animation-timeline: scroll(root); }
}
@keyframes growx { to { transform: scaleX(1); } }

.noise {
  position: fixed; inset: 0; z-index: -3; pointer-events: none; opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.bg-grid {
  position: fixed; inset: 0; z-index: -2;
  background-image:
    linear-gradient(to right, var(--border) 1px, transparent 1px),
    linear-gradient(to bottom, var(--border) 1px, transparent 1px);
  background-size: 68px 68px;
  mask-image: radial-gradient(ellipse 78% 55% at 50% 0%, #000 25%, transparent 72%);
  opacity: 0.55;
}
.bg-glow { position: fixed; z-index: -1; border-radius: 50%; filter: blur(130px); opacity: 0.4; pointer-events: none; will-change: transform; }
/* Arka plan kaplan hologramı (tam ekran, kutusuz) */
.holo-bg {
  position: fixed; inset: 0; width: 100%; height: 100%;
  z-index: -1; opacity: 0.3; pointer-events: none;
  filter: drop-shadow(0 0 14px rgba(34, 211, 238, 0.45));
}
:root[data-theme="light"] .holo-bg { opacity: 0.2; }
@media (max-width: 760px) { .holo-bg { display: none; } }

.bg-glow-1 { width: 520px; height: 520px; top: -160px; left: -140px; background: #7c8bff; }
.bg-glow-2 { width: 480px; height: 480px; top: 260px; right: -180px; background: #b06bff; opacity: 0.3; }
:root[data-theme="light"] .bg-glow { opacity: 0.22; }

/* ── Custom cursor ────────────────────────────────────────── */
.cursor {
  position: fixed; top: 0; left: 0; width: 26px; height: 26px; border-radius: 50%;
  border: 1.5px solid var(--accent); z-index: 300; pointer-events: none;
  transform: translate(-100px, -100px); transition: width 0.25s var(--ease), height 0.25s var(--ease), background 0.25s, border-color 0.25s;
}
.cursor.hot { width: 54px; height: 54px; background: var(--accent); border-color: transparent; }
@media (pointer: coarse) { .cursor { display: none; } }

/* ── Buttons ──────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 26px; border-radius: 12px; font-weight: 600; font-size: 0.95rem;
  cursor: pointer; border: 1px solid transparent; white-space: nowrap;
  transition: transform 0.3s var(--ease), box-shadow 0.35s var(--ease), border-color 0.3s;
}
.btn-sm { padding: 9px 17px; font-size: 0.88rem; }
.btn-primary { background: var(--grad); color: #fff; box-shadow: 0 10px 30px -10px rgba(124, 139, 255, 0.75); background-size: 160% 160%; }
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 20px 42px -12px rgba(176, 107, 255, 0.8); }
.btn-ghost { background: var(--surface); border-color: var(--border-strong); }
.btn-ghost:hover { transform: translateY(-3px); border-color: var(--accent); }
.icon-btn {
  width: 42px; height: 42px; border-radius: 11px; cursor: pointer;
  background: var(--surface); border: 1px solid var(--border-strong); color: var(--text);
  font-size: 1.05rem; display: inline-grid; place-items: center;
  transition: transform 0.25s var(--ease), border-color 0.25s;
}
.icon-btn:hover { transform: translateY(-2px) rotate(-10deg); border-color: var(--accent); }

/* ── Nav ──────────────────────────────────────────────────── */
.nav { position: fixed; inset: 0 0 auto 0; z-index: 100; border-bottom: 1px solid transparent; transition: background 0.4s var(--ease), border-color 0.4s, backdrop-filter 0.4s; }
.nav.scrolled { background: color-mix(in srgb, var(--bg) 72%, transparent); backdrop-filter: blur(18px) saturate(150%); border-bottom-color: var(--border); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 74px; }
.brand { display: flex; align-items: center; gap: 9px; font-weight: 700; font-size: 1.2rem; letter-spacing: -0.02em; }
.brand b { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.brand-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--grad); box-shadow: 0 0 16px var(--accent); }
.nav-links { display: flex; gap: 32px; }
.nav-links a { color: var(--muted); font-weight: 500; font-size: 0.94rem; position: relative; transition: color 0.2s; }
.nav-links a::after { content: ""; position: absolute; left: 0; bottom: -6px; width: 0; height: 2px; background: var(--grad); border-radius: 2px; transition: width 0.35s var(--ease); }
.nav-links a:hover, .nav-links a.active { color: var(--text); }
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }
.nav-actions { display: flex; align-items: center; gap: 12px; }

/* Dil seçici */
.lang-switch { position: relative; }
.lang-btn { font-size: 1.05rem; }
.lang-menu {
  position: absolute; top: 50px; right: 0; min-width: 150px;
  background: var(--surface-solid); border: 1px solid var(--border-strong); border-radius: 12px;
  box-shadow: var(--shadow); padding: 6px; display: flex; flex-direction: column; gap: 2px;
  opacity: 0; transform: translateY(-8px) scale(0.96); transform-origin: top right; pointer-events: none;
  transition: opacity 0.25s var(--ease), transform 0.25s var(--ease); z-index: 120;
}
.lang-switch.open .lang-menu { opacity: 1; transform: none; pointer-events: auto; }
.lang-opt {
  display: flex; align-items: center; gap: 9px; padding: 9px 12px; border-radius: 8px;
  background: none; border: 0; color: var(--text); font-size: 0.9rem; font-weight: 500; cursor: pointer;
  text-align: left; width: 100%; transition: background 0.2s, color 0.2s;
}
.lang-opt:hover { background: var(--surface); }
.lang-opt.active { background: var(--surface); color: var(--accent); font-weight: 700; }
.lang-flag { font-size: 1.1rem; }

/* Hamburger (mobil) */
.menu-btn { display: none; flex-direction: column; gap: 4px; }
.menu-btn span { width: 18px; height: 2px; background: var(--text); border-radius: 2px; transition: transform 0.3s var(--ease), opacity 0.3s; }
.menu-btn[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-btn[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ── Hero ─────────────────────────────────────────────────── */
.hero { position: relative; padding: 150px 0 60px; min-height: 100vh; display: flex; flex-direction: column; justify-content: center; overflow-x: clip; }
.hero-bgword {
  position: absolute; top: 12%; left: 50%; transform: translateX(-50%);
  font-size: clamp(6rem, 22vw, 20rem); font-weight: 900; letter-spacing: -0.05em;
  color: transparent; -webkit-text-stroke: 1px var(--border-strong);
  white-space: nowrap; z-index: 0; pointer-events: none; user-select: none; opacity: 0.5;
}
.hero-grid { position: relative; z-index: 2; display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 30px; align-items: center; }

.pill { display: inline-flex; align-items: center; gap: 9px; padding: 7px 15px; border-radius: 999px; font-size: 0.82rem; font-weight: 500; background: var(--surface); border: 1px solid var(--border-strong); color: var(--muted); margin-bottom: 26px; }
.pulse { width: 8px; height: 8px; border-radius: 50%; background: #22c55e; animation: pulse 2s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(34,197,94,0.55); } 70% { box-shadow: 0 0 0 9px rgba(34,197,94,0); } 100% { box-shadow: 0 0 0 0 rgba(34,197,94,0); } }

.hero-title { font-size: clamp(2.6rem, 6.4vw, 5rem); line-height: 1.02; letter-spacing: -0.045em; font-weight: 800; }
.hero-title .line { display: block; overflow: hidden; }
.hero-title .line > span { display: block; transform: translateY(105%); }
.hero-title.in .line > span { transform: translateY(0); transition: transform 0.9s var(--ease); }
.hero-title.in .line:nth-child(2) > span { transition-delay: 0.12s; }
.hero-title.in .line:nth-child(3) > span { transition-delay: 0.24s; }
.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; font-style: normal; }
em.grad-text { font-style: italic; }

.hero-role { font-size: clamp(1.15rem, 2.6vw, 1.7rem); font-weight: 700; letter-spacing: -0.02em; margin-top: 14px; min-height: 1.4em; color: var(--muted); }
.roleType { color: var(--text); }
.caret { color: var(--accent); animation: blink 1s step-end infinite; font-weight: 300; }
@keyframes blink { 50% { opacity: 0; } }
.hero-tag { color: var(--muted); font-size: 1.08rem; max-width: 500px; margin: 20px 0 32px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }

/* entrance for non-title bits */
.anim-in { opacity: 0; transform: translateY(24px); }
.hero.in .anim-in { opacity: 1; transform: none; transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.hero.in .pill { transition-delay: 0.1s; }
.hero.in .hero-role { transition-delay: 0.4s; }
.hero.in .hero-tag { transition-delay: 0.5s; }
.hero.in .hero-cta { transition-delay: 0.6s; }

/* Hero görsel sahnesi — 3B eğim + çok katmanlı parallax */
.hero-visual { position: relative; height: 520px; perspective: 1100px; }
.hero-stage { position: absolute; inset: 0; transform-style: preserve-3d; transition: transform 0.3s var(--ease); }

.stage-glow { position: absolute; bottom: 4%; left: 50%; transform: translateX(-50%); width: 420px; height: 420px; border-radius: 50%; background: radial-gradient(circle, rgba(176,107,255,0.42), rgba(124,139,255,0.16) 45%, transparent 70%); filter: blur(12px); }
.stage-ring { position: absolute; top: 50%; left: 50%; width: 380px; height: 380px; transform: translate(-50%, -50%); border-radius: 50%; border: 1px dashed var(--border-strong); animation: spin 26s linear infinite; }

.hpiece { position: absolute; transition: transform 0.3s var(--ease); will-change: transform; z-index: 3; }
.hp-in { animation: floatY 5.5s ease-in-out infinite; }

/* Fotoğraf kartı */
.photo-card { top: 50%; left: 50%; width: 300px; height: 400px; margin: -200px 0 0 -150px; z-index: 2; }
.pcard-inner {
  position: relative; width: 100%; height: 100%; border-radius: 26px; overflow: hidden;
  background: linear-gradient(160deg, color-mix(in srgb, var(--accent) 22%, var(--surface-solid)), var(--surface-solid));
  border: 1px solid var(--border-strong); box-shadow: var(--shadow); animation: floatY 6.5s ease-in-out infinite;
}
.figure { position: absolute; bottom: 0; left: 50%; transform: translateX(-50%); height: 108%; width: auto; object-fit: contain; object-position: bottom; filter: drop-shadow(0 20px 30px rgba(0,0,0,0.5)); }
.figure-fallback { position: absolute; inset: 0; display: grid; place-items: center; font-size: 6rem; font-weight: 800; color: #fff; background: var(--grad); }
.figure.loaded ~ .figure-fallback { display: none; }
.pcard-shine { position: absolute; inset: 0; background: linear-gradient(120deg, transparent 40%, rgba(255,255,255,0.14) 50%, transparent 60%); mix-blend-mode: screen; pointer-events: none; }
.pcard-label { position: absolute; left: 12px; bottom: 12px; display: inline-flex; align-items: center; gap: 7px; padding: 7px 12px; border-radius: 10px; background: rgba(10,11,16,0.55); backdrop-filter: blur(8px); border: 1px solid rgba(255,255,255,0.14); color: #fff; font-size: 0.8rem; font-weight: 600; }
.dot-live { width: 7px; height: 7px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 8px #22c55e; }

/* Yüzen kart bileşenleri */
.hpiece .hp-in { display: inline-flex; align-items: center; gap: 8px; padding: 11px 15px; border-radius: 14px; background: color-mix(in srgb, var(--surface-solid) 90%, transparent); border: 1px solid var(--border-strong); box-shadow: var(--shadow); backdrop-filter: blur(10px); font-size: 0.86rem; font-weight: 600; white-space: nowrap; }
.chip-tech .hp-in span { font-size: 1rem; }
.pos-a { top: 8%; left: -6%; }
.pos-b { top: 34%; right: -12%; }
.pos-c { bottom: 20%; left: -10%; }
.pos-d { top: 4%; right: 2%; }
.pos-e { bottom: 6%; right: -6%; }
.pos-f { bottom: 30%; right: 6%; }

.stat-mini .hp-in { flex-direction: column; gap: 0; align-items: flex-start; padding: 12px 16px; }
.stat-mini b { font-size: 1.5rem; font-weight: 800; letter-spacing: -0.03em; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; line-height: 1.1; }
.stat-mini span { font-size: 0.72rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; }
.status-pill .pulse { width: 8px; height: 8px; }
.code-mini .hp-in { font-family: "SFMono-Regular", ui-monospace, Menlo, Consolas, monospace; }
.code-mini .cdots { display: inline-flex; gap: 4px; }
.code-mini .cdots i { width: 8px; height: 8px; border-radius: 50%; background: #ff5f57; display: inline-block; }
.code-mini .cdots i.y { background: #febc2e; }
.code-mini .cdots i.g { background: #28c840; }
.code-mini code { color: var(--accent); font-size: 0.82rem; }

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

.hero-stats { position: relative; z-index: 2; display: flex; gap: 46px; margin-top: 40px; flex-wrap: wrap; }
.hero-stats .st b { display: block; font-size: 2rem; font-weight: 800; letter-spacing: -0.03em; }
.hero-stats .st span { color: var(--faint); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.08em; }

.scroll-hint { position: absolute; bottom: 22px; left: 50%; transform: translateX(-50%); width: 26px; height: 42px; border: 2px solid var(--border-strong); border-radius: 20px; display: grid; place-items: start center; padding-top: 8px; z-index: 3; }
.scroll-hint span { width: 5px; height: 9px; border-radius: 3px; background: var(--accent); animation: scrolldot 1.6s infinite; }
@keyframes scrolldot { 0% { transform: translateY(0); opacity: 1; } 80% { transform: translateY(12px); opacity: 0; } 100% { opacity: 0; } }

/* ── Marquee ──────────────────────────────────────────────── */
.marquee { overflow: hidden; border-block: 1px solid var(--border); padding: 22px 0; background: var(--bg-2); mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent); }
.marquee-track { display: flex; gap: 46px; width: max-content; animation: scrollx 32s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes scrollx { to { transform: translateX(-50%); } }
.marquee-item { display: inline-flex; align-items: center; gap: 12px; font-size: 1.25rem; font-weight: 700; letter-spacing: -0.01em; color: var(--muted); white-space: nowrap; }
.marquee-item::before { content: "✦"; color: var(--accent); font-size: 0.9rem; }

/* ── Statement (scrub reveal) ─────────────────────────────── */
.statement { padding: 130px 0; }
.statement-wrap { display: flex; align-items: center; justify-content: space-between; gap: 40px; }
.statement-text { font-size: clamp(1.6rem, 4.4vw, 3.2rem); font-weight: 700; line-height: 1.28; letter-spacing: -0.025em; max-width: 16ch; flex: 1; }

/* Hologram (scroll-scrub 3D wireframe) */
.holo-stage { position: relative; width: 340px; height: 340px; flex-shrink: 0; display: grid; place-items: center; }
.holo-canvas { position: relative; z-index: 2; width: 320px; height: 320px; }
.holo-glow { position: absolute; width: 260px; height: 260px; border-radius: 50%; background: radial-gradient(circle, rgba(34,211,238,0.35), rgba(124,139,255,0.12) 50%, transparent 70%); filter: blur(24px); animation: holoPulse 3.6s ease-in-out infinite; }
@keyframes holoPulse { 0%,100% { opacity: 0.55; transform: scale(0.92); } 50% { opacity: 1; transform: scale(1.08); } }
.holo-scan { position: absolute; z-index: 3; inset: 10px; border-radius: 50%; pointer-events: none; background: repeating-linear-gradient(0deg, rgba(34,211,238,0.08) 0 2px, transparent 2px 5px); mix-blend-mode: screen; mask: radial-gradient(circle, #000 62%, transparent 66%); -webkit-mask: radial-gradient(circle, #000 62%, transparent 66%); }
.holo-base { position: absolute; bottom: 34px; width: 190px; height: 30px; border-radius: 50%; background: radial-gradient(ellipse, rgba(34,211,238,0.5), transparent 70%); filter: blur(5px); z-index: 1; animation: holoPulse 3.6s ease-in-out infinite; }
.holo-label { position: absolute; bottom: 6px; z-index: 4; font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 0.72rem; letter-spacing: 0.1em; color: var(--accent-3); opacity: 0.8; text-shadow: 0 0 8px rgba(34,211,238,0.6); }
.statement-text .w { display: inline-block; opacity: 0.16; transition: opacity 0.35s var(--ease); }
.statement-text .w.lit { opacity: 1; }
.statement-text .w em { font-style: normal; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ── Sections ─────────────────────────────────────────────── */
.section { padding: 100px 0; position: relative; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 50px; flex-wrap: wrap; }
.eyebrow { display: inline-block; font-size: 0.8rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent); margin-bottom: 12px; }
.section-title { font-size: clamp(2rem, 5vw, 3.2rem); font-weight: 800; letter-spacing: -0.035em; line-height: 1.1; }
.section-sub { color: var(--muted); font-size: 1.02rem; max-width: 420px; }
.section-sub.center { max-width: 520px; margin: 14px auto 0; text-align: center; }

/* ── Work list (dragonfly-style rows) ─────────────────────── */
.filters { display: flex; flex-wrap: wrap; gap: 9px; }
.filter-btn { padding: 8px 17px; border-radius: 999px; font-size: 0.84rem; font-weight: 500; cursor: pointer; background: var(--surface); border: 1px solid var(--border); color: var(--muted); transition: all 0.25s var(--ease); }
.filter-btn:hover { color: var(--text); border-color: var(--border-strong); }
.filter-btn.active { background: var(--grad); border-color: transparent; color: #fff; }

.work-list { border-top: 1px solid var(--border); }
.work-row {
  position: relative; display: grid; grid-template-columns: 60px 1fr auto; align-items: center;
  gap: 24px; padding: 30px 12px; border-bottom: 1px solid var(--border);
  cursor: pointer; overflow: hidden; transition: padding 0.4s var(--ease);
}
.work-row::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, color-mix(in srgb, var(--row-accent, var(--accent)) 14%, transparent), transparent 60%); opacity: 0; transition: opacity 0.4s var(--ease); }
.work-row:hover { padding-left: 26px; }
.work-row:hover::before { opacity: 1; }
.work-num { font-size: 0.95rem; font-weight: 600; color: var(--faint); font-variant-numeric: tabular-nums; position: relative; z-index: 1; }
.work-main { position: relative; z-index: 1; }
.work-title { font-size: clamp(1.4rem, 3vw, 2.1rem); font-weight: 700; letter-spacing: -0.025em; line-height: 1.15; transition: color 0.3s, transform 0.4s var(--ease); }
.work-row:hover .work-title { color: var(--row-accent, var(--accent)); }
.work-meta { display: flex; align-items: center; gap: 14px; margin-top: 8px; color: var(--muted); font-size: 0.9rem; flex-wrap: wrap; }
.work-cat { color: var(--row-accent, var(--accent)); font-weight: 600; }
.work-tags { display: flex; gap: 7px; flex-wrap: wrap; }
.work-arrow { position: relative; z-index: 1; width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--border-strong); display: grid; place-items: center; color: var(--muted); transition: all 0.35s var(--ease); flex-shrink: 0; }
.work-row:hover .work-arrow { background: var(--row-accent, var(--accent)); border-color: transparent; color: #fff; transform: rotate(-45deg); }
.work-desc { position: relative; z-index: 1; color: var(--muted); font-size: 0.95rem; max-width: 62ch; max-height: 0; opacity: 0; overflow: hidden; transition: max-height 0.45s var(--ease), opacity 0.45s var(--ease), margin 0.45s var(--ease); }
.work-row:hover .work-desc { max-height: 120px; opacity: 1; margin-top: 12px; }
.chip { font-size: 0.75rem; font-weight: 500; padding: 4px 11px; border-radius: 999px; background: var(--surface); border: 1px solid var(--border); color: var(--muted); }
.badge-feat { font-size: 0.68rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; padding: 3px 9px; border-radius: 6px; background: var(--row-accent, var(--accent)); color: #fff; }

/* ── Capabilities ─────────────────────────────────────────── */
.cap-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-bottom: 44px; }
.cap-card { padding: 30px; border-radius: var(--radius); background: var(--surface-solid); border: 1px solid var(--border); transition: transform 0.35s var(--ease), border-color 0.35s; }
.cap-card:hover { transform: translateY(-6px); border-color: var(--accent); }
.cap-ico { font-size: 1.8rem; margin-bottom: 16px; }
.cap-card h3 { font-size: 1.2rem; font-weight: 700; letter-spacing: -0.02em; margin-bottom: 8px; }
.cap-card p { color: var(--muted); font-size: 0.94rem; }
.stack-cloud { display: flex; flex-wrap: wrap; gap: 11px; }
.stack-item { display: inline-flex; align-items: center; gap: 9px; padding: 11px 19px; border-radius: 13px; background: var(--surface); border: 1px solid var(--border); font-weight: 600; font-size: 0.92rem; transition: transform 0.25s var(--ease), border-color 0.25s, color 0.25s; }
.stack-item:hover { transform: translateY(-4px) scale(1.05); border-color: var(--accent); color: var(--accent); }
.stack-item .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--grad); }

/* ── GitHub (canlı) ───────────────────────────────────────── */
.github { background: var(--bg-2); border-block: 1px solid var(--border); }
.gh-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 26px; }
.gh-stat { padding: 24px; border-radius: var(--radius); background: var(--surface-solid); border: 1px solid var(--border); text-align: center; }
.gh-stat b { display: block; font-size: 2rem; font-weight: 800; letter-spacing: -0.03em; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.gh-stat span { color: var(--muted); font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.06em; }
.gh-repos { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.gh-repo { display: flex; flex-direction: column; padding: 22px; border-radius: var(--radius); background: var(--surface-solid); border: 1px solid var(--border); transition: transform 0.3s var(--ease), border-color 0.3s; }
.gh-repo:hover { transform: translateY(-5px); border-color: var(--accent); }
.gh-repo-head { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 1.05rem; margin-bottom: 8px; }
.gh-repo-head svg { color: var(--muted); flex-shrink: 0; }
.gh-repo-desc { color: var(--muted); font-size: 0.9rem; flex: 1; margin-bottom: 16px; }
.gh-repo-meta { display: flex; gap: 16px; font-size: 0.82rem; color: var(--faint); }
.gh-repo-meta .lang { display: inline-flex; align-items: center; gap: 6px; }
.gh-lang-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--accent); }
.gh-note { text-align: center; color: var(--muted); margin-top: 22px; }
.gh-note a { color: var(--accent); }

.skeleton-box { position: relative; overflow: hidden; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
.skeleton-box::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--text) 8%, transparent), transparent); transform: translateX(-100%); animation: shimmer 1.5s infinite; }
.gh-stat.skeleton-box { height: 92px; } .gh-repo-sk { height: 150px; }
@keyframes shimmer { to { transform: translateX(100%); } }

/* ── About ────────────────────────────────────────────────── */
.about-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 54px; align-items: center; }
.about-text { color: var(--muted); font-size: 1.06rem; margin-top: 16px; }
.about-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.mini-card { padding: 30px 22px; border-radius: var(--radius); text-align: center; background: var(--surface-solid); border: 1px solid var(--border); transition: transform 0.3s var(--ease), border-color 0.3s; }
.mini-card:hover { transform: translateY(-5px); border-color: var(--accent); }
.mini-card b { display: block; font-size: 2.4rem; font-weight: 800; letter-spacing: -0.03em; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.mini-card span { color: var(--muted); font-size: 0.85rem; }

/* ── Experience timeline ──────────────────────────────────── */
.timeline { position: relative; max-width: 820px; margin: 0 auto; padding-left: 8px; }
.timeline::before { content: ""; position: absolute; left: 7px; top: 6px; bottom: 6px; width: 2px; background: linear-gradient(var(--accent), var(--accent-2), transparent); }
.tl-item { position: relative; padding: 0 0 26px 40px; }
.tl-item:last-child { padding-bottom: 0; }
.tl-dot { position: absolute; left: 0; top: 6px; width: 16px; height: 16px; border-radius: 50%; background: var(--grad); box-shadow: 0 0 0 4px var(--bg), 0 0 14px var(--accent); }
.tl-card { padding: 22px 24px; border-radius: var(--radius); background: var(--surface-solid); border: 1px solid var(--border); transition: transform 0.3s var(--ease), border-color 0.3s; }
.tl-card:hover { transform: translateX(5px); border-color: var(--accent); }
.tl-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.tl-head h3 { font-size: 1.2rem; font-weight: 700; letter-spacing: -0.02em; }
.tl-company { color: var(--accent); font-weight: 600; font-size: 0.92rem; }
.tl-points { list-style: none; display: grid; gap: 7px; }
.tl-points li { position: relative; padding-left: 18px; color: var(--muted); font-size: 0.92rem; }
.tl-points li::before { content: ""; position: absolute; left: 0; top: 9px; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }

/* ── Education & Languages ────────────────────────────────── */
.edu-lang { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 40px; margin-top: 50px; padding-top: 44px; border-top: 1px solid var(--border); }
.block-title { display: flex; align-items: center; gap: 10px; font-size: 1.15rem; font-weight: 700; margin-bottom: 20px; }
.block-ico { font-size: 1.2rem; }
.edu-list { display: grid; gap: 14px; }
.edu-item { padding: 18px 20px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); }
.edu-item b { display: block; font-size: 1.02rem; }
.edu-item span { display: block; color: var(--muted); font-size: 0.9rem; margin: 2px 0 6px; }
.edu-item em { font-style: normal; font-size: 0.82rem; color: var(--accent); font-weight: 600; }
.lang-list { display: grid; gap: 20px; }
.lang-top { display: flex; justify-content: space-between; margin-bottom: 8px; font-weight: 600; }
.lang-lvl { color: var(--muted); font-weight: 500; font-size: 0.88rem; }
.lang-bar { height: 8px; border-radius: 99px; background: var(--surface-solid); border: 1px solid var(--border); overflow: hidden; }
.lang-bar i { display: block; height: 100%; border-radius: 99px; background: var(--grad); width: 0; transition: width 1.1s var(--ease); }

/* Pitch/link etiketi (proje satırı) */
.work-link-tag { color: var(--row-accent, var(--accent)); font-weight: 700; font-size: 0.82rem; }
a.work-row { text-decoration: none; color: inherit; }

/* ── Contact ──────────────────────────────────────────────── */
.contact { padding-bottom: 120px; }
.contact-card { position: relative; overflow: hidden; text-align: center; padding: 72px 40px; border-radius: 28px; background: var(--surface-solid); border: 1px solid var(--border); }
.contact-card::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 50% 0%, rgba(124,139,255,0.18), transparent 60%); pointer-events: none; }
.contact-card > * { position: relative; }
.contact-actions { display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; margin-top: 32px; }

/* ── Footer ───────────────────────────────────────────────── */
.footer { border-top: 1px solid var(--border); padding: 32px 0; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; color: var(--faint); font-size: 0.88rem; flex-wrap: wrap; gap: 10px; }

/* ── Mascot guide (anime, sayfa boyunca gezer) ────────────── */
/* Tam ekran kırpıcı: maskotun ekran dışı animasyonu yatay scroll açmasın */
.mascot-clip { position: fixed; inset: 0; overflow: hidden; pointer-events: none; z-index: 150; }
.mascot {
  position: absolute; top: 55%; display: flex; flex-direction: column; gap: 12px;
  pointer-events: none; opacity: 0;
  transition: transform 0.7s var(--ease), opacity 0.5s var(--ease), filter 0.6s var(--ease);
  will-change: transform, opacity, top;   /* top JS ile sürekli sürülür (akıcı süzülme) */
}
.mascot[data-side="right"] { right: 34px; align-items: flex-end; }
.mascot[data-side="left"]  { left: 34px;  align-items: flex-start; }
/* Gizli haldeki giriş yönü (data-enter'a göre) */
.mascot[data-enter="side"][data-side="right"] { transform: translateX(200%) rotate(8deg); }
.mascot[data-enter="side"][data-side="left"]  { transform: translateX(-200%) rotate(-8deg); }
.mascot[data-enter="top"]    { transform: translateY(-280%) rotate(-6deg); }
.mascot[data-enter="behind"] { transform: scale(0.08) rotate(-24deg); filter: blur(7px); }
.mascot.show { opacity: 1; transform: translateX(0) translateY(0) scale(1) rotate(0); filter: blur(0); }

.mascot-body { position: relative; pointer-events: auto; background: none; border: 0; cursor: pointer; padding: 0; transition: transform 0.3s var(--ease); }
.mascot.show .mascot-body { animation: mascotPop 0.8s var(--ease); }          /* her belirişte şaşaalı pop */
.mascot-body:hover { transform: scale(1.08) translateY(-5px); }
.mascot-body:active { transform: scale(0.93); }
@keyframes mascotPop { 0% { transform: scale(0.3) rotate(-18deg); } 45% { transform: scale(1.18) rotate(8deg); } 68% { transform: scale(0.92) rotate(-4deg); } 85% { transform: scale(1.05) rotate(2deg); } 100% { transform: scale(1) rotate(0); } }

/* Pulsing gökkuşağı aura */
.mascot-aura { position: absolute; left: 50%; bottom: 6%; width: 190px; height: 190px; transform: translateX(-50%); border-radius: 50%; z-index: 0; pointer-events: none;
  background: conic-gradient(from 0deg, #7c8bff, #b06bff, #ff6bcb, #22d3ee, #7c8bff);
  filter: blur(26px); opacity: 0.55; animation: auraPulse 3.4s ease-in-out infinite; }
@keyframes auraPulse { 0%,100% { opacity: 0.4; transform: translateX(-50%) scale(0.9); } 50% { opacity: 0.7; transform: translateX(-50%) scale(1.12); } }

/* Dönen ışık halkası */
.mascot-ring2 { position: absolute; left: 50%; bottom: 4%; width: 150px; height: 150px; transform: translateX(-50%); border-radius: 50%; z-index: 0; pointer-events: none;
  background: conic-gradient(from 0deg, transparent 0 70%, #ffffffaa 80%, transparent 90%); -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 4px), #000 calc(100% - 3px)); mask: radial-gradient(farthest-side, transparent calc(100% - 4px), #000 calc(100% - 3px)); animation: spin 3.6s linear infinite; opacity: 0.8; }

/* Parıldayan yıldız partikülleri */
.mascot-sparks { position: absolute; inset: -10% -20%; z-index: 4; pointer-events: none; }
.mascot-sparks i { position: absolute; width: 10px; height: 10px; background: #fff;
  clip-path: polygon(50% 0, 61% 39%, 100% 50%, 61% 61%, 50% 100%, 39% 61%, 0 50%, 39% 39%);
  opacity: 0; animation: twinkle 2.6s ease-in-out infinite; filter: drop-shadow(0 0 5px #b06bff); }
.mascot-sparks i:nth-child(1) { top: 6%;  left: 10%; animation-delay: 0s;   }
.mascot-sparks i:nth-child(2) { top: 0%;  left: 62%; animation-delay: 0.4s; width: 7px; height: 7px; }
.mascot-sparks i:nth-child(3) { top: 34%; left: -6%; animation-delay: 0.8s; width: 8px; height: 8px; }
.mascot-sparks i:nth-child(4) { top: 22%; left: 92%; animation-delay: 1.1s; }
.mascot-sparks i:nth-child(5) { top: 66%; left: 96%; animation-delay: 1.5s; width: 6px; height: 6px; }
.mascot-sparks i:nth-child(6) { top: 78%; left: 4%;  animation-delay: 1.9s; width: 9px; height: 9px; }
.mascot-sparks i:nth-child(7) { top: 48%; left: 50%; animation-delay: 2.2s; width: 6px; height: 6px; }
.mascot-sparks i:nth-child(8) { top: 12%; left: 34%; animation-delay: 0.6s; width: 7px; height: 7px; }
@keyframes twinkle { 0%,100% { opacity: 0; transform: scale(0.3) rotate(0deg); } 50% { opacity: 1; transform: scale(1.1) rotate(90deg); } }

.mascot-vis { position: relative; z-index: 2; display: block; filter: drop-shadow(0 14px 22px rgba(0,0,0,0.45)) drop-shadow(0 0 14px rgba(176,107,255,0.5)); }
.mascot-acc { display: none; position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 3; filter: drop-shadow(0 0 3px rgba(34,211,238,0.55)); }
.mascot.use-svg .mascot-acc { display: none; } /* aksesuarlar fotoğrafa göre konumlu */
.mascot[data-side="left"] .mascot-vis { transform: scaleX(-1); }             /* sola geçince aynala */
.mascot-img { height: 172px; width: auto; display: block; animation: idolDance 3s ease-in-out infinite; transform-origin: bottom center; }
.mascot-svg { display: none; animation: idolDance 3s ease-in-out infinite; transform-origin: bottom center; }
.mascot.use-svg .mascot-img { display: none; }
.mascot.use-svg .mascot-svg { display: block; }
/* İdol dansı: ritmik zıpla + sağa-sola salın + sevimli hop + squash */
@keyframes idolDance {
  0%   { transform: translateY(0)    rotate(-5deg) scale(1, 1); }
  12%  { transform: translateY(-13px) rotate(-5deg) scale(0.97, 1.04); }
  24%  { transform: translateY(0)    rotate(5deg)  scale(1.03, 0.97); }
  36%  { transform: translateY(-13px) rotate(5deg)  scale(0.97, 1.04); }
  48%  { transform: translateY(0)    rotate(-5deg) scale(1.03, 0.97); }
  56%  { transform: translateY(-30px) rotate(7deg)  scale(1.05, 1.06); } /* neşeli hop */
  64%  { transform: translateY(0)    rotate(-7deg) scale(1.08, 0.88); } /* iniş squash */
  72%  { transform: translateY(-7px)  rotate(0deg)  scale(0.97, 1.05); }
  84%  { transform: translateY(0)    rotate(4deg)  scale(1.02, 0.98); }
  94%  { transform: translateY(-9px)  rotate(-4deg) scale(0.99, 1.02); }
  100% { transform: translateY(0)    rotate(-5deg) scale(1, 1); }
}
/* Uçuşan idol efektleri (kalp / nota / yıldız) */
.mascot-emotes { position: absolute; inset: -30% -25% 0 -25%; z-index: 5; pointer-events: none; }
.mascot-emotes i { position: absolute; bottom: 30%; font-size: 15px; font-style: normal; opacity: 0; animation: emoteFloat 2.8s ease-in infinite; }
.mascot-emotes i:nth-child(1) { left: 8%;  animation-delay: 0s;   }
.mascot-emotes i:nth-child(2) { left: 78%; animation-delay: 0.5s; font-size: 13px; }
.mascot-emotes i:nth-child(3) { left: 30%; animation-delay: 1.0s; font-size: 12px; }
.mascot-emotes i:nth-child(4) { left: 90%; animation-delay: 1.5s; }
.mascot-emotes i:nth-child(5) { left: -2%; animation-delay: 2.0s; font-size: 13px; }
.mascot-emotes i:nth-child(6) { left: 55%; animation-delay: 2.4s; font-size: 11px; }
@keyframes emoteFloat {
  0%   { opacity: 0; transform: translateY(0) scale(0.4) rotate(-10deg); }
  20%  { opacity: 1; transform: translateY(-30px) scale(1) rotate(8deg); }
  100% { opacity: 0; transform: translateY(-95px) scale(0.7) rotate(-14deg); }
}
.mascot .eye { animation: blinkEye 4.5s infinite; transform-origin: center; }
@keyframes blinkEye { 0%,92%,100% { transform: scaleY(1); } 96% { transform: scaleY(0.08); } }

.mascot-bubble {
  pointer-events: auto; max-width: 240px; padding: 13px 17px;
  background: var(--surface-solid); border: 1px solid var(--border-strong); color: var(--text);
  font-size: 0.9rem; line-height: 1.5; box-shadow: var(--shadow); position: relative;
  opacity: 0; transform: translateY(10px) scale(0.9);
  transition: opacity 0.4s var(--ease) 0.15s, transform 0.4s var(--ease) 0.15s;
}
.mascot[data-side="right"] .mascot-bubble { border-radius: 16px 16px 4px 16px; transform-origin: bottom right; }
.mascot[data-side="left"]  .mascot-bubble { border-radius: 16px 16px 16px 4px; transform-origin: bottom left; }
.mascot.show .mascot-bubble { opacity: 1; transform: none; }
.mascot-bubble::after { content: ""; position: absolute; bottom: -7px; width: 14px; height: 14px; background: var(--surface-solid); border-right: 1px solid var(--border-strong); border-bottom: 1px solid var(--border-strong); transform: rotate(45deg); }
.mascot[data-side="right"] .mascot-bubble::after { right: 20px; }
.mascot[data-side="left"]  .mascot-bubble::after { left: 20px; }
.mascot-bubble b { color: var(--accent); }

@media (max-width: 560px) {
  .mascot[data-side="right"] { right: 12px; } .mascot[data-side="left"] { left: 12px; }
  .mascot-img { height: 120px; } .mascot-body svg { width: 78px; height: 98px; } .mascot-bubble { max-width: 170px; font-size: 0.8rem; }
}
@media (prefers-reduced-motion: reduce) { .mascot-body { animation: none; } }

/* ── Reveal (scroll'a bağlı, çok yönlü) ───────────────────── */
.reveal { opacity: 0; transform: translateY(38px); transition: opacity 0.8s var(--ease), transform 0.85s var(--ease); }
.reveal.rv-left  { transform: translateX(-72px); }
.reveal.rv-right { transform: translateX(72px); }
.reveal.rv-down  { transform: translateY(-48px); }
.reveal.in { opacity: 1; transform: none; }

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 940px) {
  .hero-grid { grid-template-columns: 1fr; gap: 20px; }
  .hero-visual { order: -1; height: 460px; }
  .cap-grid { grid-template-columns: 1fr; }
  .gh-stats { grid-template-columns: repeat(3, 1fr); }
  .about-grid { grid-template-columns: 1fr; gap: 36px; }
  .work-row { grid-template-columns: 40px 1fr auto; gap: 16px; }
  .work-desc { display: none; }
  .statement-wrap { flex-direction: column; gap: 30px; }
  .holo-stage { width: 300px; height: 300px; }
  .holo-canvas { width: 280px; height: 280px; }

  /* Mobil menü */
  .menu-btn { display: inline-flex; }
  .hide-mobile { display: none; }
  .nav-links {
    position: absolute; top: 74px; left: 0; right: 0;
    flex-direction: column; gap: 0; align-items: stretch;
    background: color-mix(in srgb, var(--bg) 96%, transparent);
    backdrop-filter: blur(18px); border-bottom: 1px solid var(--border);
    padding: 8px 0; transform: translateY(-12px); opacity: 0; pointer-events: none;
    transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
  }
  .nav-links.open { transform: none; opacity: 1; pointer-events: auto; }
  .nav-links a { padding: 14px 26px; font-size: 1rem; }
  .nav-links a::after { display: none; }
}
@media (max-width: 560px) {
  .hero { padding: 120px 0 40px; }
  .hero-title { font-size: clamp(1.9rem, 8.5vw, 2.8rem); }
  .section { padding: 66px 0; }
  .container { padding: 0 18px; }
  .hero-stats { gap: 22px; }
  .hero-stats .st b { font-size: 1.6rem; }
  .hero-visual { height: 400px; }
  .photo-card { width: 220px; height: 300px; margin: -150px 0 0 -110px; }
  .code-mini, .pos-f, .stat-mini, .pos-d { display: none; }  /* mobilde sadeleştir */
  .chip-tech .hp-in { padding: 8px 12px; font-size: 0.78rem; }
  .statement { padding: 80px 0; }
  .statement-text { font-size: clamp(1.5rem, 7vw, 2.2rem); }
  .gh-stats { grid-template-columns: 1fr; }
  .gh-stat { padding: 18px; }
  .edu-lang { grid-template-columns: 1fr; gap: 30px; }
  .tl-head { gap: 6px; }
  .section-head { margin-bottom: 34px; }
  .contact-card { padding: 44px 20px; }
  .mascot-img { height: 116px; }
  .mascot[data-side="right"] { right: 10px; } .mascot[data-side="left"] { left: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; }
  .reveal, .anim-in, .hero-title .line > span { opacity: 1 !important; transform: none !important; }
  .statement-text .w { opacity: 1 !important; }
}
