/* ============================================
   ERKAN EREBAK - ENHANCE CSS
   Sinematik banner, altın vurgular & animasyonlar
   (Mevcut mor temayı bozmadan üzerine ekler)
   ============================================ */

:root {
  --gold: #C9A24A;
  --gold-light: #E8C97E;
  --gold-deep: #A37E2C;
  --ink: #0E0E12;
  --ink-soft: #16161d;
  --gold-glow: rgba(201, 162, 74, 0.35);
}

/* ============================================
   1. SİNEMATİK SHOWCASE BANNER
   ============================================ */
.showcase-banner {
  position: relative;
  padding: 104px 24px 84px;
  background: radial-gradient(ellipse at 50% 0%, var(--ink-soft) 0%, var(--ink) 70%);
  overflow: hidden;
  isolation: isolate;
}

/* Yüzen altın kıvılcımlar */
.showcase-spark {
  position: absolute;
  z-index: 1;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--gold-light) 0%, var(--gold) 45%, transparent 70%);
  box-shadow: 0 0 10px 2px rgba(201, 162, 74, 0.6);
  opacity: 0;
  pointer-events: none;
  animation: sparkFloat 7s ease-in-out infinite;
}
.showcase-spark.s1 { left: 12%; bottom: 18%; animation-delay: 0s;   }
.showcase-spark.s2 { left: 22%; bottom: 42%; animation-delay: 1.4s; width: 4px; height: 4px; }
.showcase-spark.s3 { left: 78%; bottom: 24%; animation-delay: 2.1s; }
.showcase-spark.s4 { left: 88%; bottom: 55%; animation-delay: 0.7s; width: 5px; height: 5px; }
.showcase-spark.s5 { left: 50%; bottom: 12%; animation-delay: 3.2s; width: 4px; height: 4px; }
.showcase-spark.s6 { left: 65%; bottom: 60%; animation-delay: 2.6s; }
@keyframes sparkFloat {
  0%   { opacity: 0; transform: translateY(0) scale(0.6); }
  20%  { opacity: 1; }
  80%  { opacity: 0.8; }
  100% { opacity: 0; transform: translateY(-90px) scale(1.1); }
}

/* Sahne (glow + çerçeve birlikte) */
.showcase-stage {
  position: relative;
  z-index: 2;
  max-width: 880px;
  margin: 0 auto;
  will-change: transform;
}

/* Dönen altın hâle (çerçevenin arkasında) */
.frame-glow {
  position: absolute;
  inset: -14px;
  z-index: 0;
  border-radius: 32px;
  background: conic-gradient(from 0deg,
    transparent 0%,
    var(--gold) 12%,
    transparent 30%,
    var(--gold-deep) 52%,
    transparent 70%,
    var(--gold-light) 88%,
    transparent 100%);
  filter: blur(20px);
  opacity: 0.6;
  animation: glowSpin 9s linear infinite;
}
@keyframes glowSpin {
  to { transform: rotate(360deg); }
}

/* Altın ışıma katmanları */
.showcase-banner::before,
.showcase-banner::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  z-index: 0;
  pointer-events: none;
}
.showcase-banner::before {
  width: 480px;
  height: 480px;
  background: var(--gold-glow);
  top: -160px;
  left: -120px;
  opacity: 0.5;
}
.showcase-banner::after {
  width: 360px;
  height: 360px;
  background: rgba(35, 44, 114, 0.22);
  bottom: -140px;
  right: -100px;
}

.showcase-label {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 28px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  background: linear-gradient(90deg, var(--gold-deep) 0%, var(--gold-light) 50%, var(--gold-deep) 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  animation: goldShimmer 3.2s linear infinite;
}
@keyframes goldShimmer {
  to { background-position: 200% center; }
}
.showcase-label::before,
.showcase-label::after {
  content: '';
  width: 40px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold));
}
.showcase-label::after {
  background: linear-gradient(90deg, var(--gold), transparent);
}

/* Çerçeve */
.showcase-frame {
  position: relative;
  z-index: 2;
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid rgba(201, 162, 74, 0.55);
  box-shadow:
    0 30px 80px rgba(0, 0, 0, 0.55),
    0 0 0 1px rgba(255, 255, 255, 0.04) inset,
    0 0 60px rgba(201, 162, 74, 0.14);
  will-change: transform;
  animation: framePulse 4s ease-in-out infinite;
}
@keyframes framePulse {
  0%, 100% { box-shadow: 0 30px 80px rgba(0,0,0,0.55), 0 0 0 1px rgba(255,255,255,0.04) inset, 0 0 50px rgba(201,162,74,0.12); }
  50%      { box-shadow: 0 30px 90px rgba(0,0,0,0.6),  0 0 0 1px rgba(255,255,255,0.06) inset, 0 0 80px rgba(201,162,74,0.28); }
}

.showcase-frame img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 1.4s cubic-bezier(0.2, 0.7, 0.2, 1);
  transform: scale(1.06);
}
.showcase-frame.in-view img {
  transform: scale(1);
}
.showcase-frame:hover img {
  transform: scale(1.04);
}

/* Reveal anında soldan sağa geçen ışık parıltısı */
.showcase-frame .shine {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  background: linear-gradient(105deg,
    transparent 30%,
    rgba(255, 255, 255, 0.18) 48%,
    rgba(255, 255, 255, 0.05) 56%,
    transparent 70%);
  transform: translateX(-120%);
}
.showcase-frame.in-view .shine {
  animation: shineSweep 1.6s cubic-bezier(0.4, 0, 0.2, 1) 0.5s forwards;
}
@keyframes shineSweep {
  to { transform: translateX(120%); }
}

/* Köşe altın aksanları */
.showcase-frame .corner {
  position: absolute;
  width: 26px;
  height: 26px;
  border: 2px solid var(--gold);
  z-index: 4;
  opacity: 0.8;
}
.showcase-frame .corner.tl { top: 14px; left: 14px; border-right: 0; border-bottom: 0; border-radius: 6px 0 0 0; }
.showcase-frame .corner.br { bottom: 14px; right: 14px; border-left: 0; border-top: 0; border-radius: 0 0 6px 0; }

/* Banner altı altın imza */
.showcase-caption {
  position: relative;
  z-index: 2;
  text-align: center;
  margin-top: 28px;
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(18px, 3vw, 26px);
  color: var(--gold-light);
  letter-spacing: 0.01em;
}
.showcase-caption span {
  color: rgba(255, 255, 255, 0.55);
  font-style: normal;
  font-family: var(--font-body);
  font-size: 13px;
  display: block;
  margin-top: 8px;
  letter-spacing: 0.04em;
}

/* Mevcut .reveal de kademeli gecikmeyi kullanabilsin */
.reveal {
  transition-delay: var(--reveal-delay, 0s);
}

/* ============================================
   2. GELİŞMİŞ REVEAL VARYANTLARI
   ============================================ */
.reveal-up,
.reveal-left,
.reveal-right,
.reveal-scale {
  opacity: 0;
  transition:
    opacity 0.8s ease,
    transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
  transition-delay: var(--reveal-delay, 0s);
  will-change: transform, opacity;
}
.reveal-up    { transform: translateY(40px); }
.reveal-left  { transform: translateX(-48px); }
.reveal-right { transform: translateX(48px); }
.reveal-scale { transform: scale(0.92); }

.reveal-up.in-view,
.reveal-left.in-view,
.reveal-right.in-view,
.reveal-scale.in-view {
  opacity: 1;
  transform: none;
}

/* ============================================
   3. METİN ANİMASYONU (kelime kelime)
   ============================================ */
.reveal-text .word {
  display: inline-block;
  opacity: 0;
  transform: translateY(0.5em);
  transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  transition-delay: calc(var(--w, 0) * 0.06s);
}
.reveal-text.in-view .word {
  opacity: 1;
  transform: none;
}

/* ============================================
   4. HOVER & MİKRO ETKİLEŞİM
   ============================================ */

/* Butonlarda parlama süpürmesi */
.btn-primary {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.btn-primary::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(105deg,
    transparent 35%,
    rgba(255, 255, 255, 0.35) 50%,
    transparent 65%);
  transform: translateX(-120%);
  transition: transform 0.7s ease;
}
.btn-primary:hover::after {
  transform: translateX(120%);
}

/* Servis kartları: yükselme + altın çizgi + ikon zıplama */
.service-card {
  position: relative;
  overflow: hidden;
  transition:
    transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 0.4s ease,
    border-color 0.4s ease,
    opacity 0.7s ease;
  transition-delay: var(--reveal-delay, 0s);
}
.service-card:hover { transition-delay: 0s; }
.service-card::before {
  content: '';
  position: absolute;
  left: 0; top: 0;
  height: 3px;
  width: 100%;
  background: linear-gradient(90deg, var(--primary), var(--gold-light));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}
.service-card:hover::before {
  transform: scaleX(1);
}
.service-card:hover .service-icon {
  animation: iconPop 0.5s ease;
}
@keyframes iconPop {
  0%   { transform: scale(1) rotate(0); }
  40%  { transform: scale(1.18) rotate(-6deg); }
  100% { transform: scale(1) rotate(0); }
}

/* Blog kartları: görsel zoom + yükselme */
.blog-card {
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease, opacity 0.7s ease;
  transition-delay: var(--reveal-delay, 0s);
}
.blog-card:hover { transition-delay: 0s; }
.blog-card .blog-img img {
  transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
.blog-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}
.blog-card:hover .blog-img img {
  transform: scale(1.07);
}

/* Alan pill'leri: altın hover */
.area-pill {
  transition: transform 0.3s ease, background 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}
.area-pill:hover {
  transform: translateY(-3px) scale(1.04);
  border-color: var(--gold);
  color: var(--gold-deep);
}

/* ============================================
   5. PARALLAX KATMANLARI (JS ile sürülür)
   ============================================ */
[data-parallax] {
  will-change: transform;
}

/* Hero fotoğrafı pointer parallax yumuşatma */
.hero-photo {
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ============================================
   6. SCROLL İLERLEME ÇUBUĞU (altın)
   ============================================ */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 100%;
  z-index: 300;
  transform: scaleX(0);
  transform-origin: left center;
  background: linear-gradient(90deg, var(--gold-deep), var(--gold), var(--gold-light));
  box-shadow: 0 0 12px rgba(201, 162, 74, 0.6);
  will-change: transform;
}

/* ============================================
   7. NAV: altın alt çizgi (desktop hover)
   ============================================ */
@media (min-width: 768px) {
  .nav-links a {
    position: relative;
  }
  .nav-links a::after {
    content: '';
    position: absolute;
    left: 16px;
    right: 16px;
    bottom: 4px;
    height: 2px;
    background: linear-gradient(90deg, var(--gold), var(--gold-light));
    border-radius: 2px;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  }
  .nav-links a:hover::after {
    transform: scaleX(1);
  }
}

/* CTA butonunda altın hale */
.nav-cta {
  position: relative;
  overflow: hidden;
}
.nav-cta::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 35%, rgba(232, 201, 126, 0.45) 50%, transparent 65%);
  transform: translateX(-120%);
  transition: transform 0.7s ease;
}
.nav-cta:hover::after { transform: translateX(120%); }

/* Stat rakamlarına altın alt vurgu + hafif yükselme */
.stat { transition: transform 0.3s ease; }
.stat:hover { transform: translateY(-4px); }

/* Bölüm başlığındaki italik vurguya altın alt parıltı */
.section-title em {
  position: relative;
}

/* ============================================
   8. ERİŞİLEBİLİRLİK: hareketi azalt
   ============================================ */
@media (prefers-reduced-motion: reduce) {
  .reveal-up, .reveal-left, .reveal-right, .reveal-scale,
  .reveal-text .word {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
  .showcase-frame img { transform: none !important; }
  .showcase-frame .shine { display: none; }
  .showcase-frame,
  .frame-glow,
  .showcase-spark,
  .showcase-label { animation: none !important; }
  .showcase-label { -webkit-text-fill-color: var(--gold-light); color: var(--gold-light); }
  [data-parallax] { transform: none !important; }
}

/* ============================================
   9. RESPONSIVE
   ============================================ */
@media (min-width: 768px) {
  .showcase-banner { padding: 124px 48px 120px; }
  .showcase-frame { border-radius: 26px; }
  .frame-glow { border-radius: 36px; }
}
