/* ==========================================================================
   Leadest8 Custom Styles & Global Resets
   Architecture: Extracted per separation of concerns (rules/architecture.md)
   ========================================================================== */

html,
body {
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  overflow-x: hidden;
}

/* Custom subtle scrollbar */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: #f8fafc;
}

::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 9999px;
}

::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

/* Smooth dropdown transitions */
.nav-dropdown-menu {
  transition: opacity 0.15s cubic-bezier(0.16, 1, 0.3, 1), transform 0.15s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Subtle elevation hover utilities */
.hover-lift {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.hover-lift:hover {
  transform: translateY(-2px);
}

/* Infographic SVG connectors and glowing pulses */
.infographic-path {
  fill: none;
  stroke-linecap: round;
  transition: stroke 0.3s ease;
}

.flow-svg-path {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  will-change: stroke-dashoffset;
}

.flow-pulse-particle {
  filter: drop-shadow(0 0 6px rgba(99, 102, 241, 0.8));
}

@keyframes pulseGlow {
  0%, 100% {
    box-shadow: 0 0 15px rgba(99, 102, 241, 0.4), 0 0 30px rgba(168, 85, 247, 0.2);
  }
  50% {
    box-shadow: 0 0 25px rgba(99, 102, 241, 0.7), 0 0 50px rgba(168, 85, 247, 0.4);
  }
}

.hub-pulse-glow {
  animation: pulseGlow 3s ease-in-out infinite;
}

/* Central Solar Hub Breathing & Pulse Animation */
@keyframes coreBreathe {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 0 20px rgba(99, 102, 241, 0.45), 0 0 45px rgba(168, 85, 247, 0.25);
  }
  50% {
    transform: scale(1.045);
    box-shadow: 0 0 35px rgba(99, 102, 241, 0.8), 0 0 75px rgba(168, 85, 247, 0.5);
  }
}

.core-breathe {
  animation: coreBreathe 3.5s ease-in-out infinite;
}

/* 3D Flip Card System (rules/architecture.md & rules/design-system.md) */
.flip-card-perspective {
  perspective: 1200px;
}

.flip-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  will-change: transform;
}

.flip-card-front,
.flip-card-back {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  border-radius: 1.5rem;
  overflow: hidden;
}

.flip-card-back {
  transform: rotateY(180deg);
}

/* 3D Rolodex System (rules/architecture.md & rules/design-system.md) */
.rolodex-perspective {
  perspective: 1500px;
}

.rolodex-wrapper {
  position: relative;
  width: 100%;
  transform-style: preserve-3d;
}

.rolodex-card {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transform-origin: 50% 50%;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  will-change: transform, opacity;
}

/* Vertical Stacking Panels (For ISAs - rules/design-system.md) */
.panel-stack-card {
  will-change: transform, opacity;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  transform: translate3d(0, 0, 0);
}
