/* ═══════════════════════════════════════════════════ */
/* PREMIUM ANIMATIONS & EFFECTS — Radhe Auto Industries */
/* Inspired by UI/UX Pro Max Design System            */
/* ═══════════════════════════════════════════════════ */

/* ── Floating Decorative Shapes ── */
@keyframes floatShape {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  33% { transform: translateY(-20px) rotate(1deg); }
  66% { transform: translateY(10px) rotate(-1deg); }
}
@keyframes floatShapeSlow {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-15px) rotate(2deg); }
}
@keyframes floatShapeReverse {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(15px) rotate(-2deg); }
}
@keyframes pulseGlow {
  0%, 100% { opacity: 0.3; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(1.05); }
}
@keyframes shimmer {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}
@keyframes auroraDrift {
  0% { transform: translate(0%, 0%) scale(1); }
  25% { transform: translate(5%, -5%) scale(1.05); }
  50% { transform: translate(-3%, 3%) scale(0.95); }
  75% { transform: translate(3%, -2%) scale(1.02); }
  100% { transform: translate(0%, 0%) scale(1); }
}
@keyframes typing-cursor {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}
@keyframes scaleIn {
  0% { transform: scale(0.8); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}
@keyframes slideUpFade {
  0% { transform: translateY(40px); opacity: 0; }
  100% { transform: translateY(0); opacity: 1; }
}
@keyframes slideDownFade {
  0% { transform: translateY(-20px); opacity: 0; }
  100% { transform: translateY(0); opacity: 1; }
}

.animate-fadeIn { animation: fadeIn 0.8s ease forwards; }
@keyframes fadeIn { 0% { opacity: 0; } 100% { opacity: 1; } }
.animate-slideUp { animation: slideUpFade 0.8s ease forwards; }
.animate-float { animation: floatShape 6s ease-in-out infinite; }
.animate-float-slow { animation: floatShapeSlow 8s ease-in-out infinite; }
.animate-float-reverse { animation: floatShapeReverse 7s ease-in-out infinite; }
.animate-pulse-glow { animation: pulseGlow 4s ease-in-out infinite; }
.animate-aurora { animation: auroraDrift 20s ease-in-out infinite; }
.animate-shimmer { animation: shimmer 2s ease-in-out infinite; }
.typing-cursor::after {
  content: '|';
  animation: typing-cursor 0.8s step-end infinite;
  color: #ffe300;
  font-weight: 100;
}

/* ── Aurora Gradient Background ── */
.aurora-bg {
  background: linear-gradient(135deg, #0b1c3c 0%, #061026 30%, #1a0a2e 60%, #0b1c3c 100%);
  background-size: 400% 400%;
  animation: auroraDrift 15s ease-in-out infinite;
}

/* ── Glassmorphism Cards ── */
.glass-card {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}
.glass-card:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 227, 0, 0.3);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3), 0 0 30px rgba(255, 227, 0, 0.1);
  transform: translateY(-4px);
}

/* ── Gradient Mesh Background ── */
.gradient-mesh {
  background:
    radial-gradient(600px circle at 20% 30%, rgba(255, 227, 0, 0.08) 0%, transparent 70%),
    radial-gradient(500px circle at 80% 70%, rgba(0, 136, 255, 0.06) 0%, transparent 70%),
    radial-gradient(400px circle at 50% 50%, rgba(255, 255, 255, 0.03) 0%, transparent 70%);
}

/* ── Number Counter Glow ── */
.counter-number {
  display: inline-block;
  font-variant-numeric: tabular-nums;
  background: linear-gradient(135deg, #ffe300 0%, #ffd700 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 2px 10px rgba(255, 227, 0, 0.3));
}

/* ── Section Reveal Animations ── */
.reveal-section {
  opacity: 0;
  transform: translateY(50px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal-section.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-section.is-visible .reveal-child {
  opacity: 1;
  transform: translateY(0);
}
.reveal-child {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal-child:nth-child(1) { transition-delay: 0.1s; }
.reveal-child:nth-child(2) { transition-delay: 0.2s; }
.reveal-child:nth-child(3) { transition-delay: 0.3s; }
.reveal-child:nth-child(4) { transition-delay: 0.4s; }
.reveal-child:nth-child(5) { transition-delay: 0.5s; }
.reveal-child:nth-child(6) { transition-delay: 0.6s; }

/* ── Sticky Side Buttons ── */
.sticky-side-btn {
  position: fixed;
  right: 20px;
  z-index: 100;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
  cursor: pointer;
}
.sticky-side-btn:hover {
  transform: scale(1.1);
}
.sticky-side-btn.whatsapp {
  bottom: 100px;
  background: #25D366;
  color: white;
}
.sticky-side-btn.call {
  bottom: 30px;
  background: #ffe300;
  color: #0b1c3c;
}
.sticky-side-btn.whatsapp:hover {
  box-shadow: 0 4px 25px rgba(37, 211, 102, 0.5);
}
.sticky-side-btn.call:hover {
  box-shadow: 0 4px 25px rgba(255, 227, 0, 0.5);
}

/* ── Infinite Marquee ── */
.marquee-track {
  display: flex;
  animation: marqueeScroll 30s linear infinite;
  gap: 4rem;
  width: max-content;
}
.marquee-track:hover {
  animation-play-state: paused;
}
@keyframes marqueeScroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ── Testimonial Card ── */
.testimonial-card {
  background: linear-gradient(135deg, rgba(11, 28, 60, 0.6), rgba(5, 16, 38, 0.8));
  border: 1px solid rgba(255, 227, 0, 0.15);
  border-radius: 24px;
  padding: 2rem;
  transition: all 0.5s cubic-bezier(0.25, 1, 0.5, 1);
}
.testimonial-card:hover {
  border-color: rgba(255, 227, 0, 0.4);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4), 0 0 30px rgba(255, 227, 0, 0.1);
  transform: translateY(-8px);
}

/* ── Gradient Text ── */
.gradient-text {
  background: linear-gradient(135deg, #ffe300 0%, #ffd700 50%, #ffed4a 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── Glow Border ── */
.glow-border {
  position: relative;
}
.glow-border::after {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(255, 227, 0, 0.3), transparent, rgba(255, 227, 0, 0.3));
  z-index: -1;
  opacity: 0;
  transition: opacity 0.5s ease;
}
.glow-border:hover::after {
  opacity: 1;
}

/* ── CTA Pulse Ring ── */
.cta-pulse-ring {
  position: relative;
}
.cta-pulse-ring::before {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: inherit;
  border: 2px solid #ffe300;
  animation: ctaPulse 2s ease-out infinite;
}
@keyframes ctaPulse {
  0% { transform: scale(1); opacity: 1; }
  100% { transform: scale(1.2); opacity: 0; }
}

/* ── Image Reveal ── */
.img-reveal {
  clip-path: inset(0 0 100% 0);
  transition: clip-path 1.2s cubic-bezier(0.77, 0, 0.175, 1);
}
.img-reveal.revealed {
  clip-path: inset(0 0 0 0);
}

/* ── Split Text Animation ── */
.split-line {
  overflow: hidden;
}
.split-line span {
  display: block;
  transform: translateY(100%);
  transition: transform 0.8s cubic-bezier(0.77, 0, 0.175, 1);
}
.split-line.is-visible span {
  transform: translateY(0);
}

/* ── Smooth Image Load ── */
img {
  transition: opacity 0.5s ease, filter 0.5s ease;
}
img.loaded {
  filter: blur(0);
  opacity: 1;
}

/* ── Scroll Progress Bar ── */
#scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 2px;
  background: linear-gradient(90deg, #ffe300, #ffd700);
  z-index: 200;
  transition: width 0.1s linear;
}

/* ── Interactive Cursor Glow ── */
.cursor-glow {
  position: fixed;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 227, 0, 0.06) 0%, transparent 70%);
  pointer-events: none;
  z-index: 1;
  transform: translate(-50%, -50%);
  transition: opacity 0.3s ease;
}

/* ── GSAP Slide Animations ── */
.slide-left {
  opacity: 0;
  transform: translateX(-80px);
  transition: all 1s cubic-bezier(0.25, 1, 0.5, 1);
}
.slide-right {
  opacity: 0;
  transform: translateX(80px);
  transition: all 1s cubic-bezier(0.25, 1, 0.5, 1);
}
.slide-up {
  opacity: 0;
  transform: translateY(60px);
  transition: all 1s cubic-bezier(0.25, 1, 0.5, 1);
}
.slide-down {
  opacity: 0;
  transform: translateY(-40px);
  transition: all 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}
.slide-scale {
  opacity: 0;
  transform: scale(0.85);
  transition: all 1.2s cubic-bezier(0.25, 1, 0.5, 1);
}
.slide-left.is-visible,
.slide-right.is-visible,
.slide-up.is-visible,
.slide-down.is-visible,
.slide-scale.is-visible {
  opacity: 1;
  transform: translateX(0) translateY(0) scale(1);
}

/* ── 3D Tilt Card ── */
.tilt-card {
  transform-style: preserve-3d;
  perspective: 1200px;
}
.tilt-card .tilt-content {
  transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
  transform-style: preserve-3d;
}
.tilt-card:hover .tilt-content {
  transform: rotateX(var(--tilt-y, 0deg)) rotateY(var(--tilt-x, 0deg));
}

/* ── Magnetic Button ── */
.magnetic-btn {
  position: relative;
  display: inline-block;
  transition: transform 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}

/* ── Stagger Grid ── */
.stagger-grid > * {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}
.stagger-grid.is-visible > * {
  opacity: 1;
  transform: translateY(0);
}
.stagger-grid.is-visible > *:nth-child(1) { transition-delay: 0.05s; }
.stagger-grid.is-visible > *:nth-child(2) { transition-delay: 0.1s; }
.stagger-grid.is-visible > *:nth-child(3) { transition-delay: 0.15s; }
.stagger-grid.is-visible > *:nth-child(4) { transition-delay: 0.2s; }
.stagger-grid.is-visible > *:nth-child(5) { transition-delay: 0.25s; }
.stagger-grid.is-visible > *:nth-child(6) { transition-delay: 0.3s; }
.stagger-grid.is-visible > *:nth-child(7) { transition-delay: 0.35s; }
.stagger-grid.is-visible > *:nth-child(8) { transition-delay: 0.4s; }

/* ── One-by-One Sequential Stagger ── */
.stagger-onebyone > * {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}
.stagger-onebyone.is-visible > * {
  opacity: 1;
  transform: translateY(0);
}
.stagger-onebyone.is-visible > *:nth-child(1) { transition-delay: 0s; }
.stagger-onebyone.is-visible > *:nth-child(2) { transition-delay: 0.7s; }
.stagger-onebyone.is-visible > *:nth-child(3) { transition-delay: 1.4s; }
.stagger-onebyone.is-visible > *:nth-child(4) { transition-delay: 2.1s; }
.stagger-onebyone.is-visible > *:nth-child(5) { transition-delay: 2.8s; }
.stagger-onebyone.is-visible > *:nth-child(6) { transition-delay: 3.5s; }
.stagger-onebyone.is-visible > *:nth-child(7) { transition-delay: 4.2s; }
.stagger-onebyone.is-visible > *:nth-child(8) { transition-delay: 4.9s; }

/* ── Section Slide Direction (Alternating) ── */
section.alternate-slide:nth-child(odd) .slide-content {
  opacity: 0;
  transform: translateX(-60px);
  transition: all 1s cubic-bezier(0.25, 1, 0.5, 1);
}
section.alternate-slide:nth-child(even) .slide-content {
  opacity: 0;
  transform: translateX(60px);
  transition: all 1s cubic-bezier(0.25, 1, 0.5, 1);
}
section.alternate-slide.is-visible .slide-content {
  opacity: 1;
  transform: translateX(0);
}

/* ── Parallax Layers ── */
.parallax-layer {
  will-change: transform;
  pointer-events: none;
}
.parallax-layer[data-depth="0.1"] { transform: translateZ(-10px) scale(1.1); }
.parallax-layer[data-depth="0.2"] { transform: translateZ(-20px) scale(1.2); }
.parallax-layer[data-depth="0.3"] { transform: translateZ(-30px) scale(1.3); }
.parallax-layer[data-depth="0.4"] { transform: translateZ(-40px) scale(1.4); }
.parallax-layer[data-depth="0.5"] { transform: translateZ(-50px) scale(1.5); }

/* ── Gradient Mesh Moving (like saddu.com aurora) ── */
@keyframes meshShift {
  0% { background-position: 0% 50%; }
  25% { background-position: 50% 0%; }
  50% { background-position: 100% 50%; }
  75% { background-position: 50% 100%; }
  100% { background-position: 0% 50%; }
}
.living-mesh {
  background-size: 200% 200% !important;
  animation: meshShift 20s ease-in-out infinite;
}

/* ── Reveal Mask ── */
.reveal-mask {
  clip-path: polygon(0 0, 0 0, 0 100%, 0 100%);
  transition: clip-path 1.2s cubic-bezier(0.77, 0, 0.175, 1);
}
.reveal-mask.is-visible {
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
}

/* ── Count-Up Number ── */
.count-up {
  display: inline-block;
  font-variant-numeric: tabular-nums;
}

/* ── Button Slide Underline ── */
.btn-underline {
  position: relative;
  display: inline-block;
}
.btn-underline::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: #ffe300;
  transition: width 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}
.btn-underline:hover::after {
  width: 100%;
}

/* ── Responsive ── */
@media (max-width: 768px) {
  .sticky-side-btn {
    width: 44px;
    height: 44px;
    right: 12px;
  }
  .sticky-side-btn.whatsapp { bottom: 80px; }
  .sticky-side-btn.call { bottom: 24px; }
  .slide-left, .slide-right { transform: translateY(40px); }
}
