
:root {
  /* --primary: #140d91; */
  --primary: #f2c029;
  /* --primary: #32c36c; */
  --light: #f6f7f8;
  --dark: #1a2a36;
}
html,
body {
  overflow-x: hidden;
  width: 100%;
}

.fw-medium {
  font-weight: 500 !important;
}

.fw-bold {
  font-weight: 700 !important;
}

.fw-black {
  font-weight: 900 !important;
}

.back-to-top {
  position: fixed;
  display: none;
  right: 45px;
  bottom: 45px;
  z-index: 99;
}

/*** Spinner ***/
#spinner {
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s ease-out, visibility 0s linear 0.5s;
  z-index: 99999;
}

#spinner.show {
  transition: opacity 0.5s ease-out, visibility 0s linear 0s;
  visibility: visible;
  opacity: 1;
}

/*** Button ***/
.btn {
  font-weight: 500;
  transition: 0.5s;
}

.btn.btn-primary,
.btn.btn-outline-primary:hover {
  color: #ffffff;
}

.btn-square {
  width: 38px;
  height: 38px;
}

.btn-sm-square {
  width: 32px;
  height: 32px;
}

.btn-lg-square {
  width: 48px;
  height: 48px;
}

.btn-square,
.btn-sm-square,
.btn-lg-square {
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: normal;
}

/*** Navbar ***/
.navbar.sticky-top {
  top: -100px;
  transition: 0.5s;
}

.navbar .navbar-brand,
.navbar a.btn {
  height: 75px;
}

.navbar .navbar-nav .nav-link {
  margin-right: 30px;
  padding: 25px 0;
  color: var(--dark);
  font-size: 15px;
  font-weight: 500;
  text-transform: uppercase;
  outline: none;
}

.navbar .navbar-nav .nav-link:hover,
.navbar .navbar-nav .nav-link.active {
  color: var(--primary);
}

.navbar .dropdown-toggle::after {
  border: none;
  content: "\f107";
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
  vertical-align: middle;
  margin-left: 8px;
}
.logo-img {
  max-height: 65px;
  height: auto;
  width: auto;
  object-fit: contain;
  display: block;
}


@media (max-width: 991.98px) {
  .navbar .navbar-nav .nav-link {
    margin-right: 0;
    padding: 10px 0;
  }

  .navbar .navbar-nav {
    border-top: 1px solid #eeeeee;
  }
   .logo-img {
    max-height: 50px;
  }
}

@media (min-width: 992px) {
  .navbar .nav-item .dropdown-menu {
    display: block;
    border: none;
    margin-top: 0;
    top: 150%;
    opacity: 0;
    visibility: hidden;
    transition: 0.5s;
  }

  .navbar .nav-item:hover .dropdown-menu {
    top: 100%;
    visibility: visible;
    transition: 0.5s;
    opacity: 1;
  }
}

/*** Header ***/
.owl-carousel-inner {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  display: flex;
  align-items: center;
  background: rgba(0, 0, 0, 0.1);
}

@media (max-width: 768px) {
  .header-carousel .owl-carousel-item {
    position: relative;
    min-height: 500px;
  }

  .header-carousel .owl-carousel-item img {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .header-carousel .owl-carousel-item p {
    font-size: 16px !important;
  }
}

.header-carousel .owl-dots {
  position: absolute;
  width: 60px;
  height: 100%;
  top: 0;
  right: 30px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.header-carousel .owl-dots .owl-dot {
  position: relative;
  width: 45px;
  height: 45px;
  margin: 5px 0;
  background: #ffffff;
  box-shadow: 0 0 30px rgba(255, 255, 255, 0.9);
  border-radius: 45px;
  transition: 0.5s;
}

.header-carousel .owl-dots .owl-dot.active {
  width: 60px;
  height: 60px;
}

.header-carousel .owl-dots .owl-dot img {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
  padding: 2px;
  border-radius: 45px;
  transition: 0.5s;
}
.header-carousel .owl-carousel-item img {
  width: 100%;
  height: 100vh; /* Set your desired height */
  object-fit: cover; /* Ensures the image covers the area */
}

.page-header {
  background: linear-gradient(rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.1)),
    url(../sun_img/hero_bg/3.jpg) center center no-repeat;
  background-size: cover;
}

.breadcrumb-item + .breadcrumb-item::before {
  color: var(--light);
}

/*** About ***/
@media (min-width: 992px) {
  .container.about {
    max-width: 100% !important;
  }

  .about-text {
    padding-right: calc(((100% - 960px) / 2) + 0.75rem);
  }
}

@media (min-width: 1200px) {
  .about-text {
    padding-right: calc(((100% - 1140px) / 2) + 0.75rem);
  }
}

@media (min-width: 1400px) {
  .about-text {
    padding-right: calc(((100% - 1320px) / 2) + 0.75rem);
  }
}

/*** Service ***/
.service-item {
  box-shadow: 0 0 45px rgba(0, 0, 0, 0.08);
}

.service-icon {
  position: relative;
  margin: -50px 0 25px 0;
  width: 100px;
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  background: #ffffff;
  border-radius: 100px;
  box-shadow: 0 0 45px rgba(0, 0, 0, 0.08);
  transition: 0.5s;
}

.service-item:hover .service-icon {
  color: #ffffff;
  background: var(--primary);
}

/*** Feature ***/
@media (min-width: 992px) {
  .container.feature {
    max-width: 100% !important;
  }

  .feature-text {
    padding-left: calc(((100% - 960px) / 2) + 0.75rem);
  }
}

@media (min-width: 1200px) {
  .feature-text {
    padding-left: calc(((100% - 1140px) / 2) + 0.75rem);
  }
}

@media (min-width: 1400px) {
  .feature-text {
    padding-left: calc(((100% - 1320px) / 2) + 0.75rem);
  }
}

/*** Project Portfolio ***/
#portfolio-flters li {
  display: inline-block;
  font-weight: 500;
  color: var(--dark);
  cursor: pointer;
  transition: 0.5s;
  border-bottom: 2px solid transparent;
}

#portfolio-flters li:hover,
#portfolio-flters li.active {
  color: var(--primary);
  border-color: var(--primary);
}

.portfolio-img {
  position: relative;
}
.portfolio-img img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  object-position: center;
}

.portfolio-img::before,
.portfolio-img::after {
  position: absolute;
  content: "";
  width: 0;
  height: 100%;
  top: 0;
  background: var(--dark);
  transition: 0.5s;
}

.portfolio-img::before {
  left: 50%;
}

.portfolio-img::after {
  right: 50%;
}

.portfolio-item:hover .portfolio-img::before {
  width: 51%;
  left: 0;
}

.portfolio-item:hover .portfolio-img::after {
  width: 51%;
  right: 0;
}

.portfolio-btn {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  z-index: 1;
  transition: 0.5s;
}

.portfolio-item:hover .portfolio-btn {
  opacity: 1;
  transition-delay: 0.3s;
}

/*** Quote ***/
@media (min-width: 992px) {
  .container.quote {
    max-width: 100% !important;
  }

  .quote-text {
    padding-right: calc(((100% - 960px) / 2) + 0.75rem);
  }
}

@media (min-width: 1200px) {
  .quote-text {
    padding-right: calc(((100% - 1140px) / 2) + 0.75rem);
  }
}

@media (min-width: 1400px) {
  .quote-text {
    padding-right: calc(((100% - 1320px) / 2) + 0.75rem);
  }
}

/*** Team ***/
.team-item {
  box-shadow: 0 0 45px rgba(0, 0, 0, 0.08);
}

.team-item img {
  border-radius: 8px 60px 0 0;
}

.team-item .team-social {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  background: #ffffff;
  transition: 0.5s;
}

/* partners carusel */
.partner-carousel::before {
  position: absolute;
  content: "";
  top: 0;
  left: 0;
  height: 100%;
  width: 0;
  background: linear-gradient(
    to right,
    rgba(255, 255, 255, 1) 0%,
    rgba(255, 255, 255, 0) 100%
  );
  z-index: 1;
}

.partner-carousel::after {
  position: absolute;
  content: "";
  top: 0;
  right: 0;
  height: 100%;
  width: 0;
  background: linear-gradient(
    to left,
    rgba(255, 255, 255, 1) 0%,
    rgba(255, 255, 255, 0) 100%
  );
  z-index: 1;
}

/*** Testimonial ***/
.testimonial-carousel::before {
  position: absolute;
  content: "";
  top: 0;
  left: 0;
  height: 100%;
  width: 0;
  background: linear-gradient(
    to right,
    rgba(255, 255, 255, 1) 0%,
    rgba(255, 255, 255, 0) 100%
  );
  z-index: 1;
}

.testimonial-carousel::after {
  position: absolute;
  content: "";
  top: 0;
  right: 0;
  height: 100%;
  width: 0;
  background: linear-gradient(
    to left,
    rgba(255, 255, 255, 1) 0%,
    rgba(255, 255, 255, 0) 100%
  );
  z-index: 1;
}

@media (min-width: 768px) {
  .testimonial-carousel::before,
  .testimonial-carousel::after {
    width: 200px;
  }
  .partner-carousel::before,
  .partner-carousel::after {
    width: 200px;
  }
}

@media (min-width: 992px) {
  .testimonial-carousel::before,
  .testimonial-carousel::after {
    width: 300px;
  }

  .partner-carousel::before,
  .partner-carousel::after {
    width: 500px;
  }
}

.testimonial-carousel .owl-nav {
  position: absolute;
  width: 350px;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  justify-content: space-between;
  opacity: 0;
  transition: 0.5s;
  z-index: 1;
}

.testimonial-carousel:hover .owl-nav {
  width: 300px;
  opacity: 1;
}

.testimonial-carousel .owl-nav .owl-prev,
.testimonial-carousel .owl-nav .owl-next {
  position: relative;
  color: var(--primary);
  font-size: 45px;
  transition: 0.5s;
}

.testimonial-carousel .owl-nav .owl-prev:hover,
.testimonial-carousel .owl-nav .owl-next:hover {
  color: var(--dark);
}

.testimonial-carousel .testimonial-img img {
  width: 100px;
  height: 100px;
}

.testimonial-carousel .testimonial-img .btn-square {
  position: absolute;
  bottom: -19px;
  left: 50%;
  transform: translateX(-50%);
}

.testimonial-carousel .owl-item .testimonial-text {
  margin-bottom: 30px;
  box-shadow: 0 0 45px rgba(0, 0, 0, 0.08);
  transform: scale(0.8);
  transition: 0.5s;
}

.testimonial-carousel .owl-item.center .testimonial-text {
  transform: scale(1);
}

/*** Contact ***/
@media (min-width: 992px) {
  .container.contact {
    max-width: 100% !important;
  }

  .contact-text {
    padding-left: calc(((100% - 960px) / 2) + 0.75rem);
  }
}

@media (min-width: 1200px) {
  .contact-text {
    padding-left: calc(((100% - 1140px) / 2) + 0.75rem);
  }
}

@media (min-width: 1400px) {
  .contact-text {
    padding-left: calc(((100% - 1320px) / 2) + 0.75rem);
  }
}

/* ────────────── Custom CSS ────────────── */
.counter-section {
  background: #ffffffec;
  margin-block: 5rem;
}

.counter-box {
  perspective: 1000px;
  width: 200px;
  height: 200px;
  position: relative;
  text-align: center;
}

.counter-box::before,
.counter-box::after {
  content: "";
  position: absolute;
  width: 80px;
  height: 80px;
  background: rgba(243, 198, 35, 0.61);
  border-radius: 50%;
  z-index: -1;
}

.counter-box::before {
  top: -25px;
  left: -25px;
}

.counter-box::after {
  bottom: -25px;
  right: -25px;
}

.flip-inner {
  width: 100%;
  height: 100%;
  position: relative;
  transition: transform 0.8s ease-in-out;
  transform-style: preserve-3d;
}

.flip-box:hover .flip-inner {
  transform: rotate3d(1, 1, 0, 180deg);
}

.flip-front,
.flip-back {
  position: absolute;
  width: 100%;
  height: 100%;
  background: #ffffff;
  border: 2px solid #f3c623;
  border-radius: 12px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
  backface-visibility: hidden;
  transition: all 0.4s ease;
  padding: 1.5rem;
}

.flip-back {
  background: #f3c623;
  transform: rotate3d(1, 1, 0, 180deg);
  color: white;
}

.counter-number {
  font-size: 2.5rem;
  font-weight: 700;
  color: #f3c623;
}

.counter-number span {
  font-size: 1.25rem;
  vertical-align: super;
}

.counter-label {
  margin-top: 0.5rem;
  font-size: 1rem;
  font-weight: 500;
  color: #5e5000e3;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

/* Responsive tweaks */
@media (max-width: 576px) {
  .counter-box {
    width: 60%;
  }
  .counter-number {
    font-size: 1.3rem;
  }
  .counter-label {
    font-size: 0.7rem;
  }
  .counter-box::before,
  .counter-box::after {
    width: 60px;
    height: 60px;
  }
}

/* feature‑card styling */
.feature-card {
  border: 2px solid #f1c40f;
  border-radius: 0.5rem;
  background: #fff;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
}

/* icon‑rect: rectangular icon container */
.icon-rect {
  width: 50px;
  height: 50px;
  border: 2px solid #f1c40f;
  color: #f1c40f;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
  border-radius: 0.25rem;
}

/* headings & text */
.feature-card h6 {
  font-weight: 600;
  margin-bottom: 0.25rem;
}
.feature-card p {
  color: #555;
  font-size: 0.95rem;
  margin: 0;
}

/* about‑content typography */
.about-content h2 {
  font-weight: 700;
  color: #333;
}
.about-content p {
  color: #555;
  line-height: 1.6;
}

/* responsive tweak for smaller viewports */
@media (max-width: 767.98px) {
  .icon-rect {
    width: 40px;
    height: 40px;
    font-size: 1.1rem;
  }
}

/* -------------------------------------------------
   Shared Styles
---------------------------------------------------*/
.section-header h2 {
  position: relative;
  display: inline-block;
}
.section-header h2::after {
  content: "";
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 4px;
  background: #f1c40f;
  border-radius: 2px;
}

.section-header p {
  margin-top: 0.5rem;
  font-size: 1.1rem;
}

/* -------------------------------------------------
   Why Choose EcoSun Styles
---------------------------------------------------*/
.why-choose-us {
  background: linear-gradient(135deg, #e0f7fa77 0%, #ffffff39 100%);
}
.feature-box {
  border-radius: 0.5rem;
  background: #fff;
  transition: transform 0.3s, box-shadow 0.3s;
  position: relative;
  overflow: hidden;
}
.feature-box::before {
  content: "";
  position: absolute;
  top: -150%;
  left: -150%;
  width: 300%;
  height: 300%;
  background: rgba(136, 136, 136, 0.012);
  transform: rotate(45deg);
  transition: transform 0.5s;
}
.feature-box:hover::before {
  transform: rotate(0deg);
}
.feature-box:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
}
.icon-box {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  border: 2px solid #f1c40f;
  color: #f1c40f;
  font-size: 1.5rem;
  border-radius: 0.5rem;
}

/* -------------------------------------------------
   Types of Solar Systems Styles
---------------------------------------------------*/
.solar-types {
  background: #f8f9fa;
}
.type-card {
  background: #fff;
  border-radius: 0.75rem;
  transition: transform 0.3s, box-shadow 0.3s;
}
.type-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
  background: #f3c6230d;
}
.type-card .icon-image {
  max-width: 100%;
  height: 180px;
  object-fit: contain;
  display: block;
  margin: 0 auto;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.15));
}
.type-card h5 {
  margin-bottom: 0.75rem;
  font-weight: 600;
}
.type-card ul li {
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
}
@media (max-width: 768px) {
  .type-card .icon-image {
    height: 140px;
  }
}

/* -------------------------------------------------
   Responsive Tweaks
---------------------------------------------------*/
@media (max-width: 768px) {
  .icon-box {
    width: 50px;
    height: 50px;
    font-size: 1.2rem;
  }
  .section-header h2::after {
    width: 40px;
    height: 3px;
  }
}

/*** Footer ***/
.footer .btn.btn-social {
  margin-right: 5px;
  color: #9b9b9b;
  border: 1px solid #9b9b9b;
  border-radius: 38px;
  transition: 0.3s;
}

.footer .btn.btn-social:hover {
  color: var(--primary);
  border-color: var(--light);
}

.footer .btn.btn-link {
  display: block;
  margin-bottom: 5px;
  padding: 0;
  text-align: left;
  color: #9b9b9b;
  font-weight: normal;
  text-transform: capitalize;
  transition: 0.3s;
}

.footer .btn.btn-link::before {
  position: relative;
  content: "\f105";
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
  margin-right: 10px;
}

.footer .btn.btn-link:hover {
  color: #ffffff;
  letter-spacing: 1px;
  box-shadow: none;
}

.footer .copyright {
  padding: 25px 0;
  border-top: 1px solid rgba(256, 256, 256, 0.1);
}

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

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

/* partner logos */
.partner-logo {
  border: 3px solid #f2c029;
  border-radius: 15px;
  background-color: #fff;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 150px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.partner-logo img {
  max-height: 80px;
  max-width: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.partner-logo:hover {
  transform: translateY(-10px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.partner-logo:hover img {
  transform: scale(1.1);
}

/* fponder CSS */
/* Founders Section Custom Styling */
.founder-section {
  padding: 3rem 1rem;
}

.founder-title h2 {
  color: #007bff;
  font-weight: 600;
}

.founder-title p {
  color: #555;
}

/* Founder Image Box */
.founder-img-box {
  width: 100%;
  max-width: 300px;
  height: 300px;
  margin: 0 auto 1rem;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.founder-img-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  transition: transform 0.3s ease;
}

.founder-img-box:hover img {
  transform: scale(1.05);
}

/* Founder Name */
.founder-name {
  font-weight: 500;
  color: #333;
  font-size: 1.1rem;
}

/* Responsive Tweaks */
@media (max-width: 768px) {
  .founder-img-box {
    height: 320px;
  }
}

@media (max-width: 576px) {
  .founder-img-box {
    height: 280px;
  }

  .founder-title h2 {
    font-size: 1.6rem;
  }

  .founder-title p {
    font-size: 0.95rem;
  }
}

/* pop - up section css  */

/* Add this CSS in your stylesheet  */

.popup {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 10000;
  /* overflow-y: auto; */
}

.popup-content {
  position: relative;
  margin: 5% auto;
  width: 90%;
  max-width: 700px;
  background-color: #fff;
  border-radius: 15px;
  max-height: fit-content;
}

.form-container {
  max-height: 80vh;
  overflow-y: auto;
  padding: 20px;
}

.close-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 30px;
  height: 30px;
  background: #1f1f1f;
  color: white;
  border: none;
  border-radius: 50%;
  font-size: 20px;
  cursor: pointer;
}

.close-btn:hover {
  background: #c82333;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .popup {
    /* overflow-y: auto; */
  }
  .popup-content {
    width: 95%;
    margin: 2% auto;
    max-height: 85vh;
  }

  .form-container {
    padding: 15px;
  }

  h1 {
    font-size: 1.5rem;
  }

  .sub {
    width: 100%;
    padding: 12px;
  }
}

@media (max-width: 576px) {
  .form-container {
    padding: 10px;
  }

  .col-12 {
    margin-bottom: 10px;
  }

  input,
  select,
  textarea {
    width: 100%;
  }
}

/* exit popup css  */
#exitPopup {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

#exitPopup .popupContent {
  background: white;
  padding: 40px;
  border-radius: 10px;
  width: 300px;
  text-align: center;
  position: relative;
}

#exitPopup input {
  width: 100%;
  padding: 8px;
  margin: 10px 0;
}

#exitPopup button {
  padding: 8px 12px;
}

#exitPopup .close {
  position: absolute;
  top: 10px;
  right: 10px;
  cursor: pointer;
  font-size: 18px;
  border: none;
  background: none;
}
