/* ═══════════════════════════════════════════
   TEMEL AYARLAR
════════════════════════════════════════════ */
*, *::before, *::after {
  box-sizing: border-box;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
html {
  font-family: 'Barlow', 'Helvetica Neue', Arial, sans-serif;
  scroll-behavior: smooth;
  text-rendering: optimizeLegibility;
}

/* ═══════════════════════════════════════════
   SAYFA GEÇİŞ OVERLAY
════════════════════════════════════════════ */
#page-overlay {
  position: fixed;
  inset: 0;
  background: #0B0B0B;
  z-index: 9999;
  pointer-events: none;
  opacity: 1;
  transition: opacity 0.22s cubic-bezier(0.4, 0, 0.2, 1);
}
#page-overlay.hidden {
  opacity: 0;
}

/* ═══════════════════════════════════════════
   LOGO PARLAMA ANİMASYONU — komple
════════════════════════════════════════════ */
.logo-shine {
  position: relative;
  overflow: hidden;
  border-radius: 4px;
  flex-shrink: 0;
}

/* Parlama şeridi — ikon + yazı üzerinden kayar */
.logo-shine::after {
  content: '';
  position: absolute;
  top: -30%;
  left: 0;
  width: 55%;
  height: 160%;
  background: linear-gradient(
    108deg,
    transparent   10%,
    rgba(255,255,255,0.08) 30%,
    rgba(255,255,255,0.55) 50%,
    rgba(255,255,255,0.08) 70%,
    transparent   90%
  );
  transform: translateX(-200%) skewX(-20deg);
  animation: logo-shimmer 3s cubic-bezier(0.4, 0, 0.6, 1) infinite;
  pointer-events: none;
  will-change: transform, opacity;
  z-index: 10;
}

@keyframes logo-shimmer {
  0%    { transform: translateX(-200%) skewX(-20deg); opacity: 0; }
  5%    { opacity: 1; }
  45%   { transform: translateX(350%) skewX(-20deg); opacity: 1; }
  50%   { opacity: 0; transform: translateX(350%) skewX(-20deg); }
  100%  { transform: translateX(350%) skewX(-20deg); opacity: 0; }
}

/* Açılış ekranı intro-icon için ayrı (sadece ikon boyutunda) */
#intro-icon.logo-shine::after {
  animation: logo-shimmer 2s cubic-bezier(0.4, 0, 0.6, 1) 1.8s forwards;
}

/* ═══════════════════════════════════════════
   NAVBAR
════════════════════════════════════════════ */
#navbar {
  transition: background 0.5s cubic-bezier(0.4, 0, 0.2, 1),
              backdrop-filter 0.5s ease,
              box-shadow 0.5s ease;
  will-change: background;
}
#navbar.scrolled {
  background: rgba(11,11,11,0.85);
  backdrop-filter: blur(20px) saturate(1.8);
  -webkit-backdrop-filter: blur(20px) saturate(1.8);
  box-shadow: 0 1px 0 rgba(255,255,255,0.05), 0 4px 24px rgba(0,0,0,0.3);
}
#navbar.dark-page { background: rgba(11,11,11,0.95); }
.nav-link.active { color: #fff !important; }

/* ═══════════════════════════════════════════
   SCROLL ANIMASYONLARI — GPU hızlandırmalı
════════════════════════════════════════════ */
.reveal {
  opacity: 0;
  transform: translate3d(0, 28px, 0);
  transition: opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform, opacity;
  backface-visibility: hidden;
}
.reveal.visible {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

.reveal-left {
  opacity: 0;
  transform: translate3d(-32px, 0, 0);
  transition: opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform, opacity;
  backface-visibility: hidden;
}
.reveal-left.visible {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

.reveal-right {
  opacity: 0;
  transform: translate3d(32px, 0, 0);
  transition: opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform, opacity;
  backface-visibility: hidden;
}
.reveal-right.visible {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

/* Gecikme basamakları */
.delay-1 { transition-delay: 0.08s; }
.delay-2 { transition-delay: 0.16s; }
.delay-3 { transition-delay: 0.24s; }
.delay-4 { transition-delay: 0.32s; }
.delay-5 { transition-delay: 0.40s; }

/* ═══════════════════════════════════════════
   HERO BAŞLIK FONTU — Bebas Neue
════════════════════════════════════════════ */
.hero-bg h1,
.page-hero h1,
.page-hero-content h1,
#intro-brand {
  font-family: 'Bebas Neue', 'Barlow', sans-serif;
  letter-spacing: 0.06em;
}

/* ═══════════════════════════════════════════
   HERO
════════════════════════════════════════════ */
.hero-bg {
  background-image: url('../yeni hero.png');
  background-size: cover;
  background-position: center 55%;
  transform: translateZ(0); /* GPU katmanı */
}
.hero-overlay {
  background: linear-gradient(
    135deg,
    rgba(11,11,11,0.84) 0%,
    rgba(11,11,11,0.68) 55%,
    rgba(11,11,11,0.50) 100%
  );
}

/* ═══════════════════════════════════════════
   İÇ SAYFA HERO
════════════════════════════════════════════ */
.page-hero {
  background: #111;
  padding: 140px 0 72px;
  position: relative;
  overflow: hidden;
}
.page-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.022) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.022) 1px, transparent 1px);
  background-size: 60px 60px;
  transform: translateZ(0);
}
.page-hero-content { position: relative; z-index: 1; }

/* ═══════════════════════════════════════════
   KIRMIZI AYRAÇ ÇİZGİSİ
════════════════════════════════════════════ */
.section-rule {
  display: block;
  width: 48px;
  height: 2px;
  background: #D32F2F;
  margin-bottom: 20px;
}

/* ═══════════════════════════════════════════
   BUTONLAR
════════════════════════════════════════════ */
.btn-red {
  display: inline-block;
  background: #D32F2F;
  color: #fff;
  transition: background 0.35s cubic-bezier(0.4, 0, 0.2, 1),
              transform  0.25s cubic-bezier(0.34, 1.56, 0.64, 1),
              box-shadow 0.35s ease;
  will-change: transform;
}
.btn-red:hover {
  background: #B71C1C;
  transform: translate3d(0, -2px, 0);
  box-shadow: 0 8px 28px rgba(211,47,47,0.4);
}
.btn-red:active {
  transform: translate3d(0, 0, 0);
  transition-duration: 0.1s;
}

.btn-outline {
  display: inline-block;
  border: 1.5px solid rgba(255,255,255,0.50);
  color: #fff;
  transition: border-color 0.35s ease,
              background  0.35s ease,
              transform   0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
  will-change: transform;
}
.btn-outline:hover {
  border-color: #D32F2F;
  background: rgba(211,47,47,0.08);
  transform: translate3d(0, -2px, 0);
}

/* ═══════════════════════════════════════════
   HİZMET KARTLARI
════════════════════════════════════════════ */
.service-card {
  transition: transform  0.5s cubic-bezier(0.34, 1.56, 0.64, 1),
              box-shadow 0.5s cubic-bezier(0.4, 0, 0.2, 1),
              border-color 0.4s ease;
  will-change: transform, box-shadow;
  backface-visibility: hidden;
}
.service-card:hover {
  transform: translate3d(0, -10px, 0);
  box-shadow: 0 28px 60px rgba(0,0,0,0.28);
  border-color: #D32F2F;
}
.service-card:hover .svc-icon { color: #D32F2F; }
.svc-icon { transition: color 0.4s ease; }

/* ═══════════════════════════════════════════
   MARKA LOGOLARI
════════════════════════════════════════════ */
.brand-logo {
  filter: grayscale(100%) brightness(0.52);
  transition: filter    0.5s cubic-bezier(0.4, 0, 0.2, 1),
              transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1),
              opacity   0.5s ease;
  opacity: 0.68;
  will-change: transform, filter;
}
.brand-logo:hover {
  filter: grayscale(0%) brightness(1);
  transform: scale3d(1.07, 1.07, 1);
  opacity: 1;
}

/* ═══════════════════════════════════════════
   FORM ALANLARI
════════════════════════════════════════════ */
.form-input {
  background: #1A1A1A;
  border: 1px solid #2A2A2A;
  color: #fff;
  transition: border-color 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}
.form-input:focus {
  outline: none;
  border-color: #D32F2F;
  background: #1e1e1e;
  box-shadow: 0 0 0 3px rgba(211,47,47,0.14);
}
.form-input::placeholder { color: #555; }
select.form-input option { background: #1A1A1A; }

/* ═══════════════════════════════════════════
   MOBİL MENÜ
════════════════════════════════════════════ */
#mobile-menu {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transform: translateY(-8px);
  transition: max-height 0.42s cubic-bezier(0.4, 0, 0.2, 1),
              opacity    0.32s cubic-bezier(0.4, 0, 0.2, 1),
              transform  0.32s cubic-bezier(0.4, 0, 0.2, 1);
}
#mobile-menu.open {
  max-height: 520px;
  opacity: 1;
  transform: translateY(0);
}

/* Hamburger çizgileri */
#hamburger {
  width: 44px;
  height: 44px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  border-radius: 6px;
  transition: background 0.25s ease;
  position: relative;
}
#hamburger:hover { background: rgba(255,255,255,0.08); }
.ham-line {
  display: block;
  height: 1.5px;
  background: white;
  border-radius: 2px;
  transform-origin: center;
  transition: transform 0.38s cubic-bezier(0.4, 0, 0.2, 1),
              opacity   0.25s ease,
              width     0.38s cubic-bezier(0.4, 0, 0.2, 1),
              background 0.25s ease;
  will-change: transform, opacity, width;
}
.ham-line:nth-child(1) { width: 22px; }
.ham-line:nth-child(2) { width: 18px; }
.ham-line:nth-child(3) { width: 14px; }
#hamburger.is-open .ham-line:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
  width: 22px;
}
#hamburger.is-open .ham-line:nth-child(2) {
  opacity: 0;
  transform: scaleX(0.3);
}
#hamburger.is-open .ham-line:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
  width: 22px;
}

/* Mobil menü linkleri — slide-in efekti */
.mobile-link {
  display: block;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  transform: translateX(-12px);
  opacity: 0;
  transition: color 0.2s ease,
              transform 0.35s cubic-bezier(0.22, 1, 0.36, 1),
              opacity   0.35s ease;
}
#mobile-menu.open .mobile-link {
  transform: translateX(0);
  opacity: 1;
}
#mobile-menu.open .mobile-link:nth-child(1) { transition-delay: 0.05s; }
#mobile-menu.open .mobile-link:nth-child(2) { transition-delay: 0.10s; }
#mobile-menu.open .mobile-link:nth-child(3) { transition-delay: 0.15s; }
#mobile-menu.open .mobile-link:nth-child(4) { transition-delay: 0.20s; }
#mobile-menu.open .mobile-link:nth-child(5) { transition-delay: 0.25s; }

/* ═══════════════════════════════════════════
   SABİT ARAMA BUTONU
════════════════════════════════════════════ */
#call-fab {
  position: fixed;
  bottom: 28px;
  right: 24px;
  z-index: 9000;
  width: 58px;
  height: 58px;
  background: #D32F2F;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 28px rgba(211,47,47,0.45), 0 2px 8px rgba(0,0,0,0.3);
  transition: transform 0.28s cubic-bezier(0.34, 1.56, 0.64, 1),
              box-shadow 0.28s ease,
              background 0.2s ease;
  will-change: transform;
  cursor: pointer;
  text-decoration: none;
}
#call-fab:hover {
  background: #B71C1C;
  transform: scale(1.12) translateY(-2px);
  box-shadow: 0 12px 36px rgba(211,47,47,0.55), 0 4px 12px rgba(0,0,0,0.35);
}
#call-fab:active {
  transform: scale(0.96);
  transition-duration: 0.1s;
}
@keyframes fab-ring {
  0%   { box-shadow: 0 0 0 0 rgba(211,47,47,0.55), 0 6px 28px rgba(211,47,47,0.45); }
  70%  { box-shadow: 0 0 0 14px rgba(211,47,47,0), 0 6px 28px rgba(211,47,47,0.45); }
  100% { box-shadow: 0 0 0 0 rgba(211,47,47,0), 0 6px 28px rgba(211,47,47,0.45); }
}
#call-fab { animation: fab-ring 2.4s ease-out 2s infinite; }

/* ═══════════════════════════════════════════
   MOBİL — Kapsamlı uyum & GPU hızlandırma
════════════════════════════════════════════ */

/* Yatay taşmayı engelle — sadece body'e uygula, html'e değil */
body { overflow-x: hidden; }

/* iOS momentum kaydırma */
html { -webkit-overflow-scrolling: touch; }
body { overscroll-behavior-x: none; }

/* ── FAB HIZALAMA — Her iki buton aynı sağ kenar, 12px boşluk ── */

/* Instagram FAB — temel konum */
#instagram-fab {
  bottom: 24px;
  right: 24px;
}

/* Telefon FAB — Instagram'ın (50px yükseklik) üstünde 12px boşlukla */
#call-fab {
  bottom: 86px !important;   /* 24 + 50 + 12 = 86 */
  right: 24px;
}

@media (max-width: 1023px) {
  /* Animasyon mesafesini azalt — daha az hareket, daha az kasma */
  .reveal        { transform: translate3d(0, 14px, 0); transition-duration: 0.5s; }
  .reveal-left   { transform: translate3d(-14px, 0, 0); transition-duration: 0.5s; }
  .reveal-right  { transform: translate3d(14px, 0, 0); transition-duration: 0.5s; }

  /* Dokunmatik: hover efektlerini kaldır */
  .service-card:hover  { transform: none !important; box-shadow: none !important; border-color: inherit !important; }
  .brand-logo:hover    { filter: grayscale(100%) brightness(0.52) !important; transform: none !important; }
}

/* ── TABLET (≤768px) ── */
@media (max-width: 768px) {
  /* İç sayfa hero padding küçült */
  .page-hero { padding: 110px 0 52px; }

  /* Section boşluklarını küçült */
  section { padding-top: 3.5rem !important; padding-bottom: 3.5rem !important; }

  /* FAB butonları — hizalı */
  #instagram-fab { bottom: 22px !important; right: 20px !important; }
  #call-fab { width: 50px; height: 50px; bottom: 84px !important; right: 20px !important; }
  /* 22 + 50 + 12 = 84 ✓ */
}

/* ── MOBİL (≤640px) ── */
@media (max-width: 640px) {
  /* Hero metinleri */
  .page-hero h1 { font-size: 2.2rem !important; line-height: 1.1 !important; }

  /* Hizmet bölümlerinde görsel/metin tam genişlik */
  .reveal-left, .reveal-right { transform: translate3d(0, 14px, 0) !important; }

  /* Marquee öğe padding küçült */
  .marquee-item { padding: 0 20px; min-width: 100px; height: 72px; }
  .marquee-item img { height: 28px; max-width: 80px; }

  /* Grid tek sütuna düşür (tailwind sm prefix'i zaten yapıyor ama güvenlik için) */
  .uzman-card .logo-wrap { width: 90px; height: 64px; }

  /* CTA bölümlerinde metin hizala */
  .bg-brand-red .flex { text-align: center; }

  /* Footer grid boşluk */
  footer .grid { gap: 1.5rem; }

  /* Favori görsel metin boyutu */
  section h2 { font-size: clamp(1.5rem, 6vw, 2.5rem) !important; }

  /* Uzman/servis kartlar tam genişlik */
  .servis-card, .uzman-card { padding: 18px 14px; }

  /* FAB butonları — hizalı */
  #instagram-fab { bottom: 18px !important; right: 16px !important; width: 46px !important; height: 46px !important; }
  #call-fab { width: 46px; height: 46px; bottom: 76px !important; right: 16px !important; }
  /* 18 + 46 + 12 = 76 ✓ */
}

/* ── ÇOK KÜÇÜK EKRAN (≤380px) ── */
@media (max-width: 380px) {
  .page-hero h1 { font-size: 1.9rem !important; }
  .marquee-item { padding: 0 14px; min-width: 80px; }
  .marquee-item img { height: 22px; }
}

/* ═══════════════════════════════════════════
   SCROLL PERFORMANSI — ekran dışı render atla
════════════════════════════════════════════ */
main > section, main > div {
  content-visibility: auto;
  contain-intrinsic-size: 0 400px;
}

/* ═══════════════════════════════════════════
   KAYDIRMA ÇUBUĞU
════════════════════════════════════════════ */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: #0B0B0B; }
::-webkit-scrollbar-thumb {
  background: #D32F2F;
  border-radius: 4px;
  transition: background 0.3s ease;
}
::-webkit-scrollbar-thumb:hover { background: #B71C1C; }

/* ═══════════════════════════════════════════
   SAYFA YOLU (BREADCRUMB)
════════════════════════════════════════════ */
.breadcrumb a {
  color: rgba(255,255,255,0.42);
  transition: color 0.25s ease;
}
.breadcrumb a:hover { color: rgba(255,255,255,0.9); }
.breadcrumb span { color: rgba(255,255,255,0.2); margin: 0 8px; }
.breadcrumb strong { color: rgba(255,255,255,0.75); }

/* ═══════════════════════════════════════════
   LİNK GEÇİŞLERİ — sadece nav linkleri
════════════════════════════════════════════ */
.nav-link, .mobile-link { transition: color 0.2s ease, opacity 0.2s ease; }

