/* COLOR THEME VARIABLES */
:root {
  --green: #2ecc71;
  --white: #ffffff;
  --dark: #1e1e1e;
  --logo-light: #1e1e1e; /* new: for "Regular" in light mode */
  --logo-dark: #ffffff;  /* new: for "Regular" in dark mode */
  --bg-light: #f9f9f9;
  --bg-dark: #1e1e1e;
  --text-light: #1e1e1e;
  --text-dark: #f4f4f4;
}


.hero-heading {
  color: var(--green);
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 1rem;
  text-shadow: 1px 1px 5px rgba(0,0,0,0.3);
}

/* DARK MODE OVERRIDE */
body.dark-mode {
  background-color: var(--bg-dark);
  color: var(--text-dark);
}

/* GENERAL RESET */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', sans-serif;
  background-color: var(--bg-light);
  color: var(--text-light);
  transition: background-color 0.3s ease, color 0.3s ease;
}

/* NAVBAR STYLING */
.navbar {
  position: sticky;
  top: 0;
  width: 100%;
  background-color: var(--bg-light);
  z-index: 1000;
  box-shadow: 0 2px 5px rgba(0,0,0,0.08);
  transition: background-color 0.3s ease;
}

body.dark-mode .navbar {
  background-color: var(--bg-dark);
}

/* NAV CONTAINER */
.nav-container {
  max-width: 1200px;
  margin: auto;
  padding: 1rem 5%;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* LOGO STYLING */
.logo {
  font-size: 1.6rem;
  font-weight: bold;
}
.white-text {
  color: var(--logo-light);
  transition: color 0.3s ease;
}

body.dark-mode .white-text {
  color: var(--logo-dark);
}
.green-text {
  color: rgb(55, 184, 55);
  font-weight: bold;
}

/* NAVIGATION LINKS */
.nav-links {
  list-style: none;
  display: flex;
  gap: 2rem;
}

.nav-links li a {
  color: var(--text-light);
  text-decoration: none;
  font-weight: 500;
  position: relative;
  transition: color 0.3s ease;
}

body.dark-mode .nav-links li a {
  color: var(--text-dark);
}

/* GREEN UNDERLINE ON HOVER */
.nav-links li a::after {
  content: "";
  display: block;
  width: 0;
  height: 2px;
  background: var(--green);
  transition: width 0.3s ease;
  position: absolute;
  bottom: -4px;
  left: 0;
}

.nav-links li a:hover::after {
  width: 100%;
}

/* THEME TOGGLE ICON (INSIDE LINKS) */
.nav-links li a.theme-toggle {
  font-size: 1.2rem;
  cursor: pointer;
}

/* HAMBURGER MENU (DEFAULT: HIDDEN) */
.menu-toggle {
  display: none;
  font-size: 1.6rem;
  color: var(--text-light);
  cursor: pointer;
}

body.dark-mode .menu-toggle {
  color: var(--text-dark);
}

/* RESPONSIVE: MOBILE VIEW */
@media (max-width: 768px) {
  .nav-links {
    position: absolute;
    top: 70px;
    right: 20px;
    background-color: var(--bg-light);
    flex-direction: column;
    padding: 1rem;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.15);
    display: none;
  }

  .nav-links.show {
    display: flex;
  }

  body.dark-mode .nav-links {
    background-color: var(--bg-dark);
  }

  .menu-toggle {
    display: block;
  }
}

/* HERO SECTION */
.hero {
  position: relative;
  height: 90vh;
  background: url('solarimg1.jpg') ;
  background-repeat: repeat;
  background-size: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  
}

.hero-overlay {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background-color: rgba(249, 244, 244, 0.65);
  z-index: 1;
  opacity: 0.9;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 700px;
  text-align: center;
  padding: 2rem;
}

.hero-content h2 {
  font-size: 3rem;
  margin-bottom: 1rem;
  font-weight: bold;
  color: rgb(4, 55, 4);
  text-shadow: 2px 2px 10px rgba(0,0,0,0.7);
}

.hero-content p {
  font-size: 1.3rem;
  margin-bottom: 2rem;
  line-height: 1.6;
  color: #181616;
  text-shadow: 1px 1px 8px rgba(0,0,0,0.6);
}

.cta-btn {
  padding: 1rem 2.5rem;
  background-color: var(--green);
  color: #fff;
  font-size: 1.2rem;
  font-weight: 600;
  border: none;
  border-radius: 6px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.25);
  transition: background 0.3s ease, transform 0.2s ease;
}

.cta-btn:hover {
  background-color: #27ae60;
  transform: translateY(-2px);
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .hero-content h2 {
    font-size: 2.2rem;
  }
  .hero-content p {
    font-size: 1.1rem;
  }
  .cta-btn {
    font-size: 1.1rem;
    padding: 0.9rem 2rem;
  }
  .hero{
     background-size: 350px;
  display: flex;
  align-items: center;
  justify-content: center;
  
  }
}
/* WhatsApp ICON BUTTON STYLE */
.icon-btn {
  padding: 0.8rem;
  background-color: var(--green);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.25);
  transition: background 0.3s ease, transform 0.2s ease;
  text-decoration: none;
}

.icon-btn:hover {
  background-color: #27ae60;
  transform: translateY(-2px);
}

.whatsapp-icon {
  width: 28px;
  height: 28px;
  filter: invert(1); /* makes it white */
}
@media (max-width: 768px) {
  .hero-heading {
    font-size: 2.2rem;
  }
}


/* SERVICES SECTION */
.services {
  padding: 4rem 1rem;
  background-color: var(--bg-light);
  color: var(--text-light);
}

body.dark-mode .services {
  background-color: var(--bg-dark);
  color: var(--text-dark);
}

.section-title {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 3rem;
  color: var(--green);
}

/* Grid Layout */
.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 2rem;
}

/* Card Style */
.service-card {
  background-color: #fff;
  border-radius: 12px;
  padding: 2rem;
  text-align: left;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  position: relative;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

body.dark-mode .service-card {
  background-color: #2a2a2a;
  color: #eee;
}

.service-card h3 {
  font-size: 1.4rem;
  color: var(--green);
  margin-bottom: 1rem;
}

.service-card p {
  font-size: 1rem;
  line-height: 1.6;
}

/* Hover Effects */
.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

/* WhatsApp Icon Button */
.whatsapp-icon-btn {
  position: absolute;
  bottom: 1.5rem;
  right: 1.5rem;
  background-color: var(--green);
  padding: 0.6rem;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s ease;
}

.whatsapp-icon-btn:hover {
  background-color: #27ae60;
}

.whatsapp-icon-btn img {
  width: 20px;
  height: 20px;
  filter: invert(1);
}


/* ABOUT US SECTION */
.about {
  padding: 4rem 1.5rem;
  background-color: var(--bg-light);
  color: var(--text-light);
}

body.dark-mode .about {
  background-color: var(--bg-dark);
  color: var(--text-dark);
}

.about-container {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  align-items: center;
  justify-content: space-between;
}

.about-text {
  flex: 1 1 50%;
}

.about-text h2 {
  font-size: 2.4rem;
  color: var(--green);
  margin-bottom: 1.2rem;
}

.about-text p {
  font-size: 1.05rem;
  line-height: 1.7;
  margin-bottom: 1rem;
}

.about-image {
  flex: 1 1 45%;
  text-align: center;
}

.about-image img {
  max-width: 100%;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .about-container {
    flex-direction: column;
    text-align: center;
  }

  .about-text, .about-image {
    flex: 1 1 100%;
  }

  .about-text h2 {
    font-size: 2rem;
  }
}


/* CONTACT SECTION */
.contact {
  padding: 4rem 1rem;
  background-color: var(--bg-light);
  color: var(--text-light);
  text-align: center;
}

body.dark-mode .contact {
  background-color: var(--bg-dark);
  color: var(--text-dark);
}

.contact h2 {
  font-size: 2.5rem;
  color: var(--green);
  margin-bottom: 2rem;
}

.contact-form {
  max-width: 600px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-form input,
.contact-form textarea {
  padding: 1rem;
  border-radius: 6px;
  border: 1px solid #ccc;
  font-size: 1rem;
  resize: none;
}

body.dark-mode .contact-form input,
body.dark-mode .contact-form textarea {
  background-color: #222;
  color: #eee;
  border: 1px solid #444;
}

.contact-form button {
  background-color: var(--green);
  color: #fff;
  border: none;
  padding: 1rem;
  border-radius: 6px;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.3s ease;
}

.contact-form button:hover {
  background-color: #27ae60;
}

/* SOCIAL ICONS */
.social-icons {
  margin-top: 2rem;
}

.social-icons a {
  color: var(--green);
  font-size: 1.5rem;
  margin: 0 0.75rem;
  transition: color 0.3s ease;
}

.social-icons a:hover {
  color: #27ae60;
}

/* FOOTER */
.footer {
  background-color: #111;
  color: #ccc;
  padding: 1rem;
  text-align: center;
  font-size: 0.9rem;
}

body.dark-mode .footer {
  background-color: #000;
  color: #aaa;
}


  .gallery-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
    padding: 0 20px;
  }
  .gallery-item {
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    cursor: pointer;
  }
  .gallery-item img {
    width: 100%;
    display: block;
    transition: transform 0.3s ease;
  }
  .gallery-item:hover img {
    transform: scale(1.05);
  }

  /* Lightbox styles */
  .lightbox {
    display: none;
    position: fixed;
    z-index: 999;
    padding-top: 60px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.9);
  }
  .lightbox-content {
    display: block;
    margin: auto;
    max-width: 90%;
    max-height: 80vh;
  }
  .close {
    position: absolute;
    top: 20px;
    right: 35px;
    color: white;
    font-size: 40px;
    cursor: pointer;
  }
  #lightbox-caption {
    text-align: center;
    color: #ccc;
    padding: 10px;
    font-size: 16px;
  }