/* Renkler SKAR logosundan alındı: #662D91 (koyu mor), #7424B2 → #C01479 (mor → magenta) */
:root {
  --brand: #662d91;
  --purple: #7424b2;
  --magenta: #c01479;
  --grad: linear-gradient(120deg, #7424b2, #c01479);
  --bg: #ffffff;
  --bg-soft: #f8f4fc;
  --surface: #ffffff;
  --surface-2: #f3ecfa;
  --line: #e9e0f3;
  --text: #22142f;
  --muted: #6b5f7a;
  --radius: 18px;
  --shadow: 0 18px 40px -22px rgba(102, 45, 145, .35);
  --card: #ffffff;
  --heading: #662d91;
  --glass: rgba(255, 255, 255, .88);
  --grid-line: rgba(102, 45, 145, .06);
  --mix: #000;
  --header-h: 76px;
}

/* Gece modu: html[data-theme="dark"] (saate göre app.js / head içindeki script ayarlar) */
[data-theme="dark"] {
  --bg: #120a1c;
  --bg-soft: #1a1027;
  --surface: #1e1330;
  --surface-2: #261a3b;
  --card: #1e1330;
  --line: #34254a;
  --text: #f3ecfa;
  --muted: #b3a5c4;
  --heading: #e9d8fb;
  --glass: rgba(18, 10, 28, .85);
  --grid-line: rgba(233, 216, 251, .05);
  --mix: #fff;
  --shadow: 0 18px 40px -22px rgba(0, 0, 0, .7);
  color-scheme: dark;
}
html { transition: background-color .4s; }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { line-height: 1.2; margin: 0; letter-spacing: -.02em; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--purple); outline-offset: 3px; border-radius: 6px; }

.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--brand); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }
.grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 24px; border-radius: 999px;
  font-weight: 600; font-size: 15px; border: 1px solid transparent;
  transition: transform .2s, box-shadow .2s, background .2s, border-color .2s;
}
.btn--sm { min-height: 40px; padding: 0 18px; font-size: 14px; }
.btn--primary { background: var(--grad); color: #fff; box-shadow: 0 10px 26px -10px rgba(192, 20, 121, .55); }
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 14px 30px -10px rgba(192, 20, 121, .7); }
.btn--ghost { border-color: var(--line); background: var(--card); color: var(--heading); }
.btn--ghost:hover { border-color: var(--purple); background: var(--surface-2); }

/* ---------- Header ---------- */
.header {
  position: fixed; inset: 0 0 auto; z-index: 50; height: var(--header-h);
  transition: border-color .3s, box-shadow .3s;
  border-bottom: 1px solid transparent;
}
/* Blur bir sözde elemanda: header'ın kendisinde olursa mobil menüyü (position: fixed) içine hapseder. */
.header::before {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity .3s;
  background: var(--glass);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
}
.header.is-scrolled::before, .menu-open .header::before { opacity: 1; }
.header.is-scrolled, .menu-open .header { border-color: var(--line); box-shadow: 0 6px 24px -18px rgba(102, 45, 145, .4); }
.header__inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.logo { display: inline-flex; align-items: center; flex: none; }
.logo img { height: 46px; width: auto; }
.logo__dark { display: none; }
[data-theme="dark"] .logo__light { display: none; }
[data-theme="dark"] .logo__dark { display: block; }
.nav { display: flex; align-items: center; gap: 28px; font-weight: 500; font-size: 15px; }
.nav a:not(.btn) { color: var(--muted); transition: color .2s; }
.nav a:not(.btn):hover { color: var(--heading); }

.nav { margin-left: auto; }
.theme-btn {
  flex: none; width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line);
  background: var(--card); color: var(--heading); cursor: pointer; padding: 0; display: grid; place-items: center;
  transition: border-color .2s, transform .2s;
}
.theme-btn:hover { border-color: var(--purple); transform: rotate(-12deg); }
.theme-btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.theme-btn .i-sun, [data-theme="dark"] .theme-btn .i-moon { display: none; }
[data-theme="dark"] .theme-btn .i-sun { display: block; }

.burger {
  display: none; width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line);
  background: var(--card); cursor: pointer; padding: 0; position: relative;
}
.burger span {
  position: absolute; left: 12px; right: 12px; height: 2px; background: var(--brand); border-radius: 2px; background: var(--heading);
  transition: transform .3s, opacity .3s;
}
.burger span:nth-child(1) { top: 15px; }
.burger span:nth-child(2) { top: 21px; }
.burger span:nth-child(3) { top: 27px; }
.menu-open .burger span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.menu-open .burger span:nth-child(2) { opacity: 0; }
.menu-open .burger span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative; padding: calc(var(--header-h) + 84px) 0 90px; overflow: hidden; text-align: center;
  background: linear-gradient(180deg, var(--bg-soft), var(--bg));
}
.hero__glow {
  position: absolute; inset: -30% -10% auto; height: 900px; pointer-events: none;
  background:
    radial-gradient(closest-side, rgba(116, 36, 178, .22), transparent 70%) 25% 40% / 60% 60% no-repeat,
    radial-gradient(closest-side, rgba(192, 20, 121, .16), transparent 70%) 75% 50% / 55% 55% no-repeat;
  filter: blur(20px);
}
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(var(--grid-line) 1px, transparent 1px), linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 48px 48px;
  -webkit-mask-image: radial-gradient(ellipse at 50% 30%, #000 20%, transparent 70%);
  mask-image: radial-gradient(ellipse at 50% 30%, #000 20%, transparent 70%);
}
.hero__inner { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; }
.pill {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--card); color: var(--heading); font-size: 13px; font-weight: 600;
  box-shadow: 0 4px 14px -8px rgba(102,45,145,.3);
}
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--magenta); box-shadow: 0 0 0 4px rgba(192,20,121,.15); }
.hero h1 { font-size: clamp(34px, 6vw, 66px); font-weight: 800; max-width: 900px; margin: 22px 0 20px; color: var(--heading); }
.hero__lead { color: var(--muted); font-size: clamp(16px, 2vw, 19px); max-width: 640px; }
.hero__actions { display: flex; gap: 12px; margin-top: 34px; flex-wrap: wrap; justify-content: center; }
.stats {
  display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 12px; margin: 56px 0 0; width: 100%; max-width: 620px;
}
.stats div { padding: 18px 12px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); box-shadow: var(--shadow); }
.stats dt { font-size: clamp(24px, 4vw, 34px); font-weight: 800; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stats dd { margin: 2px 0 0; color: var(--muted); font-size: 13px; }

/* ---------- Sections ---------- */
.section { padding: 100px 0; }
.section--alt { background: var(--bg-soft); }
.section__head { text-align: center; max-width: 680px; margin: 0 auto 52px; }
.eyebrow {
  display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--magenta); margin-bottom: 12px;
}
.section__head h2, .cta h2 { font-size: clamp(28px, 4vw, 44px); font-weight: 800; }
.section__head h2 { color: var(--heading); }
.section__head p { color: var(--muted); margin-top: 14px; font-size: 17px; }

.grid { display: grid; gap: 22px; }
.grid--projects { grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); }
.grid--services { grid-template-columns: repeat(3, 1fr); }
.grid--refs { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }

/* ---------- Project cards ---------- */
.card {
  --c: var(--purple);
  position: relative; display: flex; flex-direction: column; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--line); overflow: hidden; box-shadow: var(--shadow);
  transition: transform .3s, border-color .3s, box-shadow .3s;
}
a.card:hover { transform: translateY(-6px); border-color: color-mix(in srgb, var(--c) 45%, var(--line)); box-shadow: 0 30px 60px -28px color-mix(in srgb, var(--c) 60%, transparent); }
.card__media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--surface-2); border-bottom: 1px solid var(--line); }
.card__media img, .ref__shot img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top; z-index: 1;
  opacity: 0; transition: transform .6s, opacity .5s;
}
.card__media img.is-ready, .ref__shot img.is-ready { opacity: 1; }
a.card:hover .card__media img, .ref:hover .ref__shot img { transform: scale(1.05); }
.card__ph {
  position: absolute; inset: 0; display: grid; place-items: center;
  background:
    radial-gradient(circle at 30% 20%, color-mix(in srgb, var(--c, var(--purple)) 35%, transparent), transparent 65%),
    linear-gradient(135deg, var(--surface-2), var(--card));
}
.card__ph span { font-size: 54px; font-weight: 800; color: color-mix(in srgb, var(--c, var(--purple)) 75%, var(--mix)); opacity: .8; letter-spacing: .02em; }
.badge {
  position: absolute; top: 14px; left: 14px; z-index: 2; display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 12px; border-radius: 999px; font-size: 12px; font-weight: 700; color: var(--text);
  background: var(--glass); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); border: 1px solid var(--line);
  box-shadow: 0 4px 12px -6px rgba(0,0,0,.2);
}
.badge--live i { width: 7px; height: 7px; border-radius: 50%; background: #10b981; animation: pulse 2s infinite; }
@keyframes pulse { 0%,100% { box-shadow: 0 0 0 0 rgba(16,185,129,.6); } 50% { box-shadow: 0 0 0 5px rgba(16,185,129,0); } }

.card__body { padding: 22px; display: flex; flex-direction: column; gap: 14px; flex: 1; }
.card__title { display: flex; align-items: center; gap: 12px; }
.card__logo {
  flex: none; width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center;
  font-weight: 800; color: #fff; background: var(--c);
}
.card__title h3 { font-size: 19px; }
.card__title small { color: var(--muted); font-size: 13px; }
.card__body p { color: var(--muted); font-size: 15px; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tags li {
  font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: 999px;
  color: color-mix(in srgb, var(--c) 80%, var(--mix)); background: color-mix(in srgb, var(--c) 14%, var(--card));
}
.card__link { margin-top: auto; display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: 15px; color: var(--heading); }
.card__link svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; transition: transform .25s; }
a:hover .card__link svg { transform: translate(3px, -3px); }
.card--soon { opacity: .85; box-shadow: none; }
.card--soon .card__link { color: var(--muted); }

/* ---------- Services ---------- */
.service {
  padding: 28px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line);
  transition: border-color .3s, transform .3s, box-shadow .3s;
}
.service:hover { border-color: rgba(116,36,178,.4); transform: translateY(-4px); box-shadow: var(--shadow); }
.service__icon {
  width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 18px;
  background: var(--grad); box-shadow: 0 10px 22px -10px rgba(192,20,121,.6);
}
.service__icon svg { width: 26px; height: 26px; fill: none; stroke: #fff; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.service h3 { font-size: 18px; margin-bottom: 8px; }
.service p { color: var(--muted); font-size: 15px; }

/* ---------- References ---------- */
.filters {
  display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin: -20px 0 36px;
}
.chip {
  min-height: 40px; padding: 0 18px; border-radius: 999px; cursor: pointer; font-size: 14px; font-weight: 600;
  background: var(--card); border: 1px solid var(--line); color: var(--muted); transition: all .2s; white-space: nowrap;
}
.chip:hover { color: var(--heading); border-color: var(--purple); }
.chip.is-active { background: var(--grad); color: #fff; border-color: transparent; }

.ref {
  display: flex; flex-direction: column; border-radius: var(--radius); overflow: hidden;
  background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow); transition: transform .3s, border-color .3s;
  animation: fadeUp .45s both;
}
.ref:hover { transform: translateY(-6px); border-color: rgba(192,20,121,.4); }
.ref__media { padding: 14px 14px 0; background: var(--surface-2); }
.ref__bar {
  display: flex; align-items: center; gap: 6px; padding: 9px 12px; background: var(--card); border-radius: 10px 10px 0 0;
  border: 1px solid var(--line); border-bottom: 0;
}
.ref__bar i { width: 9px; height: 9px; border-radius: 50%; }
.ref__bar i:nth-child(1) { background: #ff5f57; }
.ref__bar i:nth-child(2) { background: #febc2e; }
.ref__bar i:nth-child(3) { background: #28c840; }
.ref__bar span {
  margin-left: 8px; font-size: 12px; color: var(--muted); background: var(--bg-soft); padding: 2px 10px; border-radius: 6px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0;
}
.ref__shot { position: relative; aspect-ratio: 16 / 10; overflow: hidden; border: 1px solid var(--line); border-top: 0; }
.ref__body { padding: 20px 22px 22px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.ref__meta { display: flex; gap: 8px; font-size: 12px; font-weight: 600; }
.ref__meta span { padding: 3px 10px; border-radius: 999px; background: rgba(192,20,121,.1); color: var(--magenta); }
.ref__meta span + span { background: var(--bg-soft); color: var(--muted); }
.ref h3 { font-size: 18px; }
.ref p { color: var(--muted); font-size: 15px; }
.empty { grid-column: 1 / -1; text-align: center; color: var(--muted); }
@keyframes fadeUp { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.steps li { position: relative; padding: 28px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); }
.steps span { display: inline-block; font-size: 34px; font-weight: 800; margin-bottom: 14px; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.steps h3 { font-size: 18px; margin-bottom: 8px; }
.steps p { color: var(--muted); font-size: 15px; }

/* ---------- CTA / Contact ---------- */
.cta {
  display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: center;
  padding: 56px; border-radius: 28px; position: relative; overflow: hidden; color: #fff;
  background:
    radial-gradient(circle at 100% 100%, rgba(192,20,121,.55), transparent 55%),
    linear-gradient(135deg, #3d1659, var(--brand) 55%, var(--purple));
  box-shadow: 0 30px 60px -30px rgba(102,45,145,.7);
}
.cta .eyebrow { color: #ffb3dd; }
.cta__text p { color: rgba(255,255,255,.8); margin-top: 14px; font-size: 17px; }
.contact { display: grid; gap: 12px; }
.contact__item {
  display: flex; align-items: center; gap: 14px; padding: 14px 18px; border-radius: 14px; min-width: 0;
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.18); transition: background .2s, transform .2s;
}
a.contact__item:hover { background: rgba(255,255,255,.18); transform: translateX(4px); }
.contact__icon { flex: none; width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: #fff; }
.contact__icon svg { width: 20px; height: 20px; fill: none; stroke: var(--magenta); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.contact__item > span:last-child { min-width: 0; }
.contact small { display: block; color: rgba(255,255,255,.7); font-size: 12px; }
.contact strong { display: block; font-size: 15px; overflow-wrap: anywhere; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line); padding: 60px 0 calc(28px + env(safe-area-inset-bottom)); margin-top: 40px; background: var(--bg-soft); }
.footer__inner { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; }
.footer__brand .logo img { height: 54px; }
.footer__brand p { color: var(--muted); margin-top: 14px; max-width: 320px; }
.footer h4 { font-size: 14px; text-transform: uppercase; letter-spacing: .1em; color: var(--heading); margin-bottom: 16px; }
.footer ul { display: grid; gap: 10px; }
.footer ul a { color: var(--text); transition: color .2s; }
.footer ul a:hover { color: var(--magenta); }
.footer__bottom {
  display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  margin-top: 48px; padding-top: 24px; padding-right: 72px; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px;
}

/* ---------- WhatsApp float ---------- */
.wa {
  position: fixed; right: 20px; bottom: calc(20px + env(safe-area-inset-bottom)); z-index: 40;
  width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center;
  background: #25d366; box-shadow: 0 12px 30px -8px rgba(37,211,102,.6); transition: transform .2s;
}
.wa:hover { transform: scale(1.08); }
.wa svg { width: 30px; height: 30px; fill: #fff; }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .grid--services { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .cta { grid-template-columns: 1fr; padding: 40px; }
}

@media (max-width: 860px) {
  .burger { display: block; }
  .theme-btn { margin-left: auto; }
  .header__inner { gap: 10px; }
  .nav {
    position: fixed; top: var(--header-h); left: 0; right: 0; bottom: 0;
    flex-direction: column; align-items: stretch; gap: 4px; padding: 20px 16px calc(24px + env(safe-area-inset-bottom));
    background: var(--bg); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
    font-size: 18px; transform: translateY(-8px); opacity: 0; visibility: hidden;
    transition: opacity .25s, transform .25s, visibility .25s; overflow-y: auto;
  }
  .nav a:not(.btn) { padding: 16px 8px; border-bottom: 1px solid var(--line); color: var(--text); }
  .nav__cta { margin-top: 16px; min-height: 52px; font-size: 16px; }
  .menu-open .nav { opacity: 1; transform: none; visibility: visible; }
  .menu-open { overflow: hidden; }
  .footer__inner { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
}

@media (max-width: 640px) {
  :root { --header-h: 64px; }
  .container { padding: 0 16px; }
  .logo img { height: 36px; }
  .section { padding: 72px 0; }
  .section__head { margin-bottom: 36px; }
  .section__head p { font-size: 16px; }
  .hero { padding: calc(var(--header-h) + 52px) 0 64px; }
  .hero__actions { width: 100%; flex-direction: column; }
  .hero__actions .btn { width: 100%; }
  .stats { gap: 8px; margin-top: 40px; }
  .stats div { padding: 14px 6px; }
  .stats dd { font-size: 12px; }
  .grid { gap: 16px; }
  .grid--projects, .grid--refs, .grid--services, .steps { grid-template-columns: 1fr; }
  .filters {
    flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; margin: -12px -16px 28px; padding: 0 16px 4px;
    scrollbar-width: none; -webkit-overflow-scrolling: touch;
  }
  .filters::-webkit-scrollbar { display: none; }
  .chip { flex: none; }
  .service, .steps li { padding: 22px; }
  .cta { padding: 28px 20px; border-radius: 22px; gap: 28px; }
  .footer { padding-bottom: calc(88px + env(safe-area-inset-bottom)); }
  .footer__bottom { flex-direction: column; }
  .wa { right: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); width: 52px; height: 52px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}
