/* ═══════════════════════════════════════════════════════════
   VEOX MEDIA — CINEMATIC PARALLAX EXPERIENCE v1.0
   Full parallax scroll, 3D floating icons, motion graphics
═══════════════════════════════════════════════════════════ */

/* ── PARALLAX WORLD LAYER ── */
#parallax-world {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

/* ── CINEMATIC OVERLAY ── */
#cinema-overlay {
  position: fixed;
  inset: 0;
  z-index: 99995;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 20px;
  transition: opacity 0.8s ease;
}
#cinema-overlay.fade-out {
  opacity: 0;
  pointer-events: none;
}
#cinema-overlay .co-logo {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 5vw, 3rem);
  color: #fff;
  letter-spacing: 8px;
  opacity: 0;
  animation: ci-logo-in 0.6s 0.3s ease forwards;
}
#cinema-overlay .co-logo span {
  color: var(--orange);
}
#cinema-overlay .co-bar {
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--orange), var(--green), transparent);
  animation: ci-bar-grow 0.9s 0.5s ease forwards;
}
#cinema-overlay .co-tagline {
  font-family: var(--font-head);
  font-size: 0.75rem;
  letter-spacing: 5px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  opacity: 0;
  animation: ci-logo-in 0.5s 1s ease forwards;
}
@keyframes ci-logo-in {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes ci-bar-grow {
  from { width: 0; opacity: 0; }
  to   { width: 280px; opacity: 1; }
}

/* ── FLOATING 3D SOCIAL ICONS ── */
.p-icon {
  position: absolute;
  border-radius: 24%;
  display: flex;
  align-items: center;
  justify-content: center;
  will-change: transform;
  pointer-events: none;
  backface-visibility: hidden;
  transition: opacity 0.5s ease;
}
.p-icon span {
  line-height: 1;
  display: block;
  filter: drop-shadow(0 4px 12px rgba(0,0,0,0.5));
}
/* Gloss effect on icons */
.p-icon::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 45%;
  background: linear-gradient(180deg, rgba(255,255,255,0.3), transparent);
  border-radius: 24% 24% 0 0;
  pointer-events: none;
}
/* Pulsing ring */
.p-icon::after {
  content: '';
  position: absolute;
  inset: -8px;
  border-radius: 30%;
  border: 1.5px solid currentColor;
  opacity: 0;
  animation: icon-ring-pulse 3s ease-in-out infinite;
}
@keyframes icon-ring-pulse {
  0%, 100% { opacity: 0; transform: scale(1); }
  50%       { opacity: 0.4; transform: scale(1.12); }
}

/* Icon brand colors */
.p-ig { color: #fd1d1d; background: linear-gradient(135deg, #833ab4 0%, #fd1d1d 50%, #fcb045 100%); box-shadow: 0 16px 48px rgba(253,29,29,0.45); }
.p-yt { color: #ff0000; background: linear-gradient(135deg, #ff0000 0%, #cc0000 100%); box-shadow: 0 16px 48px rgba(255,0,0,0.45); }
.p-fb { color: #1877f2; background: linear-gradient(135deg, #1877f2 0%, #0d5dbf 100%); box-shadow: 0 16px 48px rgba(24,119,242,0.45); }
.p-li { color: #fff; background: linear-gradient(135deg, #0a66c2 0%, #064e8f 100%); box-shadow: 0 16px 48px rgba(10,102,194,0.45); }
.p-wa { color: #fff; background: linear-gradient(135deg, #25d366 0%, #128c7e 100%); box-shadow: 0 16px 48px rgba(37,211,102,0.45); }
.p-tw { color: #fff; background: linear-gradient(135deg, #1da1f2 0%, #0c85d0 100%); box-shadow: 0 16px 48px rgba(29,161,242,0.45); }
.p-gg { color: #fff; background: linear-gradient(135deg, #4285f4 0%, #ea4335 50%, #fbbc04 100%); box-shadow: 0 16px 48px rgba(66,133,244,0.45); }
.p-tk { color: #fff; background: linear-gradient(135deg, #000000 0%, #ff0050 50%, #00f2ea 100%); box-shadow: 0 16px 48px rgba(255,0,80,0.45); }

/* ── PARALLAX SECTION CONTENT ── */
.p-section-inner {
  will-change: transform;
  transition: transform 0.01s linear;
}

/* ── CINEMATIC PARTICLES CANVAS ── */
#cinematic-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  pointer-events: none;
  opacity: 0.6;
}

/* ── SCROLL-TRIGGERED MOTION LINES ── */
.motion-line {
  position: absolute;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--orange), transparent);
  opacity: 0;
  will-change: transform, opacity;
  pointer-events: none;
}

/* ── PARALLAX FLOATING SHAPES ── */
.p-shape {
  position: absolute;
  pointer-events: none;
  will-change: transform;
  opacity: 0.06;
}
.p-shape-circle {
  border-radius: 50%;
  background: var(--orange);
}
.p-shape-ring {
  border-radius: 50%;
  border: 1.5px solid var(--orange);
  background: transparent;
}
.p-shape-hex {
  background: var(--green);
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
}

/* ── HERO ENHANCEMENTS ── */
#hero {
  overflow: visible !important;
}
.hero-parallax-text {
  will-change: transform;
}
.hero-tagline-line {
  overflow: hidden;
  display: block;
}
.hero-tagline-line span {
  display: block;
  transform: translateY(100%);
  animation: line-up 0.7s ease forwards;
}
.hero-tagline-line:nth-child(1) span { animation-delay: 0.2s; }
.hero-tagline-line:nth-child(2) span { animation-delay: 0.35s; }
.hero-tagline-line:nth-child(3) span { animation-delay: 0.5s; }
@keyframes line-up {
  to { transform: translateY(0); }
}

/* ── VIDEO REEL EFFECT ON HERO BG ── */
#hero-cinematic-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}
#hero-cinematic-bg canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

/* Film grain overlay */
#hero-cinematic-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.08'/%3E%3C/svg%3E");
  opacity: 0.35;
  animation: grain-flicker 0.1s steps(1) infinite;
  pointer-events: none;
  z-index: 3;
  mix-blend-mode: overlay;
}
@keyframes grain-flicker {
  0%   { transform: translate(0,0); }
  10%  { transform: translate(-2%, -3%); }
  20%  { transform: translate(2%, 3%); }
  30%  { transform: translate(-1%, 2%); }
  40%  { transform: translate(1%, -1%); }
  50%  { transform: translate(-3%, 1%); }
  60%  { transform: translate(2%, -2%); }
  70%  { transform: translate(-1%, 3%); }
  80%  { transform: translate(3%, -1%); }
  90%  { transform: translate(-2%, 2%); }
  100% { transform: translate(0, 0); }
}

/* ── HORIZONTAL SCROLL TICKER ── */
.ticker-wrap {
  overflow: hidden;
  background: var(--orange);
  padding: 14px 0;
  position: relative;
  z-index: 10;
}
.ticker-track {
  display: flex;
  gap: 0;
  animation: ticker-scroll 28s linear infinite;
  white-space: nowrap;
}
.ticker-item {
  font-family: var(--font-display);
  font-size: 0.75rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--cream);
  padding: 0 40px;
  display: inline-flex;
  align-items: center;
  gap: 20px;
}
.ticker-item::after {
  content: '◆';
  font-size: 0.5rem;
  color: rgba(250,243,225,0.5);
}
@keyframes ticker-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ── SECTION CINEMATIC REVEALS ── */
.cinema-reveal {
  opacity: 0;
  transform: translateY(60px);
  transition: opacity 0.9s cubic-bezier(0.23,1,0.32,1), transform 0.9s cubic-bezier(0.23,1,0.32,1);
}
.cinema-reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.cinema-reveal-left {
  opacity: 0;
  transform: translateX(-80px);
  transition: opacity 1s cubic-bezier(0.23,1,0.32,1), transform 1s cubic-bezier(0.23,1,0.32,1);
}
.cinema-reveal-left.visible {
  opacity: 1;
  transform: translateX(0);
}
.cinema-reveal-right {
  opacity: 0;
  transform: translateX(80px);
  transition: opacity 1s cubic-bezier(0.23,1,0.32,1), transform 1s cubic-bezier(0.23,1,0.32,1);
}
.cinema-reveal-right.visible {
  opacity: 1;
  transform: translateX(0);
}
.cinema-reveal-scale {
  opacity: 0;
  transform: scale(0.85);
  transition: opacity 0.9s cubic-bezier(0.23,1,0.32,1), transform 0.9s cubic-bezier(0.23,1,0.32,1);
}
.cinema-reveal-scale.visible {
  opacity: 1;
  transform: scale(1);
}

/* staggered children */
.cinema-reveal:nth-child(1) { transition-delay: 0s; }
.cinema-reveal:nth-child(2) { transition-delay: 0.1s; }
.cinema-reveal:nth-child(3) { transition-delay: 0.2s; }
.cinema-reveal:nth-child(4) { transition-delay: 0.3s; }
.cinema-reveal:nth-child(5) { transition-delay: 0.4s; }
.cinema-reveal:nth-child(6) { transition-delay: 0.5s; }

/* ── HERO STATS COUNTER ANIMATION ── */
@keyframes counter-up {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}
.metric-chip {
  animation: counter-up 0.6s ease backwards !important;
}

/* ── 3D CARD TILT ── */
.sat-card {
  transform-style: preserve-3d;
}
.sat-card-tilt {
  transform-origin: center center;
}

/* ── PROGRESS SCROLL LINE ── */
#scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 2.5px;
  background: linear-gradient(90deg, var(--orange), var(--green));
  z-index: 99999;
  transform-origin: left;
  transform: scaleX(0);
  box-shadow: 0 0 8px var(--orange);
}

/* ── SECTION DIVIDERS ── */
.wave-divider {
  position: relative;
  z-index: 5;
  pointer-events: none;
  line-height: 0;
  margin-top: -2px;
}
.wave-divider svg {
  display: block;
  width: 100%;
}

/* ── ICONS PARALLAX SPEEDS ── */
.p-speed-1 { --parallax-speed: 0.08; }
.p-speed-2 { --parallax-speed: 0.14; }
.p-speed-3 { --parallax-speed: 0.22; }
.p-speed-4 { --parallax-speed: -0.06; }
.p-speed-5 { --parallax-speed: -0.12; }

/* ── HERO ORBIT RINGS ── */
.orbit-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(255,85,85,0.15);
  top: 50%;
  left: 50%;
  transform: translate(-50%,-50%);
  animation: orbit-rotate linear infinite;
  pointer-events: none;
}
.orbit-ring:nth-child(1) { width: 460px; height: 460px; animation-duration: 30s; }
.orbit-ring:nth-child(2) { width: 340px; height: 340px; animation-duration: 20s; border-color: rgba(163,215,138,0.12); animation-direction: reverse; }
.orbit-ring:nth-child(3) { width: 220px; height: 220px; animation-duration: 14s; border-color: rgba(255,85,85,0.2); }
@keyframes orbit-rotate {
  to { transform: translate(-50%,-50%) rotate(360deg); }
}

/* ── MARQUEE SOCIAL STRIP ── */
.social-marquee-wrap {
  overflow: hidden;
  padding: 16px 0;
  background: rgba(0,0,0,0.5);
  backdrop-filter: blur(10px);
  border-top: 1px solid rgba(255,255,255,0.06);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.social-marquee-track {
  display: flex;
  animation: marquee-left 22s linear infinite;
  white-space: nowrap;
}
.social-marquee-item {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 0 32px;
  font-family: var(--font-head);
  font-size: 0.78rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(250,243,225,0.5);
}
.social-marquee-item .smi-icon {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
}
@keyframes marquee-left {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ── SCROLL CTA ARROW ── */
.scroll-cta {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.scroll-cta span {
  font-family: var(--font-head);
  font-size: 0.65rem;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: rgba(250,243,225,0.4);
}
.scroll-arrow {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid rgba(250,243,225,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(250,243,225,0.5);
  font-size: 0.9rem;
  animation: arrow-bob 1.8s ease-in-out infinite;
}
@keyframes arrow-bob {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(6px); }
}

/* ══════════════════════════════
   MOBILE FIRST RESPONSIVE
══════════════════════════════ */
@media (max-width: 768px) {
  /* reduce parallax intensity on mobile for performance */
  .p-icon { opacity: 0.55 !important; }
  #cinematic-canvas { opacity: 0.4; }
  
  .ticker-item {
    font-size: 0.65rem;
    padding: 0 24px;
  }
  
  .orbit-ring:nth-child(1) { width: 280px; height: 280px; }
  .orbit-ring:nth-child(2) { width: 200px; height: 200px; }
  .orbit-ring:nth-child(3) { width: 130px; height: 130px; }

  .scroll-cta { display: none; }

  .social-marquee-item { padding: 0 20px; }
}

@media (max-width: 480px) {
  .p-icon { display: none !important; }
  #cinematic-canvas { display: none; }
}

/* ── MEDIA: prefers-reduced-motion ── */
@media (prefers-reduced-motion: reduce) {
  .p-icon, .orbit-ring, .ticker-track,
  .social-marquee-track, .motion-line {
    animation: none !important;
  }
  .cinema-reveal, .cinema-reveal-left,
  .cinema-reveal-right, .cinema-reveal-scale {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}
