* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: #333;
  overflow-x: hidden;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header & Navigation */
header {
   background: linear-gradient(#223202); /*135deg, #1e3c72 0%, #2a5298 100% */
  color: white;
  padding: 1rem 0;
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
  transition: all 0.3s ease;
}

.header-scrolled {
  background: linear-gradient(#223202); /*rgba(30, 60, 114, 0.95)*/
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.8rem;
  font-weight: bold;
  display: flex;
  align-items: center;
  /* font-family:; */
}

.logo i {
  margin-right: 10px;
  color: hsl(66, 92%, 41%); /*#ffd700*/
}

/* for logo image  */
.logo img {
  height: 60px;
  width: 60px;
  margin-left: 12px;
}

.logo p {
  font-size: 8px;
  font-style: italic;
  color: #a4c868;
  position: absolute;
  margin-top: 40px;
  margin-left: 72px;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 2rem;
}

.nav-links a {
  color: white;
  text-decoration: none;
  transition: color 0.3s ease;
  position: relative;
}

.nav-links a:hover {
  color: hsl(66, 89%, 42%); /*#ffd700*/
}

.nav-links a::after {
  content: "";
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -5px;
  left: 50%;
  background-color: hsl(66, 89%, 42%); /*#ffd700*/
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

.nav-links a:hover::after {
  width: 100%;
}

.mobile-menu {
  display: none;
  background: none;
  border: none;
  color: white;
  font-size: 1.5rem;
  cursor: pointer;
}

/* Hero Section */
.hero {
  background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)),
    url(solarimg2.jpg);
  opacity: 50;
  background-size: cover;
  background-position: center;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: white;
  position: relative;
}

.hero-content {
  z-index: 2;
  max-width: 800px;
  animation: fadeInUp 1s ease;
}

.hero h1 {
  font-size: 3.5rem;
  margin-bottom: 1rem;
  font-weight: 700;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
} 

.hero h1 span{
  color:#9bcb39 ;
}
.hero p {
  font-size: 1.3rem;
  margin-bottom: 2rem;
  opacity: 0.9;
}

.cta-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  padding: 12px 30px;
  text-decoration: none;
  border-radius: 30px;
  transition: all 0.3s ease;
  font-weight: 600;
  border: 0px solid transparent;
  cursor: pointer;
  font-size: 1rem;
}

.btn-primary {
  /*#ffd700*/
  background: linear-gradient(45deg, hsl(66, 89%, 45%), #ffed4e);
  color: #333;
  box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 215, 0, 0.4);
}

.btn-secondary {
  background: transparent;
  color: white;
  border: 2px solid white;
}

.btn-secondary:hover {
  background: white;
  color: #333;
  transform: translateY(-2px);
}

/* Customer Segmentation */
.customer-types {
  padding: 80px 0;
  background: #f8f9fa;
}

.section-title {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 3rem;
  color: #527806; /*2a5298 / #59981a */
  position: relative;
}

.section-title::after {
  content: "";
  position: absolute;
  width: 80px;
  height: 4px; /**/
  background: linear-gradient(45deg, hsl(66, 89%, 42%), #ffed4e); /*#ffd700*/
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  border-radius: 2px;
}

.customer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
  margin-top: 4rem;
}

.customer-card {
  background: white;
  padding: 2rem;
  border-radius: 15px;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.customer-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 215, 0, 0.1),
    transparent
  );
  transition: left 0.5s ease;
}

.customer-card:hover::before {
  left: 100%;
}

.customer-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.customer-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  display: block;
}

.residential .customer-icon {
  color: #007bff;
}
.commercial .customer-icon {
  color: #28a745;
}
.industrial .customer-icon {
  color: #dc3545;
}

.customer-card h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: #333;
}

.customer-card p {
  color: #666;
  margin-bottom: 1.5rem;
}

/* Features Section */
.features {
  padding: 80px 0;
  background: white;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.feature-item {
  text-align: center;
  padding: 1.5rem;
  border-radius: 10px;
  transition: all 0.3s ease;
}

.feature-item:hover {
  background: #f8f9fa;
  transform: translateY(-5px);
}

.feature-icon {
  font-size: 2.5rem;
  color: hsl(66, 92%, 41%); /*#ffd700 / hsl(66, 89%, 42%) */
  margin-bottom: 1rem;
}

.feature-item h4 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
  color: #333;
}

/* Solar Calculator */
.calculator {
  padding: 80px 0;
  background: linear-gradient(135deg, #263d00 0%, #263d00 100%);
  color: white;
}

.calculator-form {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  padding: 3rem;
  border-radius: 20px;
  margin-top: 3rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.form-group input,
.form-group select {
  width: 100%;
  padding: 12px;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  background: rgba(255, 255, 255, 0.9);
  color: #333;
}

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

.results {
  display: none;
  margin-top: 2rem;
  padding: 2rem;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 15px;
  backdrop-filter: blur(10px);
}

.results.show {
  display: block;
  animation: fadeInUp 0.5s ease;
}

.results-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.result-item {
  text-align: center;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
}

.result-value {
  font-size: 1.5rem;
  font-weight: bold;
  color: #ffd700;
}

/* About Section */
.about {
  padding: 80px 0;
  background: #f8f9fa;
}

.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  margin-top: 3rem;
}

.about-text {
  font-size: 1.1rem;
  line-height: 1.8;
  color: #666;
}

.about-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-top: 2rem;
}

.stat-item {
  text-align: center;
  padding: 1.5rem;
  background: white;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.stat-number {
  font-size: 2rem;
  font-weight: bold;
  color: #527806; /*#2a5298 / #59981a*/
}

.stat-label {
  color: #666;
  margin-top: 0.5rem;
}

/* Contact Section */
.contact {
  padding: 80px 0;
  background: white;
}

.contact-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  margin-top: 3rem;
}

.contact-info {
  padding: 2rem;
}

.contact-item {
  display: flex;
  align-items: center;
  margin-bottom: 1.5rem;
}

.contact-item i {
  font-size: 1.5rem;
  color: #527806; /* #2a5298 / #59981a */
  margin-right: 1rem;
  width: 30px;
}

.contact-form {
  background: #f8f9fa;
  padding: 2rem;
  border-radius: 15px;
}

/* Footer */
footer {
  background: #223202; /*#1e3c72*/
  color: white;
  padding: 3rem 0 1rem;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-section h4 {
  margin-bottom: 1rem;
  color: hsl(66, 89%, 42%); /*#ffd700*/
}

.footer-section a {
  color: #ccc;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-section a:hover {
  color: hsl(66, 89%, 42%); /*#ffd700*/
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: #ccc;
}

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

@keyframes pulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
  100% {
    transform: scale(1);
  }
}

/* Mobile Navigation */
.mobile-nav {
  position: fixed;
  top: 0;
  right: -100%;
  width: 100%;
  height: 100vh;
  /* background: rgba(30, 60, 114, 0.98); */
  /* background: #9caf88;  #e8e8e8 */
  /* background: linear-gradient(135deg, #263d00 0%, #263d00 100%); */
  /* background-color: whitesmoke; */
  backdrop-filter: blur(10px);
  z-index: 2000;
  transition: right 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.mobile-nav.active {
  right: 0;
}

.mobile-nav .nav-links {
  /* background: #e8e8e8; */
  border: 1px solid green;
  border-radius: 5px;
  height: 400px;
  width: 280px;
  justify-content: center;
  /* box-shadow: 3px 3px 6px rgba(0, 0, 0, 0.15),
    -3px -3px 6px rgba(255, 255, 255, 0.9); */
  box-shadow: 3px 3px 6px rgba(9, 211, 66, 0.53),
    -3px -3px 6px rgba(159, 194, 161, 0.858);
  list-style: none;
  padding: 15px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  position: relative;
}

.mobile-nav .nav-links a {
  border: 1px solid green;
  display: flex;
  justify-content: center;
  border-radius: 5px;
  padding: 14px 15px;
  line-height: 14px;
  position: relative;
  /* box-shadow: 3px 3px 6px rgba(9, 211, 66, 0.53),
    -3px -3px 6px rgba(159, 194, 161, 0.858); */
  align-items: center;
  background: #e8e8e8;
  color: black;
  margin-block: 5px;

  letter-spacing: 2px;
  font-size: 15px;
}
.mobile-nav .nav-links li a {
  font-size: 1.2rem;
  font-weight: 700;
}

.mobile-nav-close {
  position: absolute;
  top: 2rem;
  right: 2rem;
  background: none;
  border: none;
  color: rgb(128, 182, 128);
  font-size: 2rem;
}

/* Chat Widget */
.chat-widget {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 1000;
}

.chat-button {
  background: linear-gradient(
    45deg,
    #abd216,
    #77c71a
  ); /*(45deg, #ffd700, #ffed4e)*/
  color: #333;
  border: none;
  border-radius: 50%;
  width: 60px;
  height: 60px;
  font-size: 1.5rem;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(255, 215, 0, 0.3);
  transition: all 0.3s ease;
  animation: pulse 2s infinite;
}

.chat-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(255, 215, 0, 0.4); /**/
}

/* Responsive Design */
/* max-width: 768px 740px*/
@media (max-width: 768px) {
  .nav-links {
    display: none;
  }

  .mobile-menu {
    display: block;
  }

  .hero h1 {
    font-size: 2.5rem;
  }

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

  .cta-buttons {
    flex-direction: column;
    align-items: center;
  }

  .customer-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .about-content,
  .contact-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .calculator-form {
    padding: 2rem 1rem;
  }

  .container {
    padding: 0 15px;
  }

  .section-title {
    font-size: 2rem;
  }
}
/*max-width: 480px 360px*/
@media (max-width: 480px) {
  .hero h1 {
    font-size: 2rem;
  }

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

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

  .form-row {
    grid-template-columns: 1fr;
  }

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

/* Scroll animations */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease;
}

.animate-on-scroll.animated {
  opacity: 1;
  transform: translateY(0);
}

/* Page sections initially hidden */
.page-section {
  display: none;
}

.page-section.active {
  display: block;
}

/* Success message */
.success-message {
  background: linear-gradient(45deg, #28a745, #20c997);
  color: white;
  padding: 1rem;
  border-radius: 8px;
  margin-top: 1rem;
  display: none;
  animation: fadeInUp 0.5s ease;
}

.success-message.show {
  display: block;
}
