/* ==========================================================================
   Ozan Mert Erkorkmaz — Kişisel Portfolyo
   1. Token'lar   2. Temel   3. Yardımcılar   4. Atmosfer   5. Navigasyon
   6. Hero   7. Section iskeleti   8. Hakkımda   9. Ara sahne   10. Deneyim
   11. Projeler   12. Yetenekler   13. Eğitim   14. Sertifikalar
   15. Referans & İletişim   16. Footer   17. Reveal sistemi   18. Reduced motion
   ========================================================================== */

/* 1. TOKEN'LAR ------------------------------------------------------------ */
:root {
  --bg: #08090b;
  --bg-2: #0e1013;
  --surface: rgba(255, 255, 255, 0.028);
  --surface-2: rgba(255, 255, 255, 0.05);
  --line: rgba(255, 255, 255, 0.08);
  --line-2: rgba(255, 255, 255, 0.16);
  --text: #f3f2ef;
  --muted: #a3a5ac;
  --dim: #80838b;

  /* Tek vurgu rengi: portredeki kravat ve banner'daki neon kırmızıdan */
  --red: #e5192f;
  --red-soft: #ff5566;
  --red-glow: rgba(229, 25, 47, 0.35);

  --f-sans: "Inter Tight", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --f-serif: "Instrument Serif", Georgia, "Times New Roman", serif;
  --f-mono: "JetBrains Mono", ui-monospace, "Cascadia Code", Consolas, monospace;

  --radius: 22px;
  --radius-sm: 14px;
  --gutter: clamp(1rem, 4vw, 2.5rem);
  --max: 1240px;
  --nav-h: 72px;

  --ease: cubic-bezier(0.2, 0.7, 0.1, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --dur: 1s;
}

/* 2. TEMEL ----------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 12px);
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--f-sans);
  font-size: clamp(1rem, 0.96rem + 0.2vw, 1.075rem);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
body.menu-open { overflow: hidden; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, p, dl, dd, figure, blockquote { margin: 0; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
::selection { background: var(--red); color: #fff; }

:focus-visible {
  outline: 2px solid var(--red-soft);
  outline-offset: 3px;
  border-radius: 6px;
}

/* 3. YARDIMCILAR ----------------------------------------------------------- */
.container { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.mono { font-family: var(--f-mono); font-size: 0.78rem; letter-spacing: 0.02em; }
.muted { color: var(--muted); }
.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: fixed; top: 12px; left: 12px; z-index: 100;
  padding: 0.7rem 1rem; border-radius: 10px;
  background: var(--text); color: var(--bg); font-weight: 600;
  transform: translateY(-160%); transition: transform 0.3s var(--ease);
}
.skip-link:focus { transform: none; }
.icon { width: 1.15em; height: 1.15em; flex: none; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 0.6rem;
  padding: 0.4rem 0.85rem 0.4rem 0.7rem;
  border: 1px solid var(--line); border-radius: 999px;
  background: var(--surface);
  font-family: var(--f-mono); font-size: 0.75rem; color: var(--muted); letter-spacing: 0.04em;
}
.pulse {
  position: relative; width: 7px; height: 7px; border-radius: 50%; background: var(--red-soft); flex: none;
}
.pulse::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; background: inherit;
  animation: pulse 2.2s var(--ease) infinite;
}
@keyframes pulse { 0% { transform: scale(1); opacity: 0.7; } 100% { transform: scale(3.2); opacity: 0; } }

/* Butonlar */
.btn {
  --h: 52px;
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 0.6rem;
  min-height: var(--h); padding: 0 1.4rem; border-radius: 999px;
  font-weight: 500; font-size: 0.97rem; letter-spacing: -0.005em; white-space: nowrap;
  isolation: isolate; overflow: hidden;
  transition: transform 0.4s var(--ease-out), border-color 0.3s, background-color 0.3s, color 0.3s, box-shadow 0.4s;
}
.btn small { color: inherit; opacity: 0.6; font-family: var(--f-mono); font-size: 0.7rem; }
.btn--sm { --h: 40px; padding: 0 1.1rem; font-size: 0.88rem; }
.btn--primary {
  background: var(--red); color: #fff;
  box-shadow: 0 10px 40px -12px var(--red-glow), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}
.btn--primary::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(120deg, transparent 30%, rgba(255, 255, 255, 0.28) 50%, transparent 70%);
  transform: translateX(-120%); transition: transform 0.8s var(--ease-out);
}
.btn--primary .icon { transition: transform 0.4s var(--ease-out); }
.btn--ghost { border: 1px solid var(--line-2); background: rgba(255, 255, 255, 0.02); color: var(--text); }
@media (hover: hover) {
  .btn:hover { transform: translateY(-2px); }
  .btn--primary:hover { box-shadow: 0 16px 50px -12px var(--red-glow), inset 0 1px 0 rgba(255, 255, 255, 0.25); }
  .btn--primary:hover::before { transform: translateX(120%); }
  .btn--primary:hover .icon { transform: translateX(4px); }
  .btn--ghost:hover { border-color: rgba(255, 255, 255, 0.4); background: rgba(255, 255, 255, 0.06); }
}
.btn:active { transform: translateY(0) scale(0.98); }

.icon-link {
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid var(--line); color: var(--muted);
  transition: color 0.3s, border-color 0.3s, transform 0.4s var(--ease-out), background-color 0.3s;
}
@media (hover: hover) {
  .icon-link:hover { color: var(--text); border-color: var(--line-2); background: var(--surface-2); transform: translateY(-3px); }
}

/* Alt çizgi animasyonlu link */
.ulink {
  background: linear-gradient(currentColor, currentColor) no-repeat 0 100% / 0% 1px;
  transition: background-size 0.45s var(--ease-out), color 0.3s;
  padding-bottom: 2px;
}
.ulink:hover, .ulink:focus-visible { background-size: 100% 1px; color: var(--text); }

/* Kart */
.card {
  position: relative;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.012));
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
/* İmleci takip eden ışık (yalnızca mouse cihazlarda --mx/--my set edilir) */
.spot { isolation: isolate; }
.spot::before {
  content: ""; position: absolute; inset: -1px; z-index: -1; border-radius: inherit; pointer-events: none;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, -30%), rgba(255, 85, 102, 0.1), transparent 45%);
  opacity: 0; transition: opacity 0.4s;
}
.spot::after {
  content: ""; position: absolute; inset: -1px; border-radius: inherit; pointer-events: none; padding: 1px;
  background: radial-gradient(300px circle at var(--mx, 50%) var(--my, -30%), rgba(255, 85, 102, 0.55), transparent 50%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  opacity: 0; transition: opacity 0.4s;
}
@media (hover: hover) and (pointer: fine) {
  .spot:hover::before, .spot:hover::after { opacity: 1; }
}

.tags { display: flex; flex-wrap: wrap; gap: 0.45rem; }
.tag {
  padding: 0.3rem 0.7rem; border-radius: 999px;
  border: 1px solid var(--line); background: rgba(255, 255, 255, 0.025);
  font-family: var(--f-mono); font-size: 0.72rem; color: var(--muted); line-height: 1.4;
}

/* 4. ATMOSFER -------------------------------------------------------------- */
.ambient { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.ambient__glow {
  position: absolute; top: 0; left: 0; width: 70vmax; height: 70vmax; border-radius: 50%;
  transition: transform 2.4s var(--ease);
  will-change: transform;
}
.ambient__glow--a { background: radial-gradient(circle, rgba(229, 25, 47, 0.16) 0%, rgba(229, 25, 47, 0.05) 35%, transparent 65%); }
.ambient__glow--b { background: radial-gradient(circle, rgba(170, 180, 210, 0.07) 0%, transparent 60%); }
.ambient__grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 72px 72px;
  -webkit-mask-image: radial-gradient(ellipse 70% 55% at 50% 0%, #000 0%, transparent 75%);
  mask-image: radial-gradient(ellipse 70% 55% at 50% 0%, #000 0%, transparent 75%);
}
.ambient__noise {
  position: absolute; inset: 0; opacity: 0.05; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.progress { position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 60; pointer-events: none; }
.progress__bar {
  display: block; height: 100%; transform-origin: 0 50%; transform: scaleX(0);
  background: linear-gradient(90deg, var(--red), var(--red-soft));
  box-shadow: 0 0 12px var(--red-glow);
}

/* 5. NAVİGASYON ----------------------------------------------------------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  transition: background-color 0.4s, border-color 0.4s, backdrop-filter 0.4s;
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled, body.menu-open .nav {
  background: rgba(8, 9, 11, 0.72);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  backdrop-filter: blur(16px) saturate(140%);
  border-bottom-color: var(--line);
}
.nav__inner { display: flex; align-items: center; gap: 1.5rem; height: var(--nav-h); }
.nav__brand { display: block; margin-right: auto; border-radius: 8px; }
.nav__brand img {
  height: 46px; width: auto; filter: invert(1);
  transition: opacity 0.3s, transform 0.5s var(--ease-out);
}
@media (hover: hover) { .nav__brand:hover img { transform: scale(1.04); } }

.nav__links { position: relative; }
.nav__links ul { display: flex; gap: 0.15rem; }
.nav__link {
  position: relative; z-index: 1; display: block;
  padding: 0.5rem 0.85rem; border-radius: 999px;
  font-size: 0.9rem; color: var(--muted);
  transition: color 0.3s;
}
.nav__link:hover, .nav__link.is-active { color: var(--text); }
.nav__indicator {
  position: absolute; top: 0; left: 0; height: 100%; width: 0; border-radius: 999px;
  background: var(--surface-2); border: 1px solid var(--line);
  opacity: 0; transition: transform 0.55s var(--ease-out), width 0.55s var(--ease-out), opacity 0.3s;
}
.nav__indicator.is-visible { opacity: 1; }
.nav__indicator::after {
  content: ""; position: absolute; left: 50%; bottom: -9px; width: 4px; height: 4px; margin-left: -2px;
  border-radius: 50%; background: var(--red-soft); box-shadow: 0 0 10px var(--red-soft);
}

.nav__toggle {
  display: none; position: relative; width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid var(--line-2);
}
.nav__toggle span {
  position: absolute; left: 13px; right: 13px; height: 1.5px; background: var(--text); border-radius: 2px;
  transition: transform 0.45s var(--ease-out);
}
.nav__toggle span:first-child { transform: translateY(-4px); }
.nav__toggle span:last-child { transform: translateY(4px); }
.nav__toggle[aria-expanded="true"] span:first-child { transform: rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:last-child { transform: rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: 0; z-index: 45;
  display: flex; flex-direction: column; justify-content: space-between;
  padding: calc(var(--nav-h) + 2rem) var(--gutter) calc(2rem + env(safe-area-inset-bottom));
  background: rgba(8, 9, 11, 0.94);
  -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px);
  opacity: 0; transition: opacity 0.4s var(--ease);
}
.mobile-menu.is-open { opacity: 1; }
.mobile-menu__list li {
  border-bottom: 1px solid var(--line);
  opacity: 0; transform: translateY(24px);
  transition: opacity 0.5s var(--ease-out), transform 0.6s var(--ease-out);
  transition-delay: calc(var(--i) * 45ms + 80ms);
}
.mobile-menu.is-open li { opacity: 1; transform: none; }
.mobile-menu__list a {
  display: flex; align-items: baseline; gap: 1rem; padding: 0.85rem 0;
  font-size: clamp(1.7rem, 7vw, 2.4rem); font-weight: 500; letter-spacing: -0.03em;
  color: var(--muted); transition: color 0.3s;
}
.mobile-menu__list a .mono { color: var(--dim); }
.mobile-menu__list a.is-active, .mobile-menu__list a:hover { color: var(--text); }
.mobile-menu__list a.is-active .mono { color: var(--red-soft); }
.mobile-menu__foot { display: flex; flex-direction: column; gap: 0.3rem; font-size: 0.9rem; color: var(--muted); }

@media (max-width: 899px) {
  :root { --nav-h: 64px; }
  .nav__links { display: none; }
  .nav__toggle { display: block; }
  .nav__brand img { height: 40px; }
}
@media (min-width: 900px) { .mobile-menu { display: none !important; } }

/* 6. HERO ------------------------------------------------------------------ */
.hero {
  --px: 0; --py: 0;
  position: relative;
  min-height: 100vh; min-height: 100svh;
  display: flex; flex-direction: column; justify-content: center;
  padding: calc(var(--nav-h) + 3rem) 0 5.5rem;
}
.hero__grid {
  display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  align-items: center; gap: clamp(2rem, 5vw, 5rem);
}
.hero__eyebrow { margin-bottom: 1.8rem; }
.hero__title {
  font-weight: 600; letter-spacing: -0.045em; line-height: 0.92;
  font-size: clamp(3.1rem, 9.2vw, 8.6rem);
}
.line { display: block; overflow: hidden; padding-bottom: 0.08em; margin-bottom: -0.08em; }
.line__inner { display: block; }
.line__inner--accent {
  font-family: var(--f-serif); font-style: italic; font-weight: 400; letter-spacing: -0.02em;
  padding-right: 0.08em;
  background: linear-gradient(95deg, #fff 10%, #ffd9dd 45%, var(--red-soft) 95%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero__role {
  display: flex; align-items: center; gap: 0.75rem;
  margin-top: 1.6rem; font-size: clamp(1.1rem, 1rem + 0.6vw, 1.45rem); font-weight: 500; letter-spacing: -0.01em;
}
.hero__role-label { font-family: var(--f-mono); color: var(--red-soft); font-size: 0.9em; }
.rotator { display: inline-block; transition: opacity 0.38s var(--ease), transform 0.38s var(--ease), filter 0.38s; }
.rotator.is-out { opacity: 0; transform: translateY(-10px); filter: blur(4px); }
.hero__lead { margin-top: 1rem; max-width: 34rem; color: var(--muted); font-size: clamp(1rem, 0.95rem + 0.25vw, 1.12rem); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 2.2rem; }
.hero__social { display: flex; gap: 0.6rem; margin-top: 1.8rem; }

/* Portre — imza logosundaki açık çerçeveye gönderme yapan köşe çizgileri */
.hero__visual { display: flex; justify-content: center; }
.portrait { position: relative; width: min(420px, 100%); transform-style: preserve-3d; will-change: transform; }
.portrait::before {
  content: ""; position: absolute; inset: -18% -25%; z-index: -1; pointer-events: none;
  background: radial-gradient(closest-side, rgba(229, 25, 47, 0.3), rgba(229, 25, 47, 0.08) 55%, transparent);
}
.portrait__frame {
  position: relative; overflow: hidden; border-radius: 28px;
  border: 1px solid var(--line-2);
  aspect-ratio: 900 / 1012;
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.8);
  background: #d9d9d9;
}
.portrait__frame img { width: 100%; height: 100%; object-fit: cover; filter: contrast(1.04) saturate(0.95); }
.portrait__frame::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, transparent 55%, rgba(8, 9, 11, 0.55) 100%);
}
.portrait__shine {
  position: absolute; inset: 0; pointer-events: none; mix-blend-mode: soft-light;
  background: radial-gradient(600px circle at calc(50% + var(--px) * 120%) calc(30% + var(--py) * 120%), rgba(255, 255, 255, 0.35), transparent 50%);
}
.portrait__ring {
  position: absolute; inset: -22px; z-index: -1; pointer-events: none;
  transform: translate3d(calc(var(--px) * -18px), calc(var(--py) * -18px), 0);
}
.portrait__ring::before, .portrait__ring::after {
  content: ""; position: absolute; width: 58%; height: 62%; border-color: rgba(255, 255, 255, 0.28); border-style: solid;
}
.portrait__ring::before { top: 0; left: 0; border-width: 1px 0 0 1px; border-top-left-radius: 6px; }
.portrait__ring::after { bottom: 0; right: 0; border-width: 0 1px 1px 0; border-bottom-right-radius: 6px; }
.portrait__tag {
  position: absolute; left: 50%; bottom: 18px; transform: translateX(-50%);
  display: flex; align-items: center; gap: 0.6rem; white-space: nowrap;
  padding: 0.55rem 1rem; border-radius: 999px;
  background: rgba(10, 11, 14, 0.6); border: 1px solid rgba(255, 255, 255, 0.14);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
}
.portrait__tag-dot { width: 4px; height: 4px; border-radius: 50%; background: var(--red-soft); }

/* İstatistikler */
.stats {
  display: grid; grid-template-columns: repeat(4, 1fr);
  margin-top: clamp(3rem, 7vw, 5rem);
  border-top: 1px solid var(--line);
}
.stat {
  display: flex; flex-direction: column-reverse; gap: 0.2rem;
  padding: 1.5rem 1.5rem 0 0;
}
.stat + .stat { padding-left: 1.5rem; border-left: 1px solid var(--line); }
.stat__value { font-size: clamp(2rem, 1.5rem + 2vw, 3.2rem); font-weight: 500; letter-spacing: -0.04em; line-height: 1; font-variant-numeric: tabular-nums; }
.stat__value span { color: var(--text); }
.stat__label { color: var(--muted); font-size: 0.88rem; }

/* Yalnızca hero içeriği tek ekrana sığdığında gösterilir; aksi halde istatistiklerle çakışır */
.scroll-cue { display: none; }
@media (min-width: 900px) and (min-height: 1000px) { .scroll-cue { display: flex; } }
.scroll-cue {
  position: absolute; left: 50%; bottom: 1.5rem; transform: translateX(-50%); flex-direction: column; align-items: center; gap: 0.55rem; color: var(--dim);
  transition: color 0.3s;
}
.scroll-cue:hover { color: var(--text); }
.scroll-cue__track { position: relative; width: 1px; height: 38px; background: var(--line-2); overflow: hidden; }
.scroll-cue__dot {
  position: absolute; left: 0; top: 0; width: 1px; height: 12px; background: var(--red-soft);
  animation: cue 2s var(--ease) infinite;
}
@keyframes cue { 0% { transform: translateY(-14px); } 100% { transform: translateY(40px); } }

/* Hero giriş animasyonu (JS varsa) */
.js .hero__title .line__inner { transform: translateY(105%); transition: transform 1.2s var(--ease-out); }
.js .hero__title .line:nth-child(2) .line__inner { transition-delay: 0.12s; }
.js [data-hero-in] {
  opacity: 0; transform: translateY(18px); filter: blur(6px);
  transition: opacity 1s var(--ease), transform 1.1s var(--ease-out), filter 1s var(--ease);
}
.js .hero__eyebrow { transition-delay: 0.05s; }
.js .hero__role { transition-delay: 0.45s; }
.js .hero__lead { transition-delay: 0.55s; }
.js .hero__actions { transition-delay: 0.65s; }
.js .hero__social { transition-delay: 0.75s; }
.js .hero__visual { transform: translateY(30px) scale(0.97); transition-delay: 0.25s; transition-duration: 1.2s, 1.4s, 1.2s; }
.is-loaded .hero__title .line__inner,
.is-loaded [data-hero-in] { transform: none; opacity: 1; filter: none; }

@media (max-width: 899px) {
  .hero { padding-top: calc(var(--nav-h) + 1.5rem); padding-bottom: 5rem; }
  .hero__grid { grid-template-columns: 1fr; gap: 2.25rem; }
  .hero__visual { order: -1; justify-content: flex-start; }
  .portrait { width: min(270px, 68vw); }
  .portrait__frame { border-radius: 22px; }
  .portrait__ring { inset: -14px; }
  .portrait__tag { bottom: 12px; padding: 0.45rem 0.8rem; }
  .portrait__tag .mono { font-size: 0.68rem; }
  .hero__eyebrow { margin-bottom: 1.2rem; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat { padding: 1.25rem 1rem 1.25rem 0; }
  .stat + .stat { padding-left: 0; border-left: 0; }
  .stat:nth-child(even) { padding-left: 1.25rem; border-left: 1px solid var(--line); }
  .stat:nth-child(n + 3) { border-top: 1px solid var(--line); }
  .scroll-cue { display: none; }
}
@media (max-width: 420px) {
  .hero__actions .btn { flex: 1 1 100%; }
}

/* 7. SECTION İSKELETİ ------------------------------------------------------ */
.section { position: relative; padding-block: clamp(5rem, 11vw, 9rem); }
.section__head {
  display: flex; align-items: baseline; gap: 1.1rem;
  margin-bottom: clamp(2.5rem, 6vw, 4.5rem);
}
.section__head::after {
  content: ""; flex: 1; height: 1px; align-self: center;
  background: linear-gradient(90deg, var(--line-2), transparent);
  transform-origin: 0 50%; transform: scaleX(0);
  transition: transform 1.6s var(--ease-out) 0.3s;
}
.section__head.is-in::after, .reduce .section__head::after { transform: scaleX(1); }
.section__index { color: var(--red-soft); }
.section__title {
  font-size: clamp(2.2rem, 1.4rem + 4vw, 4.6rem);
  font-weight: 500; letter-spacing: -0.045em; line-height: 1;
}

/* 8. HAKKIMDA ------------------------------------------------------------- */
.about__grid { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: clamp(2.5rem, 6vw, 5.5rem); align-items: start; }
.about__statement {
  font-size: clamp(1.3rem, 1.05rem + 1.1vw, 2rem);
  line-height: 1.45; letter-spacing: -0.02em; font-weight: 400;
}
.about__statement .w { color: rgba(243, 242, 239, 0.26); transition: color 0.5s var(--ease); }
.about__statement .w.is-lit { color: var(--text); }
.about__side { display: grid; gap: 1.5rem; position: sticky; top: calc(var(--nav-h) + 2rem); }

.archive { position: relative; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.archive img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; filter: grayscale(0.55) contrast(1.05) sepia(0.12); transition: filter 0.8s var(--ease), transform 1.4s var(--ease-out); }
.archive figcaption {
  position: absolute; left: 12px; bottom: 12px;
  padding: 0.35rem 0.7rem; border-radius: 999px;
  background: rgba(8, 9, 11, 0.7); border: 1px solid rgba(255, 255, 255, 0.12);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  font-size: 0.7rem; color: #d8d8d8;
}
@media (hover: hover) { .archive:hover img { filter: grayscale(0) contrast(1) sepia(0); transform: scale(1.03); } }

.info-card { padding: 1.5rem; }
.card__label { color: var(--dim); text-transform: uppercase; letter-spacing: 0.12em; font-size: 0.7rem; font-weight: 400; margin-bottom: 0.9rem; }
.info-list__row { display: flex; justify-content: space-between; gap: 1rem; padding: 0.75rem 0; border-top: 1px solid var(--line); }
.info-list__row:first-child { border-top: 0; padding-top: 0; }
.info-list dt { color: var(--muted); font-size: 0.92rem; }
.info-list dd { text-align: right; font-weight: 500; }

@media (max-width: 899px) {
  .about__grid { grid-template-columns: 1fr; }
  .about__side { position: static; grid-template-columns: 1fr 1fr; align-items: start; }
}
@media (max-width: 560px) { .about__side { grid-template-columns: 1fr; } }

/* 9. ARA SAHNE (Banner) --------------------------------------------------- */
.interlude { padding-inline: var(--gutter); }
.interlude__media {
  position: relative; max-width: 1400px; margin-inline: auto; overflow: hidden;
  border-radius: calc(var(--radius) + 6px); border: 1px solid var(--line);
  aspect-ratio: 1584 / 370;
}
/* Görsel kendi oranında, dikeyde ortalı: yanlardan kırpılmaz, üst/alttaki küçük pay parallax için kullanılır */
.interlude__media img { position: absolute; left: 0; top: 50%; width: 100%; height: auto; margin-top: -12.5%; will-change: transform; }
.interlude__media::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(90deg, rgba(8, 9, 11, 0.35), transparent 25%, transparent 75%, rgba(8, 9, 11, 0.35));
}
@media (max-width: 899px) {
  .interlude__media { aspect-ratio: 5 / 2; border-radius: var(--radius); }
  .interlude__media img { position: static; margin: 0; width: 100%; height: 100%; object-fit: cover; object-position: 58% 50%; transform: none; }
}
@media (max-width: 560px) { .interlude__media { aspect-ratio: 4 / 3; } }

/* 10. DENEYİM -------------------------------------------------------------- */
.timeline { --meta: 220px; --gap: 96px; --rail: calc(var(--meta) + var(--gap) / 2); position: relative; }
.timeline__rail { position: absolute; top: 8px; bottom: 0; left: var(--rail); width: 1px; background: var(--line); }
.timeline__fill {
  position: absolute; inset: 0; transform-origin: 50% 0; transform: scaleY(0);
  background: linear-gradient(180deg, var(--red-soft), var(--red) 80%, transparent);
  box-shadow: 0 0 12px var(--red-glow);
}
.timeline__list { display: grid; gap: clamp(3rem, 7vw, 6rem); }
.job { position: relative; display: grid; grid-template-columns: var(--meta) minmax(0, 1fr); column-gap: var(--gap); }
.job__dot {
  position: absolute; top: 6px; left: calc(var(--rail) - 6px); width: 13px; height: 13px; border-radius: 50%;
  background: var(--bg); border: 1px solid var(--line-2);
  transition: border-color 0.5s, background-color 0.5s, box-shadow 0.5s;
}
.job.is-reached .job__dot { border-color: var(--red-soft); background: var(--red); box-shadow: 0 0 0 5px rgba(229, 25, 47, 0.15), 0 0 20px var(--red-glow); }

.job__meta { position: sticky; top: calc(var(--nav-h) + 2rem); align-self: start; }
.job__date { color: var(--text); font-size: 0.82rem; }
.live { display: inline-flex; align-items: center; gap: 0.45rem; color: var(--red-soft); }
.job__loc { display: flex; align-items: center; gap: 0.4rem; margin-top: 0.4rem; color: var(--muted); font-size: 0.92rem; }
.job__num {
  display: block; margin-top: 1.4rem; font-size: clamp(3rem, 5vw, 4.5rem); line-height: 1; letter-spacing: -0.05em;
  color: transparent; -webkit-text-stroke: 1px rgba(255, 255, 255, 0.14);
}

.job__card { padding: clamp(1.4rem, 3vw, 2.4rem); }
.job__role { font-size: clamp(1.4rem, 1.1rem + 1.2vw, 2rem); font-weight: 500; letter-spacing: -0.03em; line-height: 1.15; }
.job__role-en { margin-top: 0.35rem; color: var(--dim); }
.job__company { display: flex; align-items: flex-start; gap: 0.5rem; margin-top: 0.8rem; color: var(--muted); }
.job__company .icon { margin-top: 0.25em; color: var(--red-soft); }
.job__items { display: grid; gap: 0.85rem; margin: 1.6rem 0; padding-top: 1.6rem; border-top: 1px solid var(--line); }
.job__items li { position: relative; padding-left: 1.4rem; color: #d4d5d9; }
.job__items li::before {
  content: ""; position: absolute; left: 0; top: 0.72em; width: 8px; height: 1px; background: var(--red-soft);
}
.js .job__card .job__items li { opacity: 0; transform: translateY(10px); transition: opacity 0.7s var(--ease), transform 0.8s var(--ease-out); transition-delay: calc(var(--d) + 250ms); }
.js .job__card.is-in .job__items li { opacity: 1; transform: none; }

@media (max-width: 899px) {
  .timeline { --rail: 6px; }
  .job { grid-template-columns: 1fr; padding-left: 2rem; row-gap: 1rem; }
  .job__dot { left: 0; }
  .job__meta { position: static; display: flex; flex-wrap: wrap; align-items: center; column-gap: 1rem; row-gap: 0.2rem; }
  .job__loc { margin-top: 0; }
  .job__num { display: none; }
}

/* 11. PROJELER ------------------------------------------------------------- */
.projects__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(1rem, 2vw, 1.5rem); }
.project {
  display: flex; flex-direction: column; padding: clamp(1.5rem, 3vw, 2.25rem);
  transition: transform 0.6s var(--ease-out), border-color 0.4s;
}
.project__top { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 2.2rem; }
.project__icon {
  display: grid; place-items: center; width: 52px; height: 52px; border-radius: 16px;
  border: 1px solid var(--line-2); background: var(--surface-2); color: var(--red-soft);
  transition: transform 0.6s var(--ease-out), background-color 0.4s;
}
.project__icon .icon { width: 24px; height: 24px; }
.project__num { color: var(--dim); font-size: 0.85rem; }
.project__context { color: var(--red-soft); text-transform: uppercase; letter-spacing: 0.1em; font-size: 0.7rem; }
.project__title { margin-top: 0.5rem; font-size: clamp(1.35rem, 1.1rem + 1vw, 1.85rem); font-weight: 500; letter-spacing: -0.03em; line-height: 1.15; }
.project__highlight { margin-top: 0.4rem; font-family: var(--f-serif); font-style: italic; font-size: 1.35rem; color: var(--muted); }
.project__desc { margin: 1rem 0 1.6rem; color: #cfd0d4; flex: 1; }
@media (hover: hover) and (pointer: fine) {
  .project:hover { transform: translateY(-6px); }
  .project:hover .project__icon { transform: rotate(-8deg) scale(1.06); background: rgba(229, 25, 47, 0.12); }
}
@media (max-width: 760px) { .projects__grid { grid-template-columns: 1fr; } }

/* 12. YETENEKLER ----------------------------------------------------------- */
.skills__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1rem, 2vw, 1.5rem); }
.skill-group { padding: clamp(1.4rem, 2.5vw, 2rem); }
.skill-group--wide { grid-column: span 2; }
.skill-group__head { display: flex; align-items: center; gap: 0.8rem; margin-bottom: 1.4rem; }
.skill-group__head h3 { font-size: 1.08rem; font-weight: 500; letter-spacing: -0.01em; line-height: 1.3; flex: 1; }
.skill-group__icon { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line); color: var(--red-soft); flex: none; }
.skill-group__count { color: var(--dim); }
.chips { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.chip {
  padding: 0.5rem 0.95rem; border-radius: 12px;
  border: 1px solid var(--line-2); background: rgba(255, 255, 255, 0.03);
  font-size: 0.93rem; font-weight: 500; line-height: 1.3;
  transition: border-color 0.3s, background-color 0.3s, color 0.3s, transform 0.4s var(--ease-out);
}
@media (hover: hover) {
  .chip:hover { border-color: rgba(255, 85, 102, 0.55); background: rgba(229, 25, 47, 0.08); transform: translateY(-2px); }
}
.js .skill-group .chip { opacity: 0; transform: translateY(8px) scale(0.96); transition: opacity 0.5s var(--ease), transform 0.6s var(--ease-out), border-color 0.3s, background-color 0.3s; transition-delay: calc(var(--d) + 200ms), calc(var(--d) + 200ms), 0s, 0s; }
.js .skill-group.is-in .chip { opacity: 1; transform: none; }

.soft { margin-top: clamp(4rem, 9vw, 7rem); }
.soft__title { font-size: clamp(1.8rem, 1.3rem + 2.4vw, 3rem); font-weight: 500; letter-spacing: -0.04em; margin-bottom: 2rem; }
.soft__list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.soft__item {
  display: flex; align-items: baseline; gap: 1rem;
  padding: 1.4rem 1rem 1.4rem 0; border-bottom: 1px solid var(--line);
  font-size: clamp(1.1rem, 1rem + 0.6vw, 1.45rem); letter-spacing: -0.02em;
  transition: color 0.3s, padding-left 0.5s var(--ease-out);
}
.soft__num { color: var(--red-soft); }
@media (hover: hover) { .soft__item:hover { padding-left: 0.6rem; } }

@media (max-width: 899px) {
  .skills__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .skill-group--wide { grid-column: 1 / -1; }
  .soft__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
  .skills__grid, .soft__list { grid-template-columns: 1fr; }
  .chip { font-size: 0.88rem; padding: 0.45rem 0.8rem; }
}

/* 13. EĞİTİM --------------------------------------------------------------- */
.edu__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(1rem, 2vw, 1.5rem); }
.edu { display: flex; flex-direction: column; padding: clamp(1.5rem, 3vw, 2.25rem); }
.edu__top { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.8rem; }
.edu__badge {
  display: inline-flex; align-items: center; gap: 0.45rem; padding: 0.35rem 0.8rem; border-radius: 999px;
  background: rgba(229, 25, 47, 0.1); border: 1px solid rgba(255, 85, 102, 0.3); color: #ffb3bb;
  font-family: var(--f-mono); font-size: 0.72rem;
}
.edu__date { color: var(--muted); }
.edu__title { font-size: clamp(1.5rem, 1.2rem + 1.3vw, 2.2rem); font-weight: 500; letter-spacing: -0.035em; line-height: 1.1; }
.edu__school { margin-top: 0.45rem; font-family: var(--f-serif); font-style: italic; font-size: clamp(1.2rem, 1.1rem + 0.4vw, 1.45rem); color: #d6d7da; }
.edu__desc { margin-top: 1rem; color: #cfd0d4; }
.edu__meta { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 1rem; margin-top: auto; padding-top: 1.8rem; }
.edu__meta > div { padding-top: 0.9rem; border-top: 1px solid var(--line); }
.edu__meta dt { color: var(--dim); font-family: var(--f-mono); font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.1em; }
.edu__meta dd { margin-top: 0.25rem; font-weight: 500; }
.edu__grade { font-size: 1.4rem; letter-spacing: -0.02em; }
@media (max-width: 760px) { .edu__grid { grid-template-columns: 1fr; } }

/* 14. SERTİFİKALAR --------------------------------------------------------- */
.certs__grid { columns: 3 300px; column-gap: clamp(1rem, 2vw, 1.5rem); }
.cert-group {
  break-inside: avoid; margin-bottom: clamp(1rem, 2vw, 1.5rem);
  padding: 1.5rem; border-radius: var(--radius); border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.012));
}
.cert-group__head { display: flex; align-items: center; gap: 0.65rem; padding-bottom: 1rem; margin-bottom: 0.4rem; border-bottom: 1px solid var(--line); }
.cert-group__head .icon { color: var(--red-soft); width: 1.3em; height: 1.3em; }
.cert-group__head h3 { flex: 1; font-size: 1.05rem; font-weight: 500; letter-spacing: -0.01em; }
.cert-group__head .mono { display: grid; place-items: center; min-width: 26px; height: 26px; border-radius: 50%; background: var(--surface-2); color: var(--muted); }
.cert { display: flex; gap: 0.9rem; padding: 0.8rem 0; }
.cert + .cert { border-top: 1px dashed var(--line); }
.cert__num { color: var(--dim); padding-top: 0.2rem; }
.cert__body { display: flex; flex-direction: column; }
.cert__title { font-weight: 500; line-height: 1.4; }
.cert__tr { color: var(--muted); font-size: 0.9rem; }

/* 15. REFERANS & İLETİŞİM -------------------------------------------------- */
.references {
  position: relative; max-width: 880px; margin: 0 auto clamp(5rem, 11vw, 8rem);
  padding: clamp(1.75rem, 4vw, 3rem); border-radius: var(--radius);
  border: 1px solid var(--line); background: var(--surface);
  text-align: center;
}
.references__icon { width: 34px; height: 34px; color: var(--red-soft); margin: 0 auto 1rem; opacity: 0.9; }
.references__label { color: var(--dim); text-transform: uppercase; letter-spacing: 0.14em; font-size: 0.72rem; }
.references__text { margin-top: 0.9rem; font-family: var(--f-serif); font-size: clamp(1.3rem, 1.1rem + 0.9vw, 1.9rem); line-height: 1.35; color: #e4e4e6; }

.contact { padding-bottom: clamp(4rem, 8vw, 6rem); }
.contact__head { display: flex; flex-direction: column; gap: 1rem; }
.contact__head .section__index { display: block; }
.contact__title { font-size: clamp(3rem, 1.5rem + 8vw, 9rem); font-weight: 500; letter-spacing: -0.055em; line-height: 0.95; }
.contact__title em { font-family: var(--f-serif); font-weight: 400; letter-spacing: -0.02em; color: var(--red-soft); }
.contact__mail { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.25rem; margin: clamp(2rem, 4vw, 3rem) 0 clamp(2.5rem, 5vw, 4rem); }
.big-link {
  font-size: clamp(1.15rem, 0.8rem + 1.8vw, 2.2rem); font-weight: 500; letter-spacing: -0.03em;
  overflow-wrap: anywhere;
  background: linear-gradient(var(--red-soft), var(--red-soft)) no-repeat 0 100% / 100% 1px;
  padding-bottom: 4px; transition: background-size 0.6s var(--ease-out), color 0.3s;
}
@media (hover: hover) { .big-link:hover { background-size: 0% 1px; background-position: 100% 100%; color: var(--red-soft); } }
.copy-btn {
  display: inline-flex; align-items: center; gap: 0.45rem; min-height: 40px; padding: 0 1rem; border-radius: 999px;
  border: 1px solid var(--line-2); font-size: 0.85rem; color: var(--muted);
  transition: color 0.3s, border-color 0.3s, background-color 0.3s;
}
.copy-btn:hover { color: var(--text); border-color: rgba(255, 255, 255, 0.35); }
.copy-btn.is-done { color: #7ee2a8; border-color: rgba(126, 226, 168, 0.4); }

.contact__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); gap: 1rem; }
.contact__item {
  display: flex; align-items: center; gap: 1rem; height: 100%; padding: 1.2rem 1.3rem;
  transition: transform 0.5s var(--ease-out), border-color 0.3s;
}
.contact__icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line); flex: none; color: var(--red-soft); }
.contact__body { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.contact__label { color: var(--dim); text-transform: uppercase; letter-spacing: 0.1em; font-size: 0.68rem; }
.contact__value { font-weight: 500; font-size: 0.95rem; overflow-wrap: anywhere; line-height: 1.4; }
.contact__arrow { color: var(--dim); transition: transform 0.4s var(--ease-out), color 0.3s; }
@media (hover: hover) {
  a.contact__item:hover { transform: translateY(-3px); }
  a.contact__item:hover .contact__arrow { color: var(--red-soft); transform: translate(3px, -3px); }
}

/* 16. FOOTER --------------------------------------------------------------- */
.footer { border-top: 1px solid var(--line); padding: 2rem 0 calc(2rem + env(safe-area-inset-bottom)); }
.footer__inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; }
.footer__sign { height: 60px; width: auto; filter: invert(1); opacity: 0.85; }
.to-top { display: inline-flex; align-items: center; gap: 0.5rem; color: var(--muted); font-size: 0.9rem; transition: color 0.3s; }
.to-top .icon { transition: transform 0.4s var(--ease-out); }
.to-top:hover { color: var(--text); }
.to-top:hover .icon { transform: translateY(-3px); }
@media (max-width: 600px) { .footer__inner { flex-direction: column; text-align: center; } }

.toast {
  position: fixed; left: 50%; bottom: calc(1.5rem + env(safe-area-inset-bottom)); z-index: 80;
  padding: 0.75rem 1.2rem; border-radius: 999px;
  background: rgba(20, 22, 26, 0.9); border: 1px solid var(--line-2); font-size: 0.9rem;
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  transform: translate(-50%, 20px); opacity: 0; pointer-events: none;
  transition: transform 0.5s var(--ease-out), opacity 0.4s;
}
.toast.is-visible { transform: translate(-50%, 0); opacity: 1; }
.noscript { padding: 1rem var(--gutter); text-align: center; color: var(--muted); }

/* 17. REVEAL SİSTEMİ ------------------------------------------------------- */
/* Her section içeriğine uygun farklı bir giriş: up / left / rise / scale / blur / clip / curtain */
.js [data-reveal] {
  transition:
    opacity var(--dur) var(--ease),
    transform calc(var(--dur) * 1.1) var(--ease-out),
    filter var(--dur) var(--ease),
    clip-path calc(var(--dur) * 1.3) var(--ease-out);
  transition-delay: var(--d, 0ms);
}
.js [data-reveal="up"]    { opacity: 0; transform: translateY(32px); }
.js [data-reveal="left"]  { opacity: 0; transform: translateX(-28px); }
.js [data-reveal="rise"]  { opacity: 0; transform: translateY(60px) scale(0.97); }
.js [data-reveal="scale"] { opacity: 0; transform: scale(0.93); }
.js [data-reveal="blur"]  { opacity: 0; filter: blur(14px); transform: scale(1.03); }
/* clip: gözlemlenen kapsayıcı görünür kalır (IntersectionObserver tamamen kırpılmış öğeyi görmez), içindeki görsel açılır */
.js [data-reveal="clip"] img {
  clip-path: inset(100% 0 0 0); transform: scale(1.25);
  transition: clip-path 1.3s var(--ease-out), transform 1.6s var(--ease-out), filter 0.8s var(--ease);
}
.js [data-reveal="clip"] figcaption { opacity: 0; transform: translateY(10px); transition: opacity 0.8s var(--ease) 0.7s, transform 0.8s var(--ease-out) 0.7s; }
.js [data-reveal="clip"].is-in figcaption { opacity: 1; transform: none; }
.js [data-reveal="curtain"] { clip-path: inset(0 42% 0 42% round 28px); opacity: 0.3; }
.js [data-reveal].is-in { opacity: 1; transform: none; filter: none; }
.js [data-reveal="curtain"].is-in { clip-path: inset(0 0 0 0 round 28px); }
.js [data-reveal="clip"].is-in img { clip-path: inset(0 0 0 0); transform: none; }

/* Mobilde daha kısa ve hafif hareket */
@media (max-width: 760px) {
  :root { --dur: 0.8s; }
  .js [data-reveal="rise"] { transform: translateY(36px); }
  .js [data-reveal="left"] { transform: translateY(24px); }
  .js [data-reveal="blur"] { filter: blur(8px); }
}

/* 18. REDUCED MOTION ------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important; animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important; transition-delay: 0ms !important;
  }
  .js [data-reveal], .js [data-reveal] img, .js [data-reveal] figcaption, .js [data-hero-in], .js .hero__title .line__inner,
  .js .job__items li, .js .chip {
    opacity: 1 !important; transform: none !important; filter: none !important; clip-path: none !important;
  }
  .about__statement .w { color: var(--text); }
  .portrait { transform: none !important; }
  .interlude__media img { transform: none !important; }
}
