/**
 * AMRIT ELECTRONICS - Etobicoke, ON, Canada
 * Custom Stylesheet & UI Animations
 * Website: https://www.theamritelectronics.com/
 */

/* ==========================================================================
   1. Root Variables & Theme Colors
   ========================================================================== */
:root {
  --color-brand-pure-white: #FFFFFF;
  --color-brand-light-bg: #F8FAFC;
  --color-brand-navy-text: #0F172A;
  --color-brand-body-text: #475569;
  --color-brand-gold: #B45309;
  --color-brand-gold-light: #D97706;
  --color-brand-gold-accent: #F59E0B;
  --color-brand-tech-blue: #0284C7;
  --color-brand-tech-blue-light: #0EA5E9;
  --color-brand-border-light: #E2E8F0;
  --color-brand-dark-bg: #0B1120;
}

/* ==========================================================================
   2. Smooth Scrollbar Customization
   ========================================================================== */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

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

::-webkit-scrollbar-thumb {
  background: #CBD5E1;
  border-radius: 4px;
  transition: background 0.2s ease-in-out;
}

::-webkit-scrollbar-thumb:hover {
  background: #B45309;
}

/* ==========================================================================
   3. Custom Hero Gradient & Lighting Effects
   ========================================================================== */
.hero-gradient {
  background: radial-gradient(circle at 85% 15%, rgba(217, 119, 6, 0.09) 0%, transparent 45%),
              radial-gradient(circle at 15% 85%, rgba(2, 132, 199, 0.08) 0%, transparent 50%),
              linear-gradient(180deg, #FFFFFF 0%, #F8FAFC 100%);
}

/* ==========================================================================
   4. Keyframe Animations
   ========================================================================== */
@keyframes floatSlow {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-8px);
  }
}

@keyframes floatSlowReverse {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(8px);
  }
}

@keyframes glowPulse {
  0%, 100% {
    opacity: 0.6;
    transform: scale(1);
  }
  50% {
    opacity: 1;
    transform: scale(1.04);
  }
}

.animate-float-slow {
  animation: floatSlow 4s ease-in-out infinite;
}

.animate-float-reverse {
  animation: floatSlowReverse 4.5s ease-in-out infinite;
}

.animate-glow-pulse {
  animation: glowPulse 3s ease-in-out infinite;
}

/* ==========================================================================
   5. Hero Slide Transitions
   ========================================================================== */
.hero-slide {
  display: none;
  opacity: 0;
  transition: opacity 0.5s ease-in-out, transform 0.5s ease-in-out;
  transform: scale(0.97);
}

.hero-slide.active-slide {
  display: block;
  opacity: 1;
  transform: scale(1);
}

/* ==========================================================================
   6. Category Cards & Interactive Hover Micro-Interactions
   ========================================================================== */
.category-card {
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.3s cubic-bezier(0.16, 1, 0.3, 1),
              border-color 0.3s ease;
}

.category-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 30px -10px rgba(15, 23, 42, 0.12),
              0 10px 15px -5px rgba(15, 23, 42, 0.06);
}

.category-card .product-img {
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.category-card:hover .product-img {
  transform: scale(1.06);
}

/* ==========================================================================
   7. Capability Cards Hover Effects
   ========================================================================== */
.capability-card {
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.25s cubic-bezier(0.16, 1, 0.3, 1),
              border-color 0.25s ease;
}

.capability-card:hover {
  transform: translateY(-4px);
}

/* ==========================================================================
   8. Modal Backdrops & Dialog Transitions
   ========================================================================== */
#inquiryModal:not(.hidden) {
  animation: fadeIn 0.2s ease-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* ==========================================================================
   9. Accessibility & Reduced Motion
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  *,
  ::before,
  ::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
