/* ══════════════════════════════════════════════════
   ATMOSFER BÖLÜMÜ — Taahhüdümüz
   Dark Cinematic Luxury · Konsept E (Maximized)
══════════════════════════════════════════════════ */

.atm-section {
  position: relative;
  background: #080808;
  border-top: 1px solid rgba(255,255,255,0.05);
  display: flex;
  align-items: center;
  height: 100vh;
  max-height: 100vh;
  padding: 0 clamp(32px, 5vw, 80px);
  gap: clamp(32px, 4vw, 64px);
  overflow: hidden;
  box-sizing: border-box;
}

/* Noise grain */
.atm-section::before {
  content: '';
  position: absolute; inset: 0; z-index: 0;
  pointer-events: none;
  background-image: radial-gradient(rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 3px 3px;
}

/* Sağ köşe ambient glow */
.atm-section::after {
  content: '';
  position: absolute;
  right: 0; bottom: -10%;
  width: 800px; height: 800px;
  background: radial-gradient(ellipse at 70% 70%,
    rgba(232,93,31,0.07) 0%,
    rgba(216,180,115,0.04) 35%,
    transparent 65%);
  pointer-events: none; z-index: 0;
}

/* Sol üst altın glow */
.atm-glow-left {
  position: absolute;
  left: -10%; top: -20%;
  width: 600px; height: 600px;
  background: radial-gradient(ellipse,
    rgba(216,180,115,0.04) 0%,
    transparent 60%);
  pointer-events: none; z-index: 0;
}

/* Arka plan watermark */
.atm-watermark {
  position: absolute;
  right: -2%; top: 50%;
  transform: translateY(-50%);
  font-family: 'Barlow Condensed', sans-serif;
  font-size: clamp(160px, 20vw, 300px);
  font-weight: 900;
  letter-spacing: -0.04em;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255,255,255,0.03);
  line-height: 1;
  user-select: none; pointer-events: none;
  z-index: 0;
}

/* Sol dekoratif çizgi */
.atm-side-line {
  position: absolute;
  left: clamp(20px, 2.5vw, 44px);
  top: 18%; bottom: 18%;
  width: 1px;
  background: linear-gradient(to bottom,
    transparent 0%,
    rgba(216,180,115,0.18) 25%,
    rgba(216,180,115,0.18) 75%,
    transparent 100%);
  z-index: 1;
}

/* ─── Sol: Metin ─── */
.atm-text {
  position: relative; z-index: 2;
  flex: 1 1 0;
  min-width: 0;
  max-width: clamp(280px, 30vw, 460px);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.atm-kicker {
  display: flex; align-items: center; gap: 14px;
  margin-bottom: clamp(16px, 2.2vh, 32px);
  animation: atmFadeLeft 0.8s cubic-bezier(0.22,1,0.36,1) both 0.1s;
}
.atm-kicker-line { width: 36px; height: 1px; background: #E85D1F; flex-shrink: 0; }
.atm-kicker-txt {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 10px; font-weight: 700; letter-spacing: 0.48em;
  text-transform: uppercase; color: #E85D1F;
}

.atm-quote {
  position: relative;
  font-family: 'Fraunces', Georgia, serif;
  font-style: italic; font-weight: 300;
  font-size: clamp(40px, 5.2vw, 84px);
  line-height: 1.05; letter-spacing: -0.03em;
  color: #fff;
  margin: 0 0 clamp(16px, 2.4vh, 36px);
  animation: atmFadeLeft 0.9s cubic-bezier(0.22,1,0.36,1) both 0.2s;
}
.atm-quote-mark {
  position: absolute;
  top: -0.2em; left: -0.06em;
  font-family: 'Fraunces', serif;
  font-size: 3.5em; line-height: 1;
  color: #D8B473; opacity: 0.08;
  user-select: none; pointer-events: none;
}
.atm-quote em { font-style: italic; color: rgba(255,255,255,0.52); }

.atm-manifesto {
  font-family: 'Barlow', sans-serif;
  font-size: clamp(12px, 0.9vw, 14px);
  font-weight: 300; line-height: 1.85;
  color: rgba(255,255,255,0.48);
  max-width: 380px;
  margin-bottom: clamp(16px, 2.2vh, 32px);
  animation: atmFadeLeft 0.9s cubic-bezier(0.22,1,0.36,1) both 0.3s;
}

.atm-divider {
  display: flex; align-items: center; gap: 14px;
  margin-bottom: clamp(14px, 2vh, 28px); width: 220px;
  animation: atmFadeLeft 0.8s ease both 0.38s;
}
.atm-divider-line {
  flex: 1; height: 1px;
  background: linear-gradient(to right, rgba(216,180,115,0.35), transparent);
}
.atm-divider-diamond {
  width: 5px; height: 5px; background: #D8B473;
  transform: rotate(45deg); opacity: 0.45; flex-shrink: 0;
}

.atm-source {
  display: flex; align-items: center; gap: 12px;
  margin-bottom: clamp(20px, 3vh, 40px);
  animation: atmFadeLeft 0.8s ease both 0.42s;
}
.atm-source-line { width: 20px; height: 1px; background: rgba(255,255,255,0.12); }
.atm-source-txt {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 10px; font-weight: 600; letter-spacing: 0.32em;
  text-transform: uppercase; color: rgba(255,255,255,0.2);
}

.atm-cta {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 11px; font-weight: 700; letter-spacing: 0.32em;
  text-transform: uppercase; color: rgba(255,255,255,0.65);
  text-decoration: none;
  padding: 16px 28px 16px 24px;
  border: 1px solid rgba(255,255,255,0.1);
  position: relative; overflow: hidden;
  transition: color 0.3s ease, border-color 0.3s ease;
  animation: atmFadeLeft 0.8s ease both 0.5s;
  align-self: flex-start;
}
.atm-cta::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(to right, rgba(232,93,31,0.1), rgba(232,93,31,0.06));
  transform: translateX(-102%);
  transition: transform 0.35s cubic-bezier(0.22,1,0.36,1);
}
.atm-cta:hover::before { transform: translateX(0); }
.atm-cta:hover { color: #fff; border-color: rgba(232,93,31,0.35); }
.atm-cta-arr {
  display: inline-block; color: #E85D1F;
  transition: transform 0.3s cubic-bezier(0.22,1,0.36,1);
}
.atm-cta:hover .atm-cta-arr { transform: translateX(5px); }

/* ─── Sağ: Kartlar ─── */
.atm-cards {
  position: relative; z-index: 2;
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(8px, 1vw, 14px);
}

.atm-cards::before {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 80vw; max-width: 720px;
  height: 80vh; max-height: 800px;
  background: radial-gradient(ellipse,
    rgba(216,180,115,0.07) 0%,
    rgba(232,93,31,0.04) 40%,
    transparent 70%);
  pointer-events: none; z-index: -1;
  animation: atmGlowPulse 4s ease-in-out infinite;
}

@keyframes atmGlowPulse {
  0%,100% { opacity: 0.8; transform: translate(-50%,-50%) scale(1); }
  50%      { opacity: 1;   transform: translate(-50%,-50%) scale(1.06); }
}

.atm-card {
  position: relative;
  flex: 1 1 0;
  min-width: 0;
  max-width: 260px;
  height: auto;
  aspect-ratio: 9 / 16;
  max-height: 80vh;
  border-radius: clamp(14px, 1.2vw, 20px);
  overflow: hidden;
  box-shadow:
    0 24px 64px rgba(0,0,0,0.68),
    0 0 0 1px rgba(255,255,255,0.07);
  cursor: pointer;
  transition:
    transform 0.45s cubic-bezier(0.22,1,0.36,1),
    box-shadow 0.45s ease;
  animation: atmCardIn 0.9s ease both;
}

.atm-card--l { transform: translateY(4vh); animation-delay: 0.15s; }
.atm-card--c {
  flex: 1.3 1 0;
  max-width: 320px;
  max-height: 90vh;
  border-radius: clamp(16px, 1.4vw, 24px);
  z-index: 2;
  box-shadow:
    0 40px 110px rgba(0,0,0,0.85),
    0 0 0 1px rgba(255,255,255,0.10),
    0 0 60px rgba(232,93,31,0.10);
  animation-delay: 0.3s;
}
.atm-card--r { transform: translateY(2vh); animation-delay: 0.45s; }

@keyframes atmCardIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.atm-card--l:hover {
  transform: translateY(2.5vh) scale(1.03);
  box-shadow: 0 36px 90px rgba(0,0,0,0.78), 0 0 0 1px rgba(255,255,255,0.14), 0 0 36px rgba(216,180,115,0.10);
}
.atm-card--r:hover {
  transform: translateY(0.5vh) scale(1.03);
  box-shadow: 0 36px 90px rgba(0,0,0,0.78), 0 0 0 1px rgba(255,255,255,0.14), 0 0 36px rgba(216,180,115,0.10);
}
.atm-card--c:hover {
  transform: translateY(-1.5vh) scale(1.02);
  box-shadow: 0 56px 130px rgba(0,0,0,0.92), 0 0 0 1px rgba(232,93,31,0.30), 0 0 80px rgba(232,93,31,0.14);
}

.atm-card video {
  display: block;
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; object-position: center;
}

.atm-card--c::after {
  content: '';
  position: absolute; bottom: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(to right, transparent 0%, #E85D1F 30%, #D8B473 70%, transparent 100%);
  z-index: 6;
}

.atm-card-vignette-top {
  position: absolute; top: 0; left: 0; right: 0;
  height: 28%;
  background: linear-gradient(to bottom, rgba(8,8,8,0.45) 0%, transparent 100%);
  z-index: 2; pointer-events: none;
}

/* Progress bar */
.atm-ui-bar-wrap {
  position: absolute; top: 12px; left: 12px; right: 12px;
  z-index: 4; display: flex; gap: 3px;
}
.atm-ui-bar {
  flex: 1; height: 2px; background: rgba(255,255,255,0.15);
  border-radius: 2px; overflow: hidden;
}
.atm-ui-bar-fill {
  height: 100%;
  background: linear-gradient(to right, #E85D1F, #D8B473);
  border-radius: 2px;
  width: 0%;
}

/* Alt kart etiketi */
.atm-ui-bottom {
  position: absolute; bottom: 0; left: 0; right: 0;
  z-index: 4;
  padding: clamp(40px, 6vh, 72px) clamp(12px, 1.2vw, 18px) clamp(14px, 1.8vh, 22px);
  background: linear-gradient(to top,
    rgba(0,0,0,0.90) 0%,
    rgba(0,0,0,0.55) 45%,
    transparent 100%);
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.atm-ui-service {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 9px; font-weight: 700; letter-spacing: 0.28em;
  text-transform: uppercase; color: #E85D1F;
}
.atm-ui-car {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: clamp(13px, 1.1vw, 16px); font-weight: 600;
  color: #fff; letter-spacing: 0.02em;
}

/* Animasyonlar */
@keyframes atmFadeLeft {
  from { opacity: 0; transform: translateX(-20px); }
  to   { opacity: 1; transform: translateX(0); }
}

@media (prefers-reduced-motion: reduce) {
  .atm-kicker, .atm-quote, .atm-manifesto,
  .atm-divider, .atm-source, .atm-cta {
    animation: none !important; opacity: 1 !important; transform: none !important;
  }
  .atm-card { animation: none !important; }
  .atm-cards::before { animation: none !important; }
}
/* Kart transform/opacity ezmeleri YALNIZCA masaüstü+tablet yelpaze için —
   mobil (≤600) stacked düzeni etkilenmemeli (aksi halde aktif kart sağa kayar). */
@media (prefers-reduced-motion: reduce) and (min-width: 601px) {
  .atm-card { opacity: 1 !important; }
  .atm-card--l { transform: translateY(3vh) !important; }
  .atm-card--c { transform: none !important; }
  .atm-card--r { transform: translateY(1.5vh) !important; }
}

/* ═══ Mobil / Tablet — dikey yığ + reels carousel (≤1024px) ═══ */
@media (max-width: 1024px) {
  .atm-section {
    flex-direction: column;
    align-items: stretch;
    height: auto;
    max-height: none;
    padding: clamp(56px, 9vw, 84px) clamp(20px, 5vw, 40px);
    gap: clamp(30px, 6vw, 48px);
  }
  .atm-text {
    max-width: 660px;
    width: 100%;
    align-self: center;
  }
  .atm-quote { font-size: clamp(34px, 8vw, 60px); }
  .atm-manifesto { max-width: 560px; font-size: 14px; }
  .atm-cards { width: 100%; max-width: 660px; align-self: center; }
  .atm-card { max-width: none; max-height: none; }
  .atm-card--c { flex: 1.3 1 0; max-width: none; max-height: none; }
  .atm-side-line, .atm-watermark { display: none; }
}

@media (max-width: 1024px) {
  /* Atmosfer "Randevu Al" butonu mobilde gizli (kullanıcı isteği; masaüstünde durur) */
  .atm-cta { display: none; }

  /* ── Metin dağılımı finalize (yalnızca mobil) ──
     Zorunlu <br>'ler mobilde ifadeleri kötü bölüyordu → nötrle, doğal/dengeli kırılım. */
  .atm-quote {
    font-size: clamp(30px, 8vw, 52px);
    line-height: 1.12;
    letter-spacing: -0.02em;
    margin-bottom: 22px;
  }
  .atm-quote br { display: none; }       /* zorunlu kırma yok → doğal dolum */
  .atm-quote em { white-space: nowrap; } /* "iş bitmez." bütün kalsın → "Siz memnun olmadan," / "iş bitmez." */

  /* Manifesto: 3 cümle-satır ritmi (TR tek satır sığar); uzun cümlelerde (EN)
     orphan/düzensiz sarma olmasın diye pretty ile dengeli sar. */
  .atm-manifesto {
    font-size: 13.5px;
    line-height: 1.78;
    max-width: none;
    margin-bottom: 26px;
    text-wrap: pretty;
  }

  .atm-kicker { margin-bottom: 16px; }
  .atm-divider { margin-bottom: 16px; }
  .atm-source { margin-bottom: 0; }

  /* Reels → YIĞILMIŞ (stacked) kart destesi: ortada baskın aktif kart,
     yan kartlar arkada sadece kenardan görünür; JS ile aktif-index kontrollü. */
  .atm-cards {
    --atm-cardw: 76vw;        /* aktif kart genişliği */
    --atm-shift: 19vw;        /* yan kartların yatay kayması (kenar peek — yuvarlak köşe görünür) */
    display: block;
    position: relative;
    flex: none;
    max-width: none;
    width: 100vw;
    margin-inline: calc(50% - 50vw);     /* full-bleed */
    height: calc(var(--atm-cardw) * 16 / 9);
    max-height: 600px;
    padding: 0;
    overflow: hidden;                    /* yan kartların ekran dışı kısmını + sayfa taşmasını kırp */
    touch-action: pan-y;                 /* dikey sayfa kaydırma serbest; yatay swipe JS'te */
  }
  .atm-card,
  .atm-card--l,
  .atm-card--c,
  .atm-card--r {
    position: absolute;
    top: 50%;
    left: 50%;
    width: var(--atm-cardw);
    height: calc(var(--atm-cardw) * 16 / 9);
    max-width: 338px;
    max-height: 600px;
    min-height: 0;
    aspect-ratio: auto;
    transform: translateX(var(--atm-drag, 0px)) translate(-50%, -50%) scale(0.8);
    opacity: 0;
    z-index: 1;
    pointer-events: none;
    transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1),
                opacity 0.45s ease;
    will-change: transform, opacity;
  }
  /* Parmakla sürükleme sırasında anlık takip (transition kapalı) */
  .atm-cards.is-dragging .atm-card {
    transition: none;
  }
  /* Aktif — ortada, tam boy, önde */
  .atm-card.is-active {
    transform: translateX(var(--atm-drag, 0px)) translate(-50%, -50%) scale(1);
    opacity: 1;
    z-index: 3;
    pointer-events: auto;
  }
  /* Önceki / sonraki — arkada, kenardan görünür (tıklanınca ortaya gelir) */
  .atm-card.is-prev {
    transform: translateX(var(--atm-drag, 0px)) translate(-50%, -50%) translateX(calc(-1 * var(--atm-shift))) scale(0.8);
    opacity: 0.4;
    z-index: 2;
    pointer-events: auto;
  }
  .atm-card.is-next {
    transform: translateX(var(--atm-drag, 0px)) translate(-50%, -50%) translateX(var(--atm-shift)) scale(0.8);
    opacity: 0.4;
    z-index: 2;
    pointer-events: auto;
  }
  /* Uzaktakiler — gizli */
  .atm-card.is-far-l {
    transform: translate(-50%, -50%) translateX(calc(-1.6 * var(--atm-shift))) scale(0.68);
    opacity: 0;
    z-index: 1;
  }
  .atm-card.is-far-r {
    transform: translate(-50%, -50%) translateX(calc(1.6 * var(--atm-shift))) scale(0.68);
    opacity: 0;
    z-index: 1;
  }
}

/* ── Atmosfer reels carousel — mobil nokta göstergeleri (masaüstünde gizli) ── */
.atm-dots { display: none; }

@media (max-width: 1024px) {
  .atm-dots {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 4px;
    margin-top: 14px;
  }
  .atm-dot {
    appearance: none;
    -webkit-appearance: none;
    border: 0;
    margin: 0;
    background: transparent;
    padding: 18px 7px;              /* görsel nokta küçük, dokunma alanı ~44px */
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
  }
  .atm-dot::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .26);
    transition: width .25s ease, background .25s ease;
  }
  .atm-dot.is-active::before {
    width: 26px;                    /* aktif: hem renk hem genişlik (color-not-only) */
    background: linear-gradient(90deg, #E85D1F, #D8B473);
  }
  .atm-dot:focus-visible {
    outline: 2px solid #E85D1F;
    outline-offset: 3px;
    border-radius: 999px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .atm-dot::before { transition: none; }
  .atm-card { transition: none !important; }
}
