* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  background: #0a0a0a;
  color: white;
  overflow-x: hidden;
}

/* ======================
   NAVBAR
====================== */

.navbar {
  position: fixed;
  top: 0;
  left: 0;

  width: 100%;
  height: 85px;

  padding: 0 8%;

  display: flex;
  justify-content: space-between;
  align-items: center;

  background: rgba(10, 10, 10, 0.95);

  backdrop-filter: blur(12px);

  z-index: 999;
}

.logo {
  font-size: 32px;
  font-weight: 800;
  color: #00d26a;
}

.nav-links {
  display: flex;
  gap: 30px;
}

.nav-links a {
  color: white;
  text-decoration: none;
  transition: 0.3s;
}

.nav-links a:hover,
.nav-links .active {
  color: #00d26a;
}

.search-box {
  display: flex;
  align-items: center;

  background: #151515;

  border-radius: 50px;
  overflow: hidden;
}

.search-box input {
  border: none;
  outline: none;

  background: transparent;
  color: white;

  width: 220px;

  padding: 12px 18px;
}

.search-box button {
  border: none;

  background: #00d26a;
  color: white;

  padding: 12px 18px;

  cursor: pointer;
}

/* ======================
   HERO
====================== */

.ev-hero {
  min-height: 85vh;

  margin-top: 85px;

  background:
    linear-gradient(rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0.85)),
    url("tesla-ev-charging-teaser.jpg");

  background-size: cover;
  background-position: center;

  display: flex;
  align-items: center;

  padding: 0 8%;
}

.hero-content {
  max-width: 800px;
}

.hero-tag {
  display: inline-block;

  background: #00d26a;

  padding: 12px 24px;

  border-radius: 50px;

  font-weight: 600;

  margin-bottom: 25px;
  transition: all 0.3s ease;
}

.hero-content h1 {
  font-size: 72px;
  line-height: 1.1;

  margin-bottom: 25px;
}

.hero-content p {
  color: #d1d5db;

  font-size: 20px;

  line-height: 1.9;

  max-width: 700px;
}

/* ======================
   SECTION TITLE
====================== */

.section-title {
  text-align: center;

  margin-bottom: 60px;
}

.section-title h2 {
  font-size: 48px;

  margin-bottom: 10px;
}

.section-title p {
  color: #94a3b8;
}

/* ======================
   FEATURED EV
====================== */

.featured-ev {
  padding: 100px 8%;

  display: grid;
  grid-template-columns: 1.3fr 1fr;

  gap: 40px;

  align-items: center;
}

.featured-image {
  overflow: hidden;

  border-radius: 30px;
}

.featured-image img {
  transition: 0.6s ease;
  width: 100%;
  height: 550px;

  object-fit: cover;

  border-radius: 30px;
}

.featured-ev:hover .featured-image img {
  transform: scale(1.05);
}

.featured-content {
  background: #111827;

  padding: 50px;

  border-radius: 30px;
}

.featured-content h2 {
  transition: 0.3s ease;
}

.featured-ev:hover h2 {
  color: #00e676;
}

.featured-content span {
  color: #00d26a;

  font-weight: 700;
}

.featured-content h2 {
  font-size: 42px;

  margin: 20px 0;

  line-height: 1.2;
}

.featured-content p {
  color: #cbd5e1;

  line-height: 1.8;

  margin-bottom: 25px;
}

.featured-content a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: white;
  transition: all 0.3s ease;
  text-decoration: none;
}

.featured-content a:hover {
  color: #00ff84;

  transform: translateX(8px);

  text-shadow: 0 0 12px rgba(0, 230, 118, 0.4);
}

/* ======================
   EV NEWS
====================== */

.ev-news {
  padding: 100px 8%;
}

.news-grid {
  display: grid;

  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));

  gap: 30px;
}

.news-card {
  background: #111827;

  border-radius: 25px;

  overflow: hidden;

  transition: 0.4s;
}

.news-card:hover {
  transform: translateY(-10px);

  box-shadow: 0 15px 35px rgba(0, 210, 106, 0.2);
}

.card-content h3 {
  transition: all 0.3s ease;
}

.news-card:hover h3 {
  color: #00e676;

  transform: translateX(5px);
}

.card-content p {
  transition: all 0.3s ease;
}

.news-card:hover p {
  color: white;

  transform: translateX(3px);
}

.card-content a {
  transition: all 0.3s ease;

  display: inline-block;
}

.news-card:hover a {
  color: #00ff84;

  transform: translateX(6px);
}

.news-card img {
  width: 100%;
  height: 250px;

  object-fit: cover;

  transition: 0.6s ease;
}

.news-card:hover img {
  transform: scale(1.08);

  filter: brightness(1.08);
}

.news-card img {
  transition:
    transform 0.6s ease,
    filter 0.6s ease;
}

.card-content {
  padding: 25px;
}

.card-content span {
  color: #00d26a;

  font-size: 13px;

  font-weight: 700;
}

.card-content h3 {
  margin: 15px 0;

  font-size: 24px;
}

.card-content p {
  color: #cbd5e1;

  margin-bottom: 20px;

  line-height: 1.8;
}

.card-content a {
  color: white;

  text-decoration: none;

  font-weight: 700;
}

/* ======================
   BRANDS
====================== */
.brand-card {
  background: #111827;

  padding: 40px;

  border-radius: 25px;

  transition: all 0.35s ease;

  border: 1px solid transparent;
}

.brand-card h3 {
  transition: all 0.35s ease;
}

.brand-card:hover {
  background: linear-gradient(135deg, rgba(0, 230, 118, 0.12), #111827);

  transform: translateY(-10px) scale(1.03);

  border: 1px solid #00e676;

  box-shadow:
    0 0 25px rgba(0, 230, 118, 0.35),
    0 0 50px rgba(0, 230, 118, 0.2);
}

.brand-card:hover h3 {
  color: #00ff84;

  text-shadow:
    0 0 10px rgba(0, 255, 132, 0.6),
    0 0 20px rgba(0, 255, 132, 0.3);
}

.brands-section,
.future-tech,
.comparison-section,
.charging-section {
  padding: 100px 8%;
}

.brand-grid,
.tech-grid,
.comparison-grid,
.charging-stats {
  display: grid;

  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));

  gap: 25px;
}

.brand-card,
.tech-card,
.compare-card,
.stat-card {
  background: #111827;

  padding: 40px;

  border-radius: 25px;

  transition: 0.4s;
}

.brand-card:hover,
.tech-card:hover,
.compare-card:hover,
.stat-card:hover {
  transform: translateY(-8px);

  box-shadow: 0 10px 30px rgba(0, 210, 106, 0.15);
}

.brand-card:hover h3 {
  color: #00e676;

  transform: scale(1.05);
}

.tech-card h3 {
  transition: 0.3s ease;
  margin-bottom: 15px;
}

.tech-card:hover h3 {
  color: #00e676;
}

.tech-card p {
  color: #cbd5e1;
  line-height: 1.8;
}

.compare-card {
  cursor: pointer;
  font-weight: 600;
  transition: all 0.3s ease;
}

.compare-card:hover {
  color: #00e676;

  transform: translateY(-8px) scale(1.02);
}

.stat-card {
  text-align: center;
}

.stat-card h3 {
  font-size: 48px;

  color: #00d26a;
  transition: 0.3s ease;
  margin-bottom: 10px;
}

.stat-card:hover h3 {
  transform: scale(1.1);

  text-shadow: 0 0 20px rgba(0, 230, 118, 0.5);
}

.stat-card p {
  color: #cbd5e1;
}

/* ======================
   NEWSLETTER
====================== */

.newsletter {
  padding: 100px 8%;

  text-align: center;
}

.newsletter h2 {
  font-size: 48px;

  margin-bottom: 15px;
}

.newsletter p {
  color: #94a3b8;

  margin-bottom: 30px;
}

.newsletter form {
  display: flex;
  justify-content: center;

  gap: 15px;

  flex-wrap: wrap;
}

.newsletter input {
  width: 450px;
  max-width: 100%;

  padding: 18px;

  border: none;
  outline: none;

  border-radius: 15px;
}

.newsletter button {
  border: none;

  background: #00d26a;

  color: white;

  padding: 18px 35px;

  border-radius: 15px;

  cursor: pointer;

  font-weight: 700;
  transition: all 0.3s ease;
}

.newsletter button:hover {
  transform: translateY(-4px);

  box-shadow: 0 0 25px rgba(0, 230, 118, 0.35);
}

/* ======================
   FOOTER
====================== */

footer {
  background: #050505;

  padding: 80px 8% 30px;
}

.footer-content {
  text-align: center;
}

.footer-content h2 {
  color: #00d26a;

  margin-bottom: 15px;
}

.footer-content p {
  color: #94a3b8;
}

.footer-links {
  display: flex;

  justify-content: center;

  gap: 30px;

  margin: 40px 0;

  flex-wrap: wrap;
}

.footer-links a {
  color: #cbd5e1;

  text-decoration: none;
}

.footer-links a:hover {
  color: #00d26a;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);

  margin-top: 40px;

  padding-top: 25px;

  text-align: center;

  color: #64748b;
}

/* ======================
   RESPONSIVE
====================== */

@media (max-width: 1000px) {
  .featured-ev {
    grid-template-columns: 1fr;
  }

  .hero-content h1 {
    font-size: 52px;
  }

  .featured-image img {
    height: 400px;
  }
}

@media (max-width: 768px) {
  .nav-links,
  .search-box {
    display: none;
  }

  .hero-content h1 {
    font-size: 38px;
  }

  .hero-content p {
    font-size: 16px;
  }

  .section-title h2 {
    font-size: 34px;
  }

  .featured-content h2 {
    font-size: 30px;
  }

  .newsletter h2 {
    font-size: 34px;
  }
}

.compare-link {
  text-decoration: none;

  color: inherit;

  display: block;
}

/* =========================
   EV SCROLLBAR
========================= */

::-webkit-scrollbar {
  width: 12px;
}

::-webkit-scrollbar-track {
  background: #0b1220;
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #00e676, #00c853);

  border-radius: 20px;

  border: 2px solid #0b1220;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #00ff84, #00e676);
}
