/* ============================================================
   THEME SYSTEM — WebSite ve Otomasyon
   Koyu tema (varsayılan) + Açık krem tema
   Tek tuşla geçiş — localStorage key: "website-theme"
   ============================================================ */

/* ---------- DEĞİŞKENLER ---------- */
:root,
html[data-theme="dark"] {
  --bg: #070B14;
  --surface: #0F1725;
  --surface-soft: #131D2E;
  --card: #131D2E;
  --card-hover: #18243A;
  --primary: #7C3AED;
  --secondary: #38BDF8;
  --accent: #22C55E;
  --text: #F8FAFC;
  --text-muted: #C1C8D2;
  --border: rgba(255, 255, 255, 0.10);
  --navbar-bg: rgba(7, 11, 20, 0.76);
  --shadow: rgba(0, 0, 0, 0.34);

  --heading: #FFFFFF;
  --label: #A78BFA;
  --panel-bg: rgba(15, 15, 25, 0.6);
  --panel-border: rgba(255, 255, 255, 0.06);
  --panel-shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
  --chip-bg: rgba(124, 58, 237, 0.1);
  --chip-border: rgba(124, 58, 237, 0.2);
  --chip-text: #A78BFA;
  --line: rgba(255, 255, 255, 0.06);
  --input-bg: rgba(255, 255, 255, 0.04);
  --input-border: rgba(255, 255, 255, 0.08);
  --glow-purple: rgba(124, 58, 237, 0.08);
  --glow-cyan: rgba(6, 182, 212, 0.06);
  --grad-heading: linear-gradient(135deg, #A78BFA 0%, #7C3AED 50%, #06B6D4 100%);
  --grad-num: linear-gradient(135deg, #A78BFA 0%, #7C3AED 55%, #22D3EE 100%);
  --hero-overlay: linear-gradient(90deg, rgba(7, 11, 20, 0.96), rgba(7, 11, 20, 0.68), rgba(7, 11, 20, 0.24));
  --particle: rgba(167, 139, 250, 0.4);
  --cursor-glow: rgba(124, 58, 237, 0.06);
  --scrollbar-track: #0A0A0F;
  --scrollbar-thumb: rgba(255, 255, 255, 0.15);
  --logo-file: url('../brand/website-otomasyon-logo-light.png');
}

html[data-theme="light"] {
  --bg: #F8F3EC;
  --surface: #FFFDF9;
  --surface-soft: #F3ECE2;
  --card: #FFFFFF;
  --card-hover: #FFFCF7;
  --primary: #7C3AED;
  --secondary: #3B82F6;
  --accent: #16A34A;
  --text: #1F2937;
  --text-muted: #5D6875;
  --border: rgba(31, 41, 55, 0.10);
  --navbar-bg: rgba(255, 253, 249, 0.84);
  --shadow: rgba(31, 41, 55, 0.12);

  --heading: #111827;
  --label: #6D28D9;
  --panel-bg: rgba(255, 253, 249, 0.85);
  --panel-border: rgba(31, 41, 55, 0.08);
  --panel-shadow: 0 18px 55px rgba(31, 41, 55, 0.10);
  --chip-bg: rgba(124, 58, 237, 0.08);
  --chip-border: rgba(124, 58, 237, 0.20);
  --chip-text: #6D28D9;
  --line: rgba(31, 41, 55, 0.08);
  --input-bg: rgba(31, 41, 55, 0.04);
  --input-border: rgba(31, 41, 55, 0.12);
  --glow-purple: rgba(167, 139, 250, 0.10);
  --glow-cyan: rgba(147, 197, 253, 0.09);
  --grad-heading: linear-gradient(135deg, #7C3AED 0%, #6D28D9 50%, #3B82F6 100%);
  --grad-num: linear-gradient(135deg, #7C3AED 0%, #8B5CF6 55%, #3B82F6 100%);
  --hero-overlay: linear-gradient(90deg, rgba(248, 243, 236, 0.97), rgba(248, 243, 236, 0.78), rgba(248, 243, 236, 0.32));
  --particle: rgba(124, 58, 237, 0.28);
  --cursor-glow: rgba(124, 58, 237, 0.07);
  --scrollbar-track: #F3ECE2;
  --scrollbar-thumb: rgba(31, 41, 55, 0.22);
  --logo-file: url('../brand/website-otomasyon-logo-dark.png');
}

/* ---------- TEMA GEÇİŞİ (kontrollü, sadece renk özellikleri) ---------- */
html[data-theme] body {
  transition: background-color 0.35s ease;
}
html[data-theme] .footer,
html[data-theme] .footer-title,
html[data-theme] .footer-copy {
  transition-property: color, background-color, border-color, box-shadow;
  transition-duration: 0.35s;
  transition-timing-function: ease;
}
html[data-theme] .mobile-menu {
  transition-property: opacity, background-color, color;
  transition-duration: 0.4s, 0.35s, 0.35s;
  transition-timing-function: cubic-bezier(0.16, 1, 0.3, 1);
}
html[data-theme] .preloader {
  transition-property: opacity, background-color;
  transition-duration: 0.6s, 0.35s;
  transition-timing-function: cubic-bezier(0.16, 1, 0.3, 1), ease;
}

/* ============================================================
   TEMA DEĞİŞTİRME BUTONU
   ============================================================ */
.theme-toggle {
  position: relative;
  width: 42px;
  height: 42px;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #F8FAFC;
  cursor: pointer;
  transition: background-color 0.3s, border-color 0.3s, box-shadow 0.3s, transform 0.25s;
}
.theme-toggle:hover {
  background: rgba(124, 58, 237, 0.14);
  border-color: rgba(124, 58, 237, 0.45);
  box-shadow: 0 4px 18px rgba(124, 58, 237, 0.18);
}
.theme-toggle:active { transform: scale(0.94); }
.theme-toggle:focus-visible {
  outline: 2px solid #7C3AED;
  outline-offset: 3px;
}
.theme-toggle svg {
  position: absolute;
  width: 19px;
  height: 19px;
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.theme-toggle .icon-sun {
  opacity: 1;
  transform: rotate(0deg) scale(1);
}
.theme-toggle .icon-moon {
  opacity: 0;
  transform: rotate(-90deg) scale(0.4);
}
html[data-theme="light"] .theme-toggle {
  background: rgba(31, 41, 55, 0.05);
  border-color: rgba(31, 41, 55, 0.12);
  color: #1F2937;
}
html[data-theme="light"] .theme-toggle:hover {
  background: rgba(124, 58, 237, 0.1);
  border-color: rgba(124, 58, 237, 0.4);
}
html[data-theme="light"] .theme-toggle .icon-sun {
  opacity: 0;
  transform: rotate(90deg) scale(0.4);
}
html[data-theme="light"] .theme-toggle .icon-moon {
  opacity: 1;
  transform: rotate(0deg) scale(1);
}
@media (prefers-reduced-motion: reduce) {
  .theme-toggle svg {
    transition: none;
  }
}

/* ============================================================
   AÇIK TEMA — TEMEL
   ============================================================ */
html[data-theme="light"] body {
  background-color: var(--bg);
  color: var(--text);
}
html[data-theme="light"] body::after { display: none; }
html[data-theme="light"] ::selection {
  background: rgba(124, 58, 237, 0.22);
  color: #1F2937;
}
html[data-theme="light"] ::-webkit-scrollbar-track { background: var(--scrollbar-track); }
html[data-theme="light"] ::-webkit-scrollbar-thumb { background: var(--scrollbar-thumb); }

/* Gradient başlıklar */
html[data-theme="light"] .gradient-text,
html[data-theme="light"] .hero-title .line:nth-child(2) .line-inner,
html[data-theme="light"] .error-code,
html[data-theme="light"] .preloader-logo,
html[data-theme="light"] .process-step.active .process-step-number {
  background: var(--grad-heading);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ============================================================
   AÇIK TEMA — PRELOADER + NAVBAR + MOBİL MENÜ
   ============================================================ */
html[data-theme="light"] .preloader {
  background: var(--bg);
}
html[data-theme="light"] .preloader-bar {
  background: rgba(31, 41, 55, 0.12);
}
html[data-theme="light"] .nav,
html[data-theme="light"] .nav.scrolled {
  background: var(--navbar-bg) !important;
  border-bottom-color: rgba(31, 41, 55, 0.08);
  box-shadow: 0 4px 30px rgba(31, 41, 55, 0.08);
}
html[data-theme="light"] .nav-logo {
  background: rgba(255, 253, 249, 0.78);
  border-color: rgba(31, 41, 55, 0.10);
  box-shadow: 0 4px 18px rgba(31, 41, 55, 0.10);
}
html[data-theme="light"] .nav-links a {
  color: #374151;
}
html[data-theme="light"] .nav-links a:hover {
  color: #111827;
}
html[data-theme="light"] .nav-links a.active {
  color: #6D28D9;
}
html[data-theme="light"] .nav-hamburger span {
  background: #1F2937;
}
html[data-theme="light"] .mobile-menu {
  background: rgba(255, 253, 249, 0.98);
}
html[data-theme="light"] .mobile-menu a {
  color: #1F2937;
}
html[data-theme="light"] .mobile-menu a:hover {
  color: #6D28D9;
}
html[data-theme="light"] .mobile-menu a[style*="A78BFA"] {
  color: #6D28D9 !important;
}

/* ============================================================
   AÇIK TEMA — HERO
   ============================================================ */
html[data-theme="light"] .hero-bg video,
html[data-theme="light"] .ai-bg video,
html[data-theme="light"] .cta-bg video {
  display: none;
}
/* Koyu tema: hero-bg-dark.webp eklendiğinde otomatik görünür (şimdi yok → mevcut görünüm) */
html[data-theme="dark"] .hero-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image: url('/images/hero-bg-dark.webp');
  background-size: cover;
  background-position: center;
  opacity: 0.25;
}
/* Açık tema: görsel + krem overlay + (görsel yoksa) pastel gradient fallback */
html[data-theme="light"] .hero-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    var(--hero-overlay),
    url('/images/hero-bg-light.webp'),
    radial-gradient(ellipse at 85% 100%, rgba(167, 139, 250, 0.12) 0%, transparent 55%),
    radial-gradient(ellipse at 10% 0%, rgba(147, 197, 253, 0.10) 0%, transparent 50%),
    linear-gradient(180deg, #FBF7F1 0%, #F8F3EC 55%, #F3ECE2 100%);
  background-size: cover, cover, auto, auto, auto;
  background-position: center;
}
html[data-theme="light"] .hero-bg::after {
  background:
    radial-gradient(ellipse at 30% 20%, rgba(167, 139, 250, 0.14) 0%, transparent 50%),
    radial-gradient(ellipse at 70% 80%, rgba(147, 197, 253, 0.12) 0%, transparent 50%),
    linear-gradient(180deg, rgba(248, 243, 236, 0) 0%, rgba(248, 243, 236, 0.55) 100%);
}
html[data-theme="light"] .hero-grid {
  opacity: 0.05;
  background-image:
    linear-gradient(rgba(31, 41, 55, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(31, 41, 55, 0.07) 1px, transparent 1px);
}
html[data-theme="light"] .hero-glow--1 {
  background: radial-gradient(circle, rgba(167, 139, 250, 0.14) 0%, transparent 70%);
}
html[data-theme="light"] .hero-glow--2 {
  background: radial-gradient(circle, rgba(147, 197, 253, 0.12) 0%, transparent 70%);
}
html[data-theme="light"] .particle {
  background: var(--particle);
}
html[data-theme="light"] .hero-badge {
  background: rgba(124, 58, 237, 0.08);
  border-color: rgba(124, 58, 237, 0.22);
  color: #6D28D9;
}
html[data-theme="light"] .hero-badge-dot {
  background: #7C3AED;
}
html[data-theme="light"] .hero-title {
  color: var(--heading);
}
html[data-theme="light"] .hero-subtitle {
  color: #5D6875;
}
html[data-theme="light"] .hero-scroll-text {
  color: #9CA3AF;
}
html[data-theme="light"] .btn-outline {
  color: #374151;
  border-color: rgba(31, 41, 55, 0.2);
}
html[data-theme="light"] .btn-outline:hover {
  color: #111827;
  border-color: rgba(124, 58, 237, 0.5);
  background: rgba(124, 58, 237, 0.06);
}
html[data-theme="light"] .cursor-glow {
  background: radial-gradient(circle, var(--cursor-glow) 0%, transparent 70%);
}

/* ============================================================
   AÇIK TEMA — SHOWCASE / BROWSER
   ============================================================ */
html[data-theme="light"] .showcase-bg img {
  display: none;
}
html[data-theme="light"] .showcase-bg {
  background-image:
    linear-gradient(rgba(248, 243, 236, 0.88), rgba(248, 243, 236, 0.88)),
    url('/images/section-bg-light.webp');
  background-size: cover;
  background-position: center;
}
html[data-theme="light"] .showcase-glow-1 {
  background: radial-gradient(circle, rgba(167, 139, 250, 0.14) 0%, transparent 70%);
}
html[data-theme="light"] .showcase-glow-2 {
  background: radial-gradient(circle, rgba(147, 197, 253, 0.12) 0%, transparent 70%);
}
html[data-theme="light"] .showcase-desc {
  color: #5D6875;
}
html[data-theme="light"] .browser-window {
  background: rgba(255, 253, 249, 0.92);
  border-color: rgba(124, 58, 237, 0.18);
  box-shadow:
    0 0 0 1px rgba(31, 41, 55, 0.04),
    0 30px 100px rgba(31, 41, 55, 0.14),
    0 0 60px rgba(124, 58, 237, 0.06);
}
html[data-theme="light"] .browser-toolbar {
  background: rgba(243, 236, 226, 0.9);
  border-bottom-color: rgba(31, 41, 55, 0.06);
}
html[data-theme="light"] .browser-url {
  background: rgba(31, 41, 55, 0.04);
  border-color: rgba(31, 41, 55, 0.08);
  color: #5D6875;
}
html[data-theme="light"] .browser-nav {
  background: rgba(243, 236, 226, 0.7);
  border-top-color: rgba(31, 41, 55, 0.06);
}
html[data-theme="light"] .browser-nav-btn {
  border-color: rgba(31, 41, 55, 0.12);
  background: rgba(255, 255, 255, 0.5);
  color: #374151;
}
html[data-theme="light"] .browser-nav-btn:hover {
  color: #111827;
}
html[data-theme="light"] .browser-dots-indicator span {
  background: rgba(31, 41, 55, 0.15);
}
html[data-theme="light"] .browser-dots-indicator span.active {
  background: #7C3AED;
}
html[data-theme="light"] .browser-project-info {
  background: rgba(255, 255, 255, 0.7);
  border-bottom-color: rgba(31, 41, 55, 0.06);
}
html[data-theme="light"] .browser-project-name {
  color: #1F2937;
}
html[data-theme="light"] .browser-project-type,
html[data-theme="light"] .browser-project-tags {
  color: #5D6875;
}
html[data-theme="light"] .browser-counter-current,
html[data-theme="light"] .browser-counter-sep,
html[data-theme="light"] .browser-counter-total {
  color: #374151;
}

/* ============================================================
   AÇIK TEMA — SECTION HEADERS / LABELS
   ============================================================ */
html[data-theme="light"] .section-label {
  color: var(--label);
}
html[data-theme="light"] .section-label::before,
html[data-theme="light"] .section-label::after {
  background: rgba(109, 40, 217, 0.35);
}
html[data-theme="light"] .references .section-header h2,
html[data-theme="light"] .why-us .section-header h2,
html[data-theme="light"] .packages .section-header h2,
html[data-theme="light"] .faq .section-header h2,
html[data-theme="light"] .about-content h2,
html[data-theme="light"] .contact-info h3,
html[data-theme="light"] .contact-form-card h3,
html[data-theme="light"] .ai-text h2,
html[data-theme="light"] .process-step h3,
html[data-theme="light"] .process-side-panel .side-title,
html[data-theme="light"] .showcase-heading {
  color: var(--heading);
}
html[data-theme="light"] .packages .section-header p,
html[data-theme="light"] .ai-text p,
html[data-theme="light"] .process-step p,
html[data-theme="light"] .side-desc,
html[data-theme="light"] .about-content p {
  color: var(--text-muted);
}

/* ============================================================
   AÇIK TEMA — HİZMET KARTLARI (zigzag) + CTA PANEL
   ============================================================ */
html[data-theme="light"] .services-bg-glow {
  background:
    radial-gradient(circle at 12% 8%, rgba(167, 139, 250, 0.13) 0%, transparent 42%),
    radial-gradient(circle at 88% 92%, rgba(147, 197, 253, 0.11) 0%, transparent 42%);
}
html[data-theme="light"] .services-network,
html[data-theme="light"] .ai-network-canvas {
  opacity: 0.08;
}
html[data-theme="light"] .services .section-label {
  color: var(--label);
}
html[data-theme="light"] .services-desc {
  color: var(--text-muted);
}
html[data-theme="light"] .zigzag-card {
  background: rgba(255, 255, 255, 0.88) !important;
  border-color: rgba(31, 41, 55, 0.09);
  box-shadow:
    0 18px 45px rgba(31, 41, 55, 0.09),
    0 0 0 1px rgba(124, 58, 237, 0.03);
}
html[data-theme="light"] .zigzag-card::before {
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.25), transparent 50%);
}
html[data-theme="light"] .zigzag-step .zigzag-card:hover {
  border-color: rgba(124, 58, 237, 0.45);
  box-shadow:
    0 22px 55px rgba(31, 41, 55, 0.13),
    0 0 40px rgba(124, 58, 237, 0.07);
}
html[data-theme="light"] .zigzag-step.active .zigzag-card {
  border-color: rgba(124, 58, 237, 0.4);
  box-shadow:
    0 20px 55px rgba(31, 41, 55, 0.12),
    0 0 40px rgba(124, 58, 237, 0.06);
}
html[data-theme="light"] .zigzag-card-inner h3 {
  color: var(--heading);
}
html[data-theme="light"] .zigzag-card-inner p {
  color: var(--text-muted);
}
html[data-theme="light"] .zigzag-num {
  background: var(--grad-num);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
html[data-theme="light"] .zigzag-card:hover .zigzag-num {
  background: var(--grad-num);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
html[data-theme="light"] .zigzag-icon {
  background: rgba(124, 58, 237, 0.08);
  border-color: rgba(124, 58, 237, 0.25);
}
html[data-theme="light"] .zigzag-icon svg {
  stroke: #6D28D9;
}
html[data-theme="light"] .zigzag-tags span,
html[data-theme="light"] .zigzag-step.active .zigzag-tags span {
  color: var(--chip-text);
  background: var(--chip-bg);
  border-color: var(--chip-border);
}
html[data-theme="light"] .zigzag-card:hover .zigzag-tags span {
  color: #5B21B6;
  background: rgba(124, 58, 237, 0.12);
  border-color: rgba(124, 58, 237, 0.3);
}
html[data-theme="light"] .zigzag-line {
  background: rgba(124, 58, 237, 0.2);
}
html[data-theme="light"] .zigzag-dot {
  background: #FFFDF9;
  border-color: rgba(124, 58, 237, 0.35);
}
html[data-theme="light"] .zigzag-dot.active {
  border-color: #7C3AED;
  background: rgba(124, 58, 237, 0.15);
}
/* detayli-anlatim eski zigzag alt öğeleri */
html[data-theme="light"] .zigzag-features li {
  color: #4B5563;
}
html[data-theme="light"] .zigzag-features li::before {
  background: #7C3AED;
}
html[data-theme="light"] .services-cta {
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.92), rgba(243, 236, 226, 0.96));
  border-color: rgba(31, 41, 55, 0.09);
  box-shadow:
    0 18px 45px rgba(31, 41, 55, 0.09),
    0 0 0 1px rgba(124, 58, 237, 0.03);
}
html[data-theme="light"] .services-cta h3 {
  color: var(--heading);
}
html[data-theme="light"] .services-cta p {
  color: var(--text-muted);
}

/* ============================================================
   AÇIK TEMA — PROJELER
   ============================================================ */
html[data-theme="light"] .projects-bg-glow {
  background: radial-gradient(circle, rgba(147, 197, 253, 0.10) 0%, transparent 70%);
}
html[data-theme="light"] .project-category {
  color: #A78BFA;
}
html[data-theme="light"] .project-desc {
  color: rgba(255, 255, 255, 0.7);
}
html[data-theme="light"] .project-image-wrap {
  border-color: rgba(31, 41, 55, 0.1);
}
/* Görsel üzerinde beyaz yazı kalacak → koyu lokal overlay korunur (spec) */
html[data-theme="light"] .project-image-overlay {
  background: linear-gradient(180deg, transparent 40%, rgba(5, 5, 5, 0.85) 100%);
}

/* ============================================================
   AÇIK TEMA — AI BÖLÜMÜ
   ============================================================ */
html[data-theme="light"] .ai-bg::after {
  background:
    radial-gradient(ellipse at 50% 30%, rgba(167, 139, 250, 0.10) 0%, transparent 50%),
    linear-gradient(180deg, #F8F3EC 0%, transparent 20%, transparent 80%, #F8F3EC 100%);
}
html[data-theme="light"] .ai-feature-card {
  background: rgba(255, 255, 255, 0.88) !important;
  border-color: rgba(31, 41, 55, 0.09);
}
html[data-theme="light"] .ai-feature-card:hover {
  background: rgba(255, 255, 255, 1) !important;
  border-color: rgba(124, 58, 237, 0.35);
  box-shadow: 0 14px 40px rgba(31, 41, 55, 0.1);
}
html[data-theme="light"] .ai-feature-card h4 {
  color: var(--heading);
}
html[data-theme="light"] .ai-feature-card p {
  color: var(--text-muted);
}
html[data-theme="light"] .ai-feature-icon {
  background: rgba(124, 58, 237, 0.08);
  border-color: rgba(124, 58, 237, 0.22);
}
html[data-theme="light"] .ai-feature-icon svg {
  stroke: #6D28D9;
}

/* ============================================================
   AÇIK TEMA — SÜREÇ BÖLÜMÜ
   ============================================================ */
html[data-theme="light"] .process-bg-glow {
  background: radial-gradient(circle, rgba(167, 139, 250, 0.10) 0%, transparent 70%);
}
html[data-theme="light"] .process-side-panel {
  background: var(--panel-bg) !important;
  border-color: var(--panel-border);
  box-shadow: var(--panel-shadow), 0 0 60px rgba(124, 58, 237, 0.04);
}
html[data-theme="light"] .process-side-panel::before {
  background:
    radial-gradient(ellipse at 20% 20%, rgba(167, 139, 250, 0.10) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 80%, rgba(147, 197, 253, 0.08) 0%, transparent 50%);
}
html[data-theme="light"] .process-side-panel::after {
  background-image:
    linear-gradient(rgba(31, 41, 55, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(31, 41, 55, 0.08) 1px, transparent 1px);
  opacity: 0.05;
}
html[data-theme="light"] .side-status-text,
html[data-theme="light"] .side-process-label,
html[data-theme="light"] .side-pstep-num,
html[data-theme="light"] .side-pstep-name,
html[data-theme="light"] .side-digital-label,
html[data-theme="light"] .side-digi-label,
html[data-theme="light"] .side-digi-value,
html[data-theme="light"] .side-mbar-label,
html[data-theme="light"] .side-mbar-value,
html[data-theme="light"] .side-sstatus-label,
html[data-theme="light"] .side-sstatus-value,
html[data-theme="light"] .side-mockup-url,
html[data-theme="light"] .side-cta-text,
html[data-theme="light"] .side-card-title {
  color: #5D6875;
}
html[data-theme="light"] .side-title,
html[data-theme="light"] .side-digi-value--accent2 {
  color: #1F2937;
}
html[data-theme="light"] .side-tags span {
  color: var(--chip-text);
  background: var(--chip-bg);
  border-color: var(--chip-border);
}
html[data-theme="light"] .side-card,
html[data-theme="light"] .side-digi-card,
html[data-theme="light"] .side-digital,
html[data-theme="light"] .side-mockup-bar,
html[data-theme="light"] .side-digital-mockup {
  background: rgba(31, 41, 55, 0.03);
  border-color: rgba(31, 41, 55, 0.06);
}
html[data-theme="light"] .side-card:hover {
  background: rgba(124, 58, 237, 0.05);
  border-color: rgba(124, 58, 237, 0.2);
}
html[data-theme="light"] .side-card-num {
  color: #7C3AED;
}
html[data-theme="light"] .side-card-icon svg,
html[data-theme="light"] .side-digi-icon {
  stroke: #6D28D9;
}
html[data-theme="light"] .side-divider {
  background: linear-gradient(90deg, rgba(124, 58, 237, 0.22), rgba(124, 58, 237, 0.03));
}
html[data-theme="light"] .side-badge {
  color: #6D28D9;
  background: rgba(124, 58, 237, 0.08);
  border-color: rgba(124, 58, 237, 0.22);
}
html[data-theme="light"] .side-pstep-dot {
  background: rgba(31, 41, 55, 0.14);
  border-color: rgba(31, 41, 55, 0.1);
}
html[data-theme="light"] .side-pstep-connector {
  background: rgba(31, 41, 55, 0.08);
}
html[data-theme="light"] .side-digi-value--accent {
  color: #0891B2;
}
html[data-theme="light"] .side-digi-badge {
  color: #0891B2;
  background: rgba(6, 182, 212, 0.1);
  border-color: rgba(6, 182, 212, 0.25);
}
html[data-theme="light"] .side-chart-bar {
  background: linear-gradient(180deg, rgba(124, 58, 237, 0.35), rgba(59, 130, 246, 0.18));
}
html[data-theme="light"] .side-mbar-fill {
  background: linear-gradient(90deg, rgba(124, 58, 237, 0.6), rgba(124, 58, 237, 0.3));
}
html[data-theme="light"] .side-mbar-track {
  background: rgba(31, 41, 55, 0.06);
}
html[data-theme="light"] .side-mockup-status {
  border-top-color: rgba(31, 41, 55, 0.06);
}
html[data-theme="light"] .process-line {
  background: rgba(124, 58, 237, 0.15);
}
html[data-theme="light"] .process-step-dot {
  background: #FFFDF9;
  border-color: rgba(31, 41, 55, 0.15);
}
html[data-theme="light"] .process-step-dot-inner {
  background: rgba(31, 41, 55, 0.25);
}
html[data-theme="light"] .process-step.active .process-step-dot-inner {
  background: #7C3AED;
}
html[data-theme="light"] .process-step-number {
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.5), rgba(59, 130, 246, 0.4));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ============================================================
   AÇIK TEMA — CTA BÖLÜMÜ
   ============================================================ */
html[data-theme="dark"] .cta-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image: url('/images/cta-bg-dark.webp');
  background-size: cover;
  background-position: center;
  opacity: 0.1;
}
html[data-theme="light"] .cta-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    linear-gradient(180deg, rgba(248, 243, 236, 0.92) 0%, rgba(248, 243, 236, 0.82) 50%, rgba(248, 243, 236, 0.94) 100%),
    url('/images/cta-bg-light.webp'),
    radial-gradient(ellipse at 50% 120%, rgba(167, 139, 250, 0.12) 0%, transparent 55%),
    radial-gradient(ellipse at 80% 0%, rgba(147, 197, 253, 0.10) 0%, transparent 45%),
    linear-gradient(180deg, #FBF7F1 0%, #F3ECE2 100%);
  background-size: cover, cover, auto, auto, auto;
  background-position: center;
}
html[data-theme="light"] .cta-bg::after {
  background: none;
}
html[data-theme="light"] .cta-glow-1 {
  background: radial-gradient(circle, rgba(167, 139, 250, 0.14) 0%, transparent 70%);
}
html[data-theme="light"] .cta-glow-2,
html[data-theme="light"] .cta-glow {
  background: radial-gradient(circle, rgba(147, 197, 253, 0.12) 0%, transparent 70%);
}
html[data-theme="light"] .cta-content h2,
html[data-theme="light"] .cta-section h2 {
  color: var(--heading);
}
html[data-theme="light"] .cta-section p {
  color: var(--text-muted);
}

/* ============================================================
   AÇIK TEMA — GENEL KARTLAR (why / packages / faq / stats / refs / about / contact)
   ============================================================ */
html[data-theme="light"] .why-bg-glow,
html[data-theme="light"] .faq-bg-glow,
html[data-theme="light"] .references-bg-glow,
html[data-theme="light"] .section-glow--purple {
  background: radial-gradient(circle, rgba(167, 139, 250, 0.10) 0%, transparent 70%);
}
html[data-theme="light"] .packages-bg-glow,
html[data-theme="light"] .section-glow--cyan {
  background: radial-gradient(circle, rgba(147, 197, 253, 0.09) 0%, transparent 70%);
}
html[data-theme="light"] .why-card,
html[data-theme="light"] .package-card,
html[data-theme="light"] .faq-item,
html[data-theme="light"] .ref-slide-card,
html[data-theme="light"] .stat-card,
html[data-theme="light"] .about-visual-card,
html[data-theme="light"] .glass-card,
html[data-theme="light"] .service-detail,
html[data-theme="light"] .contact-item,
html[data-theme="light"] .contact-form-card {
  background: rgba(255, 255, 255, 0.88) !important;
  border-color: rgba(31, 41, 55, 0.09);
  box-shadow: 0 10px 35px rgba(31, 41, 55, 0.07);
}
html[data-theme="light"] .why-card:hover,
html[data-theme="light"] .package-card:hover,
html[data-theme="light"] .faq-item:hover,
html[data-theme="light"] .stat-card:hover,
html[data-theme="light"] .ref-slide-card:hover {
  background: rgba(255, 255, 255, 1) !important;
  border-color: rgba(124, 58, 237, 0.35);
  box-shadow: 0 18px 50px rgba(31, 41, 55, 0.11);
}
html[data-theme="light"] .why-card::before,
html[data-theme="light"] .package-card::after,
html[data-theme="light"] .faq-item::before,
html[data-theme="light"] .site-card::before {
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.07), transparent 50%);
}
html[data-theme="light"] .why-icon,
html[data-theme="light"] .sc-icon {
  background: rgba(124, 58, 237, 0.08);
  border-color: rgba(124, 58, 237, 0.22);
}
html[data-theme="light"] .why-card h4,
html[data-theme="light"] .package-name,
html[data-theme="light"] .faq-item h4,
html[data-theme="light"] .ref-slide-card h4,
html[data-theme="light"] .sc-meta h3,
html[data-theme="light"] .process-step-card h4,
html[data-theme="light"] .contact-details h4,
html[data-theme="light"] .browser-slide h4 {
  color: var(--heading);
}
html[data-theme="light"] .why-card p,
html[data-theme="light"] .package-desc,
html[data-theme="light"] .faq-item p,
html[data-theme="light"] .ref-slide-card p,
html[data-theme="light"] .stat-card p,
html[data-theme="light"] .contact-details p,
html[data-theme="light"] .contact-note,
html[data-theme="light"] .process-step-card p,
html[data-theme="light"] .sc-desc,
html[data-theme="light"] .sc-detail-list li {
  color: var(--text-muted);
}
html[data-theme="light"] .sc-desc strong,
html[data-theme="light"] .sc-detail-list li strong {
  color: #1F2937;
}
html[data-theme="light"] .package-card ul li {
  color: #4B5563;
  border-bottom-color: rgba(31, 41, 55, 0.06);
}
html[data-theme="light"] .sc-detail-list li {
  border-bottom-color: rgba(31, 41, 55, 0.06);
}
html[data-theme="light"] .package-card .package-cta,
html[data-theme="light"] .sc-type,
html[data-theme="light"] .sc-badge {
  color: #6D28D9;
}
html[data-theme="light"] .sc-badge,
html[data-theme="light"] .sc-tags span {
  background: rgba(124, 58, 237, 0.08);
  border-color: rgba(124, 58, 237, 0.2);
}
html[data-theme="light"] .package-card .package-cta:hover {
  color: #5B21B6;
}
html[data-theme="light"] .package-card ul li::before {
  background: #16A34A;
  box-shadow: none;
}
html[data-theme="light"] .divider {
  background: linear-gradient(90deg, transparent, rgba(124, 58, 237, 0.25), transparent);
}
html[data-theme="light"] .contact-whatsapp {
  background: rgba(37, 211, 102, 0.06);
  border-color: rgba(37, 211, 102, 0.25);
}
html[data-theme="light"] .form-group label {
  color: #4B5563;
}
html[data-theme="light"] .form-group input,
html[data-theme="light"] .form-group textarea {
  background: var(--input-bg);
  border-color: var(--input-border);
  color: var(--text);
}
html[data-theme="light"] .form-group input:focus,
html[data-theme="light"] .form-group textarea:focus {
  border-color: rgba(124, 58, 237, 0.55);
  background: rgba(255, 255, 255, 0.85);
}
html[data-theme="light"] .form-group input::placeholder,
html[data-theme="light"] .form-group textarea::placeholder {
  color: #9CA3AF;
}
html[data-theme="light"] .stat-number {
  color: var(--heading);
}
html[data-theme="light"] .about-logo-display {
  color: var(--heading);
}

/* ============================================================
   AÇIK TEMA — SITE DETAYLARI SAYFASI
   ============================================================ */
html[data-theme="light"] .page-hero::before {
  background:
    radial-gradient(ellipse at 30% 20%, rgba(167, 139, 250, 0.13) 0%, transparent 50%),
    radial-gradient(ellipse at 70% 80%, rgba(147, 197, 253, 0.11) 0%, transparent 50%);
}
html[data-theme="light"] .glow-orb--1,
html[data-theme="light"] .bg-glow--1 {
  background: radial-gradient(circle, rgba(167, 139, 250, 0.13) 0%, transparent 70%);
}
html[data-theme="light"] .glow-orb--2,
html[data-theme="light"] .glow-orb--3,
html[data-theme="light"] .bg-glow--2 {
  background: radial-gradient(circle, rgba(147, 197, 253, 0.11) 0%, transparent 70%);
}
html[data-theme="light"] .page-hero h1 {
  color: var(--heading);
}
html[data-theme="light"] .page-hero p {
  color: var(--text-muted);
}
html[data-theme="light"] .site-card {
  background: rgba(255, 255, 255, 0.88) !important;
  border-color: rgba(31, 41, 55, 0.09);
  box-shadow: 0 10px 35px rgba(31, 41, 55, 0.07);
}
html[data-theme="light"] .site-card:hover {
  background: rgba(255, 255, 255, 1) !important;
  border-color: rgba(124, 58, 237, 0.35);
  box-shadow: 0 18px 50px rgba(31, 41, 55, 0.11);
}
html[data-theme="light"] .site-card::after {
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.25), transparent 50%);
}
html[data-theme="light"] .sc-badge {
  color: #6D28D9;
}
html[data-theme="light"] .sc-tags span {
  color: var(--chip-text);
}

/* ============================================================
   AÇIK TEMA — 404 SAYFASI
   ============================================================ */
html[data-theme="light"] .grid-overlay {
  opacity: 0.05;
  background-image:
    linear-gradient(rgba(31, 41, 55, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(31, 41, 55, 0.06) 1px, transparent 1px);
}
html[data-theme="light"] .error-sub {
  color: #5D6875;
}
html[data-theme="light"] h1 {
  color: var(--heading);
}
html[data-theme="light"] .desc {
  color: var(--text-muted);
}

/* ============================================================
   AÇIK TEMA — FOOTER
   ============================================================ */
html[data-theme="light"] .footer {
  border-top-color: rgba(31, 41, 55, 0.08);
}
html[data-theme="light"] .footer-brand p,
html[data-theme="light"] .footer-copy,
html[data-theme="light"] .footer-links-group h4 {
  color: #5D6875;
}
html[data-theme="light"] .footer-links-group a {
  color: #374151;
}
html[data-theme="light"] .footer-links-group a:hover {
  color: #6D28D9;
}
html[data-theme="light"] .footer-social a {
  background: rgba(31, 41, 55, 0.04);
  border-color: rgba(31, 41, 55, 0.08);
}
html[data-theme="light"] .footer-social a svg {
  fill: #4B5563;
}
html[data-theme="light"] .footer-bottom {
  border-top-color: rgba(31, 41, 55, 0.08);
  color: #5D6875;
}
html[data-theme="light"] .footer-title {
  color: var(--heading);
}

/* ============================================================
   AÇIK TEMA — ARKA PLAN DOKUSU (içerik bölümleri)
   Görseller /images/ altında; yoksa gradient fallback çalışır
   ============================================================ */
html[data-theme="dark"] .services,
html[data-theme="dark"] .projects,
html[data-theme="dark"] .ai-section,
html[data-theme="dark"] .process,
html[data-theme="dark"] .references,
html[data-theme="dark"] .why-us,
html[data-theme="dark"] .packages,
html[data-theme="dark"] .faq,
html[data-theme="dark"] .about,
html[data-theme="dark"] .contact,
html[data-theme="dark"] .detail-section,
html[data-theme="dark"] .sites-section,
html[data-theme="dark"] .showcase {
  background-image: url('/images/section-bg-dark.webp');
  background-size: cover;
  background-position: center;
}
html[data-theme="light"] .services,
html[data-theme="light"] .projects,
html[data-theme="light"] .ai-section,
html[data-theme="light"] .process,
html[data-theme="light"] .references,
html[data-theme="light"] .statistics,
html[data-theme="light"] .why-us,
html[data-theme="light"] .packages,
html[data-theme="light"] .faq,
html[data-theme="light"] .about,
html[data-theme="light"] .contact,
html[data-theme="light"] .detail-section,
html[data-theme="light"] .sites-section {
  background-image:
    linear-gradient(rgba(248, 243, 236, 0.9), rgba(248, 243, 236, 0.9)),
    url('/images/section-bg-light.webp'),
    radial-gradient(ellipse at 85% 90%, rgba(167, 139, 250, 0.08) 0%, transparent 50%),
    linear-gradient(180deg, #FBF7F1 0%, #F3ECE2 100%);
  background-size: cover, cover, auto, auto;
  background-position: center;
}

/* ============================================================
   RESPONSIVE — AÇIK TEMA İNCE AYARLARI
   ============================================================ */
@media (max-width: 768px) {
  html[data-theme="light"] .hero-glow--1 {
    width: 360px;
    height: 360px;
  }
  html[data-theme="light"] .hero-glow--2 {
    width: 280px;
    height: 280px;
  }
  html[data-theme="light"] .showcase-glow-1,
  html[data-theme="light"] .showcase-glow-2,
  html[data-theme="light"] .cta-glow-1,
  html[data-theme="light"] .cta-glow-2 {
    width: 320px;
    height: 320px;
  }
  html[data-theme="light"] .services,
  html[data-theme="light"] .projects,
  html[data-theme="light"] .ai-section,
  html[data-theme="light"] .process,
  html[data-theme="light"] .references,
  html[data-theme="light"] .why-us,
  html[data-theme="light"] .packages,
  html[data-theme="light"] .faq,
  html[data-theme="light"] .detail-section,
  html[data-theme="light"] .sites-section {
    background-image: linear-gradient(180deg, #FBF7F1 0%, #F3ECE2 100%);
    background-size: auto;
  }
  /* Mobilde temiz düz zemin — doku hafif kalsın */
  html[data-theme="light"] body {
    background-color: #F8F3EC;
  }
}
@media (max-width: 480px) {
  /* Tema butonu için yer aç: WhatsApp etiketi ikona düşsün */
  .btn-whatsapp-sm span {
    display: none;
  }
  .btn-whatsapp-sm {
    padding: 8px 12px;
  }
}

/* ============================================================
   MOBİL PERFORMANS BLOKLARIYLA ÇAKIŞMA
   (sayfaların koyu kart arka planını açık temada ezer)
   ============================================================ */
@media (max-width: 768px) {
  html[data-theme="light"] .why-card,
  html[data-theme="light"] .zigzag-card,
  html[data-theme="light"] .package-card,
  html[data-theme="light"] .process-step-card,
  html[data-theme="light"] .faq-item,
  html[data-theme="light"] .process-side-panel,
  html[data-theme="light"] .ai-feature-card,
  html[data-theme="light"] .site-card,
  html[data-theme="light"] .contact-item,
  html[data-theme="light"] .contact-form-card,
  html[data-theme="light"] .about-visual-card,
  html[data-theme="light"] .stat-card,
  html[data-theme="light"] .ref-slide-card,
  html[data-theme="light"] .glass-card,
  html[data-theme="light"] .side-card,
  html[data-theme="light"] .side-digital {
    background: rgba(255, 255, 255, 0.92) !important;
  }
}
