:root {
  /* Fresh Green Accent */
  --primary: #2ecc71;
  --primary-dark: #27ae60;
  --primary-light: #a8e6cf;

  /* Clean Backgrounds */
  --bg-dark: #f5f5f5;
  --bg-light: #ffffff;

  /* Text Colors */
  --text-dark: #2c3e50;
  --text-light: #34495e;
  --muted: #7f8c8d;

  /* Subtle Gradient Background */
  --bg-gradient: linear-gradient(135deg, #f5f5f5, #e8f5e9);
}

/* ===========================
   Dark theme overrides
   =========================== */
[data-theme="dark"] {
  --primary: #4ade80;
  --primary-dark: #22c55e;
  --primary-light: #86efac;

  /* Dark Backgrounds */
  --bg-dark: #121212;
  --bg-light: #1e1e1e;

  /* Text Colors */
  --text-dark: #ffffff;
  --text-light: #e0e0e0;
  --muted: #a3a3a3;

  /* Dark Gradient Background */
  --bg-gradient: linear-gradient(135deg, #121212, #1e1e1e);

  /* Additional Dark Theme Overrides */
  .about-project {
    background: rgba(30, 30, 30, 0.95);
  }

  .feature,
  .feature-card,
  nav.nav-menu a,
  .social-link {
    background-color: var(--bg-dark);
    border-color: #333;
  }

  .social-link {
    background: var(--primary-dark);
  }

  .feature-icon {
    background: rgba(74, 222, 128, 0.2);
  }

  .feature-icon i {
    color: var(--primary);
  }

  .hero h1 {
    color: var(--text-light);
    font-weight: 600;
  }

  .quick button {
    background-color: var(--primary);
    border-color: var(--primary);
    color: #121212;
  }

  .quick button:hover {
    background-color: transparent;
    color: var(--primary);
  }

  footer {
    background: var(--bg-dark);
    color: var(--muted);
  }

  .map {
    border-color: var(--primary);
  }

  .theme-toggle {
    background: #252525;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  }

  .theme-toggle:hover {
    background: var(--primary);
    color: #121212;
  }

  /* Improve text contrast in dark mode */
  .about-content>p,
  .feature p,
  nav a {
    color: var(--text-light);
  }

  /* Adjust shadows for dark mode */
  .feature,
  .social-link {
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  }

  /* Navigation menu background in dark mode */
  nav.nav-menu {
    /* background: rgba(30, 30, 30, 0.98); */
  }
}

/* ===========================
   Base Resets & Global
   =========================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Outfit", sans-serif;
  color: var(--text-dark);
  line-height: 1.6;
  overflow-x: hidden;
  letter-spacing: 0.3px;
}

/* ===========================
   Animations
   =========================== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* ===========================
   Header / Navigation
   =========================== */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 5%;
  background: var(--bg-dark);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

header h1 {
  font-size: 2.8rem;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 2px;
}

.hamburger {
  display: none;
  /* Hide by default on desktop */
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--text-dark);
  transition: color 0.3s ease;
  background-color: var(--bg-light);
}

.hamburger:hover {
  color: var(--primary);
}

/* Nav toggle (mobile) */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.5rem;
  color: var(--text-dark);
  transition: color 0.3s ease;
}

.nav-toggle:hover {
  color: var(--primary);
}

nav {
  display: flex;
  flex-wrap: wrap;
  flex-direction: row;
  gap: 3rem;
  margin-left: auto;
}

nav a {
  color: var(--text-dark);
  text-decoration: none;
  transition: all 0.3s ease;
  font-weight: 500;
  position: relative;
  padding-bottom: 5px;
}

nav a:hover {
  color: var(--primary);
}

nav a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 0;
  left: 0;
  background-color: var(--primary);
  transition: width 0.3s ease;
}

nav a:hover::after {
  width: 100%;
}

/* Mobile nav-specific classes */
nav.nav-menu {
  /* desktop visible by default; mobile overrides below */
}

nav.nav-menu a {
  /* kept for dark theme override and mobile styling */
}

/* ===========================
   Theme Toggle (floating)
   =========================== */
.theme-toggle {
  cursor: pointer;
  font-size: 1.5rem;
  color: var(--text-dark);
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.3s ease;
  background: var(--bg-dark);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 999;
}

.theme-toggle:hover {
  background: var(--primary-light);
  color: var(--primary-dark);
  transform: rotate(15deg);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* ===========================
   Hero Section
   =========================== */
.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 6rem 2rem;
  background: url('https://images.unsplash.com/photo-1605559424843-4567c40a7c58?auto=format&fit=crop&w=1600&q=80') center/cover no-repeat;
  justify-content: center;
  position: relative;
  margin-top: 0;
  min-height: 80vh;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  background: var(--bg-dark);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  margin: 0 auto;
}

.hero h2 {
  font-family: "Outfit", sans-serif;
  font-size: 8rem;
  font-weight: 900;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
  position: relative;
  z-index: 1;

  /* Futuristic EV charging gradient */
 background: linear-gradient(
  30deg,
  #14532d,
  #22c55e,
  #86efac,
  #10b981,   /* replaced yellow with teal green */
  #064e3b
);
  background-size: 300% 300%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: gradientShift 6s ease infinite;
}

.hero h2::after {
  content: attr(data-text);
  position: absolute;
  left: 2px;
  top: 2px;
  z-index: -1;
  background: var(--text-dark);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  opacity: 0.1;
}

@keyframes gradientShift {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.hero p {
  max-width: 600px;
  color: var(--primary-dark);
  font-size: 1.4rem;
  font-weight: 700;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
}

.hero .title-cap {
  margin-top: 20px;
}

/* ===========================
   Quick Buttons
   =========================== */
.quick {
  justify-content: center;
  display: flex;
  gap: 20px;
  margin-top: 3rem;
  position: relative;
  z-index: 2;
}

.btn-wrapper {
  transform: translateY(0);
  transition: transform 0.3s ease;
}

.btn-wrapper:hover {
  transform: translateY(-5px);
}

.quick button {
  height: 5vh;
  min-width: 15vh;
  background-color: var(--primary);
  border: 2px solid var(--primary);
  color: white;
  border-radius: 30px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 0 2rem;
}

.quick button:hover {
  background-color: transparent;
  color: var(--primary);
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(46, 204, 113, 0.3);
}

/* ===========================
   About Project Section
   =========================== */
.about-project {
  padding: 8rem 5%;
  position: relative;
  overflow: hidden;
  background-color: var(--bg-dark);
}

.about-project .container {
  max-width: 1400px;
  margin: 0 auto;
  animation: scaleIn 0.8s ease-out;
}

.about-project::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: var(--bg-dark);
  pointer-events: none;
}

.about-content {
  text-align: center;
  max-width: 1000px;
  margin: 0 auto;
  opacity: 0;
  animation: fadeInUp 0.8s ease-out forwards;
  animation-delay: 0.2s;
}

.about-content p {
  font-size: 1.6rem;
  line-height: 1.8;
  color: var(--text-light);
  margin-bottom: 5rem;
  text-align: justify;
  text-wrap: wrap;
  padding: 0 2rem;
  opacity: 0;
  animation: fadeInUp 0.8s ease-out forwards;
  animation-delay: 0.4s;
}

/* ===========================
   Key Features Grid
   =========================== */
.key-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2.5rem;
  margin-top: 4rem;
  padding: 0 2rem;
  perspective: 1000px;
}

.feature {
  padding: 2rem;
  background: var(--bg-dark);
  border-radius: 20px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  border: 1px solid rgba(255, 255, 255, 0.18);
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.feature:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
}

.feature-icon {
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--primary-light);
  border-radius: 10px;
  padding: 1rem;
  margin-right: 1rem;
}

.feature-icon i {
  color: var(--primary);
  transition: all 0.3s ease;
  font-size: 2rem !important; /* moved icon sizing here (keeps same effect) */
}

.feature-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.feature-content h4 {
  margin-bottom: 0.5rem;
  color: var(--text-dark);
}

.feature-content p {
  margin: 0;
  color: var(--text-light);
  text-wrap: wrap;
}

.feature:nth-child(1) {
  animation-delay: 0.6s;
}

.feature:nth-child(2) {
  animation-delay: 0.8s;
}

.feature:nth-child(3) {
  animation-delay: 1s;
}

.feature:hover {
  transform: translateY(-5px) scale(1.03);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
}

.feature i {
  transition: all 0.3s ease;
}

.feature:hover .feature-icon i {
  transform: scale(1.1) rotate(5deg);
  color: var(--primary-dark);
}

.feature h4 {
  font-family: "Outfit", sans-serif;
  font-size: 1.4rem;
  color: var(--text-dark);
  margin-bottom: 1.2rem;
  font-weight: 600;
  transition: color 0.3s ease;
}

.feature:hover h4 {
  color: var(--primary);
}

.feature p {
  color: var(--text-light);
  text-align: left;
  word-break: normal;    /* keeps words intact */
  overflow-wrap: break-word; /* breaks only when needed */
  font-size: 1.1rem;
}

/* Feature icon color for dark theme (explicit) */
[data-theme="dark"] .feature-icon i {
  color: var(--primary) !important;
}

/* Ensure hover color consistency */
.feature:hover .feature-icon i {
  transform: scale(1.1);
  color: var(--primary-dark) !important;
}

/* ===========================
   About Section Title
   =========================== */
.aboutSection {
  padding: 4rem 5%;
  background-color: var(--bg-dark);
}

.section-title {
  font-family: "Outfit", sans-serif;
  font-size: 3.8rem;
  color: var(--text-dark);
  text-align: center;
  margin-bottom: 4rem;
  padding-top: 20px;
  position: relative;
  text-transform: uppercase;
  letter-spacing: 2px;
  opacity: 0;
  animation: scaleIn 0.8s ease-out forwards;
  background-color: var(--bg-dark);
}

/* ===========================
   Features Cards & Gallery
   =========================== */
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.feature-card {
  background: var(--bg-dark);
  padding: 1.5rem;
  border-radius: 8px;
  text-align: center;
  transition: transform 0.3s ease;
}

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

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

.gallery img {
  width: 100%;
  border-radius: 8px;
}

/* ===========================
   Footer
   =========================== */
footer {
  background-color: var(--bg-dark);
  text-align: center;
  padding: 1rem;
  font-size: 0.9rem;
  color: var(--muted);
  padding-top: 100px;
}

/* ===========================
   Map Section
   =========================== */
.map {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 75%;
  height: 60vh;
  max-width: 1200px;
  margin: auto;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: rgba(17, 17, 26, 0.05) 0px 1px 0px, rgba(17, 17, 26, 0.1) 0px 0px 8px;
  border: 1px solid black;
}

#map_3a4670564931cbf3dcff8c66617088f5 {
  width: 100%;
  height: 100%;
}

.leaflet-container {
  font-size: 1rem;
}

/* ===========================
   Feature Icons Styling (extra)
   =========================== */
   
.feature-icon i {
  font-size: 2rem !important;
  color: var(--primary) !important;
  transition: all 0.3s ease;
}

/* ===========================
   Responsive: Tablet / Medium / Mobile
   =========================== */
/* Tablet */
@media (max-width: 1024px) {
  .hero h2 {
    font-size: 4rem;
  }

  .hero p {
    font-size: 1.1rem;
  }
}

/* Medium Screens */
@media (max-width: 768px) {
  header {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
  }

  .nav-toggle {
    display: block;
    z-index: 100;
  }

  nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 70%;
    height: 100vh;
    background: var(--bg-dark);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    transition: right 0.3s ease;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    padding: 2rem;
    margin: 0;
  }

  nav.active {
    right: 0;
  }

  nav a {
    font-size: 1.2rem;
    width: 100%;
    text-align: center;
    padding: 1rem;
  }

  .hero {
    padding: 2.5rem 1rem;
    min-height: 70vh;
  }

  .hero h2 {
    font-size: 2.5rem;
    line-height: 1.2;
  }

  .hero p {
    font-size: 1rem;
    padding: 0 1rem;
  }

  .quick {
    flex-direction: column;
    gap: 15px;
    margin-top: 40px;
  }

  .quick button {
    width: 100%;
    max-width: 200px;
  }

  section {
    padding: 2rem 5%;
  }

  h3.section-title {
    font-size: 2rem;
  }

  .map {
    width: 100%;
    height: 45vh;
  }
}

/* Mobile */
/* Mobile and Tablet Navigation Styles */
@media (max-width: 768px) {
  .hamburger {
    display: block;
  }

  nav.nav-menu {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: transparent;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    z-index: 999;
  }

  nav.nav-menu.active {
    display: flex;
  }

  nav.nav-menu a {
    font-size: 1.2rem;
    padding: 1rem;
    width: 200px;
    text-align: center;
    border-radius: 8px;
    /* background: var(--bg-dark); */
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  }

  nav.nav-menu a:hover {
    /* background: var(--primary); */
    color: white;
  }

  nav.nav-menu a::after {
    display: none;
  }

  header {
    padding: 1rem;
  }

  header h1 {
    font-size: 2rem;
  }
}

@media (max-width: 480px) {
  .hero {
    min-height: 65vh;
    padding: 2rem 1rem;
  }

  .hero h2 {
    font-size: 2rem;
  }

  .hero p {
    font-size: 0.95rem;
  }

  nav.nav-menu a {
    width: 180px;
    font-size: 1.1rem;
  }

  .gallery {
    grid-template-columns: 1fr;
  }

  .map {
    height: 40vh;
    border-width: 1px;
  }
}
