/* Trenovaxia - Premium Electric Bikes - Main Stylesheet */

/* Smooth scrolling */
html {
  scroll-behavior: smooth;
  font-size: 16px;
}

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

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

::-webkit-scrollbar-thumb {
  background: #32CD32;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #7CFC00;
}

/* Selection color */
::selection {
  background: rgba(50, 205, 50, 0.3);
  color: #fff;
}

/* Body lock for mobile menu */
body.menu-open {
  overflow: hidden;
}

/* Focus styles for accessibility */
*:focus-visible {
  outline: 2px solid #32CD32;
  outline-offset: 2px;
  border-radius: 4px;
}

/* Header scroll effect */
.header-scrolled {
  box-shadow: 0 4px 30px rgba(50, 205, 50, 0.1);
}

/* Energy pulse animation for buttons */
.energy-pulse {
  position: relative;
  overflow: hidden;
}

.energy-pulse::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: rgba(124, 252, 0, 0.3);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.6s ease, height 0.6s ease;
}

.energy-pulse:hover::after {
  width: 300px;
  height: 300px;
}

/* Card hover lift effect */
.card-hover {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

/* Gradient text effect */
.gradient-text {
  background: linear-gradient(135deg, #32CD32, #7CFC00, #90EE90);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Lime glow box */
.lime-glow-box {
  box-shadow: 0 0 30px rgba(50, 205, 50, 0.15),
              inset 0 0 30px rgba(50, 205, 50, 0.05);
}

/* Form input focus glow */
input:focus,
select:focus,
textarea:focus {
  box-shadow: 0 0 15px rgba(50, 205, 50, 0.15);
}

/* Form validation states */
input:invalid:not(:placeholder-shown),
textarea:invalid:not(:placeholder-shown) {
  border-color: rgba(239, 68, 68, 0.5);
}

input:valid:not(:placeholder-shown),
textarea:valid:not(:placeholder-shown) {
  border-color: rgba(50, 205, 50, 0.5);
}

/* Select dropdown styling */
select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24'%3E%3Cpath fill='%2332CD32' d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 20px;
  padding-right: 40px;
}

select option {
  background: #003300;
  color: #90EE90;
}

/* Shimmer animation for loading */
@keyframes shimmer {
  0% {
    background-position: -200% 0;
  }
  100% {
    background-position: 200% 0;
  }
}

.shimmer {
  background: linear-gradient(90deg, transparent, rgba(50, 205, 50, 0.1), transparent);
  background-size: 200% 100%;
  animation: shimmer 2s infinite;
}

/* Bike trail line animation */
@keyframes trailDraw {
  0% {
    stroke-dashoffset: 1000;
  }
  100% {
    stroke-dashoffset: 0;
  }
}

.trail-line {
  stroke-dasharray: 1000;
  stroke-dashoffset: 1000;
  animation: trailDraw 3s ease forwards;
}

/* Mobile menu animation */
#mobile-menu {
  opacity: 0;
  transition: opacity 0.3s ease;
}

#mobile-menu.active {
  opacity: 1;
}

#mobile-menu nav a {
  transform: translateY(20px);
  opacity: 0;
  transition: transform 0.4s ease, opacity 0.4s ease;
}

#mobile-menu.active nav a {
  transform: translateY(0);
  opacity: 1;
}

#mobile-menu.active nav a:nth-child(1) { transition-delay: 0.1s; }
#mobile-menu.active nav a:nth-child(2) { transition-delay: 0.15s; }
#mobile-menu.active nav a:nth-child(3) { transition-delay: 0.2s; }
#mobile-menu.active nav a:nth-child(4) { transition-delay: 0.25s; }
#mobile-menu.active nav a:nth-child(5) { transition-delay: 0.3s; }
#mobile-menu.active nav a:nth-child(6) { transition-delay: 0.35s; }

/* Cookie consent animation */
#cookie-consent {
  transform: translateY(20px);
  opacity: 0;
  transition: transform 0.4s ease, opacity 0.4s ease;
}

#cookie-consent.visible {
  transform: translateY(0);
  opacity: 1;
}

/* Scroll reveal animation */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive image containers */
img {
  max-width: 100%;
  height: auto;
}

/* Print styles */
@media print {
  header,
  #mobile-menu,
  #cookie-consent,
  footer {
    display: none;
  }

  body {
    background: white;
    color: black;
  }
}

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

  html {
    scroll-behavior: auto;
  }
}

/* High contrast mode */
@media (prefers-contrast: high) {
  .border-lime-primary\/20 {
    border-color: #32CD32;
  }
}
