:root {
  --primary-color: #2c3e50; /* Dark Blue */
  --secondary-color: #3498db; /* Blue */
  --accent-color: #f1c40f; /* Yellow */
  --background-color: #f4f7f6; /* Light Gray */
  --text-color: #333;
  --light-text-color: #fff;
  --border-radius: 8px;
  --box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Poppins", sans-serif;
  color: var(--text-color);
  background-color: var(--background-color);
  line-height: 1.6;
}

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

a {
  text-decoration: none;
  color: var(--secondary-color);
  transition: color 0.3s ease;
}

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

h1,
h2,
h3 {
  margin-bottom: 20px;
  font-weight: 700;
}

h1 {
  font-size: 2.5rem;
  color: var(--light-text-color);
}

h2 {
  font-size: 2rem;
  text-align: center;
  color: var(--primary-color);
}

p {
  margin-bottom: 15px;
}

section {
  padding: 60px 0;
}

/* Header & Navigation */
.main-header {
  background-color: var(--primary-color);
  padding: 20px 0;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.main-header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  color: var(--light-text-color);
  font-size: 1.5rem;
  font-weight: 700;
}

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

.nav-links li {
  margin-left: 30px;
}

.nav-links a {
  color: var(--light-text-color);
  font-weight: 600;
  position: relative;
}

.nav-links a::after {
  content: "";
  position: absolute;
  width: 0;
  height: 2px;
  display: block;
  margin-top: 5px;
  right: 0;
  background: var(--accent-color);
  transition: width 0.6s ease;
}

.nav-links a:hover::after {
  width: 100%;
  left: 0;
  background: var(--accent-color);
}

.cta-nav a {
  background-color: var(--accent-color);
  color: var(--primary-color);
  padding: 8px 16px;
  border-radius: var(--border-radius);
  font-weight: 700;
}

.cta-nav a:hover {
  background-color: #e0b40e;
}

.hamburger {
  display: none;
  background: none;
  border: none;
  color: var(--light-text-color);
  font-size: 1.5rem;
  cursor: pointer;
}

/* Hero Section */
.hero-section {
  background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)),
    url("/frontend/images/big.jpg") no-repeat center center/cover;
  color: var(--light-text-color);
  text-align: center;
  padding: 150px 0;
}

.hero-content {
  max-width: 800px;
  margin: 0 auto;
}

.hero-content h1 {
  font-size: 3.5rem;
}

.cta-button {
  display: inline-block;
  background-color: var(--accent-color);
  color: var(--primary-color);
  font-weight: 700;
  padding: 15px 30px;
  border: none;
  border-radius: 50px;
  margin-top: 20px;
  transition: background-color 0.3s ease;
}

.cta-button:hover {
  background-color: #41403d;
  color: #f4f7f6;
}

/* Solar Calculator */
.calculator-section {
  background-color: #fff;
  text-align: center;
  box-shadow: var(--box-shadow);
  margin-top: -50px;
  position: relative;
  z-index: 50;
  border-radius: var(--border-radius);
  padding: 40px;
}

.calculator-form {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
  max-width: 500px;
  margin: 0 auto;
}

.calculator-form input {
  width: 100%;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: var(--border-radius);
}

.calculator-form button {
  background-color: var(--secondary-color);
  color: var(--light-text-color);
  padding: 12px 25px;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  font-weight: 600;
  transition: background-color 0.3s ease;
}

.calculator-form button:hover {
  background-color: #2980b9;
}

#result {
  margin-top: 20px;
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--primary-color);
}

/* Services Section */
.services-section {
  background-color: var(--background-color);
  padding-top: 100px;
}

.service-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-top: 40px;
  text-align: center;
}

.service-cards .card {
  background-color: #fff;
  padding: 30px;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
}

.service-cards .card img {
  margin-bottom: 15px;
}

/* Testimonials & Trust Signals */
.testimonials-section,
.trust-signals {
  text-align: center;
  background-color: #fff;
}

.testimonial-slider {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 30px;
  margin-top: 40px;
}

.testimonial {
  background-color: var(--background-color);
  padding: 20px;
  border-left: 5px solid var(--accent-color);
  max-width: 500px;
  text-align: left;
}

.testimonial p {
  font-style: italic;
}

.testimonial cite {
  display: block;
  margin-top: 10px;
  font-weight: 600;
  text-align: right;
  color: var(--secondary-color);
}

/*what our clients say*/
.logos {
  position: relative;
  border-radius: 10px;
  width: 80%;
  /* You can adjust this max-width to control the size of your slideshow */
  max-width: 500px;
  margin: 0 auto;
  overflow: hidden; /* This hides images that are not in view */
}

.slideshow-container {
  display: flex;
  border-radius: none;
  box-shadow: 0 8px 16px var(--shadow-medium);
  transition: transform 0.7s ease-in-out; /* Creates the smooth sliding animation */
}

.slideshow-container img {
  width: 100%;
  flex-shrink: 0;
}

/* About Page */
.about-hero {
  background-color: var(--secondary-color);
  color: var(--light-text-color);
  text-align: center;
  padding: 80px 0;
}

.mission-vision {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  justify-content: center;
  gap: 40px;
  margin-top: 40px;
}

.mission-box,
.vision-box {
  background-color: #fff;
  padding: 30px;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  flex: 1;
}

.team-section {
  background-color: var(--background-color);
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-top: 40px;
  text-align: center;
}

.team-member {
  background-color: #fff;
  padding: 20px;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
}

.team-member img {
  border-radius: 50%;
  margin-bottom: 15px;
}

/* Services Page */
.services-intro {
  text-align: center;
  padding: 80px 0;
  background-color: var(--secondary-color);
  color: var(--light-text-color);
}

.service-details .container {
  display: flex;
  flex-direction: column;
  gap: 60px;
}

.service-item {
  display: flex;
  align-items: center;
  gap: 40px;
}

.service-item.reverse {
  flex-direction: row-reverse;
}

.service-item img {
  flex-shrink: 0;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
}

.why-choose-us {
  background-color: var(--background-color);
  text-align: center;
}

.why-choose-us ul {
  list-style: none;
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.why-choose-us li {
  background: #fff;
  padding: 15px 25px;
  margin-bottom: 10px;
  border-radius: 50px;
  box-shadow: var(--box-shadow);
  width: fit-content;
}

/* Process Page */
.process-hero {
  text-align: center;
  padding: 80px 0;
  background-color: var(--primary-color);
  color: var(--light-text-color);
}

.center {
  text-align: center;
}
.process-steps {
  text-align: center;
}

.process-steps .container {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.step {
  position: relative;
  padding: 30px;
  background: #fff;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
}

.step:not(:last-child)::after {
  content: "";
  position: absolute;
  bottom: -20px;
  left: 50%;
  transform: translateX(-50%);
  width: 2px;
  height: 20px;
  background-color: var(--secondary-color);
}

.step-icon {
  font-size: 2rem;
  font-weight: 700;
  color: var(--light-text-color);
  background-color: var(--secondary-color);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 15px;
}

/* Blog Page */
.blog-intro {
  text-align: center;
  padding: 80px 0;
  background-color: var(--secondary-color);
  color: var(--light-text-color);
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.blog-post {
  background: #fff;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  overflow: hidden;
}

.blog-post img {
  width: 100%;
  height: auto;
  display: block;
}

.blog-post h3 {
  padding: 20px 20px 0;
  margin: 0;
}

.blog-post p {
  padding: 0 20px;
}

.blog-post .read-more {
  display: block;
  padding: 20px;
  font-weight: 600;
}

/* FAQ Page */
.faq-intro {
  text-align: center;
  padding: 80px 0;
  background-color: var(--primary-color);
  color: var(--light-text-color);
}

.accordion-item {
  margin-bottom: 10px;
  border: 1px solid #ddd;
  border-radius: var(--border-radius);
  background-color: #fff;
  box-shadow: var(--box-shadow);
}

.accordion-header {
  width: 100%;
  padding: 20px;
  text-align: left;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--primary-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.accordion-header::after {
  content: "+";
  font-size: 1.5rem;
  color: var(--secondary-color);
  transition: transform 0.3s ease;
}

.accordion-header.active::after {
  content: "-";
  transform: rotate(180deg);
}

.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease-out, padding 0.4s ease-out;
  padding: 0 20px;
}

.accordion-content.active {
  max-height: 500px; /* A large enough value */
  padding: 20px;
}

/* Contact Page */
.contact-hero {
  text-align: center;
  padding: 80px 0;
  background-color: var(--secondary-color);
  color: var(--light-text-color);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.contact-info,
.contact-form-container {
  background: #fff;
  padding: 40px;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
}

.contact-info a {
  color: var(--primary-color);
}

.map-container {
  margin-top: 20px;
  overflow: hidden;
  border-radius: var(--border-radius);
}

.contact-form-container form label {
  display: block;
  margin-bottom: 5px;
  font-weight: 600;
}

.contact-form-container form input,
.contact-form-container form textarea {
  width: 100%;
  padding: 10px;
  margin-bottom: 20px;
  border: 1px solid #ccc;
  border-radius: var(--border-radius);
}

.contact-form-container form button {
  width: 100%;
}

/* Legal Pages */
.legal-page {
  padding: 80px 0;
}

.legal-page h2 {
  text-align: left;
  margin-top: 30px;
  font-size: 1.5rem;
}

/* Client Portal (Auth) Pages */
.auth-page {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: calc(100vh - 150px);
}

.auth-container {
  background-color: #fff;
  padding: 40px;
  border-radius: var(--border-radius);
  box-shadow: 0 20px 20px rgba(0, 0, 0, 0.822);
  text-align: center;
  max-width: 450px;
  width: 100%;
}

.auth-container form {
  margin-top: 20px;
  text-align: left;
}

.auth-container form label {
  display: block;
  margin-bottom: 5px;
  font-weight: 600;
}

.auth-container form input {
  width: 100%;
  padding: 10px;
  margin-bottom: 20px;
  border: 1px solid #ccc;
  border-radius: var(--border-radius);
}

.auth-container form button {
  width: 100%;
}

.auth-link {
  margin-top: 20px;
}

/* Dashboard Page */
.dashboard-page {
  padding: 80px 0;
}

.dashboard-overview {
  background-color: #fff;
  padding: 30px;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  margin-bottom: 40px;
}

.dashboard-tabs {
  background-color: #fff;
  padding: 30px;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
}

.tabs-nav {
  display: flex;
  border-bottom: 2px solid #ddd;
  margin-bottom: 20px;
}

.tab-button {
  background: none;
  border: none;
  padding: 15px 25px;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 600;
  color: #555;
  transition: color 0.3s ease;
  position: relative;
  top: 2px;
}

.tab-button.active {
  color: var(--secondary-color);
  border-bottom: 2px solid var(--secondary-color);
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
}

.status-icon {
  font-weight: 700;
  margin-right: 10px;
}

.status-icon.completed {
  color: green;
}

.status-icon.in-progress {
  color: var(--accent-color);
}

.status-icon.pending {
  color: #ccc;
}

/* Footer */
.main-footer {
  background-color: var(--primary-color);
  color: var(--light-text-color);
  padding: 60px 0 20px;
  font-size: 0.9rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 30px;
}

.footer-grid h3 {
  color: var(--accent-color);
  font-size: 1.2rem;
  margin-bottom: 15px;
}

.footer-grid ul {
  list-style: none;
}

.footer-grid ul li {
  margin-bottom: 10px;
}

.footer-grid a {
  color: var(--light-text-color);
}

.footer-about a {
  font-weight: bold;
  font-style: italic;
  color: #e0b40e;
}

.footer-newsletter input {
  width: 100%;
  padding: 10px;
  border: none;
  border-radius: var(--border-radius);
  margin-bottom: 10px;
}

.footer-newsletter button {
  width: 100%;
  background-color: var(--accent-color);
  color: var(--primary-color);
  padding: 10px;
  border: none;
  border-radius: var(--border-radius);
  font-weight: 600;
  cursor: pointer;
}

.footer-bottom {
  text-align: center;
  border-top: 1px solid #444;
  padding-top: 20px;
  margin-top: 40px;
}

.footer-contacts :hover {
  color: #e0b40e;
  font-weight: bold;
}

.footer-links a:hover {
  color: #e0b40e;
  font-weight: bold;
}
