/* Google Font */
body {
  font-family: "Poppins", sans-serif;
}

/* Color Variables */
:root {
  --primary-green: #8cc63f;
  --light-green: #a4e74a;
  --dark-bg: #000000;
  --light-text: #feffff;
}

/* Helper Class */
.text-primary-green {
  color: var(--primary-green) !important;
}

/* Bootstrap Component Overrides */
.btn-primary {
  background-color: var(--primary-green);
  border-color: var(--primary-green);
}

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

.btn-outline-primary {
  color: var(--primary-green);
  border-color: var(--primary-green);
}

.btn-outline-primary:hover {
  background-color: var(--primary-green);
  color: var(--light-text);
}

.navbar-dark .nav-item .nav-link.active {
  color: var(--primary-green);
  font-weight: 500;
}

/* Hero Carousel Styling */
#heroCarousel .carousel-item {
  height: 70vh; /* Adjust height as needed */
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  position: relative;
}

/* Dark overlay for each slide for better text readability */
#heroCarousel .carousel-item::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
}

/* Styling the caption text */
#heroCarousel .carousel-caption {
  /* Vertically and horizontally center the caption */
  top: 50%;
  transform: translateY(-50%);
  bottom: auto;
  text-align: center;
  width: 80%;
  left: 10%;
}

#heroCarousel .carousel-caption h1 {
  font-weight: 700;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7);
}

#heroCarousel .carousel-caption p {
  text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.7);
}

/* Product Card Styling */
.product-card {
  height: 100%;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1) !important;
}

.product-card .card-img-top {
  height: 350px; /* Increased image height */
  object-fit: cover; /* This is important! It prevents images from stretching */
}
/*
========================================
Footer Styling
========================================
*/
.footer-section {
  background: #212529; /* A slightly softer black */
  color: #a0a0a0;
  padding-top: 70px; /* More spacing */
}

.footer-logo img {
  max-width: 150px;
  margin-bottom: 25px;
  /* Removed white background for better integration */
}

.footer-text p {
  font-size: 14px;
  line-height: 1.7; /* Better readability */
}

.footer-widget h5 {
  color: #fff; /* Brighter heading color */
  font-weight: 600;
  font-size: 18px;
  margin-bottom: 30px;
  position: relative;
}

.footer-widget h5::before {
  content: "";
  position: absolute;
  left: 0;
  bottom: -12px;
  height: 2px;
  width: 50px;
  background: var(--primary-green);
}

.footer-links {
  padding-left: 0;
  list-style: none;
}

.footer-links li {
  margin-bottom: 12px;
}

.footer-links a {
  color: #a0a0a0;
  text-decoration: none;
  transition: all 0.3s ease;
  display: inline-block; /* Needed for transform */
}

.footer-links a:hover {
  color: var(--primary-green);
  transform: translateX(5px); /* Adds a nice hover effect */
}

/* === NEW: Styling for Contact Info List === */
.footer-contact-info {
  list-style: none;
  padding-left: 0;
}
.footer-contact-info li {
  display: flex; /* This is the key for alignment */
  align-items: flex-start; /* Aligns icon to the top of the text */
  margin-bottom: 20px;
}
.footer-contact-info .icon {
  flex-shrink: 0; /* Prevents icon from shrinking */
  width: 35px;
  font-size: 18px;
  color: var(--primary-green);
}
.footer-contact-info .text {
  font-size: 15px;
  line-height: 1.6;
}
/* === END NEW === */

.copyright-area {
  background: #000000;
  padding: 25px 0;
  margin-top: 40px;
}

.copyright-area p {
  margin: 0;
  font-size: 14px;
  color: #878787;
}

/* === NEW: Styling for Social Media Icons === */
.footer-social-icon a {
  color: #878787;
  font-size: 16px;
  margin-left: 15px;
  transition: all 0.3s ease;
  width: 40px; /* Set a fixed size */
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%; /* Make it a circle */
  border: 1px solid #444; /* Add a subtle border */
  text-decoration: none;
}

.footer-social-icon a:hover {
  color: #fff;
  background-color: var(--primary-green);
  border-color: var(--primary-green);
  transform: translateY(-3px); /* Add a slight lift effect */
}

/*
========================================
Preloader Styling (Static Car Charging Animation)
========================================
*/
#preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background-color: #212529;
  z-index: 99999;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: opacity 0.75s ease, visibility 0.75s ease;
}

.charging-scene {
  position: relative;
  width: 300px;
  height: 150px;
}

.station {
  width: 25px;
  height: 60px;
  background: #6c757d;
  border-radius: 5px;
  position: absolute;
  left: 0;
  bottom: 25px;
}

/* Blinking indicator light on the station */
.station::before {
  content: "";
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 8px;
  height: 8px;
  background-color: var(--primary-green);
  border-radius: 50%;
  box-shadow: 0 0 5px var(--light-green);
  animation: blink 1.5s infinite;
}

.car-silhouette {
  width: 160px;
  height: 50px;
  background: #a0a0a0;
  border-radius: 20px 25px 8px 8px;
  position: absolute;
  right: 0;
  bottom: 0;
  animation: carPulse 1.5s infinite;
}

/* Car's cabin/window */
.car-silhouette::before {
  content: "";
  position: absolute;
  top: -15px;
  left: 35px;
  width: 80px;
  height: 30px;
  background: #495057;
  border-radius: 10px 10px 0 0;
}

/* Car's wheels (drawn as part of the silhouette) */
.car-silhouette::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 15px;
  width: 25px;
  height: 10px;
  background: #212529; /* Same as background to "cut out" wheel wells */
  border-radius: 0 0 10px 10px;
  box-shadow: 100px 0 0 #212529; /* Creates the second wheel well */
}

/* The curved charging cable */
.cable {
  width: 120px;
  height: 50px;
  position: absolute;
  left: 25px;
  bottom: 30px;
  border: 4px solid #444;
  border-top: none;
  border-right: none;
  border-radius: 0 0 0 35px; /* Creates the curve */
  overflow: hidden;
}

/* The green "energy" flowing through the cable */
.cable::before {
  content: "";
  position: absolute;
  top: -10px;
  left: -10px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--primary-green);
  filter: blur(5px);
  animation: flowEnergy 1.5s infinite linear;
}

.loader-text {
  font-family: "Poppins", sans-serif;
  font-size: 3.5rem;
  font-weight: 700;
  color: #fff;
  position: absolute;
  bottom: -70px;
  width: 100%;
  text-align: center;
}

/* --- Animations --- */
@keyframes blink {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.3;
  }
}

@keyframes flowEnergy {
  0% {
    transform: translate(0, 0);
  }
  30% {
    transform: translate(0, 50px);
  }
  70% {
    transform: translate(120px, 50px);
  }
  100% {
    transform: translate(120px, 0);
  }
}

@keyframes carPulse {
  0%,
  100% {
    box-shadow: none;
  }
  90% {
    box-shadow: 0 0 15px -2px var(--light-green);
  }
}

/* This class is added by JS to hide the preloader */
#preloader.loader-hidden {
  opacity: 0;
  visibility: hidden;
}
.connector-img {
  width: 120px;
  height: auto;
  background-color: #ffffff; /* A clean white background */
  border-radius: 8px;
  padding: 10px;
  border: 1px solid #dee2e6; /* A subtle border */
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05); /* A subtle shadow */
}
