/* ============================================================
   FKGLOBAL MADENCİLİK — HAKKIMIZDA (ABOUT) SAYFASI
   Tüm seçiciler #view-about altında kapsüllenmiştir; diğer
   sayfalara etki etmez.
   ============================================================ */

#view-about { --ab-amber: #f59e0b; --ab-amber-2: #fbbf24; overflow-x: clip; }

/* ---------- Scroll Reveal ---------- */
#view-about .ab-reveal {
  opacity: 0;
  transform: translate3d(0, 48px, 0);
  transition: opacity .9s cubic-bezier(.2,.7,.2,1), transform .9s cubic-bezier(.2,.7,.2,1);
  transition-delay: var(--ab-delay, 0s);
  will-change: opacity, transform;
}
#view-about .ab-reveal.ab-from-left  { transform: translate3d(-60px, 0, 0); }
#view-about .ab-reveal.ab-from-right { transform: translate3d(60px, 0, 0); }
#view-about .ab-reveal.ab-zoom       { transform: scale(.92); }
#view-about .ab-reveal.is-visible    { opacity: 1; transform: none; }

/* ---------- HERO ---------- */
#view-about .ab-hero {
  position: relative;
  min-height: clamp(520px, 82vh, 760px);
  border-radius: 2rem;
  overflow: hidden;
  isolation: isolate;
  display: flex;
  align-items: flex-end;
}
#view-about .ab-hero-bg {
  position: absolute; inset: -12% 0 -12% 0;
  background-size: cover; background-position: center;
  transform: translate3d(0, var(--ab-parallax, 0px), 0) scale(1.08);
  z-index: -2;
  animation: abKenBurns 22s ease-in-out infinite alternate;
}
@keyframes abKenBurns {
  from { background-position: 45% 50%; }
  to   { background-position: 60% 40%; }
}
#view-about .ab-hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(ellipse at 20% 90%, rgba(245,158,11,.28), transparent 55%),
    linear-gradient(180deg, rgba(0,0,0,.35) 0%, rgba(0,0,0,.55) 45%, rgba(5,5,8,.96) 100%);
}
/* Kayaç katman çizgileri (stratigrafi) */
#view-about .ab-strata {
  position: absolute; inset: auto 0 0 0; height: 46%; z-index: -1; pointer-events: none;
  background: repeating-linear-gradient(172deg, transparent 0 34px, rgba(245,158,11,.07) 34px 35px);
  mask-image: linear-gradient(to top, #000, transparent);
  -webkit-mask-image: linear-gradient(to top, #000, transparent);
}
/* Yüzen cevher parçacıkları */
#view-about .ab-particles { position: absolute; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
#view-about .ab-particles span {
  position: absolute; bottom: -20px; width: var(--s, 6px); height: var(--s, 6px);
  border-radius: 2px; transform: rotate(45deg);
  background: linear-gradient(135deg, var(--ab-amber-2), #b45309);
  box-shadow: 0 0 12px rgba(251,191,36,.65);
  opacity: 0; animation: abRise var(--d, 9s) linear infinite; animation-delay: var(--dl, 0s);
  left: var(--x, 50%);
}
@keyframes abRise {
  0%   { transform: translateY(0) rotate(45deg); opacity: 0; }
  12%  { opacity: .9; }
  100% { transform: translateY(-110vh) rotate(405deg); opacity: 0; }
}

#view-about .ab-hero-title-line { display: block; overflow: hidden; }
#view-about .ab-hero-title-line > span { display: inline-block; transform: translateY(105%); transition: transform 1.1s cubic-bezier(.16,1,.3,1); }
#view-about .ab-hero.is-visible .ab-hero-title-line > span { transform: none; }
#view-about .ab-hero-gradient-text {
  background: linear-gradient(90deg, #fde68a, #f59e0b 40%, #fbbf24 60%, #fde68a);
  background-size: 200% auto;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: abShine 6s linear infinite;
}
@keyframes abShine { to { background-position: 200% center; } }

#view-about .ab-scroll-cue {
  width: 26px; height: 42px; border: 2px solid rgba(255,255,255,.55); border-radius: 14px; position: relative;
}
#view-about .ab-scroll-cue::after {
  content: ""; position: absolute; left: 50%; top: 7px; width: 4px; height: 8px; margin-left: -2px;
  border-radius: 2px; background: var(--ab-amber-2); animation: abCue 1.8s ease-in-out infinite;
}
@keyframes abCue { 0% { opacity: 0; transform: translateY(0); } 40% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }

/* ---------- Derinlik göstergesi (sabit) ---------- */
#ab-depth-meter {
  position: fixed; right: 18px; top: 50%; transform: translateY(-50%) translateX(140%);
  z-index: 35; display: flex; flex-direction: column; align-items: center; gap: 8px;
  padding: 12px 8px; border-radius: 999px;
  background: rgba(10,10,14,.72); border: 1px solid rgba(245,158,11,.35);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  transition: transform .5s cubic-bezier(.2,.7,.2,1), opacity .4s; opacity: 0; pointer-events: none;
}
#ab-depth-meter.is-active { transform: translateY(-50%); opacity: 1; }
#ab-depth-meter .ab-depth-track { width: 4px; height: 150px; border-radius: 4px; background: rgba(255,255,255,.12); position: relative; overflow: hidden; }
#ab-depth-meter .ab-depth-fill { position: absolute; inset: 0 0 auto 0; height: 0%; background: linear-gradient(180deg, #fde68a, #f59e0b, #b45309); border-radius: 4px; }
#ab-depth-meter .ab-depth-val { font-family: 'JetBrains Mono', monospace; font-size: 11px; font-weight: 800; color: #fbbf24; writing-mode: vertical-rl; transform: rotate(180deg); letter-spacing: .08em; }
#ab-depth-meter .ab-depth-label { font-size: 8px; font-weight: 800; color: #a1a1aa; letter-spacing: .15em; writing-mode: vertical-rl; transform: rotate(180deg); text-transform: uppercase; }
@media (max-width: 640px) { #ab-depth-meter { display: none; } }

/* ---------- İstatistik şeridi ---------- */
#view-about .ab-stat { position: relative; overflow: hidden; }
#view-about .ab-stat::after {
  content: ""; position: absolute; inset: auto 0 0 0; height: 3px;
  background: linear-gradient(90deg, transparent, var(--ab-amber), transparent);
  transform: scaleX(0); transition: transform 1.2s cubic-bezier(.2,.7,.2,1) .3s;
}
#view-about .ab-stat.is-visible::after { transform: scaleX(1); }

/* ---------- Hikaye görseli ---------- */
#view-about .ab-story-img { position: relative; border-radius: 1.75rem; overflow: hidden; }
#view-about .ab-story-img img { transform: scale(1.12) translate3d(0, var(--ab-img-shift, 0px), 0); transition: transform .2s linear; }
#view-about .ab-story-frame {
  position: absolute; inset: 14px; border: 1px solid rgba(251,191,36,.45); border-radius: 1.3rem; pointer-events: none;
}

/* ---------- Kayan anahtar kelimeler ---------- */
#view-about .ab-marquee { mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
#view-about .ab-marquee-track { display: flex; width: max-content; gap: 3rem; animation: abMarquee 38s linear infinite; }
#view-about .ab-marquee:hover .ab-marquee-track { animation-play-state: paused; }
@keyframes abMarquee { to { transform: translateX(-50%); } }

/* ---------- Süreç zaman çizelgesi ---------- */
#view-about .ab-timeline { position: relative; }
#view-about .ab-timeline-line {
  position: absolute; top: 0; bottom: 0; left: 22px; width: 3px; border-radius: 3px;
  background: rgba(127,127,127,.22);
}
@media (min-width: 1024px) { #view-about .ab-timeline-line { left: 50%; margin-left: -1.5px; } }
#view-about .ab-timeline-fill {
  position: absolute; top: 0; left: 0; right: 0; height: var(--ab-progress, 0%);
  background: linear-gradient(180deg, #fde68a, #f59e0b 50%, #b45309);
  border-radius: 3px; box-shadow: 0 0 18px rgba(245,158,11,.6);
}
#view-about .ab-step { position: relative; padding-left: 64px; }
#view-about .ab-step-dot {
  position: absolute; left: 4px; top: 22px; width: 40px; height: 40px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-family: 'JetBrains Mono', monospace; font-weight: 800; font-size: 13px;
  background: rgba(24,24,27,.95); color: #71717a; border: 2px solid rgba(127,127,127,.35);
  transform: rotate(45deg); transition: all .5s cubic-bezier(.2,.7,.2,1);
}
#view-about .ab-step-dot > span { transform: rotate(-45deg); }
#view-about .ab-step.is-passed .ab-step-dot {
  background: linear-gradient(135deg, #fbbf24, #d97706); color: #000; border-color: #fde68a;
  box-shadow: 0 0 0 6px rgba(245,158,11,.15), 0 0 28px rgba(245,158,11,.55);
}
@media (min-width: 1024px) {
  #view-about .ab-step { padding-left: 0; width: 50%; }
  #view-about .ab-step:nth-child(odd)  { padding-right: 64px; }
  #view-about .ab-step:nth-child(even) { margin-left: 50%; padding-left: 64px; }
  #view-about .ab-step:nth-child(odd)  .ab-step-dot { left: auto; right: -20px; }
  #view-about .ab-step:nth-child(even) .ab-step-dot { left: -20px; }
}
#view-about .ab-step-card img { transition: transform .8s cubic-bezier(.2,.7,.2,1); }
#view-about .ab-step-card:hover img { transform: scale(1.07); }

/* ---------- Cevher portföyü (periyodik tablo kartları) ---------- */
#view-about .ab-mineral {
  position: relative; border-radius: 1.5rem; overflow: hidden; min-height: 360px;
  transform-style: preserve-3d; transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform .25s ease-out, box-shadow .4s;
  cursor: pointer; isolation: isolate;
}
#view-about .ab-mineral:hover { box-shadow: 0 30px 60px -20px rgba(245,158,11,.45); }
#view-about .ab-mineral img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform 1s cubic-bezier(.2,.7,.2,1), filter .6s; filter: saturate(.85) brightness(.8); }
#view-about .ab-mineral:hover img { transform: scale(1.1); filter: saturate(1.1) brightness(.9); }
#view-about .ab-mineral::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(0,0,0,.15), rgba(0,0,0,.88) 70%); }
#view-about .ab-mineral::after {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; opacity: 0; transition: opacity .4s;
  background: radial-gradient(circle at var(--mx, 50%) var(--my, 50%), rgba(255,255,255,.18), transparent 45%);
}
#view-about .ab-mineral:hover::after { opacity: 1; }
#view-about .ab-element {
  width: 78px; height: 86px; border-radius: 14px; display: flex; flex-direction: column; justify-content: space-between;
  padding: 8px 10px; background: rgba(0,0,0,.55); border: 1px solid var(--ab-el-color, #f59e0b);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); transform: translateZ(40px);
  box-shadow: 0 0 24px -6px var(--ab-el-color, #f59e0b);
}

/* ---------- Garanti kartları ---------- */
#view-about .ab-pillar { position: relative; overflow: hidden; }
#view-about .ab-pillar::before {
  content: ""; position: absolute; width: 220px; height: 220px; right: -80px; top: -80px; border-radius: 50%;
  background: radial-gradient(circle, rgba(245,158,11,.22), transparent 70%); transition: transform .6s;
}
#view-about .ab-pillar:hover::before { transform: scale(1.5); }

/* ---------- CTA ---------- */
#view-about .ab-cta { position: relative; overflow: hidden; border-radius: 2rem; isolation: isolate; }
#view-about .ab-cta-bg { position: absolute; inset: -10% 0; background-size: cover; background-position: center; z-index: -2; transform: translate3d(0, var(--ab-parallax, 0px), 0); }
#view-about .ab-cta::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(110deg, rgba(5,5,8,.95) 30%, rgba(120,53,15,.65)); }

/* ---------- Hareket azaltma tercihi ---------- */
@media (prefers-reduced-motion: reduce) {
  #view-about .ab-reveal, #view-about .ab-hero-title-line > span { opacity: 1 !important; transform: none !important; transition: none !important; }
  #view-about .ab-hero-bg, #view-about .ab-particles span, #view-about .ab-marquee-track, #view-about .ab-hero-gradient-text { animation: none !important; }
}
