/* ===== CUSTOM CSS — Reference Design Match ===== */

/* === Loading Screen === */
.loader-wrapper {
  position: fixed;
  inset: 0;
  background: #ffffff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition:
    opacity 0.8s ease,
    visibility 0.8s ease;
}
.loader-wrapper.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.loader-logo {
  font-family: "Outfit", sans-serif;
  font-weight: 800;
  font-size: 28px;
  margin-bottom: 30px;
  opacity: 0;
  animation: loaderFadeIn 0.6s ease forwards;
}
.loader-bar-track {
  width: 200px;
  height: 3px;
  background: rgba(0, 0, 0, 0.05);
  border-radius: 4px;
  overflow: hidden;
  opacity: 0;
  animation: loaderFadeIn 0.6s 0.3s ease forwards;
}
.loader-bar {
  height: 100%;
  width: 0%;
  background: #6366F1;
  border-radius: 4px;
  animation: loaderProgress 1.2s 0.5s ease forwards;
}
@keyframes loaderFadeIn {
  to {
    opacity: 1;
  }
}
@keyframes loaderProgress {
  to {
    width: 100%;
  }
}

/* === AOS Failsafe Failsafe: Force elements to appear after 2.5s if AOS is stuck === */
@keyframes aosFailsafe {
  to {
    opacity: 1 !important;
    transform: none !important;
  }
}
[data-aos] {
  animation: aosFailsafe 0.1s 2.5s forwards;
}

/* === Smooth Scroll & Scrollbar === */
html {
  scroll-behavior: smooth;
  --modern-easing: cubic-bezier(0.16, 1, 0.3, 1);
}
::-webkit-scrollbar {
  width: 5px;
}
::-webkit-scrollbar-track {
  background: #f8fafc;
}
::-webkit-scrollbar-thumb {
  background: #6366F1;
  border-radius: 8px;
}

/* === Gradient Text === */
.gradient-text {
  background: linear-gradient(135deg, #6366F1, #818CF8, #06B6D4);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* === Section Glow Orb === */
.glow-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.08;
  pointer-events: none;
}

/* === Glass Card === */
.glass {
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

/* === Scroll Progress Bar === */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 4px;
  background: linear-gradient(90deg, #6366F1, #818CF8, #06B6D4);
  z-index: 10000;
  transition: width 0.1s ease-out;
}

/* === Custom Cursor === */
.custom-cursor {
  width: 40px;
  height: 40px;
  border: 1px solid rgba(99, 102, 241, 0.3);
  border-radius: 50%;
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 9999;
  transition:
    width 0.3s,
    height 0.3s,
    border-color 0.3s,
    background 0.3s,
    transform 0.05s linear;
  box-shadow: 0 0 20px rgba(99, 102, 241, 0.1);
}
.custom-cursor-dot {
  width: 6px;
  height: 6px;
  background: #0F172A;
  border-radius: 50%;
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 10000;
  box-shadow:
    0 0 15px #6366F1,
    0 0 30px rgba(99, 102, 241, 0.4);
  transition:
    transform 0.05s linear,
    opacity 0.3s ease;
}
@media (max-width: 1024px) {
  .custom-cursor,
  .custom-cursor-dot {
    display: none !important;
  }
}

/* === Floating Animations === */
@keyframes float-slow {
  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(-20px) rotate(5deg);
  }
}
@keyframes drift {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }
  33% {
    transform: translate(30px, -50px) scale(1.1);
  }
  66% {
    transform: translate(-20px, 20px) scale(0.9);
  }
}
@keyframes drift-slow {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }
  50% {
    transform: translate(-40px, 30px) scale(1.05);
  }
}

.floating {
  animation: float-slow 6s ease-in-out infinite;
}
.floating-delayed {
  animation: float-slow 8s ease-in-out infinite 2s;
}
.animate-drift {
  animation: drift 15s ease-in-out infinite;
}
.animate-drift-slow {
  animation: drift-slow 20s ease-in-out infinite;
}

/* === Nav Link Underline === */
.nav-link {
  position: relative;
}
.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, #6366F1, #06B6D4);
  transition: width 0.3s ease;
}
.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

/* === Button Shine === */
.btn-shine {
  position: relative;
  overflow: hidden;
}
.btn-shine::after {
  content: "";
  position: absolute;
  top: -50%;
  left: -75%;
  width: 50%;
  height: 200%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.12),
    transparent
  );
  transform: rotate(25deg);
  transition: left 0.6s ease;
}
.btn-shine:hover::after {
  left: 125%;
}

/* === Typed Cursor === */
.typed-cursor {
  display: inline-block;
  width: 3px;
  height: 1em;
  background: #6366F1;
  margin-left: 4px;
  animation: blink 0.7s step-end infinite;
  vertical-align: text-bottom;
}
@keyframes blink {
  50% {
    opacity: 0;
  }
}

/* === Hero Canvas === */
#particles-canvas {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

/* === Section Divider === */
.section-divider {
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, #6366F1, #06B6D4);
  border-radius: 4px;
}

/* tech-pill and others */
.service-row-img {
  border-radius: 1.25rem;
  transition:
    transform 0.6s cubic-bezier(0.23, 1, 0.32, 1),
    box-shadow 0.6s ease;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}
.service-row-img:hover {
  transform: scale(1.03) translateY(-4px);
  box-shadow: 0 30px 80px rgba(79, 70, 229, 0.15);
}

/* Checkmark list */
.check-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 6px 0;
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.92rem;
}
.check-icon {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  flex-shrink: 0;
  margin-top: 2px;
}

/* Tech pill badge */
.tech-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.5);
  transition: all 0.3s ease;
}
.tech-pill:hover {
  background: rgba(79, 70, 229, 0.1);
  border-color: rgba(79, 70, 229, 0.3);
  color: #a5b4fc;
}

.tech-pill-sm {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.35);
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.portfolio-card:hover .tech-pill-sm {
  border-color: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.6);
}

/* ============================================= */
/*  WHY CHOOSE US CARDS                          */
/* ============================================= */
.why-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 1.25rem;
  padding: 2rem;
  transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
  position: relative;
  overflow: hidden;
}
.why-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, transparent, #4f46e5, transparent);
  opacity: 0;
  transition: opacity 0.4s ease;
}
.why-card:hover {
  transform: translateY(-8px);
  border-color: rgba(79, 70, 229, 0.2);
  box-shadow: 0 20px 50px rgba(79, 70, 229, 0.1);
}
.why-card:hover::before {
  opacity: 1;
}

/* === PROCESS TIMELINE === */
.process-step {
  position: relative;
  transition: all 0.7s cubic-bezier(0.22, 1.5, 0.36, 1);
  z-index: 10;
  opacity: 1;
  transform: translateY(10px);
}
.process-step.active-step {
  opacity: 1;
  animation: process-pop 0.7s cubic-bezier(0.22, 1.5, 0.36, 1);
  transform: translateY(0) scale(1.1);
}
@keyframes process-pop {
  0% {
    opacity: 0;
    transform: translateY(30px) scale(0.8);
  }
  60% {
    opacity: 1;
    transform: translateY(-8px) scale(1.13);
  }
  80% {
    transform: translateY(2px) scale(0.98);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}
.process-number {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Outfit", sans-serif;
  font-weight: 800;
  font-size: 1rem;
  margin: 0 auto 1.25rem;
  transition: all 0.5s var(--modern-easing);
  border: 4px solid #ffffff;
  box-sizing: content-box;
}
.process-step:hover .process-number {
  transform: scale(1.1) rotate(-5deg);
  box-shadow: 0 10px 40px rgba(79, 70, 229, 0.4);
}
#process-draw-line {
  stroke-linecap: round;
  box-shadow: 0 0 10px rgba(99, 102, 241, 0.3);
}
#process-tip {
  filter: drop-shadow(0 0 16px #818cf8) drop-shadow(0 0 32px #6366f1);
}

/* ============================================= */
/*  PORTFOLIO                                     */
/* ============================================= */
.portfolio-card {
  transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
  transform-origin: center;
}
.portfolio-card:hover {
  transform: translateY(-10px) scale(1.01);
  box-shadow:
    0 30px 60px -15px rgba(0, 0, 0, 0.5),
    0 0 40px -10px rgba(79, 70, 229, 0.15);
}
.portfolio-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(15, 23, 42, 0.95) 0%,
    rgba(15, 23, 42, 0.4) 50%,
    transparent 80%
  );
  opacity: 0;
  transition: opacity 0.4s ease;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.5rem;
  border-radius: inherit;
}
.portfolio-card:hover .portfolio-overlay {
  opacity: 1;
}
.portfolio-card:hover img {
  transform: scale(1.08);
}

/* ============================================= */
/*  STATS COUNTER (PREMIUM)                       */
/* ============================================= */
.stat-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 2rem;
  padding: 3rem 1.5rem;
  text-align: center;
  transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.stat-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    circle at top right,
    var(--stat-color-glow, transparent),
    transparent 70%
  );
  opacity: 0;
  transition: opacity 0.5s ease;
  pointer-events: none;
}

.stat-card:hover {
  transform: translateY(-8px);
  border-color: var(--stat-color);
  box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.2);
}

.stat-card:hover::after {
  opacity: 0.15;
}

.stat-number {
  font-family: "Outfit", sans-serif;
  font-weight: 800;
  font-size: 3rem;
  line-height: 1;
  margin-bottom: 0.75rem;
  letter-spacing: -0.02em;
  color: var(--stat-color);
}

.stat-label {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.4);
  font-weight: 500;
  letter-spacing: 0.02em;
  text-transform: capitalize;
}

/* Specific Stat Colors */
.text-stat-indigo {
  --stat-color: #818cf8;
  --stat-color-glow: rgba(129, 140, 248, 0.3);
}
.text-stat-violet {
  --stat-color: #a78bfa;
  --stat-color-glow: rgba(167, 139, 250, 0.3);
}
.text-stat-pink {
  --stat-color: #f472b6;
  --stat-color-glow: rgba(244, 114, 182, 0.3);
}
.text-stat-cyan {
  --stat-color: #22d3ee;
  --stat-color-glow: rgba(34, 211, 238, 0.3);
}

@media (max-width: 768px) {
  .stat-number {
    font-size: 2.25rem;
  }
  .stat-card {
    padding: 2rem 1rem;
  }
}

/* ============================================= */
/*  TESTIMONIAL SLIDER                            */
/* ============================================= */
.testimonial-track {
  display: flex;
  transition: transform 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}
.testimonial-slide {
  min-width: 100%;
  padding: 0 1rem;
}

/* ============================================= */
/*  MARQUEE                                       */
/* ============================================= */
.marquee-track {
  display: flex;
  animation: marqueeScroll 30s linear infinite;
  width: max-content;
}
@keyframes marqueeScroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

/* === Premium Logo Glow === */
.logo-glow-wrapper {
  position: relative;
  transition: all 0.6s var(--modern-easing);
  z-index: 1;
}

.logo-glow-wrapper::after {
  content: "";
  position: absolute;
  inset: -15px;
  background: radial-gradient(circle at center, rgba(129, 140, 248, 0.2), transparent 75%);
  opacity: 0.4; /* Slight permanent glow */
  transition: all 0.6s ease;
  pointer-events: none;
  filter: blur(12px);
  z-index: -1;
}

.logo-glow-wrapper:hover::after {
  opacity: 1;
  background: radial-gradient(circle at center, rgba(129, 140, 248, 0.4), transparent 75%);
  inset: -25px;
}

.glow-icon {
  filter: drop-shadow(0 0 10px rgba(129, 140, 248, 0.2));
  opacity: 0.8; /* High base visibility */
  transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}

.logo-glow-wrapper:hover .glow-icon {
  filter: drop-shadow(0 0 20px rgba(129, 140, 248, 0.6)) brightness(1.2);
  opacity: 1;
  transform: scale(1.15) translateY(-5px);
}

/* ICT Global Specific Glow */
.ict-highlight-glow {
  border-color: rgba(129, 140, 248, 0.5) !important;
  background: rgba(129, 140, 248, 0.08) !important;
  box-shadow: 0 0 30px rgba(129, 140, 248, 0.2);
}

/* Updated Marquee for Right to Left */
.marquee-track-left {
  display: flex !important;
  flex-wrap: nowrap;
  animation: marqueeScrollLeft 35s linear infinite;
  width: max-content;
  will-change: transform;
}

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

@keyframes marqueeScrollLeft {
  0% {
    transform: translate3d(0, 0, 0);
  }
  100% {
    transform: translate3d(-50%, 0, 0);
  }
}

/* Mobile-specific adjustments for Marquee */
@media (max-width: 768px) {
  .marquee-track-left {
    gap: 1.5rem !important; /* Smaller gap on mobile */
    animation-duration: 25s; /* Slightly faster on small screens for visual momentum */
  }
  
  .ict-highlight-glow {
    padding: 0.75rem 1rem !important;
  }
  
  .ict-highlight-glow span {
    font-size: 11px;
  }
  
  .ict-highlight-glow img {
    height: 1.75rem !important;
  }
}

/* ============================================= */
/*  WHATSAPP FLOAT                                */
/* ============================================= */
.whatsapp-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 56px;
  height: 56px;
  background: #25d366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 25px rgba(37, 211, 102, 0.4);
  z-index: 1000;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
  animation: whatsappPulse 2s ease-in-out infinite;
}
.whatsapp-float:hover {
  transform: scale(1.15);
  box-shadow: 0 12px 35px rgba(37, 211, 102, 0.6);
}
@keyframes whatsappPulse {
  0%,
  100% {
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.4);
  }
  50% {
    box-shadow: 0 8px 40px rgba(37, 211, 102, 0.7);
  }
}

/* ============================================= */
/* === TESTIMONIALS === */
.testimonial-card {
  perspective: 1000px;
}
.testimonial-inner {
  transition: transform 0.8s;
  transform-style: preserve-3d;
}
.testimonial-card:hover .testimonial-inner {
  transform: scale(1.02) translateY(-5px);
}

/* === CLIENT LOGOS MARQUEE === */
.partner-logo {
  filter: grayscale(1);
  opacity: 0.35;
  transition: all 0.5s var(--modern-easing);
  cursor: pointer;
}
.partner-logo:hover {
  filter: grayscale(0);
  opacity: 1;
  transform: scale(1.15) translateY(-5px);
}
/* ============================================= */

/* === TESTIMONIAL SLIDER UPGRADE === */
.testimonial-viewport {
  overflow: hidden;
  margin: 0 -1rem;
  padding: 1rem;
  cursor: grab;
  position: relative;
}
.testimonial-viewport:active {
  cursor: grabbing;
}

.testimonial-track {
  display: flex;
  gap: 2rem;
  transition: transform 0.6s cubic-bezier(0.23, 1, 0.32, 1);
  will-change: transform;
}

/* Active Card Highlighting (Removed for Marquee) */
.testimonial-card-slide {
  min-width: 400px;
  max-width: 400px;
  flex-shrink: 0;
  transition: transform 0.4s ease;
}

@media (max-width: 768px) {
  .testimonial-card-slide {
    min-width: 320px;
    max-width: 320px;
  }
}

@media (max-width: 480px) {
  .testimonial-card-slide {
    min-width: 270px; /* Fits better on small phones like iPhone SE */
    max-width: 270px;
  }
  
  .testimonial-viewport {
    padding-left: 0.5rem;
    padding-right: 0.5rem;
  }
}


/* ============================================= */
/*  TECH LOGOS                                    */
/* ============================================= */
.tech-logo {
  transition:
    transform 0.35s ease,
    filter 0.35s ease,
    border-color 0.35s ease;
  filter: grayscale(80%) brightness(1.1);
}
.tech-logo:hover {
  transform: scale(1.1) translateY(-4px);
  filter: grayscale(0%) brightness(1);
  border-color: rgba(79, 70, 229, 0.2) !important;
}

/* ============================================= */
/*  CTA BANNER                                    */
/* ============================================= */
.cta-banner {
  position: relative;
  overflow: hidden;
  border-radius: 2rem;
}
.cta-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(79, 70, 229, 0.15),
    rgba(124, 58, 237, 0.08)
  );
  border-radius: inherit;
}

/* ============================================= */
/*  WHATSAPP CHATBOT WIDGET                       */
/* ============================================= */
@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(20px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}
@keyframes slideDown {
  from {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
  to {
    opacity: 0;
    transform: translateY(20px) scale(0.95);
  }
}
#wa-chat-window {
  transform-origin: bottom right;
}
#wa-chat-window.closing {
  animation: slideDown 0.25s ease forwards;
}
#wa-messages::-webkit-scrollbar {
  width: 4px;
}
#wa-messages::-webkit-scrollbar-track {
  background: transparent;
}
#wa-messages::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 4px;
}
.wa-msg-bot {
  animation: slideUp 0.3s ease forwards;
}
.wa-msg-user {
  animation: slideUp 0.2s ease forwards;
}
.wa-typing-indicator span {
  display: inline-block;
  width: 6px;
  height: 6px;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  margin: 0 1px;
  animation: typingBounce 1.4s infinite ease-in-out both;
}
.wa-typing-indicator span:nth-child(2) {
  animation-delay: 0.16s;
}
.wa-typing-indicator span:nth-child(3) {
  animation-delay: 0.32s;
}
@keyframes typingBounce {
  0%,
  80%,
  100% {
    transform: scale(0);
  }
  40% {
    transform: scale(1);
  }
}

/* ============================================= */
/*  KINETIC 3D HOVER ANIMATION                    */
/* ============================================= */
.kinetic-scene {
  perspective: 1500px;
}

/* Base Idle State: Heavy Tilt */
.kinetic-container {
  transform: rotateX(60deg) rotateZ(-40deg);
  transform-style: preserve-3d;
  transition: transform 0.8s cubic-bezier(0.23, 1, 0.32, 1);
  position: relative;
}

/* Hover State: Snap to 0-degree Frontal */
.kinetic-scene:hover .kinetic-container {
  transform: rotateX(0deg) rotateZ(0deg);
}

/* Phone sits ABOVE the orbital ring in 3D space */
.kinetic-phone {
  position: relative;
  z-index: 10;
  transform: translateZ(50px);
}

/* Orbital Track — pushed BEHIND phone in 3D space */
.kinetic-ring {
  transform-style: preserve-3d;
  transition: transform 0.8s cubic-bezier(0.23, 1, 0.32, 1);
  z-index: 1;
  transform: translateZ(-10px);
}
.kinetic-scene:hover .kinetic-ring {
  transform: translateZ(-10px) rotateZ(7200deg);
  /* 25s per revolution -> 7200deg over 500s */
  transition: transform 500s linear;
}

/* Individual Tool Placement */
.kinetic-icon-wrap {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 50px;
  height: 50px;
  margin-top: -25px;
  margin-left: -25px;
  transform: rotateZ(var(--angle)) translateY(-220px);
}

/* Tool Icon Optics */
.kinetic-icon {
  width: 100%;
  height: 100%;
  background: #020617;
  border: 1px solid rgba(99, 102, 241, 0.5);
  box-shadow: 0 0 15px rgba(99, 102, 241, 0.4);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.2rem;

  opacity: 0.2;

  /* Counter-rotate to keep icon upright */
  transform: rotateZ(calc(-1 * var(--angle)));
  transition:
    opacity 0.8s cubic-bezier(0.23, 1, 0.32, 1),
    transform 0.8s cubic-bezier(0.23, 1, 0.32, 1);
}

.kinetic-scene:hover .kinetic-icon {
  opacity: 1;
  /* Counter-rotate against orbital spin to stay upright */
  transform: rotateZ(calc(-7200deg - var(--angle)));
  transition:
    opacity 0.8s cubic-bezier(0.23, 1, 0.32, 1),
    transform 500s linear;
}

/* ==================== OUR CLIENTS CAROUSEL ==================== */
.logo-carousel-container {
  overflow: hidden;
  white-space: nowrap;
  padding: 2rem 0;
}

.logo-carousel-track {
  display: flex;
  width: max-content;
  animation: logo-scroll 40s linear infinite;
  will-change: transform;
}

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

@keyframes logo-scroll {
  from {
    transform: translate3d(0, 0, 0);
  }
  to {
    transform: translate3d(-50%, 0, 0);
  }
}

.logo-slide {
  display: flex;
  align-items: center;
  gap: 4rem;
}

.client-logo {
  display: flex;
  align-items: center;
  gap: 1rem;
  color: rgba(255, 255, 255, 0.15);
  font-family: "Outfit", sans-serif;
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: -0.01em;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: default;
  user-select: none;
  white-space: nowrap;
}

.client-logo i {
  font-size: 1.75rem;
  transition: inherit;
}

.client-logo:hover {
  color: white;
  transform: translateY(-3px);
  filter: drop-shadow(0 0 15px rgba(99, 102, 241, 0.4));
}

.client-logo:hover i {
  color: #6366f1;
}

@media (max-width: 1024px) {
  .logo-slide {
    gap: 3rem;
  }
  .client-logo {
    font-size: 1.1rem;
  }
}

@media (max-width: 768px) {
  .logo-carousel-track {
    animation-duration: 30s;
  }
  .logo-slide {
    gap: 2.5rem;
  }
  .client-logo {
    font-size: 1rem;
  }
  .client-logo i {
    font-size: 1.5rem;
  }
}

/* === Horizontal Logo Scroll Animation === */
@keyframes scroll-x {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}
.animate-scroll-x, .animate-scroll-x-partner {
  display: flex;
  min-width: 200%;
  animation: scroll-x var(--scroll-speed, 40s) linear infinite;
}
