@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

/* Custom CSS Variables */
:root {
  --primary-blue: #2563eb;
  --primary-purple: #7c3aed;
  --gradient-primary: linear-gradient(135deg, #2563eb 0%, #7c3aed 100%);
}

/* Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  transition: all 0.5s;
  font-family: "Poppins", sans-serif;
}

body {
  line-height: 1.6;
  color: #1f2937;
  overflow-x: hidden;
}

/* Smooth Scrolling */
html {
  scroll-behavior: smooth;
}




@keyframes gradientMove {
  0% {
    transform: translate(0, 0);
  }
  50% {
    transform: translate(30px, -20px);
  }
  100% {
    transform: translate(0, 0);
  }
}

@keyframes pulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

.loading-particle {
  animation: float 2s ease-in-out infinite;
}

.loading-gradient-1 {
  animation: gradientMove 8s ease-in-out infinite;
}

.loading-gradient-2 {
  animation: gradientMove 10s ease-in-out infinite reverse;
}

.logo-container {
  animation: pulse 2s ease-in-out infinite;
}

/* Floating Particles */
.particle {
  animation: float 3s ease-in-out infinite;
}

/* Gradient Circles Animation */
.gradient-circle-1 {
  animation: gradientMove 20s ease-in-out infinite;
}

.gradient-circle-2 {
  animation: gradientMove 25s ease-in-out infinite reverse;
}

.gradient-circle-3 {
  animation: gradientMove 30s ease-in-out infinite;
}

/* Button Styles */
.btn-primary {
  background: var(--gradient-primary);
  border: none;
  color: white;
  font-weight: 600;
  transition: all 0.3s ease;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(37, 99, 235, 0.3);
}

.btn-primary-lg {
  background: var(--gradient-primary);
  border: none;
  color: white;
  font-weight: 600;
  transition: all 0.3s ease;
  padding: 1rem 2rem;
  font-size: 1.125rem;
}

.btn-primary-lg:hover {
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 15px 35px rgba(37, 99, 235, 0.4);
}

.btn-outline-lg {
  border: 2px solid #d1d5db;
  background: transparent;
  color: #374151;
  font-weight: 600;
  transition: all 0.3s ease;
  padding: 1rem 2rem;
  font-size: 1.125rem;
}

.btn-outline-lg:hover {
  border-color: #9ca3af;
  color: #1f2937;
  transform: translateY(-2px) scale(1.05);
}

.btn-ghost {
  background: transparent;
  border: none;
  transition: all 0.3s ease;
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.1);
}

/* Card Hover Effects */
.feature-card {
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.feature-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.pricing-card {
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.pricing-card:hover {
  transform: translateY(-16px);
  box-shadow: 0 35px 60px -12px rgba(0, 0, 0, 0.3);
}

.testimonial-card {
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.testimonial-card:hover {
  transform: translateY(-8px) rotate(1deg);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

/* Dashboard Elements */
.dashboard-element {
  transition: all 0.3s ease;
}

.dashboard-element:hover {
  transform: scale(1.02);
}

.data-bar {
  transition: width 1.2s ease-out;
}

/* CTA Pulse Animation */
.cta-pulse {
  animation: pulse 2s ease-in-out infinite;
}

/* Mobile Menu Animation */
.mobile-menu-line {
  transition: all 0.3s ease;
}

.mobile-menu-open .mobile-menu-line:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-open .mobile-menu-line:nth-child(2) {
  opacity: 0;
}

.mobile-menu-open .mobile-menu-line:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -6px);
}

/* Glass Morphism Effects */
.glass-nav {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Responsive Design */
@media (max-width: 768px) {
  .hero-title {
    font-size: 2.5rem;
    line-height: 1.2;
  }

  .hero-subtitle {
    font-size: 1.125rem;
    margin-bottom: 2rem;
  }

  .hero-buttons {
    flex-direction: column;
    gap: 1rem;
  }

  .hero-buttons button {
    width: 100%;
    justify-content: center;
  }

  .feature-card {
    padding: 1.5rem;
  }

  .dashboard-mockup {
    padding: 1rem;
  }

  .dashboard-element {
    padding: 1rem;
  }

  .testimonial-card {
    padding: 1.5rem;
  }

  .pricing-card {
    padding: 1.5rem;
  }

  /* Navigation improvements */
  .nav-link span {
    display: none;
  }

  /* Section spacing */
  section {
    padding: 3rem 1.5rem;
  }

  /* Text sizing */
  h2 {
    font-size: 2rem !important;
  }

  h3 {
    font-size: 1.25rem !important;
  }

  /* Grid adjustments */
  .grid {
    gap: 1rem;
  }
}

@media (max-width: 640px) {
  .hero-title {
    font-size: 2rem;
  }

  .hero-subtitle {
    font-size: 1rem;
  }

  .dashboard-mockup {
    padding: 0.75rem;
  }

  .dashboard-element {
    padding: 0.75rem;
  }

  .data-bar {
    width: 60px;
  }

  /* Testimonial adjustments */
  .testimonial-card img {
    width: 2.5rem;
    height: 2.5rem;
  }

  /* Button adjustments */
  .btn-primary-lg,
  .btn-outline-lg {
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
  }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

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

::-webkit-scrollbar-thumb {
  background: var(--gradient-primary);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(135deg, #1d4ed8 0%, #6d28d9 100%);
}

/* Utility Classes */
.text-gradient {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.shadow-glow {
  box-shadow: 0 0 30px rgba(37, 99, 235, 0.3);
}

/* Animation Classes */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease;
}

.fade-in.animate {
  opacity: 1;
  transform: translateY(0);
}

.slide-in-left {
  opacity: 0;
  transform: translateX(-50px);
  transition: all 0.6s ease;
}

.slide-in-left.animate {
  opacity: 1;
  transform: translateX(0);
}

.scale-in {
  opacity: 0;
  transform: scale(0.8);
  transition: all 0.6s ease;
}

.scale-in.animate {
  opacity: 1;
  transform: scale(1);
}

/* ECU Section Specific Styles */
.ecu-feature {
  transition: all 0.3s ease;
}

.ecu-feature:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.ecu-status {
  transition: all 0.3s ease;
}

.ecu-status:hover {
  transform: scale(1.05);
  background: rgba(255, 255, 255, 0.15);
}

.ecu-stat {
  transition: all 0.3s ease;
}

.ecu-stat:hover {
  transform: translateY(-4px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

/* ECU Status Indicators */
@keyframes pulse-ecu {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

.ecu-status .animate-pulse {
  animation: pulse-ecu 2s ease-in-out infinite;
}

/* Enhanced Dashboard Responsiveness */
.dashboard-mockup {
  overflow-x: auto;
}

.dashboard-element h3 {
  font-size: clamp(0.875rem, 2vw, 1rem);
}

.dashboard-element .text-3xl {
  font-size: clamp(1.5rem, 4vw, 1.875rem);
}

/* Performance Metrics Responsive */
.data-bar {
  min-width: 60px;
  transition: width 1.2s ease-out;
}

@media (min-width: 768px) {
  .data-bar {
    min-width: 128px;
  }
}

/* Testimonial Enhancements */
.testimonial-card img {
  transition: all 0.3s ease;
}

.testimonial-card:hover img {
  transform: scale(1.1);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.testimonial-card .absolute {
  transition: all 0.3s ease;
}

.testimonial-card:hover .absolute {
  transform: scale(1.2);
}

/* Grid Improvements */
@media (max-width: 1024px) {
  .lg\:grid-cols-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .md\:grid-cols-2 {
    grid-template-columns: repeat(1, minmax(0, 1fr));
  }

  .md\:grid-cols-3 {
    grid-template-columns: repeat(1, minmax(0, 1fr));
  }

  .md\:grid-cols-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Enhanced Button Styles */
.btn-primary-lg,
.btn-outline-lg {
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

/* Loading Screen Mobile Improvements */
@media (max-width: 768px) {
  .loading-gradient-1,
  .loading-gradient-2 {
    width: 200px;
    height: 200px;
  }

  .progress-container {
    width: 280px;
  }

  .logo-container h1 {
    font-size: 2rem;
  }

  .logo-container p {
    font-size: 0.875rem;
  }
}

/* Accessibility Improvements */
@media (prefers-reduced-motion: reduce) {
  .ecu-status .animate-pulse,
  .loading-particle,
  .particle,
  .gradient-circle-1,
  .gradient-circle-2,
  .gradient-circle-3 {
    animation: none;
  }
}

/* Focus States */
button:focus,
a:focus {
  outline: 2px solid #3b82f6;
  outline-offset: 2px;
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
  .bg-white\/10 {
    background-color: rgba(255, 255, 255, 0.2);
  }

  .border-white\/20 {
    border-color: rgba(255, 255, 255, 0.4);
  }
}
