/* ozturksahin.com — portfolyo. Harici yazı tipi/kütüphane yok: hızlı ve gizlilik dostu. */
:root {
  --bg: #0b0d17;
  --bg-2: #11142200;
  --surface: rgba(255, 255, 255, 0.045);
  --surface-2: rgba(255, 255, 255, 0.08);
  --border: rgba(255, 255, 255, 0.11);
  --text: #eceefb;
  --muted: #9aa0c0;
  --accent: #7c83ff;
  --accent-2: #22d3ee;
  --accent-3: #c084fc;
  --ok: #34d399;
  --grad: linear-gradient(120deg, var(--accent), var(--accent-2) 55%, var(--accent-3));
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
  --radius: 22px;
  --nav-h: 68px;
  color-scheme: dark;
}
[data-theme='light'] {
  --bg: #f6f7fd;
  --surface: rgba(255, 255, 255, 0.75);
  --surface-2: rgba(255, 255, 255, 0.95);
  --border: rgba(30, 34, 80, 0.12);
  --text: #171a33;
  --muted: #5b6183;
  --accent: #4f56e8;
  --accent-2: #0891b2;
  --accent-3: #9333ea;
  --ok: #059669;
  --shadow: 0 18px 50px rgba(50, 60, 140, 0.16);
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 12px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 17px/1.65 system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
  transition: background .35s, color .35s;
}
a { color: inherit; text-decoration: none; }
h1, h2, h3, p { margin: 0; }
ul { list-style: none; margin: 0; padding: 0; }
:focus-visible { outline: 3px solid var(--accent-2); outline-offset: 3px; border-radius: 8px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--accent); color: #fff; padding: 10px 16px; border-radius: 10px; transition: top .2s; }
.skip:focus { top: 12px; }
.grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; background-size: 200% 100%; animation: shimmer 8s ease-in-out infinite; }
@keyframes shimmer { 0%, 100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }

/* Kaydırma ilerleme çubuğu */
.progress { position: fixed; inset: 0 0 auto 0; height: 3px; z-index: 60; }
.progress span { display: block; height: 100%; width: 100%; background: var(--grad); transform: scaleX(0); transform-origin: 0 50%; }

/* ---------- Üst menü ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50; height: var(--nav-h);
  /* Üç eşit sütun (1fr auto 1fr): bağlantılar, sol/sağ elemanların genişliğinden bağımsız olarak sayfanın TAM ortasında durur */
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px; padding: 0 max(20px, 4vw);
  transition: background .3s, backdrop-filter .3s, border-color .3s, box-shadow .3s; border-bottom: 1px solid transparent;
}
.nav .brand { grid-column: 1; justify-self: start; }
.nav nav { grid-column: 2; }
.nav .theme-toggle { grid-column: 3; justify-self: end; }
.nav.scrolled { background: color-mix(in srgb, var(--bg) 72%, transparent); backdrop-filter: blur(16px) saturate(1.4); -webkit-backdrop-filter: blur(16px) saturate(1.4); border-bottom-color: var(--border); }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; letter-spacing: -0.01em; }
.logo { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 11px; background: var(--grad); color: #fff; font-weight: 800; box-shadow: 0 6px 18px color-mix(in srgb, var(--accent) 45%, transparent); }
.brand-name .dot { color: var(--muted); font-weight: 500; }
.nav nav { display: flex; gap: 6px; }
.nav nav a { padding: 8px 14px; border-radius: 999px; color: var(--muted); font-size: 15px; font-weight: 500; transition: color .2s, background .2s; }
.nav nav a:hover { color: var(--text); background: var(--surface); }
.theme-toggle { width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--border); background: var(--surface); color: var(--text); cursor: pointer; display: grid; place-items: center; font-size: 18px; transition: transform .25s, background .2s; }
.theme-toggle:hover { transform: rotate(20deg) scale(1.06); background: var(--surface-2); }
.theme-toggle .sun { display: none; }
[data-theme='light'] .theme-toggle .sun { display: inline; }
[data-theme='light'] .theme-toggle .moon { display: none; }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 100svh; display: grid; place-items: center; padding: calc(var(--nav-h) + 30px) max(20px, 5vw) 90px; overflow: hidden; isolation: isolate; }
.aurora { position: absolute; inset: 0; z-index: -3; filter: blur(70px) saturate(1.3); opacity: .75; }
[data-theme='light'] .aurora { opacity: .55; }
.blob { position: absolute; border-radius: 50%; will-change: transform; }
.b1 { width: 46vw; height: 46vw; min-width: 320px; min-height: 320px; left: -8vw; top: -10vh; background: radial-gradient(circle at 30% 30%, var(--accent), transparent 68%); animation: drift1 22s ease-in-out infinite; }
.b2 { width: 40vw; height: 40vw; min-width: 280px; min-height: 280px; right: -6vw; top: 8vh; background: radial-gradient(circle at 60% 40%, var(--accent-2), transparent 66%); animation: drift2 26s ease-in-out infinite; }
.b3 { width: 36vw; height: 36vw; min-width: 260px; min-height: 260px; left: 30vw; bottom: -14vh; background: radial-gradient(circle at 50% 50%, var(--accent-3), transparent 64%); animation: drift3 30s ease-in-out infinite; }
@keyframes drift1 { 0%, 100% { transform: translate(0, 0) scale(1); } 50% { transform: translate(10vw, 12vh) scale(1.15); } }
@keyframes drift2 { 0%, 100% { transform: translate(0, 0) scale(1); } 50% { transform: translate(-12vw, 14vh) scale(1.2); } }
@keyframes drift3 { 0%, 100% { transform: translate(0, 0) scale(1); } 50% { transform: translate(-8vw, -14vh) scale(1.12); } }
.grid-bg { position: absolute; inset: 0; z-index: -2; background-image: linear-gradient(var(--border) 1px, transparent 1px), linear-gradient(90deg, var(--border) 1px, transparent 1px); background-size: 56px 56px; mask-image: radial-gradient(ellipse 70% 60% at 50% 45%, #000 20%, transparent 75%); -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 45%, #000 20%, transparent 75%); opacity: .55; }
.spotlight { position: absolute; inset: 0; z-index: -1; background: radial-gradient(520px circle at var(--mx, 50%) var(--my, 40%), color-mix(in srgb, var(--accent) 26%, transparent), transparent 62%); transition: background .1s; pointer-events: none; }

.chips .chip { position: absolute; padding: 7px 14px; border-radius: 999px; font-size: 13px; font-weight: 600; letter-spacing: .01em; color: var(--text); background: var(--surface); border: 1px solid var(--border); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); box-shadow: 0 8px 24px rgba(0, 0, 0, .18); animation: float 7s ease-in-out infinite; z-index: -1; }
.c1 { left: 9%; top: 26%; animation-delay: -1s; }
.c2 { right: 10%; top: 24%; animation-delay: -3s; }
.c3 { left: 6%; bottom: 24%; animation-delay: -2s; }
.c4 { right: 8%; bottom: 28%; animation-delay: -4.5s; }
.c5 { left: 20%; top: 14%; animation-delay: -5s; }
.c6 { right: 20%; bottom: 14%; animation-delay: -.5s; }
@keyframes float { 0%, 100% { transform: translateY(0) rotate(-1.5deg); } 50% { transform: translateY(-16px) rotate(1.5deg); } }

.hero-inner { text-align: center; max-width: 860px; }
.eyebrow { display: inline-block; padding: 6px 16px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface); color: var(--muted); font-size: 14px; font-weight: 600; letter-spacing: .04em; margin-bottom: 22px; }
.hero h1 { font-size: clamp(46px, 9vw, 104px); line-height: 1.02; letter-spacing: -0.035em; font-weight: 800; }
.role { margin-top: 20px; font-size: clamp(20px, 3.2vw, 30px); font-weight: 600; letter-spacing: -0.01em; }
.role-static { color: var(--muted); }
.rotator { display: inline-block; min-width: 1ch; color: var(--text); border-bottom: 3px solid var(--accent); padding: 0 4px 1px; transition: opacity .35s, transform .35s; }
.rotator.out { opacity: 0; transform: translateY(8px); }
.lead { margin: 24px auto 0; max-width: 640px; color: var(--muted); font-size: clamp(16px, 2vw, 19px); }
.cta { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; margin-top: 34px; }
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 14px 26px; border-radius: 999px; font-weight: 700; font-size: 16px; border: 1px solid var(--border); transition: transform .2s, box-shadow .2s, background .2s; cursor: pointer; }
.btn:hover { transform: translateY(-3px); }
.btn.primary { background: var(--grad); background-size: 160% 100%; color: #fff; border-color: transparent; box-shadow: 0 12px 34px color-mix(in srgb, var(--accent) 50%, transparent); }
.btn.primary:hover { background-position: 100% 50%; box-shadow: 0 18px 42px color-mix(in srgb, var(--accent) 60%, transparent); }
.btn.ghost { background: var(--surface); color: var(--text); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.btn.ghost:hover { background: var(--surface-2); }
.scroll-hint { position: absolute; bottom: 28px; left: 50%; transform: translateX(-50%); width: 26px; height: 42px; border: 2px solid var(--border); border-radius: 16px; }
.scroll-hint span { position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; border-radius: 3px; background: var(--accent-2); animation: wheel 1.8s ease-in-out infinite; }
@keyframes wheel { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }

/* ---------- Bölümler ---------- */
.section { max-width: 1160px; margin: 0 auto; padding: 110px max(20px, 4vw); }
.section.tight { padding-top: 40px; padding-bottom: 90px; }
.section-head { text-align: center; margin-bottom: 56px; }
.kicker { color: var(--accent-2); font-weight: 700; font-size: 14px; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 12px; }
.section h2 { font-size: clamp(30px, 5vw, 52px); line-height: 1.1; letter-spacing: -0.03em; font-weight: 800; }
.sub { margin-top: 14px; color: var(--muted); }

/* Kaydırınca beliren öğeler */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s cubic-bezier(.2, .7, .2, 1), transform .8s cubic-bezier(.2, .7, .2, 1); }
.js .reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .12s; } .reveal.d2 { transition-delay: .24s; } .reveal.d3 { transition-delay: .36s; } .reveal.d4 { transition-delay: .48s; }

/* ---------- Proje kartları ---------- */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 24px; perspective: 1200px; }
.card {
  --rx: 0deg; --ry: 0deg;
  position: relative; display: flex; flex-direction: column; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); overflow: hidden;
  transform: rotateX(var(--rx)) rotateY(var(--ry)); transform-style: preserve-3d; box-shadow: var(--shadow);
  transition: transform .18s ease-out, border-color .3s, box-shadow .3s;
}
.card::before { content: ''; position: absolute; inset: 0; border-radius: inherit; padding: 1px; background: conic-gradient(from var(--ang, 0deg), transparent 0 60%, var(--accent), var(--accent-2), transparent 100%); -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 .3s; pointer-events: none; }
.card:hover { border-color: transparent; box-shadow: 0 30px 80px color-mix(in srgb, var(--accent) 28%, rgba(0, 0, 0, .4)); }
.card:hover::before { opacity: 1; animation: spin 4s linear infinite; }
@property --ang { syntax: '<angle>'; inherits: false; initial-value: 0deg; }
@keyframes spin { to { --ang: 360deg; } }
.card-body { padding: 24px 26px 26px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.card-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.card h3 { font-size: 22px; letter-spacing: -0.02em; }
.card p { color: var(--muted); font-size: 15.5px; }
.badge { padding: 4px 12px; border-radius: 999px; font-size: 12px; font-weight: 700; letter-spacing: .03em; color: var(--muted); border: 1px solid var(--border); background: var(--surface); white-space: nowrap; }
.badge.on { color: var(--ok); border-color: color-mix(in srgb, var(--ok) 45%, transparent); background: color-mix(in srgb, var(--ok) 12%, transparent); }
.badge.on::before { content: ''; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--ok); margin-right: 7px; animation: pulse 1.8s ease-out infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--ok) 60%, transparent); } 100% { box-shadow: 0 0 0 9px transparent; } }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; padding-top: 6px; }
.tags li { padding: 3px 11px; border-radius: 8px; font-size: 12.5px; font-weight: 600; color: var(--muted); background: var(--surface-2); border: 1px solid var(--border); }
.card-link { margin-top: 6px; font-weight: 700; color: var(--accent-2); display: inline-flex; gap: 6px; align-items: center; }
.card-link:hover { gap: 10px; }
.card-link.muted { color: var(--muted); font-weight: 600; }

/* Kart görselleri (saf CSS) */
.mock { height: 190px; display: grid; place-items: center; position: relative; overflow: hidden; }
.mock-note { background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 35%, transparent), color-mix(in srgb, var(--accent-2) 22%, transparent)); }
.mock-sticker { background: linear-gradient(135deg, color-mix(in srgb, #25d366 30%, transparent), color-mix(in srgb, var(--accent-2) 20%, transparent)); }
.mock-chat { background: linear-gradient(135deg, color-mix(in srgb, #2aabee 32%, transparent), color-mix(in srgb, var(--accent-3) 22%, transparent)); }
.win { width: 78%; border-radius: 14px; background: color-mix(in srgb, var(--bg) 80%, transparent); border: 1px solid var(--border); box-shadow: 0 14px 34px rgba(0, 0, 0, .3); overflow: hidden; transform: translateZ(30px) rotate(-2deg); transition: transform .4s; }
.card:hover .win { transform: translateZ(40px) rotate(0deg) scale(1.04); }
.win-bar { display: flex; gap: 6px; padding: 9px 12px; border-bottom: 1px solid var(--border); }
.win-bar i { width: 9px; height: 9px; border-radius: 50%; background: #ff5f57; }
.win-bar i:nth-child(2) { background: #febc2e; } .win-bar i:nth-child(3) { background: #28c840; }
.win-body { display: grid; grid-template-columns: 28% 1fr; gap: 10px; padding: 12px; }
.side { display: grid; gap: 7px; align-content: start; }
.side b { height: 9px; border-radius: 5px; background: var(--surface-2); }
.side b.on { background: var(--accent); }
.list { display: grid; gap: 8px; }
.note { padding: 8px 10px; border-radius: 9px; display: grid; gap: 5px; border-left: 4px solid var(--accent); background: var(--surface); }
.note em { display: block; height: 7px; width: 80%; border-radius: 4px; background: var(--surface-2); }
.note em.s { width: 55%; height: 6px; opacity: .7; }
.note.n1 { border-left-color: #60a5fa; } .note.n2 { border-left-color: #facc15; } .note.n3 { border-left-color: #34d399; }
.stickers { display: grid; grid-template-columns: repeat(2, 70px); gap: 14px; transform: rotate(-4deg); }
.st { display: grid; place-items: center; height: 70px; font-size: 36px; border-radius: 20px; background: var(--surface-2); border: 1px solid var(--border); box-shadow: 0 10px 24px rgba(0, 0, 0, .25); animation: bob 4s ease-in-out infinite; }
.st.s2 { animation-delay: -1s; } .st.s3 { animation-delay: -2s; } .st.s4 { animation-delay: -3s; }
@keyframes bob { 0%, 100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-8px) rotate(4deg); } }
.bubbles { display: grid; gap: 10px; width: 72%; }
.bubble { padding: 9px 14px; border-radius: 16px; font-size: 14px; font-weight: 600; max-width: 82%; box-shadow: 0 8px 20px rgba(0, 0, 0, .2); opacity: 0; animation: pop 6s ease-in-out infinite; }
.bubble.in { background: var(--surface-2); border: 1px solid var(--border); border-bottom-left-radius: 4px; justify-self: start; }
.bubble.out { background: #2aabee; color: #fff; border-bottom-right-radius: 4px; justify-self: end; }
.bubble:nth-child(2) { animation-delay: 1.2s; } .bubble:nth-child(3) { animation-delay: 2.4s; }
@keyframes pop { 0% { opacity: 0; transform: translateY(10px) scale(.9); } 8%, 78% { opacity: 1; transform: none; } 90%, 100% { opacity: 0; transform: translateY(-6px); } }
.card.next { grid-column: 1 / -1; border-style: dashed; background: transparent; box-shadow: none; display: grid; place-items: center; min-height: 150px; transform: none; }
.card.next:hover { box-shadow: none; }
.next-inner { text-align: center; padding: 26px; display: grid; gap: 8px; justify-items: center; }
@media (min-width: 720px) {
  .next-inner { grid-template-columns: auto 1fr; text-align: left; column-gap: 22px; justify-items: start; align-items: center; }
  .next-inner .plus { grid-row: 1 / span 2; }
}
.plus { display: grid; place-items: center; width: 60px; height: 60px; border-radius: 50%; font-size: 30px; color: var(--accent-2); border: 2px dashed var(--border); animation: spinslow 14s linear infinite; }
@keyframes spinslow { to { transform: rotate(360deg); } }

/* ---------- Hakkımda ---------- */
.about { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(30px, 6vw, 80px); align-items: center; }
.about-text h2 { margin-bottom: 22px; }
.about-text p { color: var(--muted); margin-top: 14px; }
.values { display: grid; gap: 16px; }
.values li { display: flex; gap: 16px; align-items: center; padding: 20px 22px; border-radius: 18px; background: var(--surface); border: 1px solid var(--border); transition: transform .25s, border-color .25s; }
.values li:hover { transform: translateX(8px); border-color: var(--accent); }
.v-ico { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 15px; font-size: 26px; background: var(--surface-2); flex: none; }
.values h3 { font-size: 18px; } .values p { color: var(--muted); font-size: 15px; }

/* ---------- Teknoloji şeridi ---------- */
.marquee { overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.track { display: flex; gap: 16px; width: max-content; animation: scrollx 32s linear infinite; }
.marquee:hover .track { animation-play-state: paused; }
.track span { padding: 12px 24px; border-radius: 999px; background: var(--surface); border: 1px solid var(--border); font-weight: 700; font-size: 16px; white-space: nowrap; }
@keyframes scrollx { to { transform: translateX(-50%); } }

/* ---------- İletişim ---------- */
.contact { text-align: center; padding: clamp(40px, 7vw, 72px) 24px; border-radius: 30px; background: var(--surface); border: 1px solid var(--border); position: relative; overflow: hidden; }
.contact::before { content: ''; position: absolute; inset: -40% -10% auto -10%; height: 90%; background: radial-gradient(closest-side, color-mix(in srgb, var(--accent) 30%, transparent), transparent); filter: blur(30px); z-index: 0; pointer-events: none; }
.contact > * { position: relative; z-index: 1; }
.links { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 30px; }
.links a[href='#'] { display: none; }
.contact-empty { margin-top: 26px; color: var(--muted); font-size: 15px; }
.contact-empty[hidden] { display: none; }

.footer { text-align: center; padding: 30px 20px 50px; color: var(--muted); font-size: 14px; border-top: 1px solid var(--border); }
.footer a { color: var(--accent-2); font-weight: 600; }

/* ---------- Mobil ---------- */
@media (max-width: 820px) {
  .nav nav { display: none; }
  .about { grid-template-columns: 1fr; }
  .chips { display: none; }
  .section { padding-top: 84px; padding-bottom: 84px; }
  .hero { min-height: 92svh; }
}
@media (max-width: 520px) {
  body { font-size: 16px; }
  .brand-name { font-size: 15px; }
  .cta .btn { width: 100%; justify-content: center; }
  .mock { height: 170px; }
}

/* Hareketi azaltmayı seçenler için animasyonlar kapalı */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
  .bubble { opacity: 1; }
}
