@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Barlow+Condensed:wght@300;400;500;600;700&family=IBM+Plex+Sans:ital,wght@0,300;0,400;0,500;1,300&family=Dancing+Script:wght@400;500;600;700&display=swap');

/* Skip-to-content (erişilebilirlik) */
.skip-link { position: absolute; top: -100%; left: 50%; transform: translateX(-50%); background: var(--r, #C41A1A); color: #fff; padding: 0.6rem 1.4rem; border-radius: 0 0 6px 6px; z-index: 10000; font-weight: 600; transition: top 0.2s; }
.skip-link:focus { top: 0; }

:root {
  /* Ana Renkler — kurumsal kırmızı korunuyor */
  --r:  #C41A1A;
  --r2: #D42B2B;
  --r3: #9B1212;
  --r4: rgba(196, 26, 26, 0.12);
  --r5: rgba(196, 26, 26, 0.04);
  --rg: rgba(196, 26, 26, 0.35);
  --rs: 0 4px 20px rgba(196,26,26,.15);

  /* Nötr / Gri Tonları */
  --c:  #64748B;
  --c2: #94A3B8;
  --c3: #334155;

  /* Zemin Katmanları (açık tema) */
  --b0: #FFFFFF;
  --b1: #F8FAFC;
  --b2: #F1F5F9;
  --b3: #E2E8F0;
  --b4: #CBD5E1;
  --b5: #94A3B8;

  /* Yazı */
  --w:  #0F172A;
  --w2: #475569;
  --w3: #94A3B8;

  /* Kenarlıklar */
  --br:  rgba(0, 0, 0, 0.08);
  --bra: rgba(196, 26, 26, 0.30);

  /* Tipografi — aynı kalacak */
  --f1: 'Bebas Neue', sans-serif;
  --f2: 'Barlow Condensed', sans-serif;
  --f3: 'IBM Plex Sans', sans-serif;
}

/* Reset */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html { scroll-behavior: smooth; }
body {
  background-color: var(--b0);
  color: var(--w);
  font-family: var(--f3);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
}
a { text-decoration: none; color: inherit; transition: color 0.2s ease; }
button { font-family: inherit; cursor: pointer; border: none; outline: none; background: none; }
ul, ol { list-style: none; }
img { max-width: 100%; height: auto; display: block; }
.w {
  width: 90%;
  max-width: 1300px;
  margin: 0 auto;
}

/* Typography Classes */
h1, h2, h3, h4 { font-family: var(--f1); font-weight: normal; line-height: 1.1; letter-spacing: 1px; }
h1 { font-size: clamp(3rem, 6.5vw, 6.5rem); }

/* ═══════════════════════════════════════════
   HERO BAŞLIK — 2 satır, modern + el yazısı
   ═══════════════════════════════════════════ */
.hero-title {
  font-family: var(--f1);
  font-size: clamp(2.8rem, 5.5vw, 5.5rem);
  line-height: 1;
  letter-spacing: 4px;
  color: var(--w);
  white-space: nowrap;
  -webkit-text-stroke: 1.5px rgba(255,255,255,0.95);
  paint-order: stroke fill;
  text-shadow:
    0 0 3px rgba(255,255,255,1),
    0 1px 0 rgba(255,255,255,0.9),
    0 2px 4px rgba(0,0,0,0.06),
    0 4px 12px rgba(0,0,0,0.04);
  margin-bottom: 2rem;
  position: relative;
}
/* El yazısı — Caveat fontu, Türkçe karakter destekli */
.hero-title-hand {
  display: block;
  font-family: 'Dancing Script', cursive;
  font-weight: 700;
  color: var(--r);
  font-size: clamp(2.6rem, 5vw, 5rem);
  letter-spacing: 2px;
  line-height: 1.15;
  margin-top: -0.1em;
  text-transform: none;
  text-shadow:
    0 1px 0 rgba(255,255,255,0.9),
    0 2px 3px rgba(196,26,26,0.15),
    0 4px 8px rgba(196,26,26,0.06);
  position: relative;
}
/* El yazısı altına dekoratif çizgi */
.hero-title-hand::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 60%;
  height: 2px;
  background: linear-gradient(90deg, var(--r), transparent);
  border-radius: 2px;
  opacity: 0.5;
}
h2 { font-size: clamp(2.5rem, 5vw, 4.5rem); margin-bottom: 1.5rem; }
h3 { font-size: 1.8rem; margin-bottom: 0.5rem; }
.red-text { color: var(--r); }
.tag { font-family: var(--f2); color: var(--r); font-weight: 600; text-transform: uppercase; letter-spacing: 2px; margin-bottom: 1rem; display: inline-block; }

/* ═══════════════════════════════════════════
   DR. TANZER GÜL — 3D kabartmalı isim vurgusu
   ═══════════════════════════════════════════ */
.dr-name {
  font-weight: 800;
  font-style: normal;
  letter-spacing: 0.6px;
  color: #0F172A;
  text-shadow:
    0 1px 0 rgba(255,255,255,0.9),
    0 -1px 0 rgba(0,0,0,0.05),
    1px 0 0 rgba(0,0,0,0.03),
    -1px 0 0 rgba(0,0,0,0.03),
    0 2px 1px rgba(0,0,0,0.08),
    0 3px 2px rgba(0,0,0,0.06),
    0 4px 4px rgba(0,0,0,0.05),
    0 6px 8px rgba(0,0,0,0.04);
  position: relative;
  display: inline;
  padding: 0 1px;
}
/* doctor-name h3 içinde — daha büyük 3D efekt */
.doctor-name .dr-name {
  font-size: inherit;
  color: #0F172A;
  text-shadow:
    0 1px 0 rgba(255,255,255,0.95),
    0 -1px 0 rgba(0,0,0,0.06),
    1px 0 0 rgba(0,0,0,0.04),
    -1px 0 0 rgba(0,0,0,0.04),
    0 2px 1px rgba(0,0,0,0.10),
    0 3px 2px rgba(0,0,0,0.08),
    0 4px 4px rgba(0,0,0,0.06),
    0 6px 8px rgba(0,0,0,0.05),
    0 8px 14px rgba(0,0,0,0.04);
}

/* ═══════════════════════════════════════════
   PREMIUM CUSTOM CURSOR — hız-senkronlu, şık
   ═══════════════════════════════════════════ */
@media (pointer: fine) {
  *, body, a, button, .srv-k, .branch-card { cursor: none !important; }

  /* Ortak ayarlar */
  #cr, #cd, #cx, #cy {
    position: fixed; top: 0; left: 0;
    pointer-events: none; z-index: 10000;
    will-change: transform;
  }

  /* Dış halka — yumuşak takip, hız ile ölçeklenen */
  #cr {
    width: 68px; height: 68px;
    margin-left: -34px; margin-top: -34px;
    border: 1.5px solid rgba(196,26,26,0.45);
    border-radius: 50%;
    background: transparent;
    transition: width 0.35s cubic-bezier(0.25,1,0.5,1),
                height 0.35s cubic-bezier(0.25,1,0.5,1),
                margin 0.35s cubic-bezier(0.25,1,0.5,1),
                border-color 0.3s, background 0.3s,
                border-radius 0.3s, opacity 0.3s;
    opacity: 0.7;
  }

  /* Merkez logo — anında takip, %50 büyütülmüş */
  #cd {
    width: 46px; height: 46px;
    margin-left: -23px; margin-top: -23px;
    background: url('../images/cursor-logo.png') center/contain no-repeat;
    border-radius: 0;
    transition: width 0.25s cubic-bezier(0.25,1,0.5,1),
                height 0.25s cubic-bezier(0.25,1,0.5,1),
                margin 0.25s cubic-bezier(0.25,1,0.5,1),
                opacity 0.2s, filter 0.3s;
    filter: drop-shadow(0 2px 4px rgba(196,26,26,0.4));
    opacity: 0.95;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
  }

  /* İnce artı çizgiler — anında takip */
  #cx {
    width: 18px; height: 1px;
    margin-left: -9px; margin-top: -0.5px;
    background: linear-gradient(90deg, transparent, rgba(196,26,26,0.35), transparent);
    transition: width 0.25s, opacity 0.25s;
  }
  #cy {
    width: 1px; height: 18px;
    margin-left: -0.5px; margin-top: -9px;
    background: linear-gradient(180deg, transparent, rgba(196,26,26,0.35), transparent);
    transition: height 0.25s, opacity 0.25s;
  }

  /* Hover durumu — tıklanabilir öğe üzerinde */
  body.hovering #cr {
    width: 84px; height: 84px;
    margin-left: -42px; margin-top: -42px;
    border-color: var(--r);
    background: rgba(196,26,26,0.05);
    opacity: 1;
  }
  body.hovering #cd {
    width: 26px; height: 26px;
    margin-left: -13px; margin-top: -13px;
    opacity: 0.75;
  }
  body.hovering #cx { width: 0; opacity: 0; }
  body.hovering #cy { height: 0; opacity: 0; }

  /* Tıklama anı */
  body.clicking #cr {
    width: 55px; height: 55px;
    margin-left: -27.5px; margin-top: -27.5px;
    border-color: var(--r2);
    background: rgba(196,26,26,0.1);
    opacity: 1;
  }
  body.clicking #cd {
    width: 53px; height: 53px;
    margin-left: -26.5px; margin-top: -26.5px;
    filter: drop-shadow(0 2px 8px rgba(196,26,26,0.6));
    opacity: 1;
  }

  /* Hızlı hareket — JS tarafından ekleniyor */
  body.cursor-fast #cr {
    border-radius: 40%;
    opacity: 0.45;
  }
  body.cursor-fast #cd { opacity: 0.7; }
  body.cursor-fast #cx { width: 24px; margin-left: -12px; }
  body.cursor-fast #cy { height: 24px; margin-top: -12px; }
}

@media (pointer: coarse) {
  #cr, #cd, #cx, #cy { display: none !important; }
}

/* Animations Core */
.fu { opacity: 0; transform: translateY(32px); transition: opacity 0.65s cubic-bezier(0.16,1,0.3,1), transform 0.65s cubic-bezier(0.16,1,0.3,1); will-change: transform, opacity; }
.fu.is-visible { opacity: 1; transform: translateY(0); }
.sr { opacity: 0; clip-path: inset(0 100% 0 0); transition: opacity 0.7s cubic-bezier(0.16,1,0.3,1), clip-path 0.7s cubic-bezier(0.16,1,0.3,1); will-change: clip-path; }
.sr.is-visible { opacity: 1; clip-path: inset(0 0% 0 0); }
.d1 { transition-delay: 0.1s; } .d2 { transition-delay: 0.2s; } .d3 { transition-delay: 0.3s; } .d4 { transition-delay: 0.4s; }

@keyframes shimmer { from { left: -100%; } to { left: 180%; } }
@keyframes pulse { 0%,100% { transform: scale(1); opacity: 1; } 50% { transform: scale(1.6); opacity: 0.6; } }
@keyframes float1 { 0%,100% { transform: translateX(-50%) translateY(0); } 50% { transform: translateX(-50%) translateY(-10px); } }
@keyframes float2 { 0%,100% { transform: translateX(-50%) translateY(0); } 50% { transform: translateX(-50%) translateY(8px); } }
@keyframes float3 { 0%,100% { transform: translateX(-50%) translateY(0); } 50% { transform: translateX(-50%) translateY(-7px); } }
@keyframes spin { 100% { transform: rotate(360deg); } }

/* Button */
/* 3D Kabartmalı Buton Tasarımı */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--f2); font-weight: 600; font-size: 1.1rem;
  padding: 0.8rem 1.8rem; text-transform: uppercase; letter-spacing: 1px;
  border-radius: 6px; transition: all 0.3s ease; position: relative; overflow: hidden;
}
.btn-primary {
  background: linear-gradient(180deg, #D42B2B 0%, #C41A1A 50%, #9B1212 100%);
  color: #fff;
  box-shadow: 0 4px 12px rgba(196,26,26,0.3), inset 0 1px 0 rgba(255,255,255,0.2), inset 0 -1px 0 rgba(0,0,0,0.15);
  border: 1px solid rgba(155,18,18,0.4);
  text-shadow: 0 1px 2px rgba(0,0,0,0.2);
}
.btn-primary:hover {
  background: linear-gradient(180deg, #E03535 0%, #D42B2B 50%, #B01818 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(196,26,26,0.4), inset 0 1px 0 rgba(255,255,255,0.25), inset 0 -1px 0 rgba(0,0,0,0.15);
}
.btn-primary:active {
  transform: translateY(1px);
  box-shadow: 0 2px 6px rgba(196,26,26,0.3), inset 0 2px 3px rgba(0,0,0,0.2);
  background: linear-gradient(180deg, #B01818 0%, #C41A1A 50%, #D42B2B 100%);
}
.btn-outline {
  background: linear-gradient(180deg, #FFFFFF 0%, #F8FAFC 100%);
  border: 1.5px solid var(--r);
  color: var(--r);
  box-shadow: 0 2px 8px rgba(0,0,0,0.06), inset 0 1px 0 rgba(255,255,255,0.8);
  font-weight: 700;
}
.btn-outline:hover {
  background: linear-gradient(180deg, #FFF5F5 0%, #FEE2E2 100%);
  border-color: var(--r2);
  box-shadow: 0 4px 14px rgba(196,26,26,0.15), inset 0 1px 0 rgba(255,255,255,0.8);
  transform: translateY(-2px);
}
.btn-cta {
  background: linear-gradient(180deg, #D42B2B 0%, #C41A1A 50%, #9B1212 100%);
  color: #fff; font-size: 1rem; padding: 0.6rem 1.4rem;
  box-shadow: 0 4px 12px rgba(196,26,26,0.3), inset 0 1px 0 rgba(255,255,255,0.2), inset 0 -1px 0 rgba(0,0,0,0.15);
  border-radius: 6px; border: 1px solid rgba(155,18,18,0.4); text-shadow: 0 1px 2px rgba(0,0,0,0.2);
}
.btn-cta:hover {
  background: linear-gradient(180deg, #E03535 0%, #D42B2B 50%, #B01818 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(196,26,26,0.4), inset 0 1px 0 rgba(255,255,255,0.25);
}
.logo-badge { display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.mt-1 { margin-top: 1rem; } .mt-2 { margin-top: 2rem; } .full-w { width: 100%; }

/* Navbar */
#nav {
  position: fixed; width: 100%; top: 0; z-index: 1000;
  transition: all 0.4s ease; border-bottom: 1px solid transparent; border-image: linear-gradient(90deg, transparent, var(--r), transparent) 1; border-bottom: 0;
}
#nav.scrolled {
  backdrop-filter: blur(28px); background: rgba(255,255,255,0.95); border-bottom: 1px solid var(--br);
}
.nav-container { display: flex; justify-content: space-between; align-items: center; height: 80px; }
.nav-left { display: flex; align-items: center; gap: 15px; }
.nav-name { font-family: var(--f1); font-size: 1.5rem; line-height: 1; letter-spacing: 1px; }
.nav-name small { display: block; font-family: var(--f2); font-size: 0.85rem; color: var(--w2); letter-spacing: 2px; }
.nav-right { display: flex; align-items: center; gap: 30px; }
.nav-links { display: flex; gap: 20px; font-family: var(--f2); font-size: 1.1rem; text-transform: uppercase; letter-spacing: 1px; }
.nav-links a { position: relative; padding: 5px 0; color: var(--w); transition: color 0.3s; }
.nav-links a:hover { color: var(--r); }
.nav-links a.nav-active { color: var(--r); font-weight: 700; }
.nav-links a.nav-active::after { content: ''; position: absolute; bottom: -2px; left: 0; width: 100%; height: 2px; background: var(--r); border-radius: 1px; }
.mobile-links a.nav-active { color: var(--r) !important; font-weight: 700; }
.menu-toggle { display: none; font-size: 2rem; color: var(--w); cursor: pointer !important; pointer-events: auto; z-index: 100; position: relative; min-width: 48px; min-height: 48px; line-height: 48px; text-align: center; -webkit-tap-highlight-color: transparent; }
/* Masaüstünde gizle, mobilde media query ile göster */
.mobile-menu-overlay { display: none; position: fixed; }

/* Hero — 16:9 tam ölçek video arka plan */
#hero {
  min-height: 100vh; height: 100vh; position: relative; display: flex; flex-direction: column;
  padding-top: 100px; padding-bottom: 50px;
  background: var(--b0);
  overflow: hidden;
}
#hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 2;
  background: radial-gradient(ellipse 700px 500px at var(--mx, 60%) var(--my, 45%), rgba(196,26,26,0.05), transparent 65%);
}
/* Hero Video — 16:9 tam genişlik arka plan */
.hero-video-wrap {
  position: absolute; inset: 0; z-index: 0; overflow: hidden;
}
.hero-video-wrap video {
  position: absolute;
  top: 50%; left: 50%;
  min-width: 100%; min-height: 100%;
  width: auto; height: auto;
  transform: translate(-50%, -50%);
  object-fit: cover;
  will-change: transform, opacity;
  transition: opacity 0.6s ease;
}
/* ═══════════════════════════════════════════
   HERO SLIDER — 8 görsel, otomatik geçiş
   ═══════════════════════════════════════════ */
.hero-slider {
  position: absolute; inset: 0; z-index: 1;
}
.hero-slide {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1.2s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: opacity;
}
.hero-slide.active {
  opacity: 1;
}
/* Video slide — tam kaplama */
.hero-slide--video video {
  position: absolute;
  top: 50%; left: 50%;
  min-width: 100%; min-height: 100%;
  width: auto; height: auto;
  transform: translate(-50%, -50%);
  object-fit: cover;
}
/* Slider nokta göstergeleri */
.hero-slider-dots {
  position: absolute;
  bottom: 65px; /* ticker üstünde */
  left: 50%;
  transform: translateX(-50%);
  z-index: 4;
  display: flex;
  gap: 10px;
  padding: 8px 16px;
  background: rgba(0,0,0,0.25);
  backdrop-filter: blur(8px);
  border-radius: 20px;
}
.slider-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,0.5);
  border: none;
  padding: 0;
  transition: all 0.4s ease;
  cursor: pointer !important;
}
.slider-dot.active {
  background: var(--r);
  width: 28px;
  border-radius: 5px;
  box-shadow: 0 0 8px rgba(196,26,26,0.5);
}
.slider-dot:hover:not(.active) {
  background: rgba(255,255,255,0.85);
}

.hero-video-overlay {
  position: absolute; inset: 0; z-index: 2;
  background: linear-gradient(
    180deg,
    rgba(255,255,255,0.35) 0%,
    rgba(255,255,255,0.15) 35%,
    rgba(255,255,255,0.10) 55%,
    rgba(255,255,255,0.55) 80%,
    rgba(248,250,252,0.92) 100%
  );
  pointer-events: none;
}
#particle-cvs { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
.hero-bg { position: absolute; left: 50%; top: 0; bottom: 0; right: 0; opacity: 0.18; transition: opacity 1.5s; background-size: cover; background-position: center; z-index: 0; }
.hero-content {
  display: grid; grid-template-columns: 1fr 1fr; gap: 2rem;
  position: relative; z-index: 3; width: 100%;
  margin-top: auto; margin-bottom: 60px;
}
.hero-left { padding-right: 2rem; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 10px; font-family: var(--f2); font-size: 1rem;
  letter-spacing: 1px; padding: 8px 20px; border: 1.5px solid rgba(196,26,26,0.35); border-radius: 20px;
  background: rgba(255,255,255,0.85); backdrop-filter: blur(10px);
  color: var(--w); font-weight: 500;
  box-shadow: 0 2px 10px rgba(0,0,0,0.08), inset 0 1px 0 rgba(255,255,255,0.9);
  margin-bottom: 2rem; position: relative; overflow: hidden;
}
.pulse-dot { width: 8px; height: 8px; background: var(--r); border-radius: 50%; box-shadow: 0 0 10px var(--r); animation: pulse 1.6s ease infinite; }
.shimmer { position: absolute; top:0; bottom:0; width: 50%; background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent); animation: shimmer 2.5s ease-in-out infinite; }
h1 { margin-bottom: 1.5rem; }
h1:not(.hero-title) { text-shadow: 0 2px 10px rgba(0,0,0,0.08); }
/* Hero açıklama — 3D italik yazı tipi, okunabilirlik artırılmış */
.hero-desc {
  font-size: 1.18rem; color: var(--w); font-style: italic; font-weight: 400;
  border-left: 3px solid var(--r); padding-left: 1.5rem; margin-bottom: 1.2rem; max-width: 520px;
  line-height: 1.75; letter-spacing: 0.2px;
  text-shadow: 0 1px 1px rgba(0,0,0,0.06), 0 2px 4px rgba(0,0,0,0.04);
  background: linear-gradient(135deg, rgba(255,255,255,0.7) 0%, rgba(248,250,252,0.5) 100%);
  padding: 1.2rem 1.5rem; border-radius: 0 8px 8px 0;
  backdrop-filter: blur(6px);
  box-shadow: 0 2px 12px rgba(0,0,0,0.04);
}
.hero-btns { display: flex; gap: 1rem; margin-top: 1rem; margin-bottom: 1rem; align-items: stretch; }
.hero-btns .btn { display: inline-flex; align-items: center; justify-content: center; padding: 0 1.8rem; font-size: 1rem; line-height: 1.2; box-sizing: border-box; height: 48px; border-width: 1.5px; box-shadow: none !important; margin: 0 !important; }
.hero-btns .btn-primary { background: var(--r); border-color: var(--r); }
.hero-btns .btn-primary:hover { background: #D42B2B; }
/* Güven rozetleri — kontrastı artırılmış */
.trust-badges { display: flex; gap: 1rem; font-family: var(--f2); font-size: 0.92rem; font-weight: 600; letter-spacing: 0.5px; }
.trust-badges span {
  background: rgba(255,255,255,0.45); backdrop-filter: blur(6px);
  color: var(--w); padding: 7px 14px; border-radius: 6px;
  border: 1px solid rgba(255,255,255,0.25);
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
  text-shadow: 0 1px 1px rgba(255,255,255,0.8);
}

.hero-right { position: relative; display: flex; justify-content: center; align-items: center; height: clamp(320px, 45vh, 500px); }
.shield-container { z-index: 10; will-change: transform; display: flex; justify-content: center; }
/* Floating kartlar — derinlik ve okunabilirlik artırılmış */
.fc-card { position: absolute; background: rgba(255,255,255,0.70); border: 1px solid rgba(0,0,0,0.06); padding: 10px 20px; font-family: var(--f2); font-size: 1.1rem; color: rgba(15,23,42,0.75); border-radius: 6px; backdrop-filter: blur(12px); z-index: 15; box-shadow: 0 4px 16px rgba(0,0,0,0.05), 0 10px 30px rgba(0,0,0,0.03); border-left: 3px solid rgba(196,26,26,0.75); }
.fc1 { top: 2%; left: 70%; transform: translateX(-50%); right: auto; animation: float1 5s ease-in-out infinite; }
.fc2 { top: 75%; left: 70%; transform: translateX(-50%); right: auto; bottom: auto; animation: float2 6s ease-in-out infinite; }
.fc3 { top: 63%; left: 70%; transform: translateX(-50%); right: auto; animation: float3 7s ease-in-out infinite; }

.rings { position: absolute; inset: 0; display: flex; justify-content: center; align-items: center; opacity: 0.15; }
.ring { position: absolute; border-radius: 50%; border: 1px dashed var(--c2); }
.r1 { width: 300px; height: 300px; animation: spin 20s linear infinite; }
.r2 { width: 400px; height: 400px; animation: spin 30s linear infinite reverse; border-style: solid; border-width: 1px 0 1px 0; }
.r3 { width: 500px; height: 500px; animation: spin 40s linear infinite; border-style: dotted; }

/* Ticker */
.hero-ticker { position: absolute; bottom: 0; left: 0; width: 100%; height: 50px; background: var(--r); display: flex; align-items: center; overflow: hidden; z-index: 5; border-top: 1px solid rgba(255,255,255,0.08); }
.ticker-scroll { display: flex; flex-wrap: nowrap; width: max-content; animation: tickScroll 125s linear infinite; will-change: transform; transition: opacity 0.3s; }
.hero-ticker:hover .ticker-scroll { animation-play-state: paused; opacity: 0.9; }
/* Ticker — kırmızı arka planda beyaz metin */
.ticker-text { flex-shrink: 0; white-space: nowrap; font-family: var(--f2); font-size: 1.25rem; color: #FFFFFF; letter-spacing: 1.5px; text-transform: uppercase; display: flex; align-items: center; text-shadow: 0 1px 2px rgba(0,0,0,0.15); }
@keyframes tickScroll { 0% { transform: translate3d(0, 0, 0); } 100% { transform: translate3d(-33.333333%, 0, 0); } }

/* ECG Canvas */
#ecg-cvs { position: absolute; bottom: 40px; left: 0; width: 100%; height: 90px; pointer-events: none; z-index: 4; }

/* Hizmet Kategori Kartları (index.html services preview) */
.srv-cat-card:hover { transform: translateY(-3px); box-shadow: 0 8px 24px rgba(196,26,26,0.1) !important; }

/* Stats — Kompakt Modern Tasarım */
#stats { position: relative; padding: 4rem 0; overflow: hidden; }
.stats-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.stats-overlay { position: absolute; inset: 0; background: linear-gradient(135deg, rgba(255,255,255,0.95) 0%, rgba(245,245,245,0.92) 100%); z-index: 1; }
.stats-grid { position: relative; z-index: 2; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; text-align: center; }
.stat-item { padding: 1.8rem 1.2rem 1.5rem; background: rgba(255,255,255,0.9); border: 1px solid rgba(196,26,26,0.08); border-radius: 12px; position: relative; overflow: hidden; box-shadow: 0 4px 20px rgba(0,0,0,0.04); backdrop-filter: blur(12px); transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease; }
.stat-item:hover { transform: translateY(-6px); box-shadow: 0 12px 32px rgba(196,26,26,0.12); border-color: rgba(196,26,26,0.2); }
.stat-icon { color: var(--r); margin-bottom: 0.6rem; opacity: 0.7; transition: opacity 0.3s, transform 0.3s; }
.stat-item:hover .stat-icon { opacity: 1; transform: scale(1.1); }
.stat-number { font-family: var(--f1); font-size: 3.2rem; color: var(--r); line-height: 1; margin-bottom: 0.4rem; text-shadow: var(--rs); }
.stat-label { font-family: var(--f2); font-size: 1.05rem; letter-spacing: 1.5px; color: #555; text-transform: uppercase; }
.stat-bar { width: 40px; height: 3px; background: rgba(196,26,26,0.15); border-radius: 2px; margin: 0.8rem auto 0; overflow: hidden; }
.stat-bar span { display: block; width: 0; height: 100%; background: linear-gradient(90deg, var(--r), #e74c3c); border-radius: 2px; transition: width 0.8s ease; }
.stat-item:hover .stat-bar span { width: 100%; }

/* About */
#about { padding: 8rem 0; background: var(--b2); position: relative; }
.about-watermark { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); font-family: var(--f1); font-size: 25vw; color: rgba(0,0,0,0.03); pointer-events: none; user-select: none; }
.about-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 5rem; align-items: center; position: relative; z-index: 2; }
.about-img {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
  perspective: 1200px;
  transform-style: preserve-3d;
  will-change: transform;
}
.about-img::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 12px;
  background: radial-gradient(circle 200px at var(--ax, 50%) var(--ay, 50%), rgba(196,26,26,0.12), transparent 70%);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
  z-index: 5;
}
.about-img:hover::after { opacity: 1; }

@keyframes aboutFloat {
  0%, 100% { transform: perspective(800px) rotateX(2deg) rotateY(-1deg) translateZ(0) scale(1); }
  33%      { transform: perspective(800px) rotateX(-1.5deg) rotateY(2deg) translateZ(10px) scale(1.01); }
  66%      { transform: perspective(800px) rotateX(1deg) rotateY(-2deg) translateZ(5px) scale(1.005); }
}
.about-img.ambient-float { animation: aboutFloat 8s ease-in-out infinite; }
.about-img.ambient-float:hover { animation: none; }

.doctor-photo-wrap {
  width: 100%;
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  z-index: 1;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.doctor-photo-wrap img {
  width: 100%;
  height: auto;
  display: block;
  aspect-ratio: 639 / 800;
  object-fit: cover;
  object-position: top center;
}

.doctor-photo-wrap::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 60%;
  background: linear-gradient(to top, rgba(241,245,249,0.95) 0%, transparent 100%);
  z-index: 2;
}

.doctor-info-dock {
  position: absolute;
  bottom: 20px;
  left: 20px;
  right: 20px;
  background: rgba(255,255,255,0.9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 8px;
  padding: 1.2rem;
  border: 1px solid rgba(0,0,0,0.08);
  z-index: 3;
  box-shadow: 0 10px 30px rgba(0,0,0,0.4);
  text-align: center;
}

.doctor-name {
  margin: 0 0 0.5rem 0 !important;
  font-family: var(--f1);
  font-size: 2rem !important;
  color: var(--w);
  letter-spacing: 1px;
}

.doctor-title {
  margin: 0 !important;
  font-family: var(--f2);
  font-size: 1.1rem;
  color: var(--r);
  letter-spacing: 2px;
  text-transform: uppercase;
}

.about-badge {
  position: absolute; bottom: -20px; right: -20px;
  background: linear-gradient(145deg, #d41f1f 0%, #8e0e0e 100%);
  width: 128px; height: 128px;
  display: flex; flex-direction: column;
  justify-content: center; align-items: center;
  border-radius: 50%;
  box-shadow:
    0 8px 28px rgba(196,26,26,0.50),
    0 2px 8px rgba(0,0,0,0.30),
    inset 0 1px 0 rgba(255,255,255,0.18);
  z-index: 10;
  border: 3px solid rgba(255,255,255,0.28);
  text-align: center;
  gap: 1px;
}
/* Sayı kısmı — büyük, kalın, ön planda */
.about-badge {
  font-family: var(--f2);
  font-size: 2.1rem;
  font-weight: 900;
  line-height: 1;
  color: #fff;
  letter-spacing: -0.01em;
  text-shadow: 0 2px 6px rgba(0,0,0,0.4);
  -webkit-text-stroke: 0;
}
.about-badge span {
  display: block;
  font-family: var(--f1);
  font-weight: 600;
  font-size: 0.82rem;
  line-height: 1.4;
  color: rgba(255,255,255,0.90);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-shadow: 0 1px 4px rgba(0,0,0,0.35);
  -webkit-text-stroke: 0;
}
.tag-line { display: flex; align-items: center; gap: 1rem; margin-bottom: 1rem; }
.tag-line .line { flex: 1; height: 1px; background: var(--r); opacity: 0.3; }
.tag-line span { font-family: var(--f2); color: var(--r); font-weight: 600; text-transform: uppercase; letter-spacing: 2px; }
.check-list { margin: 2rem 0; }
.check-list li { position: relative; padding-left: 2rem; margin-bottom: 1rem; color: var(--w2); }
.check-list li::before { content: "✓"; position: absolute; left: 0; top: 2px; color: #fff; background: var(--r); width: 20px; height: 20px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: bold; }

/* Services */
#services { padding: 8rem 0; background: var(--b0); position: relative; }
.grid-texture { position: absolute; inset: 0; background-image: linear-gradient(rgba(0,0,0,0.025) 1px, transparent 1px), linear-gradient(90deg, rgba(0,0,0,0.025) 1px, transparent 1px); background-size: 60px 60px; pointer-events: none; }
.services-header { text-align: center; margin-bottom: 4rem; position: relative; z-index: 2; display: flex; flex-direction: column; align-items: center;}
.filter-btns { display: flex; gap: 10px; margin-top: 2rem; flex-wrap: wrap; justify-content: center; }
/* Filtre butonları — görsel ağırlık artırılmış */
.filter-btn {
  padding: 8px 22px; border: 1.5px solid rgba(0,0,0,0.15); border-radius: 30px; color: var(--w);
  font-family: var(--f2); font-size: 1.1rem; text-transform: uppercase; letter-spacing: 1px;
  transition: all 0.3s; background: linear-gradient(180deg, #FFFFFF 0%, #F8FAFC 100%);
  box-shadow: 0 1px 4px rgba(0,0,0,0.06), inset 0 1px 0 rgba(255,255,255,0.8); font-weight: 500;
}
.filter-btn:hover { border-color: var(--r); color: var(--r); background: linear-gradient(180deg, #FFF5F5 0%, #FEE2E2 100%); box-shadow: 0 2px 8px rgba(196,26,26,0.12); }
.filter-btn.active {
  background: linear-gradient(180deg, #D42B2B 0%, #C41A1A 50%, #9B1212 100%);
  border-color: var(--r3); color: #fff;
  box-shadow: 0 4px 14px rgba(196,26,26,0.35), inset 0 1px 0 rgba(255,255,255,0.2);
  text-shadow: 0 1px 2px rgba(0,0,0,0.15);
}
.services-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 2rem; position: relative; z-index: 2; perspective: 1000px; }
/* Servis kartları — derinlik ve gölge artırılmış */
.srv-k { width: calc(33.3333% - 1.35rem); flex-shrink: 0; background: #FFFFFF; border: 1px solid rgba(0,0,0,0.1); border-radius: 10px; overflow: hidden; position: relative; transition: opacity 0.4s ease, transform 0.4s ease, box-shadow 0.3s ease; transform-style: preserve-3d; box-shadow: 0 2px 8px rgba(0,0,0,0.06), 0 8px 24px rgba(0,0,0,0.04); }
.srv-k:hover { box-shadow: 0 4px 16px rgba(0,0,0,0.1), 0 12px 36px rgba(0,0,0,0.06); }
.srv-k:hover { will-change: transform; }
.srv-k::before { content: ""; position: absolute; top: 0; left: 0; width: 100%; height: 3px; background: var(--r); transform: scaleX(0); transform-origin: left; transition: transform 0.3s ease; z-index: 5;}
.srv-k:hover::before { transform: scaleX(1); }
.srv-k::after { content: ""; position: absolute; inset: 0; background: radial-gradient(circle 160px at var(--sx, 50%) var(--sy, 50%), rgba(196,26,26,0.06), transparent 70%); opacity: 0; transition: opacity 0.3s; pointer-events: none; z-index: 4;}
.srv-k:hover::after { opacity: 1; }
.srv-thumb { position: relative; height: 140px; width: 100%; }
.srv-thumb img { width: 100%; height: 100%; object-fit: cover; }
/* Küçük resim üzeri etiket */
.thumb-ov { position: absolute; top: 10px; right: 10px; background: rgba(0,0,0,0.7); color: #FFFFFF; padding: 5px 10px; font-family: var(--f2); font-size: 0.9rem; text-transform: uppercase; border-radius: 4px; border: 1px solid rgba(255,255,255,0.1); }
.srv-ico { font-size: 2.5rem; margin: 1.5rem; margin-bottom: 0.5rem; }
.srv-cat { margin: 0 1.5rem 0.5rem 1.5rem; font-family: var(--f2); font-size: 0.9rem; text-transform: uppercase; letter-spacing: 1px; padding: 3px 8px; border-radius: 4px; display: inline-block; }
/* Kategori etiketleri — açık arka planda okunabilir koyu tonlar */
.cl-zorunlu { background: rgba(220,38,38,0.12); color: #B91C1C; font-weight: 600; }
.cl-egitim { background: rgba(37,99,235,0.12); color: #1D4ED8; font-weight: 600; }
.cl-danismanlik { background: rgba(22,163,74,0.12); color: #15803D; font-weight: 600; }
.cl-saglik { background: rgba(202,138,4,0.12); color: #A16207; font-weight: 600; }
.cl-olcum { background: rgba(234,88,12,0.12); color: #C2410C; font-weight: 600; }
.srv-h { margin: 0 1.5rem 1rem 1.5rem; font-size: 1.6rem; }
.srv-p { margin: 0 1.5rem 2rem 1.5rem; color: var(--w2); font-size: 0.95rem; }
.srv-k.hidden { display: none; }

/* Legal */
/* Legal bölüm — açık tema uyumlu */
#legal { padding: 8rem 0; position: relative; background: var(--b2); }
.legal-bg-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.12; z-index: 0; }
.legal-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 4rem; position: relative; z-index: 2; }
.sticky-wrap { position: sticky; top: 120px; }
/* ============================================================
   TIMELINE BİLEŞENİ
   ============================================================ */
:root {
  --bg-card: #FFFFFF;
  --bg-card-hover: #F8FAFC;
  --border-card: #E2E8F0;
  --accent-red: #C41A1A;
  --accent-red-bg: rgba(196, 26, 26, 0.12);
  --accent-green: #22C55E;
  --accent-green-bg: rgba(34, 197, 94, 0.12);
  --accent-amber: #F59E0B;
  --accent-amber-bg: rgba(245, 158, 11, 0.12);
  --accent-blue: #3B82F6;
  --accent-blue-bg: rgba(59, 130, 246, 0.12);
  --text-white: #0F172A;
  --text-gray: #475569;
  --text-muted: #94A3B8;
  --line-color: #CBD5E1;
  --dot-glow: rgba(196, 26, 26, 0.3);
  --timeline-left: 28px;
  --card-gap: 24px;
}

.isg-timeline {
  max-width: 100%;
  position: relative;
}

.isg-timeline::before {
  content: '';
  position: absolute;
  left: var(--timeline-left);
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, transparent 0%, var(--line-color) 5%, var(--line-color) 95%, transparent 100%);
}

.tl-item {
  position: relative;
  padding-left: 64px;
  margin-bottom: var(--card-gap);
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.tl-item.visible { opacity: 1; transform: translateY(0); }

.tl-item::before {
  content: '';
  position: absolute;
  left: calc(var(--timeline-left) - 5px);
  top: 24px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent-red);
  box-shadow: 0 0 0 4px var(--dot-glow);
  z-index: 2;
}

.tl-item.active::before { background: var(--accent-green); box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.3); }

.tl-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: 12px;
  padding: 20px 24px;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.tl-card:hover { background: var(--bg-card-hover); border-color: rgba(196,26,26,0.3); }

.tl-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 4px 10px;
  border-radius: 4px;
  margin-bottom: 12px;
}

.tl-badge--red { background: var(--accent-red-bg); color: var(--accent-red); }
.tl-badge--green { background: var(--accent-green-bg); color: var(--accent-green); }
.tl-badge--amber { background: var(--accent-amber-bg); color: var(--accent-amber); }
.tl-badge--blue { background: var(--accent-blue-bg); color: var(--accent-blue); }

.tl-title { font-size: 1.3rem; font-weight: 700; color: var(--w); margin-bottom: 8px; line-height: 1.4; font-family: var(--f1); letter-spacing: 1px; }
.tl-desc { font-size: 0.95rem; color: var(--w2); line-height: 1.65; font-family: var(--f2); }
.tl-desc strong { color: var(--w); font-weight: 600; }
.tl-note { display: block; margin-top: 8px; font-size: 0.8rem; color: var(--text-muted); font-style: italic; }

@media (max-width: 768px) {
  .tl-item { padding-left: 44px; margin-bottom: 1.5rem; }
  .tl-item::before { left: calc((var(--timeline-left) - 5px) - 20px); }
  .isg-timeline::before { left: calc(var(--timeline-left) - 20px); }
  .tl-card { padding: 16px 18px; }
}

/* Contact */
#contact { padding: 8rem 0; background: var(--b0); position: relative; }
.contact-header { text-align: center; margin-bottom: 4rem; }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; }
.branches-col { display: flex; flex-direction: column; gap: 2rem; }
/* Şube kartları — derinlik ve kenar artırılmış */
.branch-card { background: #FFFFFF; padding: 2.5rem; border-radius: 10px; border: 1px solid rgba(0,0,0,0.1); position: relative; transition: transform 0.3s, box-shadow 0.3s; box-shadow: 0 2px 8px rgba(0,0,0,0.05), 0 8px 24px rgba(0,0,0,0.04); }
.branch-card:hover { transform: translateY(-4px); box-shadow: 0 8px 24px rgba(0,0,0,0.1), 0 16px 40px rgba(0,0,0,0.06); }
.bc-top { position: absolute; top: 0; left: 0; width: 100%; height: 3px; background: var(--r); transform: scaleX(0); transform-origin: left; transition: transform 0.3s; }
.branch-card:hover .bc-top { transform: scaleX(1); }
.branch-card h3 { font-size: 2rem; line-height: 1.2; margin-bottom: 1.5rem; }
.branch-card h3 span { font-family: var(--f2); font-size: 1rem; color: var(--w2); text-transform: uppercase; letter-spacing: 2px; display: block; margin-top: 5px; }
.branch-card p { margin-bottom: 0.5rem; color: var(--w2); }
.btn-outline { margin-top: 1rem; }

/* Form kartı — derinlik ve kenar artırılmış */
.form-card { background: #FFFFFF; padding: 3rem; border-radius: 10px; border: 1px solid rgba(0,0,0,0.1); box-shadow: 0 2px 8px rgba(0,0,0,0.05), 0 8px 24px rgba(0,0,0,0.04); }
.form-card h3 { font-size: 2.2rem; margin-bottom: 2rem; color: var(--r); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-bottom: 1rem; }
.form-group { margin-bottom: 1rem; }
.form-group label { display: block; font-family: var(--f2); font-size: 1.1rem; text-transform: uppercase; letter-spacing: 1px; color: var(--w2); margin-bottom: 0.5rem; }
/* Form input alanları — border ve shadow güçlendirilmiş */
.form-group input, .form-group select, .form-group textarea {
  width: 100%; background: #FAFBFC; border: 1.5px solid rgba(0,0,0,0.15); color: var(--w);
  font-family: var(--f3); padding: 0.8rem 1rem; border-radius: 6px;
  transition: border-color 0.3s, box-shadow 0.3s, background 0.3s; outline: none;
  box-shadow: inset 0 1px 3px rgba(0,0,0,0.04);
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  border-color: var(--r); background: #FFFFFF;
  box-shadow: 0 0 0 3px rgba(196,26,26,0.1), inset 0 1px 3px rgba(0,0,0,0.02);
}
.form-check { display: flex; align-items: flex-start; gap: 10px; margin: 1.5rem 0; }
.form-check label { font-size: 0.9rem; color: var(--w2); cursor: pointer; }

/* Footer */
#footer { background: #0F172A; padding: 6rem 0 2rem 0; position: relative; border-top: 1px solid rgba(255,255,255,0.1); }
.ft-line { position: absolute; top: 0; left: 0; width: 100%; height: 3px; background: linear-gradient(90deg, transparent, var(--r), transparent); opacity: 0.5; }
.ft-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr 1.5fr; gap: 2.5rem; margin-bottom: 4rem; }
.ft-partner { display: flex; flex-direction: column; align-items: center; }
.ft-partner-logos { display: flex; align-items: center; justify-content: center; gap: 0.6rem; flex-wrap: wrap; }
.ft-partner-link { display: flex !important; align-items: center; justify-content: center; transition: opacity 0.3s; margin-bottom: 0 !important; }
.ft-partner-link:hover { opacity: 0.8; }
.ft-partner-link:hover .ft-partner-logo { filter: brightness(1.15); }
.ft-partner-logo { display: block; max-width: 155px; height: 78px; object-fit: contain; filter: brightness(1.4) contrast(1.15); transition: filter 0.3s; background: rgba(255,255,255,0.22); border-radius: 8px; padding: 8px 10px; }
.ft-address { font-style: normal; display: flex; flex-direction: column; gap: 6px; }
.ft-address > a, .ft-address > span { display: flex; align-items: center; gap: 6px; white-space: nowrap; line-height: 1.6; }
.ft-address > span { flex-wrap: nowrap; }
.ft-address .pa-whatsapp { flex-shrink: 0; background: #25D366; color: #fff; width: 20px; height: 20px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; text-decoration: none; }
.ft-address .pa-whatsapp svg { width: 11px; height: 11px; }
.ft-brand { display: flex; align-items: center; gap: 10px; font-family: var(--f1); font-size: 1.8rem; letter-spacing: 1px; margin-bottom: 1rem; color: #E2E8F0; }
.ft-col p { color: #E2E8F0; margin-bottom: 1.5rem; }
.soc-links { display: flex; gap: 10px; flex-wrap: wrap; }
.soc-links a { width: 38px; height: 38px; border: 1px solid rgba(255,255,255,0.15); border-radius: 6px; display: flex !important; align-items: center; justify-content: center; color: #E2E8F0; transition: all 0.3s; margin-bottom: 0 !important; }
.soc-links a svg { width: 20px; height: 20px; flex-shrink: 0; }
.soc-links a.soc-review { background: rgba(196,26,26,0.12); border-color: var(--r3); }
.soc-links a:hover { background: var(--r); border-color: var(--r); color: #fff; }
.ft-col h4 { font-size: 1.5rem; margin-bottom: 1.5rem; color: #E2E8F0; }
.ft-col a, .ft-col span { display: block; color: #E2E8F0; margin-bottom: 0.8rem; transition: color 0.3s; }
.ft-col a:hover { color: var(--r); }
.ft-bottom { display: flex; justify-content: space-between; align-items: center; padding-top: 2rem; border-top: 1px solid rgba(255,255,255,0.05); color: #94A3B8; font-size: 0.9rem; }
.ft-bottom a { color: #E2E8F0; transition: color 0.3s; }
.ft-bottom a:hover { color: var(--r); }

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* Breakpoints */
@media (max-width: 1024px) {
  h1 { font-size: clamp(2.5rem, 5vw, 4rem); }
  .hero-title { font-size: clamp(2.2rem, 5vw, 3.8rem); letter-spacing: 2px; white-space: normal; }
  .hero-title-hand { font-size: clamp(2rem, 4.5vw, 3.5rem); }
  .hero-content { grid-template-columns: 1fr; text-align: center; }
  .hero-left { padding: 0; }
  .hero-desc { margin: 0 auto 2.5rem auto; border-left: none; border-bottom: 2px solid var(--r); padding: 0 0 1rem 0; }
  .hero-btns { justify-content: center; }
  .trust-badges { justify-content: center; flex-wrap: wrap; }
  .hidden-mobile { display: none; }
  .about-grid, .legal-grid, .contact-grid { grid-template-columns: 1fr; }
  .about-img { max-width: 500px; margin: 0 auto; }
  .srv-k { width: calc(50% - 1rem); }
  .ft-grid { grid-template-columns: 1fr 1fr 1fr; }
  .sticky-wrap { position: relative; top: 0; margin-bottom: 3rem; }
}

@media (max-width: 768px) {
  .nav-right { display: none; }
  .menu-toggle { display: block; }
  .mobile-menu-overlay {
    position: fixed; top: 0; left: 0; right: 0; bottom: 0;
    width: 100vw; height: 100vh; height: 100dvh;
    z-index: 99999;
    background: #FFFFFF;
    display: flex; flex-direction: column; justify-content: flex-start; align-items: center;
    padding-top: 60px; padding-bottom: 80px;
    overflow-y: auto; -webkit-overflow-scrolling: touch;
    opacity: 0; visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
  }
  .mobile-menu-overlay::before {
    content: ''; position: fixed; top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 200px; height: 200px;
    background: url('../images/logo.png') center/contain no-repeat;
    opacity: 0.04; pointer-events: none;
  }
  .mobile-menu-overlay.active,
  .mobile-menu-overlay.open { opacity: 1; visibility: visible; }
  .menu-close {
    position: fixed; top: 14px; right: 14px;
    font-size: 1.4rem; color: var(--w); background: var(--b2); border: 1px solid var(--br);
    width: 40px; height: 40px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    -webkit-tap-highlight-color: transparent; cursor: pointer; z-index: 100000;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  }
  .mobile-links {
    text-align: center; list-style: none; padding: 0 1.5rem; margin: auto 0;
    position: relative; z-index: 1; width: 100%; max-width: 340px;
    display: grid; grid-template-columns: 1fr 1fr; gap: 10px;
  }
  .mobile-links li:first-child { grid-column: 1 / -1; }
  .mobile-links li { margin: 0; }
  .mobile-links a {
    font-family: var(--f2); font-size: 0.88rem; font-weight: 600;
    color: var(--c3); display: flex; align-items: center; justify-content: center;
    padding: 16px 10px; letter-spacing: 1px; text-transform: uppercase;
    text-decoration: none;
    background: var(--b2); border-radius: 10px;
    transition: color 0.2s, background 0.2s, transform 0.2s;
  }
  .mobile-links li:first-child a {
    background: var(--b2); color: var(--c3); font-size: 1rem; padding: 16px 10px;
  }
  .mobile-links a:hover, .mobile-links a:active { color: #fff; background: var(--r); transform: scale(0.97); }
  .mobile-links a.nav-active { color: #fff !important; font-weight: 700; background: var(--r) !important; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .services-cats { grid-template-columns: repeat(2, 1fr) !important; gap: 0.8rem !important; }
  .srv-cat-card:hover { transform: translateY(-3px) !important; box-shadow: 0 8px 24px rgba(196,26,26,0.1) !important; }
  .srv-k { width: 100%; }
  .services-grid { perspective: unset; }
  .srv-k { transform-style: initial; }
  .form-row { grid-template-columns: 1fr; }
  .ft-bottom { flex-direction: column; text-align: center; gap: 1rem; }
  .hero-right { height: 300px; }
  .ring { transform: scale(0.6); }
  .fc-card { font-size: 0.9rem; padding: 8px 14px; }
  #about { overflow: hidden; }
  .about-badge { bottom: -10px; right: -10px; width: 96px; height: 96px; font-size: 1.55rem; }
  .about-badge span { font-size: 0.70rem; letter-spacing: 0.07em; }
  .about-img { perspective: none; transform-style: flat; }
  .about-img.ambient-float { animation: none; }
  .about-img::after { display: none; }
}

@media (max-width: 480px) {
  .stats-grid { grid-template-columns: 1fr; }
  .services-cats { grid-template-columns: 1fr !important; }
  .ft-grid { grid-template-columns: 1fr; text-align: center; }
  .soc-links { justify-content: center; }
  .branch-card { padding: 1.5rem; }
  .form-card { padding: 1.5rem; }
  .branch-card h3 { font-size: 1.6rem; }
}

/* ============================================================
   PAGE TRANSITION & PARALLAX EFFECT
   ============================================================ */
@keyframes pageFadeIn {
    0% { opacity: 0; }
    100% { opacity: 1; }
}

body {
    animation: pageFadeIn 1s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
    transition: opacity 0.85s ease;
    overflow-x: hidden;
}

/* Sayfa geçiş overlay — logo animasyonlu */
.page-transition-overlay {
    position: fixed;
    inset: 0;
    z-index: 999999;
    background: #FFFFFF;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s ease;
}
.page-transition-overlay.active {
    opacity: 1;
    pointer-events: all;
}
.page-transition-overlay .transition-logo {
    width: 80px;
    height: 80px;
    animation: transitionPulse 0.8s ease-in-out infinite;
    filter: drop-shadow(0 0 30px rgba(196,26,26,0.3));
}
@keyframes transitionPulse {
    0%, 100% { transform: scale(1); opacity: 0.7; }
    50%      { transform: scale(1.15); opacity: 1; }
}
/* Sayfa giriş animasyonu */
body.page-entering {
    animation: pageEnter 0.4s ease-out forwards;
}
@keyframes pageEnter {
    from { opacity: 0; transform: translateY(12px); }
    to   { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
    body, .page-transition-expander {
        animation: none !important;
        transition: none !important;
        transform: none !important;
        filter: none !important;
    }
    .page-transition-expander { display: none !important; }
}

@media (max-width: 768px) {
    body { animation-duration: 0.4s; }
}


/* Force hide on inactive filter grids overriding inline anchor displays */
a.srv-k.hidden, div.srv-k.hidden, .hidden { display: none !important; }

/* Service Detail Page Styles */
.service-main ol { counter-reset: step; list-style: none; padding-left: 0; margin-bottom: 2rem; }
.service-main ol li { counter-increment: step; position: relative; padding-left: 2.5rem; margin-bottom: 1rem; color: var(--w2); font-size: 1.1rem; line-height: 1.6; }
.service-main ol li::before { content: counter(step); position: absolute; left: 0; top: 2px; color: #fff; background: var(--r); width: 22px; height: 22px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 0.75rem; font-weight: bold; font-family: var(--f2); }
.faq-item { margin-bottom: 2rem; padding: 1.5rem; background: var(--b3); border: 1px solid var(--br); border-radius: 8px; border-left: 3px solid var(--r); }
.faq-q { font-family: var(--f2); font-weight: 600; font-size: 1.15rem; color: var(--w); margin-bottom: 0.75rem; letter-spacing: 0.5px; }
.faq-a { color: var(--w2); line-height: 1.8; font-size: 1.05rem; }

/* ═══════════════════════════════════════════
   PWA BOTTOM NAVIGATION BAR (mobile only)
   ═══════════════════════════════════════════ */
.bottom-nav {
  display: none;
}

@media (max-width: 768px) {
  .bottom-nav {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9000;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-top: 1px solid var(--br);
    padding: 0;
    padding-bottom: env(safe-area-inset-bottom, 0px);
    justify-content: space-around;
    align-items: stretch;
    height: 62px;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.1);
  }

  .bottom-nav a {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex: 1;
    text-decoration: none;
    color: var(--w3);
    font-family: var(--f2);
    font-size: 0.65rem;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    gap: 3px;
    transition: color 0.25s;
    position: relative;
    padding: 6px 0;
    -webkit-tap-highlight-color: transparent;
  }

  .bottom-nav a .bn-icon {
    font-size: 1.3rem;
    line-height: 1;
  }

  .bottom-nav a:active {
    color: var(--r);
  }

  .bottom-nav a.bn-active {
    color: var(--r);
  }
  .bottom-nav a.bn-active::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 24px;
    height: 3px;
    background: var(--r);
    border-radius: 0 0 3px 3px;
    animation: bnIndicatorIn 0.3s ease;
  }
  .bottom-nav a.bn-active .bn-icon {
    transform: scale(1.15);
    transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
  }

  @keyframes bnIndicatorIn {
    from { width: 0; opacity: 0; }
    to   { width: 24px; opacity: 1; }
  }

  /* Home button — raised center */
  .bottom-nav a.bn-home {
    position: relative;
    color: var(--w);
  }
  .bottom-nav a.bn-home .bn-icon {
    width: 46px;
    height: 46px;
    background: var(--r);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    margin-top: -22px;
    box-shadow: 0 4px 16px rgba(196, 26, 26, 0.45);
    border: 3px solid var(--b0);
    transition: transform 0.2s, box-shadow 0.2s;
  }
  .bottom-nav a.bn-home:active .bn-icon {
    transform: scale(0.92);
  }
  .bottom-nav a.bn-home span:last-child {
    margin-top: -2px;
    color: var(--w2);
    font-size: 0.6rem;
  }

  /* Footer + main: bottom padding to not overlap with bottom nav */
  body {
    padding-bottom: calc(62px + env(safe-area-inset-bottom, 0px));
  }
}

/* ═══════════════════════════════════════════
   PHONE ACTION ICONS (contact section)
   ═══════════════════════════════════════════ */
.phone-actions {
  display: inline-flex;
  gap: 8px;
  margin-left: 8px;
  vertical-align: middle;
}
.phone-actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
}
.phone-actions a svg { width: 13px; height: 13px; }
.phone-actions a:active {
  transform: scale(0.9);
}
.phone-actions .pa-call {
  background: #F97316;
  color: #fff;
  box-shadow: 0 1px 6px rgba(249,115,22,0.3);
}
.phone-actions .pa-call:hover {
  background: #EA580C;
  box-shadow: 0 2px 10px rgba(249,115,22,0.45);
  transform: scale(1.1);
}
.phone-actions .pa-whatsapp {
  background: #25D366;
  color: #fff;
  box-shadow: 0 1px 6px rgba(37,211,102,0.3);
}
.phone-actions .pa-whatsapp:hover {
  background: #1DA851;
  box-shadow: 0 2px 10px rgba(37,211,102,0.45);
  transform: scale(1.1);
}

/* ═══════════════════════════════════════════
   GLOBAL RESPONSIVE FIX — tüm sayfalar
   ═══════════════════════════════════════════ */

/* ISG Hesaplayıcı Banner */
.calc-banner-inner { display: flex; align-items: center; justify-content: space-between; gap: 2rem; flex-wrap: wrap; }
.calc-banner-text { flex: 1; min-width: 250px; }
.calc-banner-tag { display: inline-block; background: rgba(196,26,26,0.25); color: #fff; font-family: var(--f2); font-size: 0.8rem; font-weight: 600; letter-spacing: 1.5px; text-transform: uppercase; padding: 4px 14px; border-radius: 4px; margin-bottom: 1rem; }
.calc-banner-title { font-family: var(--f1); font-size: clamp(1.8rem,3vw,2.8rem); color: #fff; letter-spacing: 2px; margin-bottom: 0.75rem; line-height: 1.1; }
.calc-banner-desc { color: rgba(255,255,255,0.7); font-family: var(--f2); font-size: 1.05rem; letter-spacing: 0.3px; max-width: 480px; line-height: 1.6; }
.calc-banner-cards { display: flex; gap: 1rem; flex-shrink: 0; }
.calc-banner-card { background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.18); border-radius: 12px; padding: 1.2rem 1.4rem; text-align: center; min-width: 100px; }
.calc-banner-emoji { font-size: 2rem; line-height: 1; margin-bottom: 6px; }
.calc-banner-label { font-family: var(--f2); font-size: 0.82rem; color: rgba(255,255,255,0.85); font-weight: 600; letter-spacing: 0.5px; }
.calc-banner-btn { display: inline-block; background: #C41A1A; color: #fff; font-family: var(--f2); font-size: 1.1rem; font-weight: 700; letter-spacing: 1px; padding: 14px 28px; border-radius: 8px; white-space: nowrap; box-shadow: 0 4px 15px rgba(196,26,26,0.4); margin-top: 1rem; }

/* Genel taşma önleme */
html, body { overflow-x: hidden; max-width: 100vw; }
* { box-sizing: border-box; }
img, video, iframe { max-width: 100%; height: auto; }
table { max-width: 100%; }
p, li, span, a, h1, h2, h3, h4, h5 { word-wrap: break-word; overflow-wrap: break-word; }
pre, code { white-space: pre-wrap; word-break: break-all; }

/* 1024px — Tablet */
@media (max-width: 1024px) {
  .w { width: 95%; }
  .hero-right { display: none; }
  .trust-badges span { font-size: 0.82rem; padding: 6px 12px; }
  .shield-container { display: none; }
  .legal-grid { grid-template-columns: 1fr; }
}

/* 768px — Mobil büyük */
@media (max-width: 768px) {
  .w { width: 92%; padding: 0; }
  h1 { font-size: clamp(1.6rem, 5.5vw, 2.5rem) !important; }
  h2 { font-size: clamp(1.3rem, 4vw, 1.8rem) !important; }
  h3 { font-size: clamp(1.1rem, 3.5vw, 1.4rem); }
  p { font-size: 0.95rem; line-height: 1.7; }

  /* Hero */
  #hero { padding-top: 80px; padding-bottom: 30px; min-height: auto; height: auto; }
  .hero-content { padding: 0; gap: 1rem; }
  .hero-badge { font-size: 0.8rem; padding: 5px 12px; margin-bottom: 0.75rem; white-space: normal; }
  .hero-title { white-space: normal !important; }
  .hero-desc { font-size: 0.92rem; padding: 0.8rem 1rem; max-width: 100%; }
  .hero-btns { flex-direction: column; gap: 0.6rem; }
  .hero-btns .btn { width: 100%; text-align: center; padding: 0.8rem 1rem; font-size: 0.9rem; }
  .trust-badges { gap: 0.4rem; flex-wrap: wrap; justify-content: center; }
  .trust-badges span { font-size: 0.72rem; padding: 4px 8px; white-space: nowrap; }
  .hero-ticker { font-size: 0.8rem; }

  /* Stats */
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 0.8rem; }
  .stat-item { padding: 1rem 0.8rem 0.8rem; }
  .stat-icon svg { width: 24px; height: 24px; }
  .stat-number { font-size: 1.8rem !important; }
  .stat-label { font-size: 0.75rem; }
  .stat-bar { width: 30px; margin-top: 0.5rem; }

  /* About */
  .about-grid { gap: 2rem; }
  .about-text h2 { font-size: clamp(1.4rem, 5vw, 2.2rem) !important; }
  .about-text p { font-size: 0.92rem; }
  .check-list li { font-size: 0.9rem; padding-left: 1.5rem; }

  /* Services */
  .services-grid { gap: 0.8rem; }
  .services-header h2 { font-size: clamp(1.4rem, 5vw, 2rem) !important; }

  /* ISG Hesaplayıcı Banner */
  .calc-banner-inner { flex-direction: column !important; text-align: center; gap: 1.5rem !important; }
  .calc-banner-title { font-size: clamp(1.3rem, 5vw, 1.8rem) !important; }
  .calc-banner-desc { font-size: 0.88rem !important; }
  .calc-banner-cards { flex-wrap: nowrap !important; gap: 0.5rem !important; justify-content: center; }
  .calc-banner-card { min-width: auto !important; padding: 0.8rem 0.6rem !important; flex: 1; }
  .calc-banner-emoji { font-size: 1.6rem !important; }
  .calc-banner-label { font-size: 0.72rem !important; }
  .calc-banner-btn { padding: 12px 24px !important; font-size: 0.95rem !important; }

  /* Legal / Mevzuat */
  .legal-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .tl-card { padding: 1rem; }
  .tl-card h3 { font-size: 1rem; }

  /* Contact */
  .contact-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .branch-card { padding: 1.2rem; }
  .branch-card h3 { font-size: 1.3rem; }
  .branch-card p { font-size: 0.9rem; word-break: break-word; }
  .form-card { padding: 1.2rem; }
  .form-card h3 { font-size: 1.4rem; }
  .form-row { grid-template-columns: 1fr; }

  /* Footer */
  .ft-grid { grid-template-columns: 1fr; gap: 1.5rem; text-align: center; }
  .ft-brand { justify-content: center; }
  .soc-links { justify-content: center; }
  .ft-address { align-items: center; }
  .ft-bottom { flex-direction: column; text-align: center; gap: 0.5rem; }

  /* Hizmet sayfaları */
  .service-content-wrapper { display: block !important; }
  .service-sidebar { margin-top: 2rem; }
  .service-hero h1 { font-size: clamp(1.4rem, 5vw, 2rem) !important; white-space: normal; }
  .service-hero { padding: 100px 0 40px; }
  .service-main h2 { font-size: 1.4rem !important; }
  .service-main p { font-size: 0.92rem; }
  .service-main ul li { font-size: 0.92rem; }
  .service-main table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; font-size: 0.85rem; }

  /* Tablo responsive — mobilde tam görünüm */
  table { width: 100% !important; font-size: 0.8rem !important; display: table !important; table-layout: fixed !important; }
  th, td { white-space: normal !important; word-break: break-word !important; overflow-wrap: break-word !important; padding: 6px 8px !important; font-size: 0.8rem !important; min-width: auto !important; }
  div[style*="overflow-x"] { overflow-x: visible !important; }

  /* Inline grid — mobilde tek sütun */
  div[style*="grid-template-columns"] { grid-template-columns: 1fr !important; }
  footer div[style*="grid-template-columns"] { grid-template-columns: 1fr !important; text-align: center; }

  /* Inline min-width kaldır */
  div[style*="min-width"] { min-width: auto !important; }

  /* Delfin blok — mobilde dikey */
  div[style*="display: flex"][style*="align-items: center"][style*="gap: 2rem"] { flex-direction: column !important; text-align: center; gap: 1rem !important; }

  /* KVKK tablo */
  .kvkk-table { font-size: 0.78rem !important; }
  .kvkk-table th, .kvkk-table td { padding: 6px 8px !important; }

  /* Geçiş overlay */
  .page-transition-overlay .transition-logo { width: 50px; height: 50px; }

  /* Phone actions */
  .phone-actions { gap: 4px; }
}

/* 480px — Mobil küçük */
@media (max-width: 480px) {
  .w { width: 90%; }
  h1 { font-size: clamp(1.3rem, 5vw, 2rem) !important; }
  h2 { font-size: clamp(1.1rem, 4vw, 1.5rem) !important; }
  p { font-size: 0.9rem; }

  .hero-badge { font-size: 0.72rem; padding: 4px 10px; }
  .hero-title { letter-spacing: 0.5px !important; }
  .hero-title-hand { font-size: clamp(1.5rem, 5vw, 2.5rem) !important; }
  .hero-desc { font-size: 0.85rem; }
  .trust-badges { flex-direction: column; align-items: center; }

  .stats-grid { grid-template-columns: 1fr 1fr; gap: 0.5rem; }
  .stat-item { padding: 0.8rem 0.6rem 0.6rem; }
  .stat-icon svg { width: 20px; height: 20px; }
  .stat-icon { margin-bottom: 0.3rem; }
  .stat-number { font-size: 1.4rem !important; }
  .stat-label { font-size: 0.68rem; letter-spacing: 1px; }
  .stat-bar { width: 24px; height: 2px; margin-top: 0.4rem; }

  .about-badge { width: 70px; height: 70px; font-size: 1.2rem; }
  .about-badge span { font-size: 0.55rem; }
  .about-text p { font-size: 0.88rem; }

  .branch-card h3 { font-size: 1.2rem; }

  /* Bottom nav safe area */
  .bottom-nav { height: 56px; }
  .bottom-nav a { font-size: 0.55rem; }
  .bottom-nav a .bn-icon { font-size: 1.1rem; }
  .bottom-nav a.bn-home .bn-icon { width: 38px; height: 38px; margin-top: -16px; font-size: 1.1rem; }

  /* Hizmet sayfaları */
  .service-main h2 { font-size: 1.2rem !important; padding-left: 0.8rem; }
  .service-main h3 { font-size: 1.05rem; }

  /* KVKK, SSS */
  .kvkk-panel h2 { font-size: 1.2rem !important; }
  .kvkk-panel h3 { font-size: 1rem; }
  .kvkk-table { font-size: 0.78rem; }
  .kvkk-table th, .kvkk-table td { padding: 6px 8px; }
}

/* 360px — Çok küçük ekranlar */
@media (max-width: 360px) {
  .w { width: 88%; }
  h1 { font-size: 1.2rem !important; }
  .hero-badge { display: none; }
  .trust-badges { display: none; }
  .stat-number { font-size: 1.2rem !important; }
  .stat-icon { display: none; }
  .stat-bar { display: none; }
  .bottom-nav a { font-size: 0.5rem; }
}

/* Safe area — notch'lu telefonlar */
@supports (padding: env(safe-area-inset-bottom)) {
  .bottom-nav { padding-bottom: env(safe-area-inset-bottom); }
  #nav { padding-top: env(safe-area-inset-top); }
}

/* WhatsApp Floating Button */
.wa-float {
  position: fixed;
  bottom: 80px;
  right: 20px;
  z-index: 9999;
  width: 56px;
  height: 56px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(37,211,102,0.4);
  cursor: pointer;
  transition: transform 0.3s, box-shadow 0.3s;
  text-decoration: none;
}
.wa-float:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 24px rgba(37,211,102,0.5);
}
.wa-float svg { fill: #fff; width: 28px; height: 28px; }
.wa-float-pulse {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: rgba(37,211,102,0.3);
  animation: waPulse 2s infinite;
}
@keyframes waPulse {
  0% { transform: scale(1); opacity: 0.5; }
  100% { transform: scale(1.6); opacity: 0; }
}
@media (max-width: 768px) {
  .wa-float { bottom: 70px; right: 14px; width: 50px; height: 50px; }
  .wa-float svg { width: 24px; height: 24px; }
}
