/* ===================================================================
   Table of Contents
   ===================================================================
   1. General & Theme
   2. Buttons
   3. Navbar
   4. Search Modal & Results
   5. Hero Slider Section
   6. Page Sections (Solutions, Use Cases, Services, Brands, Stats)
   7. Product Page & Cards
   8. Product Detail Page
   9. Footer
   10. Responsive Media Queries
   =================================================================== */

/* --- 1. General & Theme --- */
body {
  font-family: "Poppins", sans-serif;
  background-color: #121212;
  color: #e0e0e0;
}

.section-padding {
  padding: 80px 0;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 600;
  color: #ffffff;
}

.main-header {
  font-size: 40px;
}

.text-accent {
  color: #29bf07 !important;
}

.bg-accent {
  background-color: #29bf07 !important;
}

.bg-deep-dark {
  background-color: #0d0d0d;
}

/* --- 2. Buttons --- */
.btn-primary-green {
  background-color: #29bf07;
  border-color: #29bf07;
  color: #121212;
  padding: 10px 25px;
  border-radius: 50px;
  transition: all 0.3s ease;
  font-size: 16px;
  font-weight: 600;
}

.btn-primary-green:hover {
  background-color: #23a506;
  border-color: #23a506;
  color: #121212;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(41, 191, 7, 0.2);
}

.btn-outline-green {
  border: 2px solid #29bf07;
  color: #29bf07;
  padding: 8px 25px;
  border-radius: 50px;
  transition: all 0.3s ease;
  font-size: 16px;
  font-weight: 600;
}

.btn-outline-green:hover {
  background-color: #29bf07;
  border-color: #29bf07;
  color: #121212;
}

/* --- 3. Navbar --- */
.navbar {
  transition: background-color 0.3s;
  background-color: rgba(18, 18, 18, 0.8) !important;
  backdrop-filter: blur(10px);
  padding: 0.75rem 0;
}

.navbar-brand {
  font-weight: 700;
  font-size: 1.5rem;
}

.navbar-nav.mx-auto {
  gap: 1rem; /* Adds spacing between nav items */
}

.nav-link {
  font-weight: 600;
  color: #ffffff !important;
  transition: color 0.3s;
}

.nav-link:hover,
.nav-link.active {
  color: #29bf07 !important;
}

.nav-link .badge {
  font-size: 0.6em;
  padding: 0.3em 0.5em;
}

/* --- 4. Search Modal & Results --- */
.modal.fade .modal-dialog {
  transform: translate(0, -50px);
  transition: transform 0.3s ease-out;
}

.modal.show .modal-dialog {
  transform: none;
}

.modal-content.bg-deep-dark {
  background-color: rgba(18, 18, 18, 0.95);
  backdrop-filter: blur(10px);
}

.search-input {
  background-color: transparent;
  border: none;
  border-bottom: 2px solid #555;
  border-radius: 0;
  color: #fff;
  padding: 1rem 1.5rem;
  transition: border-color 0.3s ease;
}

.search-input:focus {
  background-color: transparent;
  color: #fff;
  box-shadow: none;
  border-color: #29bf07;
}

.search-icon-span {
  background-color: transparent;
  border: none;
  border-bottom: 2px solid #555;
  color: #888;
  border-radius: 0;
}

#searchResults {
  max-height: 60vh;
  overflow-y: auto;
}

.search-result-item {
  display: flex;
  align-items: center;
  padding: 1rem;
  background-color: #1e1e1e;
  border: 1px solid #2a2a2a;
  border-radius: 8px;
  margin-bottom: 0.75rem;
  text-decoration: none;
  color: #e0e0e0;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.search-result-item:hover {
  background-color: #2a2a2a;
  transform: translateY(-2px);
  color: #fff;
}

.search-result-img {
  width: 60px;
  height: 60px;
  object-fit: contain;
  border-radius: 4px;
  margin-right: 1rem;
  background-color: #2c2c2c;
}

.search-result-details {
  flex-grow: 1;
}

.search-result-details h5 {
  font-size: 1.1rem;
  font-weight: 600;
}

.search-result-item .badge {
  margin-left: 1rem;
  flex-shrink: 0;
}

/* --- 5. Hero Slider Section --- */
.hero-section {
  height: 100vh;
}

.hero-section .carousel,
.hero-section .carousel-inner,
.hero-section .carousel-item {
  height: 100%;
}

.carousel-item {
  background-size: cover;
  background-position: center center;
  position: relative;
  color: #fff;
}
.slide-1 {
  background-image: url("../images/EV-Cover-for-Techno.jpg");
}

.slide-2 {
  background-image: url("../images/hero-background-3.jpg");
}
.slide-3 {
  background-image: url("../images/hero-background-1.jpg");
}
.slide-4 {
  background-image: url("../images/hero-background-2.jpg");
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.2);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  color: #fff;
}

.carousel-indicators [data-bs-target] {
  background-color: #ffffff;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  margin: 0 8px;
  opacity: 0.5;
  border: none;
  transition: opacity 0.3s ease;
}

.carousel-indicators .active {
  opacity: 1;
  background-color: #29bf07;
}

/* --- 6. Page Sections --- */
/* Shared Card Style */
.card {
  background-color: transparent;
  border: 1px solid #29bf074a;
  transition: transform 0.3s, box-shadow 0.3s;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.4);
}

.card-title {
  color: #fff;
  font-size: 18px;
}

/* Solutions Section */
.solution-item .icon {
  font-size: 2rem;
  color: #29bf07;
  margin-bottom: 1rem;
}

/* Use Cases Grid */
.use-case-box {
  background-color: #1e1e1e;
  padding: 2rem 1rem;
  text-align: center;
  border-radius: 8px;
  border-bottom: 3px solid transparent;
  transition: all 0.3s ease;
}

.use-case-box:hover {
  transform: translateY(-5px);
  border-bottom-color: #29bf07;
}

.use-case-box i {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: #29bf07;
}

/* Service Cards Section */
.service-card {
  border-bottom: 3px solid transparent;
}

.service-card:hover {
  border-bottom-color: #29bf07;
}

/* Brand Carousel Section */
.brand-logo img {
  max-height: 100px;
  opacity: 0.7;
  transition: all 0.3s ease;
}

.brand-logo img:hover {
  filter: grayscale(0%) brightness(1);
  opacity: 1;
  transform: scale(1.1);
}

/* Stats Counter Section */
.stats-section {
  background: url("../images/stats-bg.jpg") no-repeat center center/cover;
  position: relative;
}

.stats-overlay {
  background-color: rgba(18, 18, 18, 0.9);
  padding: 80px 0;
}

.stats-item h2 {
  font-size: 3.5rem;
  font-weight: 700;
  color: #29bf07;
}

/* --- 7. Product Page & Cards --- */
.product-card {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.product-card .card-img-top {
  height: 300px;
  object-fit: contain;
  background-color: transparent;
}

.product-card .card-body {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.product-card .card-title {
  flex-grow: 1;
}

.product-card .brand-logo {
  max-width: 120px;
}

.product-badge {
  position: absolute;
  top: 15px;
  left: 15px;
  background-color: #29bf07 !important;
  color: #121212;
  font-weight: 600;
  z-index: 2;
}

/* --- 8. Product Detail Page --- */
.brand-logo-detail {
  max-height: 40px;
  width: auto;
  opacity: 0.8;
}

.product-info-list {
  font-size: 1rem;
}

.product-info-list li {
  margin-bottom: 1.25rem;
  display: flex;
  align-items: flex-start;
}

.product-info-list .fas {
  font-size: 1.25rem;
  width: 30px;
  margin-right: 15px;
  margin-top: 5px;
  color: #29bf07;
}

.product-info-list strong {
  display: block;
  color: #fff;
}

.product-info-list span {
  color: #a0a0a0;
}

/* Specifications Grid */
.spec-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem 2rem;
  border-top: 1px solid #333;
  padding-top: 1.5rem;
}

.spec-item {
  display: flex;
  align-items: flex-start;
}

.spec-item .icon {
  font-size: 1.5rem;
  color: #29bf07;
  margin-right: 15px;
  width: 30px;
  text-align: center;
  margin-top: 4px;
}

.spec-item .spec-content strong {
  display: block;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 4px;
}

.spec-item .spec-content span {
  color: #a0a0a0;
}

/* Custom Tabs */
.nav-tabs-custom {
  border-bottom: 2px solid #3a3a3a;
}

.nav-tabs-custom .nav-item .nav-link {
  background-color: transparent;
  border: none;
  color: #a0a0a0;
  font-weight: 600;
  padding: 1rem 1.5rem;
  border-bottom: 2px solid transparent;
  transition: color 0.3s, border-color 0.3s;
}

.nav-tabs-custom .nav-item .nav-link:hover {
  color: #fff;
}

.nav-tabs-custom .nav-item .nav-link.active {
  color: #29bf07;
  border-bottom-color: #29bf07;
}

.tab-content-custom {
  padding: 2rem 0;
}

/* --- 9. Footer --- */
.footer-section {
  background-color: #0d0d0d;
  border-top: 1px solid #2a2a2a;
}
.footer-link {
  text-decoration: none;
  color: #a0a0a0;
  transition: all 0.3s ease;
  padding: 4px 0;
  display: inline-block;
}
.footer-link:hover {
  color: #29bf07;
  transform: translateX(5px);
}

/* Social Icons in Footer */
.social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  font-size: 1.1rem;
  color: #a0a0a0;
  border: 1px solid #3a3a3a;
  border-radius: 50%;
  text-decoration: none;
  transition: all 0.3s ease;
  margin-right: 10px;
}
.social-icon:hover {
  background-color: #29bf07;
  border-color: #29bf07;
  color: #121212 !important;
  transform: translateY(-3px);
}

/* Newsletter Form in Footer */
.newsletter-form .form-control {
  background-color: #1e1e1e;
  border: 1px solid #3a3a3a;
  color: #fff;
  border-radius: 50px 0 0 50px;
}
.newsletter-form .form-control:focus {
  background-color: #1e1e1e;
  color: #fff;
  border-color: #29bf07;
  box-shadow: 0 0 0 0.25rem rgba(41, 191, 7, 0.25);
}
.newsletter-form .btn {
  border-radius: 0 50px 50px 0;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}

/* --- 10. Responsive Media Queries --- */
@media (max-width: 991.98px) {
  .navbar-nav.mx-auto {
    gap: 0;
    text-align: center;
    padding-top: 1rem;
  }
}

@media (max-width: 768px) {
  .spec-grid {
    grid-template-columns: 1fr;
  }
}

.display-3 {
  margin-top: 150px;
}
/* --- ADD THESE STYLES TO YOUR style.css FILE --- */

/* ===================================================================
   About Page Specific Styles
   =================================================================== */

/* --- UPDATE THIS SECTION IN your style.css FILE --- */

/* --- UPDATE THIS SECTION IN your style.css FILE --- */

/* Mission & Objective Section */
.mission-objective-item {
  display: flex;
  align-items: center; /* This is crucial for vertical alignment */
  gap: 2rem; /* Controls the space between the icon and the text */
}

.mission-icon {
  font-size: 3rem; /* Makes the icon larger to match the design */
  color: #29bf07; /* Your brand's accent color */
  flex-shrink: 0; /* Prevents the icon from shrinking */
  width: 65px; /* Gives the icon a fixed width for consistent alignment */
  text-align: center;
}

.mission-text .display-6 {
  font-weight: 600;
  margin-bottom: 1rem;
  font-size: 2rem; /* Adjust heading size if necessary */
}

.mission-text .lead {
  font-size: 1rem;
  line-height: 1.7;
}

/* Responsive adjustment for smaller screens */
@media (max-width: 576px) {
  .mission-objective-item {
    flex-direction: column; /* Stack icon on top of text */
    text-align: center;
    gap: 1.5rem;
  }
}

/* Core Values Section */
.value-box {
  background-color: #1e1e1e; /* Darker box color */
  padding: 2.5rem 2rem;
  text-align: center;
  border-radius: 8px;
  height: 100%;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.value-box:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.4);
}

.value-box i {
  font-size: 2.5rem;
  color: #29bf07;
  margin-bottom: 1.5rem;
}

.value-box h5 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: #ffffff;
}
/* --- ADD THESE STYLES TO YOUR style.css FILE --- */
/* --- REPLACE THE OLD TECHNICAL PAGE STYLES WITH THIS --- */

/* ===================================================================
   Technical Page Specific Styles
   =================================================================== */

/* Removes the header background image */
.technical-hero-bg {
  background-image: none;
}

/* Styles for each entry with text and an image */
.technical-entry {
  padding: 2.5rem 0;
  border-bottom: 1px solid #2a2a2a; /* Creates the separator line */
}
/* Removes the line from the last entry in a section */
.technical-entry:last-of-type {
  border-bottom: none;
}

.technical-entry h4 {
  margin-bottom: 1rem;
  font-weight: 600;
}

/* Custom list style with green check marks */
.info-list {
  list-style: none;
  padding-left: 0;
}

.info-list li {
  padding-left: 2rem;
  position: relative;
  margin-bottom: 1rem;
  color: #a0a0a0;
}

.info-list li::before {
  content: "\f00c"; /* Font Awesome check icon */
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  color: #29bf07; /* Accent color */
  position: absolute;
  left: 0;
  top: 5px;
}

.info-list li strong {
  color: #ffffff;
}
/* --- ADD THESE STYLES TO YOUR style.css FILE --- */

/* ===================================================================
   Support Page Specific Styles
   =================================================================== */

.support-hero-bg {
  /* IMPORTANT: Create and add a background image for the support page header */
  background-image: none;
}

/* FAQ Accordion Styling */
.faq-accordion .accordion-item {
  background-color: #1e1e1e;
  border: 1px solid #2a2a2a;
  margin-bottom: 1rem;
  border-radius: 8px !important;
  overflow: hidden; /* Ensures the border-radius is respected */
}

.faq-accordion .accordion-header {
  margin: 0;
}

.faq-accordion .accordion-button {
  background-color: #1e1e1e;
  color: #ffffff;
  font-weight: 600;
  font-size: 1.1rem;
  padding: 1.5rem;
  border: none;
}

.faq-accordion .accordion-button:not(.collapsed) {
  background-color: #2a2a2a;
  color: #29bf07; /* Accent color when open */
  box-shadow: none;
}

.faq-accordion .accordion-button:focus {
  box-shadow: none;
  border: none;
}

.faq-accordion .accordion-body {
  background-color: #121212;
  color: #a0a0a0;
  padding: 1.5rem;
  border-top: 1px solid #2a2a2a;
}

/* Custom Accordion Icon */
.faq-accordion .accordion-button::after {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23ffffff'%3e%3cpath fill-rule='evenodd' d='M8 4a.5.5 0 0 1 .5.5v3h3a.5.5 0 0 1 0 1h-3v3a.5.5 0 0 1-1 0v-3h-3a.5.5 0 0 1 0-1h3v-3A.5.5 0 0 1 8 4z'/%3e%3c/svg%3e");
  transition: transform 0.3s ease;
}
.faq-accordion .accordion-button:not(.collapsed)::after {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%2329bf07'%3e%3cpath fill-rule='evenodd' d='M4 8a.5.5 0 0 1 .5-.5h7a.5.5 0 0 1 0 1h-7A.5.5 0 0 1 4 8z'/%3e%3c/svg%3e");
  transform: rotate(-180deg);
}

/* Support Form Styling */
.form-control,
.form-select {
  background-color: #1e1e1e;
  border: 1px solid #3a3a3a;
  color: #ffffff;
}
.form-control:focus,
.form-select:focus {
  background-color: #1e1e1e;
  border-color: #29bf07;
  color: #ffffff;
  box-shadow: 0 0 0 0.25rem rgba(41, 191, 7, 0.25);
}
.form-floating > label {
  color: #a0a0a0;
}
/* --- ADD THESE STYLES TO YOUR style.css FILE --- */

/* ===================================================================
   Services Page Specific Styles
   =================================================================== */

/* --- REPLACE THE OLD SERVICES PAGE STYLES WITH THIS --- */

/* ===================================================================
   Services Page Specific Styles
   =================================================================== */

/* Removes the header background image to match the clean design */
.services-hero-bg {
  background-image: none;
}

/* This class is now shared with the Technical page for consistency */
/* It creates the line separator between sections */
.technical-entry {
  padding: 2.5rem 0;
  border-bottom: 1px solid #2a2a2a;
}
.technical-entry:last-of-type {
  border-bottom: none;
}

/* For the "Our Process" section */
.process-step-number {
  width: 60px;
  height: 60px;
  line-height: 60px;
  border-radius: 50%;
  background-color: #29bf07;
  color: #121212;
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0 auto 1.5rem auto;
}

/* ===================================================================
   Contact Page Specific Styles
   =================================================================== */

.contact-hero-bg {
  /* IMPORTANT: Create and add a background image for the contact page header */
  background-image: url("../images/contact-hero-bg.jpg");
}

/* Contact Info Boxes */
.contact-info-box {
  background-color: #1e1e1e;
  padding: 2.5rem;
  text-align: center;
  border-radius: 8px;
  height: 100%;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.contact-info-box:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.4);
}

.contact-info-box .icon {
  font-size: 2.5rem;
  color: #29bf07;
  margin-bottom: 1.5rem;
}

/* Map Container */
.map-container {
  border-radius: 8px;
  overflow: hidden; /* This makes the iframe corners rounded */
  line-height: 0; /* Fixes potential small gap under iframe */
  border: 1px solid #2a2a2a;
}
/* ===================================================================
   15. Events Page Styles
   =================================================================== */

/* --- Image Gallery Item --- */
.gallery-item {
  overflow: hidden;
  border-radius: 8px;
  display: block;
  position: relative;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.gallery-item img {
  transition: transform 0.4s ease;
}

.gallery-item:hover img {
  transform: scale(1.1);
}

.gallery-item .overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.8) 0%,
    rgba(0, 0, 0, 0) 60%
  );
  display: flex;
  align-items: flex-end;
  justify-content: center;
  opacity: 1;
  transition: opacity 0.3s ease;
}

.gallery-item .overlay .icon {
  font-size: 2rem;
  color: #ffffff;
  transform: translateY(50px);
  opacity: 0;
  transition: all 0.3s ease;
  padding-bottom: 1rem;
}

.gallery-item:hover .overlay .icon {
  transform: translateY(0);
  opacity: 1;
}

/* --- Past Events List --- */
.past-event-item {
  padding: 1.5rem 0;
  border-bottom: 1px solid #2a2a2a;
  transition: background-color 0.2s ease;
}
.past-event-item:last-child {
  border-bottom: none;
}
.past-event-item:hover {
  background-color: rgba(41, 191, 7, 0.05);
}
/* ===================================================================
   11. Animations & Enhancements
   =================================================================== */

/* --- Hero Slider Content Animation --- */
.animate__delay-1s {
  animation-delay: 0.5s;
}

.animate__delay-2s {
  animation-delay: 1s;
}

/* Base class for animations */
.animate__animated {
  animation-duration: 0.8s;
  animation-fill-mode: both;
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translate3d(0, -40px, 0);
  }

  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

.animate__fadeInDown {
  animation-name: fadeInDown;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translate3d(0, 40px, 0);
  }

  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

.animate__fadeInUp {
  animation-name: fadeInUp;
}

/* --- Hero Section Vertical Centering --- */
.hero-section .container,
.hero-section .hero-content {
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* Remove the old margin-top fix */
.display-3 {
  margin-top: 0;
}

/* --- Brand Carousel Styles (Replaces Marquee) --- */
#brandsCarousel .carousel-item .row {
  /* Give the carousel a consistent height for vertical alignment */
  min-height: 120px;
}

.brand-carousel-img {
  max-height: 120px;
  /* Control the max logo height */
  width: auto;
  /* Maintain aspect ratio */
  opacity: 0.7;
  transition: all 0.3s ease-in-out;
  padding: 15px;
  /* Add some space around logos */
}

.brand-carousel-img:hover {
  opacity: 1;
  transform: scale(1.1);
}

/* Style the carousel controls to be more visible on a light background */
#brandsCarousel .carousel-control-prev,
#brandsCarousel .carousel-control-next {
  width: 5%;
  /* Make controls less intrusive on the logos */
}

#brandsCarousel .carousel-control-prev-icon,
#brandsCarousel .carousel-control-next-icon {
  border-radius: 50%;
  padding: 20px;
  background-size: 50% 50%;
  /* Make the arrow icon inside smaller */
}
