
/* Reset & Base Styles */
:root {
  --evbuggy-blue: #33C3F0;
  --evbuggy-darkblue: #0EA5E9;
  --evbuggy-orange: #F97316;
  --evbuggy-black: #1A1F2C;
  --evbuggy-red: #e63946;
  --evbuggy-green: #2a9d8f;
  --evbuggy-gray: #8E9196;
  --evbuggy-pink: #D946EF;
  --evbuggy-yellow: #f4a261;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
  line-height: 1.6;
  color: #333;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
}

ul {
  list-style: none;
}

a {
  text-decoration: none;
  color: inherit;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
}

.section-title {
  font-size: 2rem;
  margin-bottom: 1rem;
  text-align: center;
}

.section-description {
  font-size: 1.125rem;
  color: #666;
  max-width: 42rem;
  margin: 0 auto 2rem;
  text-align: center;
}

.gradient-text {
  background: linear-gradient(to right, var(--evbuggy-blue), var(--evbuggy-orange));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 1rem;
  border-radius: 0.375rem;
  font-weight: 500;
  transition: all 0.3s ease;
  cursor: pointer;
  font-size: 0.875rem;
  line-height: 1.5;
  white-space: nowrap;
}

.btn-primary {
  background-color: var(--evbuggy-blue);
  color: white;
  border: none;
}

.btn-primary:hover {
  background-color: var(--evbuggy-darkblue);
}

.btn-outline {
  background-color: transparent;
  border: 1px solid var(--evbuggy-blue);
  color: var(--evbuggy-blue);
}

.btn-outline:hover {
  background-color: rgba(51, 195, 240, 0.1);
}

.full-width {
  width: 100%;
}

/* Navigation */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background-color: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(8px);
  z-index: 50;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.navbar-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--evbuggy-blue);
  font-weight: 700;
  font-size: 1.25rem;
}

.car-icon {
  stroke: currentColor;
}

.zap-icon {
  stroke: var(--evbuggy-orange);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.nav-link {
  padding: 0.5rem 0.75rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: #555;
  transition: color 0.3s;
}

.nav-link:hover {
  color: var(--evbuggy-blue);
}

.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  color: #555;
}

.mobile-nav {
  display: none;
  flex-direction: column;
  padding: 0.5rem 1rem;
  background-color: white;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.mobile-nav .nav-link {
  padding: 0.75rem;
  border-bottom: 1px solid #eee;
}

.mobile-nav .btn {
  margin: 0.75rem 0;
}

@media (max-width: 768px) {
  .desktop-nav {
    display: none;
  }
  
  .mobile-menu-toggle {
    display: block;
  }
  
  .mobile-nav.active {
    display: flex;
  }
}

/* Hero Section */
.hero-section {
  padding-top: 4rem;
  overflow: hidden;
  position: relative;
}

.full-width-image {
  width: 100%;
  position: relative;
  margin-bottom: 2rem;
}

.gradient-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(51, 195, 240, 0.2), rgba(249, 115, 22, 0.2));
  filter: blur(50px);
  opacity: 0.3;
}

.image-container {
  display: flex;
  justify-content: center;
  align-items: center;
}

.vehicle-image {
  position: relative;
  z-index: 10;
  max-width: 100%;
  max-height: 50vh;
  animation: float 6s ease-in-out infinite;
}

.hero-content {
  text-align: center;
}

.hero-title {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  line-height: 1.2;
}

.title-with-icon {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.zap-animate {
  margin-left: 0.5rem;
  stroke: var(--evbuggy-orange);
  animation: pulse-gentle 3s ease-in-out infinite;
}

.hero-description {
  font-size: 1.125rem;
  color: #555;
  max-width: 42rem;
  margin: 0 auto 2rem;
}

.button-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  margin-bottom: 3rem;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  justify-items: center;
}

.feature-item {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.feature-item.span-two {
  grid-column: span 2;
}

.feature-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 9999px;
  margin-bottom: 0.5rem;
}

.blue-bg {
  background-color: rgba(51, 195, 240, 0.1);
  color: var(--evbuggy-blue);
}

.orange-bg {
  background-color: rgba(249, 115, 22, 0.1);
  color: var(--evbuggy-orange);
}

.green-bg {
  background-color: rgba(42, 157, 143, 0.1);
  color: var(--evbuggy-green);
}

.scroll-down {
  display: flex;
  justify-content: center;
  margin-top: 2rem;
  color: var(--evbuggy-blue);
  animation: bounce 2s infinite;
}

/* Features Section */
.features-section {
  padding: 3rem 0 4rem;
  background: linear-gradient(to bottom, white, #f9fafb);
}

.section-header {
  margin-bottom: 3rem;
}

.features-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

.feature-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.feature-icon-lg {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 9999px;
  margin-bottom: 1rem;
}

.feature-subtitle {
  color: #666;
  font-weight: 500;
  margin-bottom: 1rem;
}

.feature-text {
  color: #666;
  margin-bottom: 1rem;
}

.section-footer {
  margin-top: 4rem;
  text-align: center;
}

.tagline {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

/* Accessories Section */
.accessories-section {
  padding: 3rem 0 4rem;
  background-color: #f9fafb;
}

.accessories-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

.accessory-card {
  background-color: white;
  border-radius: 0.75rem;
  overflow: hidden;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  border: 0;
}

.accessory-image {
  height: 12rem;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.yellow-gradient {
  background: linear-gradient(to right, #f59e0b, #fbbf24);
}

.blue-gradient {
  background: linear-gradient(to right, #0ea5e9, #38bdf8);
}

.purple-gradient {
  background: linear-gradient(to right, #8b5cf6, #d946ef);
}

.accessory-content {
  padding: 1.5rem;
}

.accessory-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 1rem;
}

.price {
  font-size: 1.25rem;
  font-weight: 700;
}

.add-btn {
  padding: 0.5rem 0.75rem;
  font-size: 0.875rem;
}

/* Colors Section */
.colors-section {
  padding: 4rem 0;
}

.color-picker-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
}

.color-options {
  order: 2;
}

.color-option-group {
  margin-bottom: 2rem;
}

.option-subtitle {
  font-size: 0.875rem;
  color: #666;
  margin-bottom: 1rem;
}

.color-btns {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.color-btn {
  height: 4rem;
  border-radius: 0.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0.5rem;
  position: relative;
  border: none;
  cursor: pointer;
  transition: transform 0.3s;
}

.color-btn:hover {
  transform: scale(1.05);
}

.check-icon {
  position: absolute;
  top: 0.25rem;
  right: 0.25rem;
  background-color: white;
  color: var(--evbuggy-blue);
  border-radius: 9999px;
  font-size: 0.75rem;
  width: 1.25rem;
  height: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.color-name {
  font-size: 0.75rem;
  font-weight: 600;
  margin-top: auto;
}

.white-text {
  color: white;
}

.black-text {
  color: black;
}

.black-bg {
  background-color: var(--evbuggy-black);
}

.white-bg {
  background-color: white;
}

.border {
  border: 1px solid #ddd;
}

.rosewood-bg {
  background-color: #A52A2A;
}

.blue-bg {
  background-color: var(--evbuggy-blue);
}

.orange-bg {
  background-color: var(--evbuggy-orange);
}

.green-bg {
  background-color: var(--evbuggy-green);
}

.red-bg {
  background-color: var(--evbuggy-red);
}

.pink-bg {
  background-color: var(--evbuggy-pink);
}

.black-int-bg {
  background-color: #222;
}

.tan-bg {
  background-color: #D2B48C;
}

.red-int-bg {
  background-color: var(--evbuggy-red);
}

.configuration-summary {
  margin-top: 2rem;
}

.body-color-text {
  color: var(--evbuggy-blue);
  font-weight: 600;
}

.interior-color-text {
  color: var(--evbuggy-orange);
  font-weight: 600;
}

.color-preview {
  order: 1;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.preview-box {
  background-color: #f3f4f6;
  border-radius: 0.75rem;
  padding: 1rem;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.preview-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom right, rgba(51, 195, 240, 0.1), rgba(249, 115, 22, 0.1));
}

.exterior-preview, .interior-preview {
  max-width: 100%;
  max-height: 16rem;
  object-fit: contain;
  position: relative;
  z-index: 10;
}

/* Gallery Section */
.gallery-section {
  padding: 3rem 0 4rem;
  background: linear-gradient(to bottom, #f9fafb, white);
}

.main-image-container {
  position: relative;
  overflow: hidden;
  border-radius: 0.75rem;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  margin-bottom: 1.5rem;
}

.main-gallery-image {
  width: 100%;
  height: 50vh;
  object-fit: cover;
  display: none;
}

.main-gallery-image.current-image {
  display: block;
}

.image-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1rem;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
  color: white;
}

.gallery-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 9999px;
  background-color: rgba(255, 255, 255, 0.8);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color 0.3s;
}

.gallery-nav:hover {
  background-color: white;
}

.prev-btn {
  left: 1rem;
}

.next-btn {
  right: 1rem;
}

.gallery-dots {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.gallery-dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 9999px;
  background-color: #d1d5db;
  border: none;
  cursor: pointer;
  transition: all 0.3s;
}

.gallery-dot.active {
  width: 2rem;
  background-color: var(--evbuggy-blue);
}

.gallery-thumbs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(60px, 1fr));
  gap: 1rem;
}

.thumb-item {
  border-radius: 0.5rem;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.3s;
  aspect-ratio: 1/1;
}

.thumb-item.active {
  box-shadow: 0 0 0 2px var(--evbuggy-blue);
}

.thumb-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Footer */
.footer {
  background-color: #1f2937;
  color: white;
  padding: 4rem 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  font-size: 1.25rem;
  margin-bottom: 1rem;
}

.footer-text {
  color: #9ca3af;
  margin-bottom: 1.5rem;
}

.social-links {
  display: flex;
  gap: 1rem;
}

.social-link {
  color: #9ca3af;
  transition: color 0.3s;
}

.social-link:hover {
  color: white;
}

.footer-title {
  font-size: 1.125rem;
  margin-bottom: 1rem;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-links a {
  color: #9ca3af;
  transition: color 0.3s;
}

.footer-links a:hover {
  color: white;
}

.contact-list {
  margin-bottom: 1.5rem;
}

.contact-item {
  display: flex;
  gap: 0.5rem;
  align-items: flex-start;
  margin-bottom: 1rem;
  color: #9ca3af;
}

.contact-item svg {
  color: var(--evbuggy-blue);
  flex-shrink: 0;
  margin-top: 0.125rem;
}

.footer-divider {
  border-color: #374151;
  margin: 2rem 0;
}

.footer-bottom {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.5rem;
  color: #6b7280;
}

.footer-legal a {
  color: #9ca3af;
  transition: color 0.3s;
}

.footer-legal a:hover {
  color: white;
}

.mt-auto {
  margin-top: auto;
}

/* Media Queries */
@media (min-width: 640px) {
  .button-group {
    flex-direction: row;
    justify-content: center;
  }
  
  .hero-title {
    font-size: 3rem;
  }
  
  .btn {
    width: auto;
  }
  
  .color-btns {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (min-width: 768px) {
  .features-grid, 
  .accessories-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .feature-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .feature-item.span-two {
    grid-column: auto;
  }
  
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
  }
}

@media (min-width: 1024px) {
  .color-picker-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .color-options {
    order: 1;
  }
  
  .color-preview {
    order: 2;
  }
  
  .footer-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  
  .hero-title {
    font-size: 3.5rem;
  }
  
  .section-title {
    font-size: 2.5rem;
  }
}

/* Animations */
@keyframes float {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

@keyframes pulse-gentle {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.6;
  }
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-10px);
  }
  60% {
    transform: translateY(-5px);
  }
}
