/* Voltaro EV Charging - Custom Styles */
/* Theme extracted from Flutter app source */

:root {
  --primary: #1EC878;
  --primary-light: #3FD584;
  --secondary: #2196F3;
  --accent-gold: #FFD700;
  --bg-dark: #0D1625;
  --bg-card: #1A2332;
  --bg-input: #1E2A3B;
  --bg-nav: #0F1E33;
  --nav-border: #1E3A5A;
  --gradient-start: #0D1B3E;
  --gradient-mid: #1A1060;
  --gradient-end: #2D1B6B;
  --text-primary: #FFFFFF;
  --text-secondary: rgba(255, 255, 255, 0.7);
  --text-muted: rgba(255, 255, 255, 0.54);
  --success: #4CAF50;
  --warning: #FF6B00;
  --error: #FF6B6B;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Open Sans', sans-serif;
  background-color: var(--bg-dark);
  color: var(--text-primary);
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

/* Device Mockup Frame */
.device-frame {
  position: relative;
  width: 280px;
  max-width: 100%;
  margin: 0 auto;
  background: #111B2A;
  border-radius: 36px;
  padding: 10px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.5), 0 0 40px rgba(30, 200, 120, 0.08);
  border: 2px solid #2A3547;
}

.device-frame::before {
  content: '';
  position: absolute;
  top: 5px;
  left: 50%;
  transform: translateX(-50%);
  width: 72px;
  height: 4px;
  background: #2A3547;
  border-radius: 4px;
  z-index: 2;
}

.device-frame img {
  width: 100%;
  border-radius: 26px;
  display: block;
}

/* Screenshot Carousel */
.carousel-container {
  position: relative;
  max-width: 320px;
  margin: 0 auto;
}

.carousel-viewport {
  overflow: hidden;
  border-radius: 8px;
}

.carousel-track {
  display: flex;
  transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.carousel-slide {
  min-width: 100%;
  flex-shrink: 0;
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1px solid var(--nav-border);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: all 0.3s ease;
  font-size: 18px;
  line-height: 1;
}

.carousel-btn:hover {
  background: var(--primary);
  border-color: var(--primary);
}

.carousel-btn-prev { left: -20px; }
.carousel-btn-next { right: -20px; }

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 16px;
}

.carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--nav-border);
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
}

.carousel-dot.active {
  background: var(--primary);
  width: 24px;
  border-radius: 4px;
}

/* Lightbox */
.lightbox {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.95);
  z-index: 1000;
  justify-content: center;
  align-items: center;
  padding: 20px;
}

.lightbox.active { display: flex; }

.lightbox img {
  max-width: 90%;
  max-height: 90vh;
  border-radius: 16px;
  box-shadow: 0 0 60px rgba(30, 200, 120, 0.15);
  object-fit: contain;
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1px solid var(--nav-border);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 24px;
  z-index: 1001;
  transition: all 0.3s ease;
}

.lightbox-close:hover {
  background: var(--error);
  border-color: var(--error);
}

/* Buttons */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 32px;
  background: linear-gradient(135deg, var(--primary), #15A450);
  color: white;
  font-weight: 600;
  border-radius: 28px;
  text-decoration: none;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  font-family: 'Open Sans', sans-serif;
  font-size: 16px;
  text-align: center;
  line-height: 1.2;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(30, 200, 120, 0.4);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 32px;
  background: transparent;
  color: var(--primary);
  font-weight: 600;
  border-radius: 28px;
  text-decoration: none;
  transition: all 0.3s ease;
  border: 2px solid var(--primary);
  cursor: pointer;
  font-family: 'Open Sans', sans-serif;
  font-size: 16px;
  text-align: center;
  line-height: 1.2;
}

.btn-secondary:hover {
  background: rgba(30, 200, 120, 0.1);
  transform: translateY(-2px);
}

/* Glow effects */
.glow-green { box-shadow: 0 0 30px rgba(30, 200, 120, 0.2); }
.glow-text { text-shadow: 0 0 30px rgba(30, 200, 120, 0.4); }

/* Background decorations */
.bg-grid {
  background-image:
    linear-gradient(rgba(30, 200, 120, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(30, 200, 120, 0.03) 1px, transparent 1px);
  background-size: 40px 40px;
}

.bg-gradient-hero {
  background: linear-gradient(135deg, var(--gradient-start) 0%, var(--gradient-mid) 50%, var(--gradient-end) 100%);
}

.bg-gradient-section {
  background: linear-gradient(180deg, var(--bg-dark) 0%, #0A1220 50%, var(--bg-dark) 100%);
}

/* Privacy Accept Button */
.privacy-accept-btn {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9999;
  padding: 16px 56px;
  background: linear-gradient(135deg, var(--primary), #15A450);
  color: white;
  font-size: 18px;
  font-weight: 700;
  border: none;
  border-radius: 28px;
  cursor: pointer;
  box-shadow: 0 4px 24px rgba(30, 200, 120, 0.5);
  transition: all 0.3s ease;
  font-family: 'Open Sans', sans-serif;
}

.privacy-accept-btn:hover {
  transform: translateX(-50%) scale(1.05);
  box-shadow: 0 6px 30px rgba(30, 200, 120, 0.7);
}

/* Floating CTA */
.floating-cta {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 40;
  background: linear-gradient(to top, var(--bg-dark) 60%, transparent);
  padding: 24px 16px 16px;
  pointer-events: none;
}

.floating-cta > * { pointer-events: all; }

/* Image loading */
.img-blur { filter: blur(8px); transition: filter 0.4s ease; }
.img-clear { filter: blur(0); }

/* Form inputs */
.form-input {
  width: 100%;
  padding: 14px 18px;
  background: var(--bg-input);
  border: 1px solid var(--nav-border);
  border-radius: 12px;
  color: white;
  font-family: 'Open Sans', sans-serif;
  font-size: 15px;
  transition: all 0.3s ease;
  outline: none;
}

.form-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(30, 200, 120, 0.15);
}

.form-input::placeholder { color: var(--text-muted); }

/* Mobile menu */
#mobile-menu {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

#mobile-menu.open { max-height: 300px; }

/* Feature icon container */
.feature-icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 24px;
}

/* Scrollbar */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-dark); }
::-webkit-scrollbar-thumb { background: var(--nav-border); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--primary); }

/* Active nav link */
.nav-active { color: var(--primary) !important; }

/* Responsive */
@media (max-width: 768px) {
  .device-frame { width: 220px; }
  .carousel-container { max-width: 260px; }
  .carousel-btn-prev { left: -16px; }
  .carousel-btn-next { right: -16px; }
  .floating-cta { padding: 16px 12px 12px; }
  .btn-primary, .btn-secondary { padding: 12px 24px; font-size: 14px; }
}

@media (max-width: 480px) {
  .device-frame { width: 180px; }
  .carousel-container { max-width: 220px; }
  .carousel-btn { width: 34px; height: 34px; font-size: 14px; }
}

@media (orientation: landscape) and (max-height: 500px) {
  .device-frame { width: 150px; }
  .carousel-container { max-width: 200px; }
}
