/* ============================================================================
 * ABC IT SOLUTIONS - CUSTOM STYLES & ANIMATIONS
 * ============================================================================
 */

/* Root & Global Scroll Behavior */
html {
  scroll-behavior: smooth;
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  overflow-x: hidden;
  max-width: 100vw;
}

body {
  overflow-x: hidden;
  max-width: 100vw;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: #051021;
}
::-webkit-scrollbar-thumb {
  background: #004b93;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #1b5aa7;
}

/* Dot Grid Background Pattern */
.bg-grid-pattern {
  background-image: radial-gradient(rgba(0, 75, 147, 0.07) 1px, transparent 1px);
  background-size: 20px 20px;
}

/* Glowing Ambient Gradients */
.glow-blob {
  position: absolute;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(27, 90, 167, 0.15) 0%, rgba(27, 90, 167, 0) 70%);
  filter: blur(40px);
  z-index: 1;
  pointer-events: none;
}

/* Dynamic Hover Underline effect */
.nav-link-hover {
  position: relative;
}
.nav-link-hover::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: #004b93;
  transition: width 0.3s ease;
}
.nav-link-hover:hover::after {
  width: 100%;
}

/* Custom Card Layout styles */
.premium-card {
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.premium-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px -15px rgba(0, 75, 147, 0.12);
  border-color: rgba(0, 75, 147, 0.3);
}

/* Pulsing Center Icon for Spoke Graphic */
@keyframes centralPulse {
  0%, 100% { transform: translate(-50%, -50%) scale(1); box-shadow: 0 0 0 0 rgba(0, 75, 147, 0.4); }
  50% { transform: translate(-50%, -50%) scale(1.05); box-shadow: 0 0 20px 10px rgba(0, 75, 147, 0.15); }
}
.animate-central-pulse {
  animation: centralPulse 4s infinite ease-in-out;
}

/* Floating particle animation */
@keyframes floatUp {
  0% { transform: translateY(0px) rotate(0deg); opacity: 0.8; }
  50% { transform: translateY(-10px) rotate(3deg); opacity: 1; }
  100% { transform: translateY(0px) rotate(0deg); opacity: 0.8; }
}
.animate-float-slow {
  animation: floatUp 6s infinite ease-in-out;
}

/* Clean glass panels */
.glass-panel {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.5);
}

/* ============================================================================
 * MOBILE RESPONSIVE ENHANCEMENTS
 * ============================================================================ */

/* Touch friendly minimum tap target size */
button, a, select, input {
  touch-action: manipulation;
}

/* Smooth Accordion transition for mobile menu */
.mobile-sub-menu {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}
.mobile-sub-menu.open {
  max-height: 500px;
}

/* Mobile responsive scaling for Spoke wheel hero Graphic */
@media (max-width: 640px) {
  .spoke-wrapper {
    transform: scale(0.55);
    transform-origin: center center;
  }
}
@media (min-width: 641px) and (max-width: 768px) {
  .spoke-wrapper {
    transform: scale(0.8);
    transform-origin: center center;
  }
}

/* Fix text break & wrapping on ultra-small mobile screens (<360px) */
@media (max-width: 360px) {
  .text-xxs-responsive {
    font-size: 10px !important;
  }
  .px-xs-responsive {
    padding-left: 0.75rem !important;
    padding-right: 0.75rem !important;
  }
}
