/* ============================================================
   Tandem — style.css (bento tasarım, v4)
   Space Grotesk (başlıklar) + Inter (metin) + Fraunces (vurgu),
   koyu yüzeyler, ince çizgiler, asimetrik bento grid'leri
   ============================================================ */

:root {
  --bg: #0C0C0E;
  --bg-soft: #101014;
  --surface: #141419;
  --surface-2: #1A1A21;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.14);
  --text: #F5F5F7;
  --text-muted: #9B9BA3;
  --accent: #6D5AE6;
  --accent-hover: #7C6BF0;
  --accent-soft: rgba(109, 90, 230, 0.12);
  --accent-2: #E8B45A;
  --radius: 20px;
  --radius-sm: 12px;
  --gap: 16px;
  --container: 1200px;
  --nav-h: 72px;
  --font-display: 'Space Grotesk', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;
  --font-accent: 'Fraunces', Georgia, serif;
  --shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
  --shadow-lg: 0 30px 80px rgba(0, 0, 0, 0.5);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  /* Ziyaretçiler site metnini seçip kopyalayamasın */
  user-select: none;
  -webkit-user-select: none;
}

/* İstisna: form alanları ve sohbet girişi seçilebilir/düzenlenebilir kalır */
input,
textarea,
select {
  user-select: text;
  -webkit-user-select: text;
}

/* Çok hafif doku (gürültü) — "AI parlaklığı"nı kırar */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

::selection { background: rgba(109, 90, 230, 0.45); color: #fff; }

/* İnce kaydırma çubuğu */
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: #26262E; border-radius: 5px; border: 2px solid var(--bg); }
::-webkit-scrollbar-thumb:hover { background: #33333D; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

img, svg { display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }
input, select, textarea { font: inherit; color: inherit; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }

.skip-link {
  position: fixed;
  top: -100px;
  left: 16px;
  z-index: 10000;
  padding: 10px 16px;
  background: var(--accent);
  color: #fff;
  border-radius: 8px;
  font-size: 14px;
  transition: top .2s;
}
.skip-link:focus { top: 12px; }

/* ============================================================
   REVEAL — kaydırınca yumuşak belirme (önce tanımlanır ki
   kart hover kuralları kazanabilsin)
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .6s ease, transform .6s ease;
  transition-delay: var(--d, 0s);
}
.reveal.visible { opacity: 1; transform: none; }

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: var(--nav-h);
  border-bottom: 1px solid transparent;
  transition: background .25s, border-color .25s;
}
.nav.scrolled {
  background: rgba(12, 12, 14, 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: var(--border);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: var(--nav-h); gap: 24px; }

.logo { display: flex; align-items: center; gap: 10px; }
.logo-mark { width: 30px; height: 30px; }
.logo-text { font-family: var(--font-display); font-weight: 700; font-size: 20px; letter-spacing: -.01em; }

.nav-links { display: flex; gap: 30px; }
.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
  position: relative;
  padding: 6px 0;
  transition: color .2s;
}
.nav-links a:hover { color: var(--text); }
.nav-links a.active { color: var(--text); }
.nav-links a.active::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 2px;
  border-radius: 2px;
  background: var(--accent);
}

.nav-actions { display: flex; align-items: center; gap: 12px; }

.lang-toggle {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .08em;
  color: var(--text-muted);
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  padding: 7px 12px;
  transition: color .2s, border-color .2s;
}
.lang-toggle:hover { color: var(--text); border-color: var(--text-muted); }

.hamburger { display: none; flex-direction: column; gap: 5px; padding: 8px; }
.hamburger span { width: 22px; height: 2px; background: var(--text); border-radius: 2px; transition: transform .25s, opacity .25s; }
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================================================
   BUTONLAR
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  border-radius: var(--radius-sm);
  padding: 12px 22px;
  transition: background .2s, color .2s, border-color .2s, transform .2s, box-shadow .2s;
  white-space: nowrap;
}
.btn-sm { padding: 9px 16px; font-size: 13px; }
.btn-block { width: 100%; }

.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
  box-shadow: 0 10px 28px rgba(109, 90, 230, 0.35);
}

.btn-ghost { color: var(--text); border: 1px solid var(--border-strong); background: transparent; }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }

.btn-arrow svg { width: 16px; height: 16px; transition: transform .25s ease; }
.btn-arrow:hover svg { transform: translateX(4px); }

/* ============================================================
   KICKER / BÖLÜM BAŞLIKLARI
   ============================================================ */
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.kicker-num { color: var(--accent); font-variant-numeric: tabular-nums; }

.section { padding: 96px 0; }
.section-head { margin-bottom: 48px; }
.section-head-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: end;
  margin-top: 16px;
}
.section-intro { color: var(--text-muted); font-size: 15px; max-width: 420px; }

h1, h2, h3 { font-family: var(--font-display); font-weight: 700; line-height: 1.1; letter-spacing: -0.02em; }
h1 { font-size: clamp(40px, 6.5vw, 68px); }
h2 { font-size: clamp(28px, 3.5vw, 40px); }
h3 { font-size: 19px; }

/* Tek serif italik vurgu sözcüğü (kişilik detayı) */
.accent-word {
  font-family: var(--font-accent);
  font-style: italic;
  font-weight: 500;
  color: var(--accent-2);
  letter-spacing: 0;
}

/* ============================================================
   HERO — başlık + CTA + altta bento önizleme grid'i
   ============================================================ */
.hero { padding: calc(var(--nav-h) + 56px) 0 80px; }
.hero-content { max-width: 780px; margin: 0 auto; text-align: center; }

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
}
.hero-badge-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 12px rgba(109, 90, 230, 0.8); }

.hero h1 { margin-top: 24px; }
.hero-sub { margin: 20px auto 0; color: var(--text-muted); font-size: 17px; max-width: 520px; }
.hero-ctas { margin-top: 32px; display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* Bento önizleme grid'i (parallax hedefi: .hero-visual) */
.hero-bento {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--gap);
  margin-top: 64px;
  will-change: transform;
}

/* ============================================================
   BENTO KARTLAR
   ============================================================ */
.bento-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: var(--gap); }

.bento-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
  transition: transform .3s ease, border-color .3s ease, background .3s ease;
}
.bento-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-strong);
  background: var(--surface-2);
}

.bento-card.mini { display: flex; align-items: center; gap: 12px; padding: 16px 18px; }
.bento-card.mini .icon-tile { width: 36px; height: 36px; border-radius: 10px; }
.bento-card.mini .icon-tile svg { width: 17px; height: 17px; }
.bento-card.mini span:last-child { font-size: 14px; font-weight: 600; }

/* İkon kutuları — gradyan yalnızca burada ve kart içi ışımalarda */
.icon-tile {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  color: #fff;
  flex-shrink: 0;
  transition: transform .3s ease;
}
.icon-tile svg { width: 20px; height: 20px; }
.bento-card:hover .icon-tile { transform: translateY(-2px) scale(1.06); }
.tile-violet { background: linear-gradient(135deg, #6D5AE6, #8B5CF6); }
.tile-blue { background: linear-gradient(135deg, #3B82F6, #60A5FA); }
.tile-emerald { background: linear-gradient(135deg, #10B981, #34D399); }
.tile-gold { background: linear-gradient(135deg, #E8B45A, #F0C97E); }

/* ============================================================
   HİZMET ŞERİDİ — sağdan sola sonsuz marquee
   Hareket JS tarafından sürülür (initMarquee): rAF + delta-time,
   grup genişliğinde kusursuz sarma. CSS yalnızca yerleşimi verir.
   Tüm boşluk span içinde (padding + nokta margin) → gruplar
   piksel piksel aynı genişlikte.
   ============================================================ */
.service-strip {
  overflow: hidden;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 18px 0;
}
.marquee-track {
  display: flex;
  width: max-content;
}
.marquee-group {
  display: flex;
  align-items: center;
  flex-shrink: 0; /* gruplar asla sıkıştırılamaz → -50% matematiği bozulmaz */
}
.marquee-group span {
  display: inline-flex;
  align-items: center;
  padding: 0 28px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--text-muted);
  white-space: nowrap;
  transition: color .2s;
}
.marquee-group span::before {
  content: '';
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--accent-2);
  margin-right: 14px;
  flex-shrink: 0;
}
.marquee-group span:hover { color: var(--text); }

/* ============================================================
   HİZMETLER — bento: 1 büyük (2x2) + 2 küçük + 1 geniş
   ============================================================ */
.service-card { grid-column: span 2; display: flex; flex-direction: column; gap: 14px; }
.service-card p { color: var(--text-muted); font-size: 14px; }
.service-card-lg {
  grid-column: span 4;
  grid-row: span 2;
  overflow: hidden;
}
.service-card-lg::before {
  content: '';
  position: absolute;
  top: -100px;
  right: -100px;
  width: 300px;
  height: 300px;
  background: radial-gradient(closest-side, rgba(109, 90, 230, 0.14), transparent 70%);
  pointer-events: none;
}
.service-card-lg .card-link { margin-top: 0; }
.service-card-lg .browser { margin-top: auto; }
.service-card-wide {
  grid-column: span 6;
  flex-direction: row;
  align-items: center;
  gap: 20px;
}
.service-card-wide .service-card-text { flex: 1; }
.service-card-wide .card-link { margin-top: 0; }

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
  color: var(--accent);
  margin-top: auto;
}
.card-link svg { width: 16px; height: 16px; transition: transform .25s ease; }
.card-link:hover svg { transform: translateX(4px); }

/* Tarayıcı çerçevesi + CSS ile çizilmiş sahte arayüz */
.browser { border: 1px solid var(--border); border-radius: var(--radius-sm); overflow: hidden; background: var(--bg-soft); }
.browser-bar { display: flex; align-items: center; gap: 6px; padding: 10px 12px; border-bottom: 1px solid var(--border); }
.browser-bar span { width: 8px; height: 8px; border-radius: 50%; background: #2A2A33; }
.browser-bar span:nth-child(1) { background: #3A3A45; }
.browser-url { flex: 1; height: 14px; border-radius: 4px; background: var(--surface-2); margin-left: 8px; }
.browser-screen { position: relative; height: 180px; }
.service-card-lg .browser-screen { height: 220px; }
.portfolio-featured .browser-screen { height: 260px; }
.grad-1 { background: linear-gradient(135deg, #1E1B4B, #312E81); }
.grad-2 { background: linear-gradient(135deg, #172554, #1E3A8A); }
.grad-3 { background: linear-gradient(135deg, #052E16, #065F46); }
.grad-4 { background: linear-gradient(135deg, #1C1917, #292524); }
.grad-5 { background: linear-gradient(135deg, #3B0764, #6B21A8); }
.grad-6 { background: linear-gradient(135deg, #0C4A6E, #155E75); }
.screen-ui { position: absolute; inset: 0; padding: 14px; display: flex; flex-direction: column; gap: 10px; }
.screen-nav { display: flex; gap: 6px; }
.screen-nav i { width: 34px; height: 6px; border-radius: 3px; background: rgba(255, 255, 255, 0.14); }
.screen-hero { display: flex; flex-direction: column; gap: 6px; margin-top: 6px; }
.screen-hero b { height: 8px; border-radius: 4px; background: rgba(255, 255, 255, 0.2); }
.screen-hero b:first-child { width: 70%; height: 14px; background: rgba(255, 255, 255, 0.28); }
.screen-cards { display: flex; gap: 8px; margin-top: auto; }
.screen-cards i { flex: 1; height: 44px; border-radius: 6px; background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.06); }

/* ============================================================
   NASIL ÇALIŞIR — 4 kompakt kart
   ============================================================ */
.how-grid { grid-template-columns: repeat(4, 1fr); }
.step-card { display: flex; flex-direction: column; gap: 10px; }
.step-num { font-family: var(--font-display); font-size: 14px; font-weight: 700; color: var(--accent); font-variant-numeric: tabular-nums; }
.step-card h3 { font-size: 17px; }
.step-card p { color: var(--text-muted); font-size: 14px; }

/* ============================================================
   PORTFOLYO — bento: 1 büyük + 5 küçük, değişken açıklıklar
   ============================================================ */
.portfolio-card { grid-column: span 2; display: flex; flex-direction: column; padding: 0; overflow: hidden; }
.portfolio-card .browser { border: none; border-bottom: 1px solid var(--border); border-radius: 0; position: relative; }
.portfolio-card .browser-screen { transition: transform .5s ease; }
.portfolio-card:hover .browser-screen { transform: scale(1.05); }
.portfolio-card:hover .browser::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(109, 90, 230, 0.18), transparent 55%);
  pointer-events: none;
}
.portfolio-featured { grid-column: span 4; grid-row: span 2; }
.portfolio-body { padding: 20px 24px 24px; display: flex; flex-direction: column; gap: 8px; }
.portfolio-body h3 { font-size: 18px; }
.portfolio-body p { color: var(--text-muted); font-size: 14px; }
.portfolio-cat { font-size: 11px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--accent-2); }
.portfolio-note { margin-top: 32px; text-align: center; color: var(--text-muted); font-size: 14px; }

/* ============================================================
   SSS — iki sütun: solda yapışkan başlık, sağda akordeon kartı
   ============================================================ */
.sss-grid { display: grid; grid-template-columns: 4fr 8fr; gap: var(--gap); align-items: start; }
.sss-side { position: sticky; top: calc(var(--nav-h) + 24px); }
.sss-side h2 { margin: 16px 0 12px; }
.sss-side p { color: var(--text-muted); font-size: 15px; max-width: 360px; }
.faq-card { padding: 8px 28px; }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-item:last-child { border-bottom: none; }
.faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 20px 0;
  text-align: left;
  font-size: 15px;
  font-weight: 600;
  transition: color .2s;
}
.faq-q:hover { color: var(--accent); }
.faq-chevron { width: 18px; height: 18px; flex-shrink: 0; color: var(--text-muted); transition: transform .3s ease, color .3s ease; }
.faq-q:hover .faq-chevron { color: var(--accent-2); }
.faq-item.open .faq-chevron { transform: rotate(180deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .35s ease; }
.faq-item.open .faq-a { max-height: 320px; }
.faq-a > div { padding: 0 0 20px; }
.faq-a p { color: var(--text-muted); font-size: 14px; max-width: 640px; }

/* ============================================================
   İLETİŞİM — bento bölünmüş: bilgi kartı + form kartı
   ============================================================ */
.contact-grid { display: grid; grid-template-columns: 5fr 7fr; gap: var(--gap); align-items: start; }
.contact-info { display: flex; flex-direction: column; gap: 16px; }
.contact-info > p { color: var(--text-muted); font-size: 15px; max-width: 420px; }
.contact-response {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: auto;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg-soft);
  font-size: 14px;
  color: var(--text-muted);
}
.contact-response .icon-tile { width: 36px; height: 36px; border-radius: 10px; }
.contact-response .icon-tile svg { width: 17px; height: 17px; }
.contact-form-card { padding: 32px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-field { display: flex; flex-direction: column; gap: 8px; margin-bottom: 18px; }
.form-field label { font-size: 13px; font-weight: 600; color: var(--text-muted); }
.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  font-size: 14px;
  color: var(--text);
  transition: border-color .2s, box-shadow .2s;
}
.form-field select { appearance: none; cursor: pointer; }
.form-field select option { background: var(--surface); color: var(--text); }
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(109, 90, 230, 0.22);
}
.form-field textarea { resize: vertical; min-height: 100px; }
.form-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 4px; }
.form-success { margin-top: 14px; font-size: 14px; color: var(--accent-2); }

/* ============================================================
   FOOTER — sade, ince üst çizgi
   ============================================================ */
.footer { border-top: 1px solid var(--border); padding: 64px 0 32px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; }
.footer-brand p { margin-top: 14px; color: var(--text-muted); font-size: 14px; max-width: 300px; }
.footer-col h4 {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 14px;
}
.footer-col a, .footer-col span { display: block; font-size: 14px; color: var(--text-muted); padding: 5px 0; transition: color .2s; }
.footer-col a:hover { color: var(--text); }
.footer-bottom { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--border); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.footer-bottom p { font-size: 13px; color: var(--text-muted); }

/* ============================================================
   CHAT — Groq asistan (bento tarzı)
   ============================================================ */
.chat-fab {
  position: fixed;
  left: 24px;
  bottom: 24px;
  z-index: 900;
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: linear-gradient(135deg, #6D5AE6, #8B5CF6);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 12px 32px rgba(109, 90, 230, 0.4);
  transition: transform .2s, box-shadow .2s;
}
.chat-fab:hover { transform: translateY(-2px); box-shadow: 0 16px 40px rgba(109, 90, 230, 0.5); }
.chat-fab svg { width: 22px; height: 22px; }
.chat-fab-close { display: none; }
.chat-fab.open .chat-fab-icon { display: none; }
.chat-fab.open .chat-fab-close { display: block; }

.chat-panel {
  position: fixed;
  left: 24px;
  bottom: 92px;
  z-index: 900;
  width: 360px;
  max-width: calc(100vw - 48px);
  height: 480px;
  max-height: calc(100vh - 140px);
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  opacity: 0;
  transform: translateY(12px) scale(.98);
  pointer-events: none;
  transition: opacity .25s ease, transform .25s ease;
  box-shadow: var(--shadow-lg);
}
.chat-panel.open { opacity: 1; transform: none; pointer-events: auto; }

.chat-header { display: flex; align-items: center; justify-content: space-between; padding: 16px 18px; border-bottom: 1px solid var(--border); background: var(--bg-soft); }
.chat-header-info { display: flex; align-items: center; gap: 12px; }
.chat-avatar {
  width: 36px; height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, #6D5AE6, #8B5CF6);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
}
.chat-avatar svg { width: 18px; height: 18px; }
.chat-title { display: block; font-family: var(--font-display); font-size: 15px; font-weight: 600; }
.chat-status { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--text-muted); }
.chat-online-dot { width: 7px; height: 7px; border-radius: 50%; background: #34D399; }
.chat-close { color: var(--text-muted); padding: 6px; border-radius: 8px; transition: color .2s, background .2s; }
.chat-close:hover { color: var(--text); background: var(--surface-2); }
.chat-close svg { width: 18px; height: 18px; }

.chat-messages { flex: 1; overflow-y: auto; padding: 18px; display: flex; flex-direction: column; gap: 10px; }
.chat-msg { max-width: 85%; padding: 10px 14px; font-size: 14px; line-height: 1.5; border-radius: 14px; }
.chat-msg.bot { align-self: flex-start; background: var(--bg-soft); border: 1px solid var(--border); border-bottom-left-radius: 4px; }
.chat-msg.user { align-self: flex-end; background: var(--accent); color: #fff; border-bottom-right-radius: 4px; }

.chat-typing { display: inline-flex; gap: 4px; padding: 4px 2px; }
.chat-typing span { width: 6px; height: 6px; border-radius: 50%; background: var(--text-muted); animation: typing 1.2s infinite ease-in-out; }
.chat-typing span:nth-child(2) { animation-delay: .15s; }
.chat-typing span:nth-child(3) { animation-delay: .3s; }
@keyframes typing {
  0%, 60%, 100% { opacity: .3; transform: translateY(0); }
  30% { opacity: 1; transform: translateY(-3px); }
}

/* Asistan mesajının altındaki "Teklif formunu doldur" butonu */
.chat-form-btn {
  margin-top: 10px;
  align-self: flex-start;
  font-size: 13px;
  font-weight: 600;
  color: var(--accent-hover);
  border: 1px solid var(--accent);
  border-radius: 10px;
  padding: 8px 16px;
  transition: background .2s, color .2s;
}
.chat-form-btn:hover { background: var(--accent); color: #fff; }

.chat-chips { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 18px 14px; }
.chat-chip {
  font-size: 12px;
  color: var(--text-muted);
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  padding: 7px 12px;
  transition: color .2s, border-color .2s;
}
.chat-chip:hover { color: var(--text); border-color: var(--text-muted); }

.chat-input-row { display: flex; gap: 10px; padding: 14px 18px; border-top: 1px solid var(--border); background: var(--bg-soft); }
.chat-input-row input {
  flex: 1;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 14px;
  transition: border-color .2s;
}
.chat-input-row input:focus { outline: none; border-color: var(--accent); }
.chat-send {
  width: 40px; height: 40px;
  border-radius: 10px;
  background: var(--accent);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  transition: background .2s;
  flex-shrink: 0;
}
.chat-send:hover { background: var(--accent-hover); }
.chat-send svg { width: 17px; height: 17px; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .hero-bento { grid-template-columns: repeat(2, 1fr); }
  .how-grid { grid-template-columns: repeat(2, 1fr); }
  .sss-grid { grid-template-columns: 1fr; }
  .sss-side { position: static; }
  .contact-grid { grid-template-columns: 1fr; }
  .service-card-lg { grid-column: span 6; grid-row: auto; }
  .service-card { grid-column: span 3; }
  .service-card-wide { grid-column: span 6; }
  .portfolio-featured { grid-column: span 6; grid-row: auto; }
  .portfolio-card { grid-column: span 3; }
  .section-head-row { grid-template-columns: 1fr; gap: 16px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    top: var(--nav-h);
    left: 0; right: 0;
    flex-direction: column;
    gap: 0;
    background: var(--bg-soft);
    border-bottom: 1px solid var(--border);
    padding: 12px 24px 20px;
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: opacity .25s ease, transform .25s ease;
  }
  .nav-links.open { opacity: 1; transform: none; pointer-events: auto; }
  .nav-links a { padding: 12px 0; font-size: 16px; border-bottom: 1px solid var(--border); }
  .nav-links a:last-child { border-bottom: none; }
  .nav-links a.active::after { display: none; }
  .hamburger { display: flex; }
  .nav-cta { display: none; }

  .section { padding: 72px 0; }
  .service-card { grid-column: span 6; }
  .portfolio-card { grid-column: span 6; }
  .service-card-wide { flex-direction: column; align-items: flex-start; }
  .form-row { grid-template-columns: 1fr; }
  .hero-bento { margin-top: 48px; }
}

@media (max-width: 480px) {
  .hero-bento { grid-template-columns: 1fr; }
  .how-grid { grid-template-columns: 1fr; }
  .form-actions { flex-direction: column; }
  .form-actions .btn { width: 100%; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero { padding-top: calc(var(--nav-h) + 40px); }
  .chat-panel { left: 12px; right: 12px; width: auto; }
  .chat-fab { left: 16px; bottom: 16px; }
}

/* ============================================================
   REDUCED MOTION — marquee hariç (dekoratif şerit, müşteri
   gereksinimi: her ortamda döner; JS tarafından sürülür)
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .chat-typing span { animation: none; }
  .hero-visual { transform: none !important; }
  * { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}