/* 
 * Enhanced styles for ChargePoint landing page 
 * This file contains additional styles beyond what Tailwind provides
 */

@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&family=Inter:wght@300;400;500;600;700;800&display=swap");

:root {
  --primary: #4f46e5;
  --primary-dark: #4338ca;
  --secondary: #06b6d4;
  --secondary-dark: #0891b2;
  --accent: #f97316;
  --accent-dark: #ea580c;
  --gradient-start: #4f46e5;
  --gradient-end: #06b6d4;
  --text-dark: #0f172a;
  --text-medium: #334155;
  --text-light: #64748b;
  --bg-light: #f8fafc;
  --bg-white: #ffffff;
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  --glass-bg: rgba(255, 255, 255, 0.7);
  --glass-border: rgba(255, 255, 255, 0.5);
  --glass-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.15);
}

body {
  font-family: "Inter", "Poppins", sans-serif;
  background-color: var(--bg-light);
  color: var(--text-dark);
  overflow-x: hidden;
  scroll-behavior: smooth;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Enhanced Gradients */
.gradient-bg-primary {
  background: linear-gradient(135deg, var(--gradient-start) 0%, var(--gradient-end) 100%);
  position: relative;
}

.gradient-bg-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTQ0MCIgaGVpZ2h0PSI3MjAiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGRlZnM+PGxpbmVhckdyYWRpZW50IHgxPSIwJSIgeTE9IjAlIiB4Mj0iMTAwJSIgeTI9IjEwMCUiIGlkPSJhIj48c3RvcCBzdG9wLWNvbG9yPSIjRkZGIiBzdG9wLW9wYWNpdHk9Ii4wNSIgb2Zmc2V0PSIwJSIvPjxzdG9wIHN0b3AtY29sb3I9IiNGRkYiIHN0b3Atb3BhY2l0eT0iLjA1IiBvZmZzZXQ9IjEwMCUiLz48L2xpbmVhckdyYWRpZW50PjwvZGVmcz48cGF0aCBkPSJNMCAwaDcyMHY3MjBIMHoiIGZpbGw9InVybCgjYSkiLz48cGF0aCBkPSJNNzIwIDBINzIwdjcyMEg3MjB6IiBmaWxsPSJ1cmwoI2EpIi8+PC9zdmc+');
  opacity: 0.1;
  z-index: 0;
}

.gradient-border {
  position: relative;
  border-radius: 0.75rem;
  padding: 0.25rem;
  background: linear-gradient(135deg, var(--gradient-start) 0%, var(--gradient-end) 100%);
}

.gradient-border > * {
  border-radius: 0.5rem;
  background: var(--bg-white);
}

/* Enhanced animations */
.charging-animation {
  position: relative;
  width: 120px;
  height: 120px;
}

.charging-animation::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 8px solid rgba(79, 70, 229, 0.2);
  border-radius: 50%;
  animation: pulse-slow 3s infinite;
}

.charging-animation::after {
  content: "";
  position: absolute;
  top: -5px;
  left: -5px;
  width: calc(100% + 10px);
  height: calc(100% + 10px);
  border: 2px solid rgba(79, 70, 229, 0.1);
  border-radius: 50%;
  animation: pulse-slow 3s infinite 1s;
}

@keyframes pulse-slow {
  0% {
    transform: scale(0.95);
    opacity: 0.7;
  }
  70% {
    transform: scale(1.1);
    opacity: 0.2;
  }
  100% {
    transform: scale(0.95);
    opacity: 0.7;
  }
}

/* Enhanced Lightning Animation */
.lightning-animation {
  position: relative;
}

.lightning-animation svg {
  animation: flash 2s infinite;
}

@keyframes flash {
  0%, 80%, 100% {
    opacity: 1;
    filter: drop-shadow(0 0 5px var(--primary));
  }
  40%, 60% {
    opacity: 0.5;
    filter: drop-shadow(0 0 15px var(--primary));
  }
}

/* Electric pulse animation */
.electric-pulse {
  position: relative;
  overflow: hidden;
}

.electric-pulse::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    to bottom right,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.3) 50%,
    rgba(255, 255, 255, 0) 100%
  );
  transform: rotate(45deg);
  animation: electric-pulse 3s infinite;
}

@keyframes electric-pulse {
  0% {
    transform: rotate(45deg) translateY(-100%);
  }
  100% {
    transform: rotate(45deg) translateY(100%);
  }
}

/* Enhanced Card Effects */
.feature-card {
  transition: all 0.3s ease;
  box-shadow: var(--shadow-md);
  border-top: 3px solid transparent;
  position: relative;
  z-index: 1;
  overflow: hidden;
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-top: 3px solid var(--primary);
}

.feature-card::before {
  content: '';
  position: absolute;
  z-index: -1;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(79, 70, 229, 0.05) 0%, rgba(6, 182, 212, 0.05) 100%);
  transform: scaleX(0);
  transform-origin: 0 50%;
  transition: transform 0.5s ease-out;
}

.feature-card:hover::before {
  transform: scaleX(1);
}

/* Floating Phone Animation */
.floating-phone {
  animation: floating 6s infinite ease-in-out;
  filter: drop-shadow(0 20px 25px rgba(0, 0, 0, 0.15));
  transition: all 0.3s ease;
}

.floating-phone:hover {
  filter: drop-shadow(0 25px 30px rgba(0, 0, 0, 0.2));
  transform: scale(1.02);
}

@keyframes floating {
  0%, 100% {
    transform: translateY(0) rotate(0deg);
  }
  25% {
    transform: translateY(-10px) rotate(1deg);
  }
  50% {
    transform: translateY(-15px) rotate(0deg);
  }
  75% {
    transform: translateY(-5px) rotate(-1deg);
  }
}

/* Enhanced progress bars */
.progress-bar {
  height: 10px;
  border-radius: 5px;
  background-color: #e2e8f0;
  overflow: hidden;
  position: relative;
}

.progress-bar::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(90deg, 
    rgba(255,255,255,0.1) 25%, 
    rgba(255,255,255,0.2) 50%, 
    rgba(255,255,255,0.1) 75%);
  background-size: 200% 100%;
  animation: progress-shine 2s infinite linear;
}

@keyframes progress-shine {
  to {
    background-position: 200% 0;
  }
}

.progress-fill {
  height: 100%;
  border-radius: 5px;
  background: linear-gradient(90deg, var(--primary) 0%, var(--secondary) 100%);
  transition: width 0.5s ease;
  position: relative;
  overflow: hidden;
}

/* Scrolling effect for the testimonials */
.scroller {
  max-width: 100%;
  overflow-x: auto;
  scrollbar-width: none; /* For Firefox */
}

.scroller::-webkit-scrollbar {
  display: none; /* For Chrome and other browsers */
}

/* Map marker pulse */
.map-marker {
  position: relative;
}

.map-marker::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 30px;
  height: 30px;
  background: rgba(59, 130, 246, 0.3);
  border-radius: 50%;
  animation: map-pulse 2s infinite;
}

@keyframes map-pulse {
  0% {
    transform: translate(-50%, -50%) scale(0.95);
    opacity: 0.7;
  }
  70% {
    transform: translate(-50%, -50%) scale(1.5);
    opacity: 0;
  }
  100% {
    transform: translate(-50%, -50%) scale(0.95);
    opacity: 0.7;
  }
}

/* Mobile menu animation */
.menu-transition {
  transition: all 0.3s ease-in-out;
}

/* Custom utility classes */
.text-gradient {
  background: linear-gradient(135deg, var(--gradient-start) 0%, var(--gradient-end) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Glass morphism effect */
.glass-effect {
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
  border-radius: 15px;
}

/* Subtle hover effect for buttons */
.btn-hover-effect {
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

.btn-hover-effect::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.1);
  transform: translateX(-100%);
  transition: transform 0.3s ease;
}

.btn-hover-effect:hover::before {
  transform: translateX(0);
}

/* Animated gradient border */
.gradient-border-animated {
  position: relative;
  border-radius: 10px;
  padding: 0.25rem;
  background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end), var(--accent), var(--gradient-start));
  background-size: 300% 300%;
  animation: gradient-shift 5s ease infinite;
}

.gradient-border-animated > * {
  border-radius: 8px;
  background: var(--bg-white);
}

@keyframes gradient-shift {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

/* Device mockups */
.device-mockup {
  border-radius: 2.5rem;
  box-shadow: var(--shadow-xl);
  overflow: hidden;
  position: relative;
  background: var(--bg-white);
  padding: 0.5rem;
}

.device-mockup::before {
  content: "";
  position: absolute;
  top: 0.5rem;
  width: 40%;
  height: 1.5rem;
  background: var(--text-dark);
  border-radius: 0 0 0.75rem 0.75rem;
  left: 50%;
  transform: translateX(-50%);
}

.device-inner {
  position: relative;
  border-radius: 2rem;
  overflow: hidden;
  background: var(--bg-white);
}

/* Custom animations for sections */
.fade-in-up {
  animation: fadeInUp 1s ease forwards;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.stagger-animation > * {
  opacity: 0;
  transform: translateY(20px);
}

.stagger-animation > *:nth-child(1) {
  animation: fadeInUp 0.5s 0.1s ease forwards;
}
.stagger-animation > *:nth-child(2) {
  animation: fadeInUp 0.5s 0.2s ease forwards;
}
.stagger-animation > *:nth-child(3) {
  animation: fadeInUp 0.5s 0.3s ease forwards;
}
.stagger-animation > *:nth-child(4) {
  animation: fadeInUp 0.5s 0.4s ease forwards;
}
.stagger-animation > *:nth-child(5) {
  animation: fadeInUp 0.5s 0.5s ease forwards;
}

/* Video section styling */
.video-container {
  position: relative;
  padding-top: 56.25%; /* 16:9 aspect ratio */
}

.video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 0.75rem;
}

/* Custom connectors visualization for pricing section */
.connector-icon {
  width: 40px;
  height: 40px;
  background: rgba(59, 130, 246, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
}

.connector-type {
  padding: 0.25rem 0.75rem;
  border-radius: 1rem;
  font-size: 0.75rem;
  font-weight: 600;
  background: rgba(59, 130, 246, 0.1);
  color: var(--primary);
}

/* Responsive adjustments */
@media (max-width: 640px) {
  .device-mockup {
    border-radius: 1.5rem;
    padding: 0.25rem;
  }
  
  .device-mockup::before {
    height: 0.8rem;
  }
  
  .device-inner {
    border-radius: 1.25rem;
  }
}
