/* =========================================================
   MindUp Kids — ana stil dosyası
   ========================================================= */
/* Renkler resmi logodan alındı: mavi, turuncu, yeşil, sarı + koyu lacivert */
:root {
  --ink: #12294A;
  --ink-soft: #4A5D78;
  --ink-2: #1D3B62;      /* koyu zemin üstündeki kartlar */
  --on-dark: #C5D3E6;    /* koyu zemin üstündeki metin */
  --cream: #FFF8EC;
  --paper: #FFFFFF;
  --blue: #0B6FA8;
  --yellow: #F4B41A;
  --coral: #DD5423;      /* logodaki turuncu */
  --pink: #FFB08C;       /* açık turuncu vurgu */
  --mint: #4E9A2E;       /* logodaki yeşil */
  --sky: #3E9BD6;
  --purple: #6A4FC4;
  --lilac: #9C8BE0;

  --radius: 28px;
  --shadow: 0 18px 40px -18px rgba(18, 41, 74, .35);
  --shadow-pop: 6px 6px 0 var(--ink);
  --font-head: "Baloo 2", system-ui, sans-serif;
  --font-body: "Nunito", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
/* Yatay taşmaya karşı ek güvenlik; "clip" kaydırma kabı oluşturmadığı için sayfa kaydırmayı bozmaz */
html, body { overflow-x: clip; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { font-family: var(--font-head); line-height: 1.1; margin: 0 0 .5em; }
p { margin: 0 0 1em; }
.container { width: min(1180px, 100% - 32px); margin-inline: auto; }
.section { padding: clamp(72px, 10vw, 130px) 0; position: relative; }

/* ---------- Ortak parçalar ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  font-family: var(--font-head); font-weight: 700; font-size: 1.05rem;
  padding: .85em 1.6em; border-radius: 999px; border: 3px solid var(--ink);
  cursor: pointer; transition: transform .2s, box-shadow .2s, background .2s;
  box-shadow: 4px 4px 0 var(--ink);
}
.btn:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--ink); }
.btn:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--ink); }
.btn--coral { background: var(--coral); color: #fff; }
.btn--yellow { background: var(--yellow); color: var(--ink); }
.btn--ghost { background: #fff; }
.btn--sm { padding: .5em 1.1em; font-size: .95rem; box-shadow: 3px 3px 0 var(--ink); }
.btn--block { width: 100%; }
.btn--insta { background: linear-gradient(45deg, #FEDA75, #FA7E1E, #D62976, #962FBF); color: #fff; }
.btn__arrow { transition: transform .25s; }
.btn:hover .btn__arrow { transform: translateX(5px); }

.pill {
  display: inline-block; background: #fff; border: 2px solid var(--ink);
  border-radius: 999px; padding: .35em 1em; font-weight: 800; font-size: .9rem;
  box-shadow: 3px 3px 0 var(--ink); margin-bottom: 1.2rem;
}
.eyebrow {
  display: inline-block; font-weight: 800; text-transform: uppercase; letter-spacing: .12em;
  font-size: .8rem; color: var(--coral); margin-bottom: .8rem;
}
.eyebrow::before { content: "● "; }
.eyebrow--light { color: var(--yellow); }
.h2 { font-size: clamp(2rem, 4.5vw, 3.3rem); font-weight: 800; }
.section__head { text-align: center; max-width: 680px; margin: 0 auto clamp(40px, 6vw, 64px); }
.section__head p { color: var(--ink-soft); font-size: 1.1rem; }
.section__head--row { display: flex; align-items: end; justify-content: space-between; text-align: left; max-width: none; gap: 20px; flex-wrap: wrap; }

.mark { position: relative; white-space: nowrap; z-index: 0; }
.mark::after {
  content: ""; position: absolute; left: -4px; right: -4px; bottom: .08em; height: .38em;
  border-radius: 8px; z-index: -1; transform: skew(-8deg) scaleX(0); transform-origin: left;
  transition: transform .8s cubic-bezier(.2, .9, .3, 1.2) .3s;
}
.is-visible .mark::after, .mark.is-visible::after, .reveal.is-visible .mark::after { transform: skew(-8deg) scaleX(1); }
.mark--yellow::after { background: var(--yellow); }
.mark--coral::after { background: var(--pink); }
.mark--mint::after { background: #C6E6B4; }
.mark--sky::after { background: #B5DAF2; }

.sticker { position: absolute; filter: drop-shadow(0 8px 10px rgba(18, 41, 74, .25)); pointer-events: none; user-select: none; }

/* Fotoğraf yüklenemezse gösterilen renkli yedek görsel */
.fallback-sticker { display: none; }
.img-fallback { background: linear-gradient(135deg, var(--yellow), var(--pink) 55%, var(--lilac)); }
.img-fallback > img:first-child { display: none; }
.img-fallback .fallback-sticker { display: grid; place-items: center; position: absolute; inset: 0; }
.img-fallback .fallback-sticker img { width: 45%; max-width: 180px; animation: bob 4s ease-in-out infinite; filter: drop-shadow(0 10px 12px rgba(0,0,0,.2)); }

/* ---------- Reveal animasyonu ---------- */
/* animation (transition değil) kullanılıyor ki kartların kendi hover transition'larıyla çakışmasın */
.reveal { opacity: 0; }
.reveal.is-visible { opacity: 1; animation: rise .8s cubic-bezier(.2, .9, .3, 1.1) backwards; animation-delay: var(--d, 0s); }

/* ---------- NAV ---------- */
.nav { position: fixed; inset: 0 0 auto; z-index: 50; padding: 18px 0; transition: padding .3s; }
/* Bulanık zemin ayrı katmanda: backdrop-filter doğrudan .nav'da olursa mobil menü (position: fixed) nav'ın içine hapsoluyor */
.nav::before { content: ""; position: absolute; inset: 0; z-index: -1; background: rgba(255, 248, 236, .88); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); box-shadow: 0 6px 24px -12px rgba(18, 41, 74, .3); opacity: 0; transition: opacity .3s; }
.nav.is-scrolled { padding: 10px 0; }
.nav.is-scrolled::before { opacity: 1; }
.nav__inner { display: flex; align-items: center; justify-content: space-between; }
.logo { display: flex; align-items: center; gap: 10px; }
/* Amblem görsel, yazı logodaki gibi: mavi "MIND UP", çizgiler arasında turuncu "KIDS" */
.logo__mark { height: 54px; width: auto; transition: transform .4s; transform-origin: 50% 90%; }
.logo:hover .logo__mark { transform: rotate(-6deg) scale(1.06); }
.logo__text { display: grid; justify-items: center; font-family: var(--font-body); font-weight: 800; line-height: 1; color: var(--blue); }
.logo__text b { font-size: 1.55rem; letter-spacing: .02em; }
.logo__text i { display: flex; align-items: center; gap: 6px; width: 100%; font-style: normal; font-size: .78rem; letter-spacing: .18em; color: var(--coral); margin-top: 3px; }
.logo__text i::before, .logo__text i::after { content: ""; flex: 1; height: 2.5px; border-radius: 2px; background: currentColor; }
.logo--footer { background: #fff; padding: 18px 26px; border-radius: 26px; box-shadow: 6px 6px 0 var(--yellow); transition: transform .3s; }
.logo--footer:hover { transform: rotate(-2deg) scale(1.03); }
.logo--footer img { width: 170px; }
.slogan { font-family: var(--font-head); font-weight: 600; font-size: 1.15rem; color: var(--blue); margin: 0 0 .6rem; }
.slogan em { font-style: normal; color: var(--coral); }
.nav__links { display: flex; align-items: center; gap: 28px; font-weight: 800; }
.nav__links a:not(.btn) { position: relative; }
.nav__links a:not(.btn)::after { content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 3px; border-radius: 3px; background: var(--coral); transform: scaleX(0); transition: transform .25s; }
.nav__links a:not(.btn):hover::after { transform: scaleX(1); }
.burger { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.burger span { display: block; width: 26px; height: 3px; background: var(--ink); border-radius: 3px; margin: 5px 0; transition: transform .3s, opacity .3s; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ---------- HERO ---------- */
.hero {
  position: relative; min-height: 100vh; display: flex; align-items: center;
  padding: 130px 0 90px; overflow: hidden;
  background-image: radial-gradient(rgba(18, 41, 74, .09) 1.5px, transparent 1.5px);
  background-size: 26px 26px;
}
.hero__bg { position: absolute; inset: 0; z-index: -1; }
.blob { position: absolute; border-radius: 50%; filter: blur(60px); opacity: .55; animation: drift 14s ease-in-out infinite alternate; }
.blob--1 { width: 420px; height: 420px; background: var(--yellow); top: -80px; left: -120px; }
.blob--2 { width: 380px; height: 380px; background: var(--pink); bottom: -120px; right: 10%; animation-delay: -5s; }
.blob--3 { width: 300px; height: 300px; background: var(--sky); top: 30%; right: -80px; animation-delay: -9s; opacity: .4; }

.hero__grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 40px; align-items: center; }
.hero__title { font-size: clamp(2.6rem, 6vw, 4.6rem); font-weight: 800; letter-spacing: -.01em; line-height: 1.18; }
.hl { position: relative; color: var(--coral); display: inline-block; }
.hl__line { position: absolute; left: 0; bottom: -.17em; width: 100%; height: .2em; overflow: visible; }
.hl__line path { fill: none; stroke: var(--yellow); stroke-width: 8; stroke-linecap: round; stroke-dasharray: 320; stroke-dashoffset: 320; }
.hero__title.is-visible .hl__line path { animation: draw 1.2s .5s ease forwards; }
.hero__lead { font-size: 1.15rem; color: var(--ink-soft); max-width: 540px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin: 28px 0 32px; }

.chips { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.chips li {
  background: #fff; border-radius: 16px; padding: .5em 1em; font-weight: 700; font-size: .95rem;
  box-shadow: var(--shadow); border: 2px solid transparent; transition: transform .25s, border-color .25s;
}
.chips li:hover { transform: translateX(8px) rotate(-1deg); border-color: var(--ink); }

.hero__visual { position: relative; aspect-ratio: 1; max-width: 540px; width: 100%; justify-self: center; }
.hero__photo {
  position: absolute; inset: 8%; overflow: hidden; border: 6px solid #fff;
  box-shadow: 0 30px 60px -25px rgba(18, 41, 74, .55);
  border-radius: 62% 38% 46% 54% / 55% 45% 55% 45%;
  animation: morph 12s ease-in-out infinite;
  background: var(--pink);
}
.hero__photo > img:first-child { width: 100%; height: 100%; object-fit: cover; transform: scale(1.05); }
.ring { position: absolute; inset: 0; border: 3px dashed rgba(18, 41, 74, .25); border-radius: 50%; animation: spin 40s linear infinite; }

.s-rocket { width: 92px; top: -2%; right: 6%; animation: bob 5s ease-in-out infinite; }
.s-star { width: 78px; bottom: 8%; left: -2%; animation: bob 4s ease-in-out infinite .5s; }
.s-bulb { width: 70px; top: 6%; left: 2%; animation: wiggle 3.5s ease-in-out infinite; }
.s-puzzle { width: 74px; bottom: -2%; right: 18%; animation: bob 6s ease-in-out infinite 1s; }
.s-spark { width: 44px; top: 42%; right: -4%; animation: twinkle 2.2s ease-in-out infinite; }

.float-card {
  position: absolute; display: flex; align-items: center; gap: 10px; background: #fff;
  border: 3px solid var(--ink); border-radius: 18px; padding: 10px 16px 10px 10px;
  box-shadow: var(--shadow-pop); font-size: .9rem; line-height: 1.2;
}
.float-card span { font-size: 1.5rem; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 12px; background: var(--cream); }
.float-card small { display: block; color: var(--ink-soft); font-weight: 600; }
.fc-1 { left: -8%; top: 30%; animation: bob 5s ease-in-out infinite .3s; }
.fc-2 { right: -6%; bottom: 26%; animation: bob 5.5s ease-in-out infinite 1.4s; }
.fc-1 span { background: #FDEBC0; }
.fc-2 span { background: #D6EAF7; }

.scroll-hint { position: absolute; bottom: 26px; left: 50%; translate: -50% 0; width: 28px; height: 46px; border: 3px solid var(--ink); border-radius: 20px; }
.scroll-hint span { position: absolute; left: 50%; top: 8px; width: 6px; height: 10px; margin-left: -3px; border-radius: 3px; background: var(--coral); animation: scrolldot 1.8s ease-in-out infinite; }

/* Hero imleç parıltısı */
.spark-dot { position: fixed; pointer-events: none; z-index: 60; font-size: 14px; animation: sparkfade .9s ease-out forwards; }

/* ---------- MARQUEE ---------- */
/* Eğik bant iki yandan taşıyor; taşmayı kendi kabında kırp ki telefonda sayfa yana kaymasın */
.marquee-wrap { overflow: hidden; padding: 16px 0; margin: -16px 0; position: relative; z-index: 2; }
.marquee { background: var(--ink); color: #fff; padding: 18px 0; overflow: hidden; transform: rotate(-1.5deg); margin: -10px -20px 0; position: relative; z-index: 2; border-block: 4px solid var(--yellow); }
.marquee__track { display: flex; gap: 28px; width: max-content; animation: marquee 30s linear infinite; font-family: var(--font-head); font-weight: 700; font-size: clamp(1.2rem, 2.4vw, 1.8rem); white-space: nowrap; }
.marquee__track i { color: var(--yellow); font-style: normal; }
.marquee:hover .marquee__track { animation-play-state: paused; }

/* ---------- ABOUT ---------- */
.about__grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(40px, 6vw, 90px); align-items: center; }
.about__visual { position: relative; }
.photo-stack { position: relative; aspect-ratio: 1 / 1.2; }
.ps { position: absolute; margin: 0; overflow: hidden; border: 6px solid #fff; border-radius: var(--radius); box-shadow: var(--shadow); transition: transform .5s cubic-bezier(.2, .9, .3, 1.2); }
.ps > img:first-child { width: 100%; height: 100%; object-fit: cover; }
.ps--1 { width: 62%; height: 76%; top: 0; left: 2%; transform: rotate(-5deg); }
.ps--2 { width: 52%; height: 62%; right: 0; bottom: 0; transform: rotate(6deg); }
.about__visual:hover .ps--1 { transform: rotate(-8deg) translate(-10px, -6px); }
.about__visual:hover .ps--2 { transform: rotate(9deg) translate(10px, 6px); }
.about__brain { width: 110px; right: 4%; top: -4%; animation: bob 5s ease-in-out infinite; }
.badge-round { position: absolute; left: -2%; bottom: 2%; width: 120px; height: 120px; background: var(--yellow); border-radius: 50%; border: 3px solid var(--ink); display: grid; place-items: center; box-shadow: var(--shadow-pop); }
.badge-round svg { position: absolute; inset: 0; animation: spin 14s linear infinite; }
.badge-round text { font-family: var(--font-head); font-weight: 800; font-size: 11.5px; letter-spacing: 1.5px; fill: var(--ink); }
.badge-round span { font-size: 2rem; }
.about__copy p { color: var(--ink-soft); font-size: 1.08rem; }
.about__copy strong { color: var(--ink); }

.pillars { display: grid; gap: 14px; margin-top: 28px; }
.pillar { display: flex; gap: 16px; align-items: center; background: #fff; border-radius: 20px; padding: 14px 18px; box-shadow: var(--shadow); transition: transform .3s; }
.pillar:hover { transform: translateX(8px); }
.pillar b { display: block; font-family: var(--font-head); font-size: 1.15rem; }
.pillar small { color: var(--ink-soft); font-size: .92rem; }
.pillar__ico { flex: none; width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center; font-size: 1.6rem; }
.ico--sky { background: #D6EAF7; } .ico--purple { background: #FDEBC0; } .ico--mint { background: #DDEFD3; }

/* ---------- SKILLS ---------- */
.skills { background: var(--ink); color: #fff; overflow: hidden; border-radius: 48px 48px 0 0; }
.skills .section__head p { color: var(--on-dark); }
.skills .mark::after { opacity: .9; }
.skills .h2 { color: #fff; }
.skills .mark--coral::after { background: var(--coral); }
.deco--a { width: 70px; top: 80px; left: 6%; animation: twinkle 2.6s ease-in-out infinite; }
.deco--b { width: 80px; bottom: 60px; right: 5%; animation: bob 5s ease-in-out infinite; }

.skill-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; perspective: 1000px; }
.skill {
  position: relative; background: var(--ink-2); border-radius: var(--radius); padding: 28px 22px 26px;
  border: 2px solid rgba(255, 255, 255, .08); transform-style: preserve-3d;
  transition: transform .2s ease-out, background .35s, border-color .35s;
  overflow: hidden;
}
.skill::before { content: ""; position: absolute; inset: auto -40% -60% auto; width: 180px; height: 180px; border-radius: 50%; background: var(--c); opacity: .18; transition: transform .5s, opacity .5s; }
.skill:hover { border-color: var(--c); }
.skill:hover::before { transform: scale(2.4); opacity: .25; }
.skill__num { position: absolute; top: 16px; right: 20px; font-family: var(--font-head); font-weight: 800; color: var(--c); opacity: .7; }
.skill__ico { width: 66px; height: 66px; border-radius: 20px; background: var(--c); display: grid; place-items: center; font-size: 2rem; margin-bottom: 18px; transform: translateZ(40px) rotate(-6deg); box-shadow: 0 10px 20px -8px var(--c); transition: transform .4s cubic-bezier(.2, .9, .3, 1.4); }
.skill:hover .skill__ico { transform: translateZ(50px) rotate(6deg) scale(1.1); }
.skill h3 { font-size: 1.4rem; transform: translateZ(25px); }
.skill p { color: var(--on-dark); font-size: .95rem; margin: 0; transform: translateZ(15px); position: relative; }

/* ---------- PROGRAMS ---------- */
.programs { background: var(--cream); }
.prog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; align-items: start; }
.prog {
  position: relative; border: 3px solid var(--ink); border-radius: var(--radius); padding: 34px 28px 30px;
  box-shadow: 8px 8px 0 var(--ink); transition: transform .3s, box-shadow .3s;
}
.prog:nth-child(2) { margin-top: 40px; }
.prog:hover { transform: translate(-4px, -6px) rotate(-1deg); box-shadow: 12px 14px 0 var(--ink); }
.prog--yellow { background: #FDE3A2; }
.prog--blue { background: #CFE5F5; }
.prog--orange { background: #FFD3BF; }
.prog__sticker { position: absolute; width: 86px; top: -38px; right: 22px; filter: drop-shadow(0 8px 10px rgba(18, 41, 74, .25)); transition: transform .5s cubic-bezier(.2, .9, .3, 1.5); }
.prog:hover .prog__sticker { transform: rotate(14deg) scale(1.15) translateY(-6px); }
.prog__photo { margin: 0 0 18px; aspect-ratio: 4 / 3; overflow: hidden; border: 3px solid var(--ink); border-radius: 20px; background: #fff; }
.prog__photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.prog:hover .prog__photo img { transform: scale(1.07); }
.prog__sticker { z-index: 2; }
.prog__tag { display: inline-block; background: #fff; border: 2px solid var(--ink); border-radius: 99px; padding: .2em .8em; font-weight: 800; font-size: .85rem; margin-bottom: 14px; }
.prog h3 { font-size: 1.55rem; }
.prog p { color: var(--ink-soft); }
.prog ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.prog li { font-weight: 700; padding-left: 30px; position: relative; }
.prog li::before { content: "✓"; position: absolute; left: 0; top: 1px; width: 22px; height: 22px; border-radius: 50%; background: var(--ink); color: #fff; font-size: .75rem; display: grid; place-items: center; }

/* ---------- PROCESS ---------- */
.process { background: #fff; border-radius: 48px; margin: 0 12px; }
.steps { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.steps__path { position: absolute; left: 0; right: 0; top: -30px; width: 100%; height: 120px; z-index: 0; }
.steps__path path { fill: none; stroke: var(--ink); stroke-width: 3; stroke-dasharray: 10 10; opacity: .3; }
.steps__path { clip-path: inset(0 100% 0 0); transition: clip-path 2.2s ease .3s; }
.steps.is-visible .steps__path { clip-path: inset(0 0 0 0); }
.step { position: relative; z-index: 1; text-align: center; padding: 0 8px; }
.step__dot {
  width: 64px; height: 64px; margin: 0 auto 18px; border-radius: 50%; background: var(--c);
  border: 4px solid var(--ink); display: grid; place-items: center; font-family: var(--font-head);
  font-weight: 800; font-size: 1.6rem; box-shadow: 4px 4px 0 var(--ink); transition: transform .4s cubic-bezier(.2, .9, .3, 1.6);
}
.step:hover .step__dot { transform: scale(1.15) rotate(-10deg); }
.step h3 { font-size: 1.35rem; }
.step p { color: var(--ink-soft); font-size: .98rem; }
.step:nth-child(3) { --d: .15s; } .step:nth-child(4) { --d: .3s; } .step:nth-child(5) { --d: .45s; }

/* ---------- MOTTO ---------- */
.motto { position: relative; background: linear-gradient(135deg, #17406B, var(--ink) 60%); color: #fff; padding: clamp(90px, 12vw, 150px) 0; overflow: hidden; margin-top: clamp(72px, 10vw, 120px); }
#neuro { position: absolute; inset: 0; width: 100%; height: 100%; }
.motto__inner { position: relative; text-align: center; }
.motto__brain { position: relative; width: 110px; margin: 0 auto 26px; animation: bob 4s ease-in-out infinite; }
.motto blockquote { margin: 0 auto; max-width: 900px; font-family: var(--font-head); font-weight: 700; font-size: clamp(1.6rem, 3.6vw, 2.7rem); line-height: 1.3; }
.motto blockquote em { font-style: normal; color: var(--pink); }
/* Koyu zeminde vurgu: satır kırılınca da her satırı saran düz arka plan (::after çok satırda kayıyor) */
.motto .mark, .contact .mark {
  white-space: normal; color: var(--ink); background: var(--yellow); padding: 0 .18em; border-radius: 10px;
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
}
.motto .mark::after, .contact .mark::after { display: none; }

/* ---------- GALLERY ---------- */
/* Fotoğraflar dikey; çift sütunlar aşağı kaydırılarak basamaklı görünüm veriliyor */
.masonry { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; padding-bottom: 56px; align-items: start; }
.g { position: relative; overflow: hidden; border-radius: var(--radius); box-shadow: var(--shadow); aspect-ratio: 3 / 4; border: 5px solid #fff; transition: rotate .4s cubic-bezier(.2, .9, .3, 1.4); }
.g:nth-child(even) { translate: 0 56px; }
.g:nth-child(4n+1):hover { rotate: -2deg; }
.g:nth-child(4n+3):hover { rotate: 2deg; }
.g > img:first-child { width: 100%; height: 100%; object-fit: cover; transition: transform .7s ease; }
.g__over { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(18, 41, 74, .55); color: #fff; font-weight: 800; font-size: 1.1rem; opacity: 0; transition: opacity .35s; }
.g:hover > img:first-child { transform: scale(1.08) rotate(1deg); }
.g:hover .g__over { opacity: 1; }

/* ---------- CONTACT ---------- */
.contact { background: var(--ink); color: #fff; border-radius: 48px 48px 0 0; overflow: hidden; }
.contact .h2 { color: #fff; }
.contact__info > p { color: var(--on-dark); font-size: 1.08rem; }
.deco--c { width: 90px; top: 50px; right: 6%; animation: bob 5s ease-in-out infinite; }
.contact__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 70px); align-items: start; }
.info-list { list-style: none; padding: 0; margin: 28px 0; display: grid; gap: 14px; }
.info-list li { display: flex; gap: 14px; align-items: center; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .1); padding: 14px 18px; border-radius: 18px; transition: background .3s, transform .3s; }
.info-list li:hover { background: rgba(255, 255, 255, .12); transform: translateX(6px); }
.info-list li > span { font-size: 1.5rem; width: 48px; height: 48px; flex: none; display: grid; place-items: center; background: var(--yellow); border-radius: 14px; }
.info-list small { display: block; color: #9FB3CC; font-weight: 700; font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; }
.map { border-radius: 24px; overflow: hidden; border: 4px solid var(--yellow); height: 230px; }
.map iframe { width: 100%; height: 100%; border: 0; display: block; }

.form { background: #fff; color: var(--ink); border-radius: 32px; padding: clamp(24px, 4vw, 40px); box-shadow: 10px 10px 0 var(--yellow); }
.form h3 { font-size: 1.7rem; }
.form label { display: block; font-weight: 800; font-size: .92rem; margin-bottom: 14px; }
.form input, .form select, .form textarea {
  display: block; width: 100%; margin-top: 6px; font: inherit; font-weight: 600; color: var(--ink);
  background: var(--cream); border: 2px solid #E9E2D3; border-radius: 14px; padding: .75em 1em;
  transition: border-color .2s, box-shadow .2s;
}
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(11, 111, 168, .18); }
.form .is-invalid { border-color: var(--coral); animation: shake .4s; }
.form__hint { display: block; margin-top: 6px; font-weight: 600; font-size: .8rem; color: var(--ink-soft); }
.form .check { display: flex; gap: 10px; align-items: flex-start; font-weight: 600; font-size: .86rem; line-height: 1.45; color: var(--ink-soft); cursor: pointer; margin: 4px 0 18px; padding: 10px 12px; border-radius: 14px; border: 2px solid transparent; transition: border-color .2s, background .2s; }
.form .check input { flex: none; width: 20px; height: 20px; margin: 1px 0 0; padding: 0; accent-color: var(--coral); cursor: pointer; }
.form .check a { color: var(--blue); font-weight: 800; text-decoration: underline; text-underline-offset: 2px; }
.form .check.is-invalid { border-color: var(--coral); background: #FFF0E9; animation: shake .4s; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form__note { font-size: .85rem; color: var(--ink-soft); text-align: center; margin: 12px 0 0; }

/* ---------- FOOTER ---------- */
.footer { background: #0C1D35; color: var(--on-dark); padding: 50px 0 40px; text-align: center; }
.footer__inner { display: grid; justify-items: center; gap: 10px; }
.footer p { margin: 0; }
.footer__legal { text-decoration: underline; text-underline-offset: 2px; }
.footer__legal:hover { color: #fff; }

/* ---------- KVKK / yasal sayfa ---------- */
.legal { padding: 130px 0 90px; }
.legal__card { max-width: 860px; margin: 0 auto; background: #fff; border-radius: 32px; padding: clamp(24px, 5vw, 60px); box-shadow: var(--shadow); }
.legal h1 { font-size: clamp(2rem, 4.5vw, 2.9rem); font-weight: 800; margin-bottom: .2em; }
.legal h2 { font-size: 1.35rem; color: var(--blue); margin: 2em 0 .6em; }
.legal p, .legal li { color: var(--ink-soft); }
.legal b { color: var(--ink); }
.legal ul { padding-left: 1.2em; margin: 0 0 1em; }
.legal li { margin-bottom: .35em; }
.legal li::marker { color: var(--coral); }
.legal a { color: var(--blue); font-weight: 700; }
.legal__meta { font-size: .9rem; font-weight: 700; color: var(--coral) !important; }
.legal__info { list-style: none; padding: 18px 22px !important; background: var(--cream); border-radius: 18px; }
.legal__note { background: #FFF0E9; border-left: 4px solid var(--coral); padding: 14px 18px; border-radius: 0 14px 14px 0; }
/* Doldurulması gereken yerler: yayına almadan önce görünür kalmasın */
.todo { background: #FFE7A3; color: var(--ink); font-weight: 800; padding: 0 .35em; border-radius: 6px; }
.footer__slogan { font-family: var(--font-head); font-weight: 600; font-size: 1.1rem; color: #fff; margin-top: 10px !important; }
.footer__social { display: flex; gap: 12px; margin: 8px 0; }
.footer__social a { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 50%; background: rgba(255, 255, 255, .08); font-size: 1.2rem; transition: transform .3s, background .3s; }
.footer__social a:hover { transform: translateY(-4px) rotate(-8deg); background: var(--coral); }

.wa-float { position: fixed; right: 20px; bottom: calc(20px + env(safe-area-inset-bottom)); z-index: 40; width: 62px; height: 62px; border-radius: 50%; background: #25D366; display: grid; place-items: center; box-shadow: 0 10px 25px -6px rgba(37, 211, 102, .7); animation: pulse 2.4s infinite; transition: transform .3s; }
.wa-float:hover { transform: scale(1.1) rotate(-8deg); }

.confetti { position: fixed; top: 0; left: 0; width: 10px; height: 14px; z-index: 100; pointer-events: none; border-radius: 2px; }

/* ---------- KEYFRAMES ---------- */
@keyframes rise { from { opacity: 0; transform: translateY(30px); } }
@keyframes bob { 0%, 100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-14px) rotate(4deg); } }
@keyframes wiggle { 0%, 100% { transform: rotate(-8deg); } 50% { transform: rotate(10deg) scale(1.05); } }
@keyframes twinkle { 0%, 100% { transform: scale(.8) rotate(0); opacity: .7; } 50% { transform: scale(1.15) rotate(45deg); opacity: 1; } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes drift { to { transform: translate(60px, 40px) scale(1.15); } }
@keyframes morph {
  0%, 100% { border-radius: 62% 38% 46% 54% / 55% 45% 55% 45%; }
  33% { border-radius: 40% 60% 60% 40% / 45% 60% 40% 55%; }
  66% { border-radius: 55% 45% 35% 65% / 60% 40% 60% 40%; }
}
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes marquee { to { transform: translateX(-50%); } }
@keyframes scrolldot { 0% { opacity: 0; transform: translateY(0); } 40% { opacity: 1; } 100% { opacity: 0; transform: translateY(16px); } }
@keyframes sparkfade { to { opacity: 0; transform: translateY(24px) scale(.3) rotate(120deg); } }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, .55); } 70% { box-shadow: 0 0 0 18px rgba(37, 211, 102, 0); } 100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); } }
@keyframes shake { 25% { transform: translateX(-6px); } 75% { transform: translateX(6px); } }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 1100px) {
  .skill-grid { grid-template-columns: repeat(3, 1fr); }
  .float-card { display: none; }
}
@media (max-width: 920px) {
  .burger, .logo { display: block; position: relative; z-index: 2; }
  .logo { display: flex; }
  .nav__links {
    position: fixed; inset: 0; flex-direction: column; justify-content: center; gap: 26px;
    background: var(--cream); font-size: 1.5rem; font-family: var(--font-head);
    clip-path: circle(0 at calc(100% - 40px) 40px); visibility: hidden;
    transition: clip-path .5s ease, visibility 0s .5s;
  }
  .nav__links.is-open { clip-path: circle(150% at calc(100% - 40px) 40px); visibility: visible; transition: clip-path .5s ease; }
  /* Telefonda tam ekran yükseklik zorlaması boşluk yaratıyor; içerik kadar uzun olsun */
  .hero { min-height: 0; padding: 100px 0 70px; }
  .hero__grid, .about__grid, .contact__grid { grid-template-columns: 1fr; }
  .hero__visual { max-width: 360px; order: -1; }
  .blob { filter: blur(40px); }
  .prog-grid { grid-template-columns: 1fr; gap: 52px; max-width: 560px; margin-inline: auto; }
  .prog:nth-child(2) { margin-top: 0; }
  .steps { grid-template-columns: 1fr 1fr; row-gap: 40px; }
  .steps__path { display: none; }
  .about__visual { max-width: 480px; margin-inline: auto; width: 100%; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .skill-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .skill { padding: 22px 16px; }
  .skill:last-child { grid-column: span 2; }
  .masonry { grid-template-columns: 1fr 1fr; gap: 12px; padding-bottom: 36px; }
  .g:nth-child(even) { translate: 0 36px; }
  .form__row { grid-template-columns: 1fr; gap: 0; }
  .steps { grid-template-columns: 1fr; }
  .process { margin: 0; border-radius: 36px; }
  .hero__actions .btn { flex: 1 1 100%; }
  .badge-round { width: 96px; height: 96px; }
  .badge-round text { font-size: 10.5px; }
  .scroll-hint { display: none; }
  .deco--a, .deco--b { display: none; }
  .deco--c { width: 64px; top: 40px; right: 16px; }
  .form h3 { font-size: 1.4rem; }
  .wa-float { width: 54px; height: 54px; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); }
  .wa-float svg { width: 26px; height: 26px; }
  .chips li { font-size: .9rem; }
}

/* iOS, 16px'ten küçük form alanlarına dokununca sayfayı yakınlaştırıyor */
@media (max-width: 920px) {
  .form input, .form select, .form textarea { font-size: 16px; }
}

/* Dokunmatik ekranda hover efektleri dokunduktan sonra "takılı" kalmasın */
@media (hover: none) {
  .chips li:hover, .pillar:hover, .info-list li:hover { transform: none; }
  .prog:hover { transform: none; box-shadow: 8px 8px 0 var(--ink); }
  .prog:hover .prog__sticker, .prog:hover .prog__photo img, .g:hover > img:first-child { transform: none; }
  .g:nth-child(n):hover { rotate: none; }
  .g__over { display: none; }
  .about__visual:hover .ps--1 { transform: rotate(-5deg); }
  .about__visual:hover .ps--2 { transform: rotate(6deg); }
  .btn:hover { transform: none; box-shadow: 4px 4px 0 var(--ink); }
  .btn--sm:hover { box-shadow: 3px 3px 0 var(--ink); }
}
a, button, label { -webkit-tap-highlight-color: transparent; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  html { scroll-behavior: auto; }
  .reveal, .reveal.is-visible { opacity: 1; animation: none; }
}
