:root {
  --c1: #7cc91f;
  --c2: #39b74b;
  --c3: #1dad65;
  --c4: #0870e8;
  --white: #ffffff;
}

/* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: Arial, sans-serif;
}

body {
  background: var(--white);
  color: var(--c4);
}

/* ----------------- NAVBAR ----------------- */
/* ----------------- PILL NAVBAR ----------------- */
.navbar-container {
  position: fixed;
  top: 20px;
  left: 0;
  width: 100%;
  display: flex;
  justify-content: center;
  z-index: 1000;
  padding: 0 20px;
}

.navbar {
  width: auto; /* Shrink to fit content */
  min-width: 650px; /* Ensures enough space for links */
  height: 50px;
  display: flex; /* Changed from grid to flex for better pill alignment */
  align-items: center;
  justify-content: space-between;
  padding: 0 35px;
  background: rgba(255, 255, 255, 0.95); /* Slight transparency */
  -webkit-backdrop-filter: blur(10px); /* Safari support */
  backdrop-filter: blur(10px); /* Glass effect */
  border-radius: 50px; /* The Pill Shape */
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.logo img {
  height: 45px; /* Scaled down for the smaller pill bar */
  width: auto;
  scale: calc(150%);
}

/* KEEPING YOUR EXACT LINK HOVER LOGIC */
.nav-center {
  list-style: none;
  display: flex;
  gap: 30px;
  margin: 0 20px;
}

.nav-center a {
  text-decoration: none;
  color: var(--c4);
  font-weight: 600;
  font-size: 0.95rem;
  transition: color 0.3s;
}

.nav-center a:hover {
  color: var(--c2); /* Your original hover color */
}

/* Adjust Dropdown position for the Pill Bar */
.dropdown {
  position: absolute;
  top: 50px; /* Adjusted slightly higher for the pill bar */
  left: 50%;
  transform: translateX(-50%) translateY(15px);
  width: 500px;
  background: var(--white);
  padding: 20px;
  border-radius: 20px;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
  display: flex;
  gap: 20px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

/* MOBILE FIX FOR PILL */
@media (max-width: 992px) {
  .navbar {
    width: 100%;
    min-width: unset;
    border-radius: 15px; /* Square off slightly on mobile */
  }

  .navbar-container {
    top: 10px;
  }
}

/* NAV LINKS CENTER */
.nav-center {
  list-style: none;
  display: flex;
  gap: 40px;
  justify-content: center;
}

.nav-center li {
  position: relative;
}

.nav-center a {
  text-decoration: none;
  color: var(--c4);
  font-weight: 600;
  transition: color 0.3s;
}

.nav-center a:hover {
  color: var(--c2);
}

/* DESKTOP DROPDOWN */
.dropdown {
  position: absolute;
  top: 55px;
  left: 50%;
  transform: translateX(-50%) translateY(15px);
  width: 550px;
  background: var(--white);
  padding: 25px;
  border-radius: 12px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
  display: flex;
  gap: 25px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.has-dropdown:hover .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}
.dropdown ul {
  list-style-type: none;
}
.dropdown ul li {
  padding-top: 15px;
}

.dropdown img.desktop-img {
  width: 180px;
  height: 140px;
  border-radius: 10px;
  object-fit: cover;
}

/* NAV ITEM FLEX */
.nav-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.mobile-arrow {
  display: none;
  font-size: 20px;
  cursor: pointer;
  font-weight: bold;
  margin-left: 5px;
}

/* MENU TOGGLE */
.menu-toggle {
  display: none;
  font-size: 26px;
  cursor: pointer;
  color: var(--c4);
}

/* ----------------- MOBILE ----------------- */
@media (max-width: 768px) {
  .navbar {
    display: flex;
    justify-content: space-between;
    padding: 0 20px;
  }

  .nav-center {
    position: absolute;
    top: 70px;
    left: 0;
    width: 100%;
    background: var(--white);
    flex-direction: column;
    gap: 20px;
    padding: 25px 20px;
    display: none;
    z-index: 99;
  }

  .nav-center.active {
    display: flex;
  }

  .mobile-arrow {
    display: block;
  }

  /* MOBILE DROPDOWN: text-only */
  .has-dropdown:hover .dropdown {
    opacity: 1;
    visibility: visible;
    transform: none;
  }

  .dropdown {
    position: relative;
    width: 100%;
    padding: 0;
    box-shadow: none;
    display: none;
    flex-direction: column;
    gap: 10px;
  }

  .dropdown.active {
    display: flex;
  }

  .dropdown img.desktop-img {
    display: none; /* hide images on mobile */
  }

  .dropdown ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding-left: 0;
  }

  .dropdown ul li a {
    color: var(--c4);
    font-weight: 500;
    padding: 10px 0;
    display: block;
    transition: color 0.3s;
  }

  .dropdown ul li a:hover {
    color: var(--c2);
  }

  .menu-toggle {
    display: block;
  }
}
/* ================= HOW TO CHARGE ================= */

.how-charge {
  background: var(--white);
  padding: 100px 8%;
}

.section-title {
  text-align: center;
  font-size: 40px;
  color: var(--c4);
  margin-bottom: 50px;
}

.charge-tabs {
  display: flex;
  justify-content: center;
  gap: 40px;
  margin-bottom: 60px;
  flex-wrap: wrap;
}

.tab-btn {
  background: none;
  border: none;
  font-size: 18px;
  font-weight: 600;
  cursor: pointer;
  color: var(--c3);
  padding-bottom: 8px;
  border-bottom: 2px solid transparent;
  transition: 0.3s;
}

.tab-btn.active {
  color: var(--c4);
  border-bottom: 2px solid var(--c1);
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
}

.step {
  display: flex;
  align-items: center;
  gap: 40px;
  margin-bottom: 70px;
}

.step img {
  width: 320px;
  border-radius: 20px;
  object-fit: cover;
}

.step h4 {
  color: var(--c1);
  margin-bottom: 10px;
}

.step h3 {
  font-size: 24px;
  color: var(--c4);
  margin-bottom: 10px;
}

.step p {
  color: var(--c3);
  font-size: 16px;
}

/* Alternate layout */
.step:nth-child(even) {
  flex-direction: row-reverse;
}

/* Responsive */
@media (max-width: 992px) {
  .step {
    flex-direction: column !important;
    text-align: center;
  }

  .step img {
    width: 100%;
    max-width: 400px;
  }
}

@media (max-width: 600px) {
  .section-title {
    font-size: 28px;
  }

  .tab-btn {
    font-size: 14px;
  }

  .step h3 {
    font-size: 20px;
  }
}
/* ---------------- FOOTER ---------------- */

.footer {
  background: var(--white);
  color: var(--c4);
  padding-top: 60px;
}
#footer-img {
  height: 100px;
  scale: calc(250%);
}

/* TOP CONTAINER */
.footer-top {
  background: linear-gradient(135deg, var(--c1), var(--c2));
  border-radius: 30px;
  margin: 0 8%;
  padding: 60px 5%;
}

.footer-container {
  display: flex;
  justify-content: space-between;
  gap: 60px;
  flex-wrap: wrap;
}

/* LOGO */
.footer-logo h2 {
  font-size: 2rem;
  font-weight: 700;
}

.footer-logo p {
  font-size: 1rem;
  opacity: 0.9;
}

/* LINKS */
.footer-links {
  display: flex;
  gap: 60px;
  flex-wrap: wrap;
}

.footer-links ul {
  list-style: none;
  padding: 0;
}

.footer-links li {
  margin-bottom: 12px;
}

.footer-links a {
  text-decoration: none;
  color: var(--white);
  font-size: 0.95rem;
  transition: 0.3s ease;
}

.footer-links a:hover {
  color: var(--c4);
  transform: translateX(5px);
}

/* ---------------- BOTTOM AREA ---------------- */

.footer-bottom {
  padding: 40px 8% 20px 8%;
}

.footer-bottom-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  border-top: 1px solid var(--c2);
  padding-top: 25px;
  gap: 20px;
}

/* SOCIAL ICONS */
.social-icons a {
  color: var(--c3);
  margin-right: 18px;
  font-size: 1.2rem;
  transition: 0.3s ease;
}

.social-icons a:hover {
  color: var(--c4);
}

/* LEGAL LINKS */
.legal-links a {
  margin-left: 25px;
  text-decoration: none;
  color: var(--c3);
  font-size: 0.9rem;
  transition: 0.3s ease;
}

.legal-links a:hover {
  color: var(--c4);
}

/* COPYRIGHT */
.copyright {
  margin-top: 20px;
  font-size: 0.85rem;
}

/* ---------------- TABLET ---------------- */

@media (max-width: 992px) {
  .footer-container {
    flex-direction: column;
    gap: 40px;
    align-items: center; /* CENTER EVERYTHING */
    text-align: center; /* CENTER TEXT */
  }

  /* FIX LOGO ALIGNMENT */
  .footer-logo {
    display: flex;
    justify-content: center;
    width: 100%;
  }

  #footer-img {
    height: 85px;
    width: auto;
    transform: scale(1); /* REMOVE LARGE SCALE */
  }

  .footer-links {
    gap: 40px;
    justify-content: center;
  }

  .footer-bottom-container {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .legal-links a {
    margin-left: 0;
    margin-right: 20px;
  }
}

/* ---------------- MOBILE FIX ---------------- */

@media (max-width: 600px) {
  .footer-top {
    margin: 0 4%;
    padding: 35px 6%;
    border-radius: 18px;
  }

  #footer-img {
    height: 70px !important;
    width: auto !important;
    transform: scale(1) !important;
    margin: 0 auto !important;
    display: block !important;
  }

  .footer-tagline {
    font-size: 0.9rem;
    padding: 20px 6%;
  }

  .footer-container {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 35px;
  }

  .footer-logo {
    display: flex;
    justify-content: center;
  }

  .footer-links {
    flex-direction: column;
    gap: 20px;
    align-items: center;
  }

  .footer-links ul {
    text-align: center;
  }

  .footer-bottom {
    padding: 30px 6%;
  }

  .footer-bottom-container {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 20px;
  }

  .social-icons {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
  }

  .legal-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
  }

  .legal-links a {
    margin: 0;
    font-size: 0.8rem;
  }

  .copyright {
    text-align: center;
    font-size: 0.8rem;
  }
}
/* FOOTER TAGLINE */

.footer-tagline {
  text-align: center;
  padding: 25px 10%;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--c3);
}
/* =========================
   SAFA PAGE LOADER
========================= */

#page-loader {
  position: fixed;
  inset: 0;
  background: #ffffff;
  display: flex;
  justify-content: center;
  align-items: center;
  transition:
    opacity 0.6s ease,
    visibility 0.6s ease;
}

#page-loader.hide {
  opacity: 0;
  visibility: hidden;
}

.loader-logo {
  width: 180px;
  animation: pulseGlow 2s infinite ease-in-out;
}

@keyframes pulseGlow {
  0% {
    transform: scale(1);
    filter: drop-shadow(0 0 5px #00ff99) drop-shadow(0 0 10px #00ff99);
  }
  50% {
    transform: scale(1.1);
    filter: drop-shadow(0 0 25px #00ffcc) drop-shadow(0 0 45px #00ffcc);
  }
  100% {
    transform: scale(1);
    filter: drop-shadow(0 0 5px #00ff99) drop-shadow(0 0 10px #00ff99);
  }
}
