/* ==========================================================================
   WhiteZone PR & İletişim Danışmanlığı
   Kurumsal, Minimalist & Pastel Lüks Tasarım Sistemi
   Wix Pro Gallery Scroll Animasyonları ile Güçlendirilmiş Mimari
   (Cloudflare Pages Ultra-Performance Optimized)
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

:root {
  --bg-dark: #09090b;
  --bg-surface: #111115;
  --bg-card: #16161c;
  --border: rgba(255, 255, 255, 0.08);
  --border-focus: rgba(167, 139, 250, 0.4);
  --brand-purple: #7c3aed;
  --brand-pastel: #a78bfa;
  --brand-lavender: #c4b5fd;
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-subtle: #64748b;
}

*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 5rem;
  background-color: var(--bg-dark);
  color: var(--text-main);
  font-family: 'Inter', 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
}

body {
  margin: 0;
  overflow-x: hidden;
  background-color: var(--bg-dark);
}

/* 1. Top Reading Scroll Progress Bar */
#scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 2.5px;
  background: linear-gradient(90deg, #7c3aed, #a78bfa, #e2e8f0);
  width: 0%;
  z-index: 9999;
  transition: width 0.08s ease-out;
}

/* 2. Interactive Ambient Cursor Spotlight */
#cursor-spotlight {
  position: fixed;
  top: 0;
  left: 0;
  width: 700px;
  height: 700px;
  margin-top: -350px;
  margin-left: -350px;
  background: radial-gradient(circle, rgba(124, 58, 237, 0.09) 0%, rgba(167, 139, 250, 0.03) 45%, transparent 70%);
  pointer-events: none;
  z-index: 1;
  border-radius: 50%;
  transform: translate3d(0, 0, 0);
  transition: opacity 0.3s ease;
  will-change: transform;
}

/* 3. Hairline Minimalist Borders */
.hairline-b {
  border-bottom: 1px solid var(--border);
}
.hairline-t {
  border-top: 1px solid var(--border);
}

/* 4. Kurumsal Kart Stili */
.corporate-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 1.25rem;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}

.corporate-card:hover {
  border-color: rgba(167, 139, 250, 0.3);
  transform: translateY(-3px);
  box-shadow: 0 16px 32px -12px rgba(0, 0, 0, 0.6), 0 0 20px -5px rgba(124, 58, 237, 0.12);
}

/* ==========================================================================
   5. WIX PRO GALLERY TARZI SCROLL & KAYDIRMA ANİMASYONLARI
   ========================================================================== */
.gallery-slider-container {
  position: relative;
  width: 100%;
  overflow: hidden;
  padding: 1.25rem 0;
}

.gallery-track {
  display: flex;
  gap: 1.25rem;
  overflow-x: auto;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding: 0.5rem 0.25rem 1.5rem 0.25rem;
  scrollbar-width: none;
}

.gallery-track::-webkit-scrollbar {
  display: none;
}

/* Wix Pro Gallery: Expand & Slide Scroll Entrance */
.compact-card {
  flex: 0 0 220px;
  height: 310px;
  position: relative;
  overflow: hidden;
  border-radius: 1rem;
  background: #111115;
  border: 1px solid var(--border);
  cursor: pointer;
  scroll-snap-align: start;
  
  /* Wix Pro Gallery Scroll Entrance: Scale, Blur & Slide */
  opacity: 0;
  transform: scale(0.92) translateY(32px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.7s cubic-bezier(0.16, 1, 0.3, 1),
              border-color 0.35s ease,
              box-shadow 0.35s ease;
  will-change: transform, opacity;
}

@media (min-width: 640px) {
  .compact-card {
    flex: 0 0 240px;
    height: 330px;
  }
}

/* Scroll ile tetiklenen aktif görünüm */
.compact-card.in-view {
  opacity: 1;
  transform: scale(1) translateY(0);
}

/* Hover Efekti (Wix Parallax & Zoom) */
.compact-card:hover {
  border-color: rgba(167, 139, 250, 0.55);
  transform: translateY(-6px) scale(1.03);
  box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.85), 0 0 25px -5px rgba(124, 58, 237, 0.25);
  z-index: 10;
}

.compact-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1), filter 0.5s ease;
  filter: contrast(1.05) brightness(0.95);
}

.compact-card:hover .compact-img {
  transform: scale(1.08);
  filter: contrast(1.08) brightness(1.04);
}

/* Minimalist Büyütme Butonu */
.compact-zoom {
  position: absolute;
  top: 0.85rem;
  right: 0.85rem;
  width: 2rem;
  height: 2rem;
  border-radius: 9999px;
  background: rgba(9, 9, 11, 0.8);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  opacity: 0;
  transform: scale(0.85);
  transition: all 0.25s ease;
}

.compact-card:hover .compact-zoom {
  opacity: 1;
  transform: scale(1);
}

/* Minimalist Numara Rozeti */
.compact-num {
  position: absolute;
  bottom: 0.85rem;
  left: 0.85rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: #ffffff;
  padding: 0.25rem 0.6rem;
  border-radius: 9999px;
  background: rgba(9, 9, 11, 0.8);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  transition: all 0.25s ease;
}

.compact-card:hover .compact-num {
  background: rgba(124, 58, 237, 0.9);
  border-color: rgba(167, 139, 250, 0.6);
  color: #ffffff;
}

/* ==========================================================================
   6. SCROLL REVEAL ENGINE
   ========================================================================== */
.reveal-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.reveal-up.active {
  opacity: 1;
  transform: translateY(0);
}

.stagger-1 { transition-delay: 60ms; }
.stagger-2 { transition-delay: 120ms; }
.stagger-3 { transition-delay: 180ms; }
.stagger-4 { transition-delay: 240ms; }
.stagger-5 { transition-delay: 300ms; }
.stagger-6 { transition-delay: 360ms; }
.stagger-7 { transition-delay: 420ms; }
.stagger-8 { transition-delay: 480ms; }
.stagger-9 { transition-delay: 540ms; }

/* 7. Infinite Marquee Ticker */
.marquee-track {
  display: flex;
  width: max-content;
  animation: marqueeScroll 26s linear infinite;
}

.marquee-track:hover {
  animation-play-state: paused;
}

@keyframes marqueeScroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* 8. Lightbox Overlay */
#lightbox {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(4, 4, 6, 0.95);
  backdrop-filter: blur(24px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

#lightbox.open {
  opacity: 1;
  pointer-events: auto;
}

/* 9. Form Kontrolleri */
input, textarea, select {
  background-color: #0d0d11 !important;
  border-color: rgba(255, 255, 255, 0.1) !important;
  color: #ffffff !important;
  transition: all 0.25s ease !important;
}

input:focus, textarea:focus, select:focus {
  border-color: var(--brand-pastel) !important;
  box-shadow: 0 0 0 2px rgba(167, 139, 250, 0.15) !important;
  outline: none !important;
}

/* 10. Minimalist Scrollbar */
::-webkit-scrollbar {
  width: 6px;
}
::-webkit-scrollbar-track {
  background: #09090b;
}
::-webkit-scrollbar-thumb {
  background: #27272a;
  border-radius: 9999px;
}
::-webkit-scrollbar-thumb:hover {
  background: #52525b;
}
