/* ==========================================================================
   HAZAR LOJİSTİK — UNIVERSAL SCROLL MOTION DESIGN SUITE (INDEX.HTML ONLY)
   Apple & Google Antigravity Spatial Staged Unfolding & 60fps GPU Acceleration
   Reveals Piece-by-Piece Across Every Single Section, Grid, Card, and Table Row
   ========================================================================== */

/* 1. Universal Motion Elements (Base Unrevealed State) — Crisp Fade-Up (No Text Blur) */
[data-motion],
.hazar-motion-item,
.flexe-section-header > *,
.flexe-stat-box,
.flexe-pillar-card,
#hazar-navigator-component,
.flexe-services-grid .flexe-service-card,
.flexe-search-capsule,
.flexe-route-card,
.flexe-matrix-wrap,
.flexe-matrix-table tbody tr,
.flexe-spot-panel,
.flexe-spot-head > *,
.flexe-spot-card,
.flexe-spot-advisory,
.flexe-simulator-panel,
.flexe-article-card,
.flexe-cta-banner,
.flexe-cta-h2,
.flexe-cta-desc,
#btn-bottom-quote,
.flexe-footer-brand,
.flexe-footer-col {
  opacity: 0;
  transform: translate3d(0, 20px, 0);
  will-change: transform, opacity;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1),
              opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ABOVE-THE-FOLD HERO PRIORITY: Hero MUST be immediately crisp and readable (Zero Skeleton/Zero Delay) */
.flexe-hero-section,
.flexe-hero-section *,
.flexe-hero-kicker,
.flexe-hero-h1,
.flexe-hero-desc,
.hazar-hero-quick-quote,
.hazar-hero-quick-quote *,
.flexe-hero-trust-row,
.flexe-hero-trust-row *,
#heroMotionCockpit,
#heroMotionCockpit * {
  opacity: 1 !important;
  transform: none !important;
  filter: none !important;
  visibility: visible !important;
}

/* Horizontal slide variants */
[data-motion="slide-left"] {
  transform: translate3d(-30px, 0, 0);
}

[data-motion="slide-right"] {
  transform: translate3d(30px, 0, 0);
}

[data-motion="scale-up"] {
  transform: translate3d(0, 16px, 0) scale3d(0.98, 0.98, 1);
}

/* 2. Active Revealed State (Triggered per Element upon Viewport Entry) */
[data-motion].is-inview,
.hazar-motion-item.is-inview,
.flexe-section-header > *.is-inview,
.flexe-stat-box.is-inview,
.flexe-pillar-card.is-inview,
#hazar-navigator-component.is-inview,
.flexe-services-grid .flexe-service-card.is-inview,
.flexe-search-capsule.is-inview,
.flexe-route-card.is-inview,
.flexe-matrix-wrap.is-inview,
.flexe-matrix-table tbody tr.is-inview,
.flexe-spot-panel.is-inview,
.flexe-spot-head > *.is-inview,
.flexe-spot-card.is-inview,
.flexe-spot-advisory.is-inview,
.flexe-simulator-panel.is-inview,
.flexe-article-card.is-inview,
.flexe-cta-banner.is-inview,
.flexe-cta-h2.is-inview,
.flexe-cta-desc.is-inview,
#btn-bottom-quote.is-inview,
.flexe-footer-brand.is-inview,
.flexe-footer-col.is-inview,
.is-inview > .hazar-motion-item {
  opacity: 1 !important;
  transform: translate3d(0, 0, 0) scale3d(1, 1, 1) !important;
  filter: none !important;
}

/* 3. Stagger Transition Delay Utilities */
[data-delay="50"]  { transition-delay: 0.05s; }
[data-delay="100"] { transition-delay: 0.10s; }
[data-delay="150"] { transition-delay: 0.15s; }
[data-delay="200"] { transition-delay: 0.20s; }
[data-delay="250"] { transition-delay: 0.25s; }
[data-delay="300"] { transition-delay: 0.30s; }
[data-delay="350"] { transition-delay: 0.35s; }
[data-delay="400"] { transition-delay: 0.40s; }
[data-delay="500"] { transition-delay: 0.50s; }
[data-delay="600"] { transition-delay: 0.60s; }

/* 4. Section 04: Interactive Scroll Cinema Step Scrubbing */
.hazar-cinema-track {
  position: relative;
  transition: background-color 0.5s ease;
}

.hazar-cinema-step {
  opacity: 0.3;
  transform: scale(0.95) translateY(24px);
  filter: blur(3px);
  transition: all 0.75s cubic-bezier(0.16, 1, 0.3, 1);
  border: 1px solid rgba(229, 231, 235, 0.8);
  border-radius: 20px;
  background: #FFFFFF;
}

.hazar-cinema-step.active {
  opacity: 1 !important;
  transform: scale(1) translateY(0) !important;
  filter: blur(0) !important;
  border-color: rgba(217, 26, 42, 0.35) !important;
  box-shadow: 0 24px 54px -12px rgba(217, 26, 42, 0.18), 0 6px 18px rgba(17, 24, 39, 0.05) !important;
}

/* 5. SVG Route Path Drawing */
.hazar-motion-route-path {
  stroke-dasharray: 1200;
  stroke-dashoffset: 1200;
  transition: stroke-dashoffset 2.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.is-inview .hazar-motion-route-path,
.hazar-motion-route-path.is-inview {
  stroke-dashoffset: 0 !important;
}

/* 6. Dynamic Card Spatial Elevate & Hover Lift */
.hazar-motion-card,
.flexe-stat-box,
.flexe-pillar-card,
.flexe-services-grid .flexe-service-card,
.flexe-route-card,
.flexe-spot-card,
.flexe-article-card {
  perspective: 900px;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.35s ease,
              border-color 0.35s ease,
              opacity 0.78s cubic-bezier(0.16, 1, 0.3, 1),
              filter 0.78s cubic-bezier(0.16, 1, 0.3, 1);
}

.hazar-motion-card:hover,
.flexe-pillar-card:hover,
.flexe-services-grid .flexe-service-card:hover,
.flexe-route-card:hover,
.flexe-spot-card:hover,
.flexe-article-card:hover {
  transform: translateY(-5px) scale(1.012) !important;
  box-shadow: 0 20px 42px -10px rgba(217, 26, 42, 0.15), 0 4px 14px rgba(15, 23, 42, 0.05) !important;
  border-color: rgba(217, 26, 42, 0.42) !important;
}

/* 7. Subtle Ambient Line Animation */
.hazar-ambient-line {
  position: absolute;
  height: 2px;
  background: linear-gradient(90deg, transparent 0%, rgba(217, 26, 42, 0.6) 50%, transparent 100%);
  width: 100%;
  top: 0;
  left: 0;
  opacity: 0.6;
  animation: hazarLineSweep 4.5s ease-in-out infinite alternate;
}

@keyframes hazarLineSweep {
  0% { transform: translateX(-35%); opacity: 0.25; }
  100% { transform: translateX(35%); opacity: 0.85; }
}

/* 8. Prefers-Reduced-Motion Guardrail */
@media (prefers-reduced-motion: reduce) {
  [data-motion],
  .hazar-motion-item,
  .flexe-section-header > *,
  .flexe-stat-box,
  .flexe-pillar-card,
  #hazar-navigator-component,
  .flexe-services-grid .flexe-service-card,
  .flexe-search-capsule,
  .flexe-route-card,
  .flexe-matrix-wrap,
  .flexe-matrix-table tbody tr,
  .flexe-spot-panel,
  .flexe-spot-head > *,
  .flexe-spot-card,
  .flexe-spot-advisory,
  .flexe-simulator-panel,
  .flexe-article-card,
  .flexe-cta-banner,
  .flexe-cta-h2,
  .flexe-cta-desc,
  #btn-bottom-quote,
  .flexe-footer-brand,
  .flexe-footer-col,
  .hazar-cinema-step,
  .hazar-motion-route-path {
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
    transition: none !important;
    animation: none !important;
    stroke-dashoffset: 0 !important;
  }
}

/* ==========================================================================
   9. STRICT ISOLATION GUARDS FOR CONTINUOUS RUNNING ELEMENTS
   Guarantees country ticker and video cockpit never disappear or stutter
   ========================================================================== */
.flexe-marquee-section {
  opacity: 1 !important;
  visibility: visible !important;
  filter: none !important;
  overflow: hidden !important;
  width: 100% !important;
  max-width: 100vw !important;
  contain: paint !important;
  position: relative !important;
}

.flexe-marquee-title {
  opacity: 1 !important;
  visibility: visible !important;
  filter: none !important;
}

.flexe-sticker-track {
  opacity: 1 !important;
  visibility: visible !important;
  filter: none !important;
  display: flex !important;
  align-items: center !important;
  gap: 32px !important;
  width: max-content !important;
  animation: flexeMarquee 38s linear infinite !important;
  will-change: transform !important;
}

.hazar-cinema-track,
.hazar-cinema-sticky,
.hazar-cinema-layout-container,
.hazar-cinema-stage-viewport,
.hazar-cinema-video-el {
  opacity: 1 !important;
  visibility: visible !important;
  filter: none !important;
}

/* ==========================================================================
   10. MOBILE PERFECTION (<= 768px): ZERO SKELETON, ZERO BLUR, INSTANT READABILITY
   Mobile devices render all copy crisp and fully visible without scroll gating
   ========================================================================== */
@media (max-width: 768px) {
  [data-motion],
  .hazar-motion-item,
  .flexe-section-header > *,
  .flexe-stat-box,
  .flexe-pillar-card,
  #hazar-navigator-component,
  .flexe-services-grid .flexe-service-card,
  .flexe-search-capsule,
  .flexe-route-card,
  .flexe-matrix-wrap,
  .flexe-matrix-table tbody tr,
  .flexe-spot-panel,
  .flexe-spot-head > *,
  .flexe-spot-card,
  .flexe-spot-advisory,
  .flexe-simulator-panel,
  .flexe-article-card,
  .flexe-cta-banner,
  .flexe-cta-h2,
  .flexe-cta-desc,
  #btn-bottom-quote,
  .flexe-footer-brand,
  .flexe-footer-col {
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
    transition: none !important;
    visibility: visible !important;
  }
}
