﻿body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  padding-top: 70px;
  background-color: #020617;
}

.hero-section {
  position: relative;
  min-height: 90vh;

  background-image: url("/static/img/hero-bg-1280.avif");
  background-image: image-set(
    url("/static/img/hero-bg-1280.avif") type("image/avif") 1x,
    url("/static/img/hero-bg-1920.avif") type("image/avif") 2x
  );

  background-size: cover;
  background-position: center;
}


.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.75);
}

.hero-section .container {
  position: relative;
  z-index: 2;
}

.hero-toplabel {
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.85rem;
  opacity: 0.85;
}

.hero-title {
  color: #f97373;
}

.hero-services-row .glass-card {
  background: rgba(15, 23, 42, 0.7);
  border-radius: 0.75rem;
  padding: 1rem 1.2rem;
  border: 1px solid rgba(148, 163, 184, 0.4);
  backdrop-filter: blur(8px);
  color: #e5e7eb;
}

/* Genel bölümler */
.section-contrast {
  background: radial-gradient(circle at top left, #111827 0, #020617 55%, #020617 100%);
  color: #e5e7eb;
}

.section-dark {
  background: #020617;
  color: #e5e7eb;
}

.section-dark p {
  color: #cbd5f5;
}

/* Galeri */
.gallery-item img {
  display: block;
}

/* Sayaçlar */
.counters-section {
  background: linear-gradient(135deg, #16a34a, #15803d);
}

.counter-box {
  background: rgba(15, 23, 42, 0.15);
  border-radius: 0.75rem;
  padding: 1.5rem;
  color: #f9fafb;
  border: 1px solid rgba(15, 23, 42, 0.2);
}

.counter-value {
  font-size: 2.5rem;
  font-weight: 700;
}

.counter-label {
  font-size: 0.9rem;
}

/* Hizmet kartları */
.service-card {
  background: #ffffff;
  border-radius: 0.9rem;
  padding: 1.5rem;
  border: 1px solid #e5e7eb;
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.05);
}

/* Testimonial */
.testimonial-card {
  background: #020617;
  border-radius: 0.9rem;
  padding: 1.5rem;
  border: 1px solid #1f2937;
  color: #e5e7eb;
}

/* WhatsApp floating buton */
.whatsapp-fab {
  position: fixed;
  right: 1.5rem;
  bottom: 1.5rem;
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 999px;
  background-color: #22c55e;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 15px 30px rgba(22, 163, 74, 0.5);
  z-index: 999;
}

.whatsapp-fab:hover {
  transform: translateY(-2px);
}

/* Footer */
.footer {
  font-size: 0.85rem;
}


/* === YAPAY ZEKA / SOHBET BOTU === */
.ai-chat-toggle {
  position: fixed;
  right: 1.5rem;
  bottom: 1.5rem;
  width: 3.2rem;
  height: 3.2rem;
  border-radius: 999px;
  background: #ef4444;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  cursor: pointer;
  box-shadow: 0 15px 30px rgba(248, 113, 113, 0.6);
  z-index: 9999;
}

.ai-chat-widget {
  position: fixed;
  right: 1.5rem;
  bottom: 5.2rem;
  width: 320px;
  max-width: 90vw;
  background: #0b1120;
  color: #e5e7eb;
  border-radius: 1rem;
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.7);
  overflow: hidden;
  display: none;
  flex-direction: column;
  z-index: 9999;
}

.ai-chat-widget.open {
  display: flex;
}

.ai-chat-header {
  padding: 0.75rem 1rem;
  background: linear-gradient(135deg, #ef4444, #7f1d1d);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.ai-chat-title {
  font-weight: 700;
  font-size: 0.95rem;
}

.ai-chat-subtitle {
  font-size: 0.75rem;
  opacity: 0.9;
}

.ai-chat-close {
  border: none;
  background: transparent;
  color: #fee2e2;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
}

.ai-chat-messages {
  max-height: 260px;
  overflow-y: auto;
  padding: 0.75rem;
  background: #020617;
}

.ai-chat-message {
  font-size: 0.8rem;
  padding: 0.45rem 0.6rem;
  border-radius: 0.6rem;
  margin-bottom: 0.4rem;
  max-width: 90%;
}

.ai-chat-message.bot {
  background: #111827;
  align-self: flex-start;
}

.ai-chat-message.user {
  background: #2563eb;
  color: #ffffff;
  margin-left: auto;
}

.ai-chat-input-row {
  display: flex;
  border-top: 1px solid #111827;
  background: #020617;
}

.ai-chat-input {
  flex: 1;
  border: none;
  outline: none;
  padding: 0.6rem 0.7rem;
  font-size: 0.8rem;
  background: transparent;
  color: #e5e7eb;
}

.ai-chat-input::placeholder {
  color: #6b7280;
}

.ai-chat-send {
  border: none;
  background: #ef4444;
  color: #ffffff;
  padding: 0 0.9rem;
  font-size: 0.8rem;
  cursor: pointer;
}

.ai-chat-wa-btn {
  display: inline-block;
  padding: 0.4rem 0.7rem;
  border-radius: 999px;
  background: #22c55e;
  color: #ffffff;
  text-decoration: none;
  font-size: 0.8rem;
  margin-top: 0.25rem;
}/* === YAPAY ZEKA / SOHBET BOTU === */
.ai-chat-toggle {
  position: fixed;
  right: 1.5rem;
  bottom: 1.5rem;
  width: 3.2rem;
  height: 3.2rem;
  border-radius: 999px;
  background: #ef4444;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  cursor: pointer;
  box-shadow: 0 15px 30px rgba(248, 113, 113, 0.6);
  z-index: 9999;
}

.ai-chat-widget {
  position: fixed;
  right: 1.5rem;
  bottom: 5.2rem;
  width: 320px;
  max-width: 90vw;
  background: #0b1120;
  color: #e5e7eb;
  border-radius: 1rem;
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.7);
  overflow: hidden;
  display: none;
  flex-direction: column;
  z-index: 9999;
}

.ai-chat-widget.open { display: flex; }

.ai-chat-header {
  padding: 0.75rem 1rem;
  background: linear-gradient(135deg, #ef4444, #7f1d1d);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.ai-chat-title { font-weight: 700; font-size: 0.95rem; }
.ai-chat-subtitle { font-size: 0.75rem; opacity: 0.9; }

.ai-chat-close {
  border: none;
  background: transparent;
  color: #fee2e2;
  font-size: 1.4rem;
  cursor: pointer;
}

.ai-chat-messages {
  max-height: 260px;
  overflow-y: auto;
  padding: 0.75rem;
  background: #020617;
}

.ai-chat-message {
  font-size: 0.8rem;
  padding: 0.45rem 0.6rem;
  border-radius: 0.6rem;
  margin-bottom: 0.4rem;
  max-width: 90%;
}

.ai-chat-message.bot { background: #111827; }
.ai-chat-message.user { background: #2563eb; color: #fff; margin-left: auto; }

.ai-chat-input-row { display: flex; border-top: 1px solid #111827; background: #020617; }
.ai-chat-input { flex: 1; border: none; padding: 0.6rem; background: transparent; color: #e5e7eb; }
.ai-chat-send { border: none; background: #ef4444; color: #fff; padding: 0 0.9rem; }

.ai-chat-wa-btn {
  display: inline-block;
  padding: 0.4rem 0.7rem;
  background: #22c55e;
  color: #fff;
  border-radius: 999px;
  text-decoration: none;
}
/* === WHATSAPP + YAPAY ZEKA FLOAT DÜZEN === */
.whatsapp-fab {
  position: fixed;
  right: 1.5rem;
  bottom: 1.5rem;
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 999px;
  background-color: #22c55e;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 15px 30px rgba(22, 163, 74, 0.5);
  z-index: 10001;
}

.whatsapp-fab:hover {
  transform: translateY(-2px);
}

.ai-chat-toggle {
  position: fixed;
  right: 1.5rem;
  bottom: 5.2rem;  /* WhatsApp butonunun ÜSTÜNDE dursun istersen bunu değiştiririz */
  width: 3.2rem;
  height: 3.2rem;
  border-radius: 999px;
  background: #ef4444;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  cursor: pointer;
  box-shadow: 0 15px 30px rgba(248, 113, 113, 0.6);
  z-index: 9999;
}
/* === MINI İŞLER KAYAN RESİM ŞERİDİ (YEŞİL 152+ BÖLÜMÜ YERİNE) === */
.mini-jobs-strip {
  background: #16a34a;
  padding: 0.75rem 0;
  overflow: hidden;
}

.mini-jobs-inner {
  overflow: hidden;
}

.mini-jobs-track {
  display: flex;
  align-items: center;
  gap: 1rem;
  animation: mini-jobs-scroll 40s linear infinite;
}

.mini-job-item img {
  height: 80px;
  width: auto;
  border-radius: 0.5rem;
  object-fit: cover;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.3);
}

/* Daha düzgün akış için geniş ekranlarda biraz hız ayarı istersen süresiyle oynayabilirsin */
@keyframes mini-jobs-scroll {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}
/* === 7/24 ACİL ELEKTRİK BAR === */
.acil-bar {
  width: 100%;
  background: #111827;
  color: #e5e7eb;
  font-size: 0.9rem;
  padding: 0.35rem 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 9000;
}

.acil-bar a {
  color: #f97316;
  text-decoration: none;
  font-weight: 600;
}

.acil-bar a:hover {
  text-decoration: underline;
}

.acil-bar-left {
  font-weight: 600;
}

.acil-bar-right {
  font-size: 0.85rem;
}
