@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&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 */
  --r:  #C41A1A;
  --r2: #E02222;
  --r3: #9B1212;
  --r4: rgba(196, 26, 26, 0.22);
  --r5: rgba(196, 26, 26, 0.06);
  --rg: rgba(196, 26, 26, 0.55);
  --rs: 0 0 40px rgba(196,26,26,.35);

  /* Krom / Gümüş */
  --c:  #C2C8D2;
  --c2: #8A9099;
  --c3: #484F5C;

  /* Zemin Katmanları */
  --b0: #05070A;
  --b1: #0C0F14;
  --b2: #121620;
  --b3: #181D28;
  --b4: #1F2533;
  --b5: #272F3F;

  /* Yazı */
  --w:  #EDF0F5;
  --w2: #8892A0;
  --w3: #4A5160;

  /* Kenarlıklar */
  --br:  rgba(255, 255, 255, 0.055);
  --bra: rgba(196, 26, 26, 0.45);

  /* Tipografi */
  --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); }
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; }

/* Custom Cursor Restored */
@media (pointer: fine) {
  *, body, a, button, .srv-k, .branch-card { cursor: none !important; }
  #cr, #cd, #cx, #cy {
    position: fixed; pointer-events: none; z-index: 10000;
  }
  #cr {
    width: 36px; height: 36px; border: 1.5px solid var(--r); border-radius: 50%; top: -18px; left: -18px;
    transition: transform 0.2s, background 0.2s;
  }
  #cd { width: 5px; height: 5px; background: var(--r); border-radius: 50%; top: -2.5px; left: -2.5px; }
  #cx { width: 14px; height: 1px; background: rgba(196,26,26,0.5); top: -0.5px; left: -7px; }
  #cy { width: 1px; height: 14px; background: rgba(196,26,26,0.5); top: -7px; left: -0.5px; }
  body.hovering #cr { transform: scale(1.5); background: var(--r4); }
}
@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: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes float2 { 0%,100% { transform: translateY(0); } 50% { transform: translateY(10px); } }
@keyframes float3 { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-7px); } }
@keyframes spin { 100% { transform: rotate(360deg); } }

/* Button */
.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: 4px; transition: all 0.3s ease; position: relative; overflow: hidden;
}
.btn-primary { background: var(--r); color: #fff; box-shadow: var(--rs); }
.btn-primary:hover { background: var(--r2); transform: translateY(-2px); }
.btn-outline { background: transparent; border: 1px solid var(--r); color: var(--w); }
.btn-outline:hover { background: var(--r5); border-color: var(--r2); }
.btn-cta { background: var(--r); color: #fff; font-size: 1rem; padding: 0.6rem 1.4rem; box-shadow: var(--rs); border-radius: 4px; }
.btn-cta:hover { background: var(--r2); transform: translateY(-2px); }
.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(5,7,10,0.9); 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); }
.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; }
.mobile-menu-overlay { display: none; }

/* Hero */
#hero {
  min-height: 100vh; position: relative; display: flex; flex-direction: column;
  padding-top: 120px; padding-bottom: 80px;
  background: var(--b1) repeating-linear-gradient(45deg, var(--br), var(--br) 1px, transparent 1px, transparent 10px);
  overflow: hidden;
}
#hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse 700px 500px at var(--mx, 60%) var(--my, 45%), rgba(196,26,26,0.07), transparent 65%);
}
#particle-cvs { position: absolute; inset: 0; z-index: 1; 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: 2; width: 100%;
  margin-top: auto; margin-bottom: auto;
}
.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: 6px 16px; border: 1px solid var(--br); border-radius: 20px;
  background: rgba(255,255,255,0.03); 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; text-shadow: 0 4px 20px rgba(0,0,0,0.5); }
.hero-desc { font-size: 1.15rem; color: var(--w2); border-left: 2px solid var(--r); padding-left: 1.5rem; margin-bottom: 2.5rem; max-width: 500px;}
.hero-btns { display: flex; gap: 1rem; margin-bottom: 3rem; align-items: stretch; }
.hero-btns .btn { display: inline-flex; align-items: center; justify-content: center; border: 1px solid transparent; }
.trust-badges { display: flex; gap: 1.5rem; font-family: var(--f2); color: var(--w3); font-size: 1.1rem; }

.hero-right { position: relative; display: flex; justify-content: center; align-items: center; height: 500px; }
.shield-container { position: absolute; z-index: 10; will-change: transform; }
.fc-card { position: absolute; background: rgba(5,7,10,0.8); border: 1px solid var(--br); padding: 10px 20px; font-family: var(--f2); font-size: 1.1rem; border-radius: 4px; backdrop-filter: blur(8px); z-index: 15; box-shadow: 0 10px 30px rgba(0,0,0,0.5); border-left: 2px solid var(--r); }
.fc1 { top: 10%; left: 0; animation: float1 5s ease-in-out infinite; }
.fc2 { bottom: 10%; right: 0; animation: float2 6s ease-in-out infinite; }
.fc3 { top: 50%; left: -10%; 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-text { flex-shrink: 0; white-space: nowrap; font-family: var(--f2); font-size: 1.25rem; color: var(--w); letter-spacing: 1.5px; text-transform: uppercase; display: flex; align-items: center; }
@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; }

/* Stats */
#stats { position: relative; padding: 6rem 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: rgba(5,7,10,0.94); z-index: 1; }
.stats-grid { position: relative; z-index: 2; display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; text-align: center; }
.stat-item { padding: 2rem; background: rgba(255,255,255,0.02); border: 1px solid var(--br); position: relative; overflow: hidden; }
.stat-number { font-family: var(--f1); font-size: 4.5rem; color: var(--r); margin-bottom: 0.5rem; text-shadow: var(--rs); }
.stat-label { font-family: var(--f2); font-size: 1.3rem; letter-spacing: 1px; color: var(--w); text-transform: uppercase; }
.stat-line { position: absolute; bottom: 0; left: 50%; transform: translateX(-50%); width: 0; height: 3px; background: var(--r); transition: width 0.5s ease; }
.stat-item:hover .stat-line { width: 60%; }

/* 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(255,255,255,0.025); 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(1200px) rotateX(1deg) rotateY(-0.5deg) translateZ(0); }
  33%      { transform: perspective(1200px) rotateX(-0.5deg) rotateY(1deg) translateZ(4px); }
  66%      { transform: perspective(1200px) rotateX(0.5deg) rotateY(-1deg) translateZ(2px); }
}
.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(5, 7, 10, 0.95) 0%, transparent 100%);
  z-index: 2;
}

.doctor-info-dock {
  position: absolute;
  bottom: 20px;
  left: 20px;
  right: 20px;
  background: rgba(31, 37, 51, 0.8);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 8px;
  padding: 1.2rem;
  border: 1px solid rgba(255, 255, 255, 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: var(--r); width: 120px; height: 120px; display: flex; flex-direction: column; justify-content: center; align-items: center; font-family: var(--f2); font-size: 1.8rem; text-transform: uppercase; text-align: center; border-radius: 50%; box-shadow: var(--rs); z-index: 10; line-height: 1.2; }
.about-badge span { font-weight: 700; font-size: 1.25rem; line-height: 1; font-family: var(--f1); }
.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: var(--b0); 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(255,255,255,0.018) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.018) 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; }
.filter-btn { padding: 8px 20px; border: 1px solid var(--br); border-radius: 30px; color: var(--w); font-family: var(--f2); font-size: 1.1rem; text-transform: uppercase; letter-spacing: 1px; transition: all 0.3s; }
.filter-btn:hover { border-color: var(--r4); }
.filter-btn.active { background: var(--r); border-color: var(--r); box-shadow: var(--rs); }
.services-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 2rem; position: relative; z-index: 2; perspective: 1000px; }
.srv-k { width: calc(33.3333% - 1.35rem); flex-shrink: 0; background: var(--b3); border: 1px solid var(--br); border-radius: 8px; overflow: hidden; position: relative; transition: opacity 0.4s ease, transform 0.4s ease; transform-style: preserve-3d; }
.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.1), 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; }
.thumb-ov { position: absolute; top: 10px; right: 10px; background: rgba(0,0,0,0.7); padding: 5px 10px; font-family: var(--f2); font-size: 0.9rem; text-transform: uppercase; border-radius: 4px; border: 1px solid var(--br); }
.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; }
.cl-zorunlu { background: rgba(255,100,100,0.2); color: #ff6464; }
.cl-egitim { background: rgba(100,180,255,0.2); color: #64b4ff; }
.cl-danismanlik { background: rgba(100,210,150,0.2); color: #64d296; }
.cl-saglik { background: rgba(255,200,80,0.2); color: #ffc850; }
.cl-olcum { background: rgba(255,165,50,0.2); color: #ffa532; }
.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 { padding: 8rem 0; position: relative; background: #0C0F14; }
.legal-bg-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.07; 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: #111827;
  --bg-card-hover: #1a2236;
  --border-card: #1E293B;
  --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: #F1F5F9;
  --text-gray: #94A3B8;
  --text-muted: #64748B;
  --line-color: #2a3654;
  --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; }
.branch-card { background: var(--b2); padding: 2.5rem; border-radius: 8px; border: 1px solid var(--br); position: relative; transition: transform 0.3s; }
.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-card { background: var(--b2); padding: 3rem; border-radius: 8px; border: 1px solid var(--br); }
.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-group input, .form-group select, .form-group textarea { width: 100%; background: var(--b0); border: 1px solid var(--br); color: var(--w); font-family: var(--f3); padding: 0.8rem 1rem; border-radius: 4px; transition: border-color 0.3s; outline: none; }
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { border-color: var(--r); }
.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: var(--b0); padding: 6rem 0 2rem 0; position: relative; border-top: 1px solid var(--br); }
.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: 135px; height: 68px; object-fit: contain; filter: brightness(0.9); transition: filter 0.3s; }
.ft-address { font-style: normal; }
.ft-brand { display: flex; align-items: center; gap: 10px; font-family: var(--f1); font-size: 1.8rem; letter-spacing: 1px; margin-bottom: 1rem; }
.ft-col p { color: var(--w2); margin-bottom: 1.5rem; }
.soc-links { display: flex; gap: 10px; flex-wrap: wrap; }
.soc-links a { width: 38px; height: 38px; border: 1px solid var(--br); border-radius: 6px; display: flex !important; align-items: center; justify-content: center; color: var(--w2); 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: var(--w); }
.ft-col a, .ft-col span { display: block; color: var(--w2); 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: var(--w3); font-size: 0.9rem; }
.ft-bottom a { color: var(--w2); 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-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; inset: 0; background: rgba(5,7,10,0.98); z-index: 2000; display: flex; flex-direction: column; justify-content: center; align-items: center; opacity: 0; visibility: hidden; transition: opacity 0.35s ease, visibility 0.35s ease; }
  .mobile-menu-overlay.active { opacity: 1; visibility: visible; }
  .menu-close { position: absolute; top: 20px; right: 20px; font-size: 2rem; color: var(--w); min-width: 48px; min-height: 48px; -webkit-tap-highlight-color: transparent; }
  .mobile-links { text-align: center; }
  .mobile-links a { font-family: var(--f1); font-size: 3.5rem; color: var(--w); display: block; margin-bottom: 1rem; transition: color 0.3s; }
  .mobile-links a:hover { color: var(--r); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .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: 90px; height: 90px; font-size: 1.4rem; }
  .about-badge span { font-size: 1rem; }
  .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; }
  .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;
}

body.page-transitioning {
    opacity: 0;
}

.page-transition-expander {
    position: fixed;
    z-index: 999999;
    background: var(--b3);
    border-radius: 8px;
    pointer-events: none;
    transition: all 0.9s cubic-bezier(0.7, 0, 0.3, 1);
    box-shadow: 0 10px 40px rgba(0,0,0,0.5);
}

.page-transition-expander.expanding {
    top: 50% !important;
    left: 50% !important;
    width: 200vw !important;
    height: 200vh !important;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    background: var(--b0);
}

@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: var(--b0); 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(5, 7, 10, 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.5);
  }

  .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: 30px;
  height: 30px;
  border-radius: 50%;
  text-decoration: none;
  font-size: 1rem;
  transition: transform 0.2s, box-shadow 0.2s;
}
.phone-actions a:active {
  transform: scale(0.9);
}
.phone-actions .pa-call {
  background: rgba(196, 26, 26, 0.18);
  color: var(--r2);
}
.phone-actions .pa-call:hover {
  background: rgba(196, 26, 26, 0.35);
  box-shadow: 0 0 12px rgba(196, 26, 26, 0.3);
}
.phone-actions .pa-whatsapp {
  background: rgba(37, 211, 102, 0.15);
  color: #25D366;
}
.phone-actions .pa-whatsapp:hover {
  background: rgba(37, 211, 102, 0.3);
  box-shadow: 0 0 12px rgba(37, 211, 102, 0.3);
}

