/* =====================================================================
   DİJİTAL AJANS — TASARIM SİSTEMİ
   Tüm renkler :root değişkenleriyle tanımlanır; admin panelinden veya
   bu dosyadan kolayca değiştirilebilir.
   ===================================================================== */

:root {
    --primary: #7c3aed;      /* mor */
    --secondary: #2563eb;    /* elektrik mavisi */
    --accent: #ec4899;       /* pembe/vurgu */
    --background: #05060b;   /* neredeyse siyah, hafif mavi ton */
    --surface: #0d0f1a;
    --surface-2: #11131f;
    --text: #e7e9f0;
    --muted: #8891a7;
    --border: rgba(255,255,255,0.08);

    --font-display: 'Space Grotesk', 'Inter', sans-serif;
    --font-body: 'Inter', sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body.site-body {
    background: var(--background);
    color: var(--text);
    font-family: var(--font-body);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

h1, h2, h3, h4, .font-display {
    font-family: var(--font-display);
    letter-spacing: -0.02em;
}

.container-xl {
    max-width: 1240px;
    margin-inline: auto;
    padding-inline: 1.5rem;
}

/* ---------- Arka plan doku: grid + glow ---------- */
.bg-grid {
    background-image:
        linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px);
    background-size: 56px 56px;
}

.glow {
    position: absolute;
    border-radius: 999px;
    filter: blur(90px);
    pointer-events: none;
    z-index: 0;
}

/* ---------- Header ---------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(5, 6, 11, 0.7);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid transparent;
    transition: border-color .3s ease, padding .3s ease;
}
.site-header.is-scrolled {
    border-bottom-color: var(--border);
}

.nav-link {
    color: var(--muted);
    font-size: 0.9rem;
    transition: color .2s ease;
    position: relative;
}
.nav-link:hover { color: var(--text); }
.nav-link.active { color: var(--text); }

/* ---------- Butonlar ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 0.6rem;
    font-size: 0.9rem;
    font-weight: 500;
    transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
    white-space: nowrap;
}
.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: #fff;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 32px -14px rgba(124,58,237,.55); }
.btn-ghost {
    border: 1px solid var(--border);
    color: var(--text);
    background: rgba(255,255,255,0.02);
}
.btn-ghost:hover { background: rgba(255,255,255,0.06); border-color: rgba(255,255,255,0.2); }

/* ---------- Kartlar (kasıtlı olarak tek tip değil) ---------- */
.panel {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 1rem;
}

.service-row {
    border-top: 1px solid var(--border);
    transition: background .2s ease;
}
.service-row:hover { background: rgba(255,255,255,0.02); }
.service-row:last-child { border-bottom: 1px solid var(--border); }

/* ---------- Marquee ---------- */
.marquee-track {
    display: flex;
    width: max-content;
    animation: marquee 28s linear infinite;
}
@keyframes marquee {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
    .marquee-track { animation: none; }
}

/* ---------- Scroll reveal ---------- */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity .7s ease, transform .7s ease;
}
.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
    .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- Form elemanları ---------- */
.field-input {
    width: 100%;
    background: rgba(255,255,255,0.04);
    border: 1px solid var(--border);
    color: var(--text);
    border-radius: 0.6rem;
    padding: 0.75rem 1rem;
    font-size: 0.9rem;
    transition: border-color .2s ease, box-shadow .2s ease;
}
.field-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(124,58,237,0.2);
}
.field-input::placeholder { color: var(--muted); }

/* ---------- Yüzen iletişim butonları (WhatsApp / Telefon / Instagram) ---------- */
.fab-stack {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    z-index: 200;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.85rem;
}
.fab {
    position: relative;
    width: 56px;
    height: 56px;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.4rem;
    transition: transform .2s ease;
}
.fab:hover { transform: scale(1.08); }

.fab-whatsapp { background: #25D366; box-shadow: 0 12px 30px -10px rgba(37,211,102,.7); }
.fab-phone { background: linear-gradient(135deg, var(--primary), var(--secondary)); box-shadow: 0 12px 30px -10px rgba(37,99,235,.7); }
.fab-instagram {
    background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%);
    box-shadow: 0 12px 30px -10px rgba(214,36,159,.7);
}

/* "Nabız" (sonar ping) efekti: butonun arkasında genişleyip kaybolan halka */
.fab-pulse::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 999px;
    background: inherit;
    animation: fab-pulse-ring 2.2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
    z-index: -1;
}
@keyframes fab-pulse-ring {
    0%   { transform: scale(1);   opacity: 0.55; }
    70%  { transform: scale(1.9); opacity: 0; }
    100% { transform: scale(1.9); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
    .fab-pulse::before { animation: none; }
}
@media (max-width: 480px) {
    .fab-stack { bottom: 1rem; right: 1rem; gap: 0.65rem; }
    .fab { width: 48px; height: 48px; font-size: 1.2rem; }
}

/* ---------- Custom cursor (sadece masaüstü) ---------- */
.cursor-dot, .cursor-ring {
    position: fixed;
    top: 0; left: 0;
    pointer-events: none;
    z-index: 999;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    will-change: transform;
}
.cursor-dot { width: 6px; height: 6px; background: var(--accent); }
.cursor-ring {
    width: 32px; height: 32px;
    border: 1px solid rgba(255,255,255,0.35);
    transition: width .2s ease, height .2s ease, border-color .2s ease;
}
.cursor-ring.is-active { width: 48px; height: 48px; border-color: var(--accent); }

@media (max-width: 900px), (hover: none) {
    .cursor-dot, .cursor-ring { display: none; }
}

::selection { background: var(--primary); color: #fff; }

::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--background); }
::-webkit-scrollbar-thumb { background: #1c1f2e; border-radius: 999px; }

.line-clamp-2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.line-clamp-3 { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
