:root {
  --eco-green: #65b520;
  --eco-green-light: #f2fce2;
  --eco-green-dark: #4c9118;
  --header-height: 80px;
}

[data-bs-theme="dark"] {
  --bs-body-bg: #121212;
  --bs-body-color: #f8f9fa;
  --bs-light-bg-subtle: #1e1e1e;
  --bs-light-border-subtle: #2d2d2d;
  --eco-green-light: #1a2e0a;
}

body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  padding-top: var(--header-height);
  background-color: var(--bs-body-bg);
  color: var(--bs-body-color);
}

/* Header Styles */
.navbar {
  height: var(--header-height);
  transition: all 0.3s ease;
}

.navbar.scrolled {
  background-color: var(--bs-dark) !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.nav-link {
  font-weight: 500;
  padding: 0.5rem 1rem;
  position: relative;
}

.nav-link:after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 0;
  left: 0;
  background-color: var(--eco-green);
  transition: width 0.3s ease;
}

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

/* Hero Section */
.hero {
  min-height: calc(100vh - var(--header-height));
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(101, 181, 32, 0.1) 0%, rgba(101, 181, 32, 0) 50%);
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 70% 30%, var(--eco-green-light), transparent 70%);
  opacity: 0.3;
  z-index: 1;
}

/* Stats Section */
.stats-card {
  border-radius: 12px;
  transition: transform 0.3s ease;
  border: none;
  overflow: hidden;
}

.stats-card:hover {
  transform: translateY(-10px);
}

.stats-icon {
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  font-size: 24px;
  margin-bottom: 20px;
}

/* Projects Slider */
.project-card {
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.3s ease;
  border: none;
}

.project-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2) !important;
}

.project-badge {
  position: absolute;
  top: 15px;
  right: 15px;
  background-color: var(--eco-green);
  color: white;
  padding: 5px 10px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
}

/* Testimonials */
.testimonial-card {
  border-radius: 12px;
  border: none;
  position: relative;
}

.testimonial-card:before {
  content: '"';
  position: absolute;
  top: 20px;
  left: 20px;
  font-size: 60px;
  color: var(--eco-green);
  opacity: 0.2;
  font-family: serif;
  line-height: 1;
}

.testimonial-avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--eco-green);
}

/* Clients Section */
.client-logo {
  filter: grayscale(100%);
  opacity: 0.6;
  transition: all 0.3s ease;
}

.client-logo:hover {
  filter: grayscale(0%);
  opacity: 1;
}

/* CTA Section */
.cta-section {
  background: linear-gradient(135deg, var(--eco-green) 0%, var(--eco-green-dark) 100%);
  border-radius: 12px;
  overflow: hidden;
  position: relative;
}

.cta-pattern {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: radial-gradient(rgba(255, 255, 255, 0.1) 1px, transparent 1px);
  background-size: 20px 20px;
  opacity: 0.3;
}

/* Footer */
.footer {
  background-color: var(--bs-dark);
}

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

.footer-links a {
  color: var(--bs-gray-400);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: var(--eco-green);
}

.social-icon {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.1);
  color: white;
  transition: all 0.3s ease;
}

.social-icon:hover {
  background-color: var(--eco-green);
  transform: translateY(-3px);
}

/* Swiper Custom Styles */
.swiper-pagination-bullet {
  width: 10px;
  height: 10px;
  background-color: var(--bs-gray-500);
  opacity: 1;
}

.swiper-pagination-bullet-active {
  background-color: var(--eco-green);
  width: 30px;
  border-radius: 5px;
}

/* Responsive Adjustments */
@media (max-width: 992px) {
  .hero {
    text-align: center;
  }

  .hero-bg {
    background-position: center;
  }
}

@media (max-width: 768px) {
  :root {
    --header-height: 70px;
  }

  .display-3 {
    font-size: 2.5rem;
  }
}

.timeline {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
}

.timeline::after {
  content: '';
  position: absolute;
  width: 6px;
  background-color: var(--eco-green);
  top: 0;
  bottom: 0;
  left: 50%;
  margin-left: -3px;
  border-radius: 10px;
}

.timeline-container {
  padding: 10px 40px;
  position: relative;
  background-color: inherit;
  width: 50%;
}

.timeline-container::after {
  content: '';
  position: absolute;
  width: 25px;
  height: 25px;
  right: -17px;
  background-color: white;
  border: 4px solid var(--eco-green);
  top: 15px;
  border-radius: 50%;
  z-index: 1;
}

.left {
  left: 0;
}

.right {
  left: 50%;
}

.left::before {
  content: " ";
  height: 0;
  position: absolute;
  top: 22px;
  width: 0;
  z-index: 1;
  right: 30px;
  border: medium solid var(--bs-light-bg-subtle);
  border-width: 10px 0 10px 10px;
  border-color: transparent transparent transparent var(--bs-light-bg-subtle);
}

.right::before {
  content: " ";
  height: 0;
  position: absolute;
  top: 22px;
  width: 0;
  z-index: 1;
  left: 30px;
  border: medium solid var(--bs-light-bg-subtle);
  border-width: 10px 10px 10px 0;
  border-color: transparent var(--bs-light-bg-subtle) transparent transparent;
}

.right::after {
  left: -16px;
}

.timeline-content {
  padding: 20px 30px;
  background-color: var(--bs-light-bg-subtle);
  position: relative;
  border-radius: 12px;
  border: 1px solid var(--bs-light-border-subtle);
}

@media screen and (max-width: 768px) {
  .timeline::after {
    left: 31px;
  }

  .timeline-container {
    width: 100%;
    padding-left: 70px;
    padding-right: 25px;
  }

  .timeline-container::before {
    left: 60px;
    border: medium solid var(--bs-light-bg-subtle);
    border-width: 10px 10px 10px 0;
    border-color: transparent var(--bs-light-bg-subtle) transparent transparent;
  }

  .left::after,
  .right::after {
    left: 15px;
  }

  .right {
    left: 0%;
  }
}

/* Tooltip Customization */
.tooltip-inner {
  background-color: var(--eco-green);
  padding: 8px 12px;
  font-size: 14px;
}

.bs-tooltip-auto[data-popper-placement^=top] .tooltip-arrow::before,
.bs-tooltip-top .tooltip-arrow::before {
  border-top-color: var(--eco-green);
}

/* Form Input Focus */
.form-control:focus,
.form-select:focus {
  border-color: var(--eco-green);
  box-shadow: 0 0 0 0.25rem rgba(101, 181, 32, 0.25);
}

/* Back to Top Button Animation */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 99;
  display: none;
  transition: all 0.3s ease;
}

.back-to-top:hover {
  transform: translateY(-5px) !important;
}

.responsive-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  /* overflow-x: hidden;
      transform: scale(1);
      transform-origin: top center;
      margin-top: 60px; */
}

@media (max-width: 1200px) {
  .responsive-wrapper {
    transform: scale(0.9);
  }
}

@media (max-width: 992px) {
  .responsive-wrapper {
    transform: scale(0.8);
  }
}

@media (max-width: 768px) {
  .responsive-wrapper {
    transform: scale(0.7);
  }
}

@media (max-width: 600px) {
  .responsive-wrapper {
    transform: scale(0.6);
  }
}

@media (max-width: 450px) {
  .responsive-wrapper {
    transform: scale(0.5);
  }
}


.elements {
  /* margin-top: 70px; */
  position: relative;
  font-weight: bold;
  font-size: 20px;
}

.main {
  line-height: 150px;
  border: 5px solid black;
  background-color: #198754;
  border-radius: 50%;
  width: 250px;
  height: 150px;
  display: flex;
  justify-content: center;
  align-items: center;
  color: white;
}

.red_Arrow {
  position: absolute;
  top: -60px;
  left: -150px;
  width: 100px;
  height: 200px;
  transform: rotate(285deg);
}

.Electricity {
  position: absolute;
  left: -175px;
  top: -15px;
  transform: rotate(16deg);
}

.Aqua_Arrow {
  position: absolute;
  top: 50px;
  left: -160px;
  width: 140px;
  height: 220px;
  transform: rotate(260deg);
}

.Water {
  position: absolute;
  left: -160px;
  top: 145px;
  transform: rotate(-10deg);
}

.Hydrogen {
  top: 80px;
  right: -190px;
  position: absolute;
  width: 200px;
}

.Blue-Arrow {
  top: 30px;
  right: -155px;
  z-index: -1;
  position: absolute;
  width: 230px;
}

.Yellow-Arrow {
  transform: rotate(360deg);
  top: -90px;

  right: -120px;
  z-index: -1;
  position: absolute;
  width: 150px;
}

.Oxygen {
  position: absolute;
  top: -90px;
  right: -200px;
}


.balance-scale-container {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 80vh;
  padding: 2rem;
  border-radius: 0.5rem;
}

.balance-scale {
  position: relative;
  width: 100%;
  max-width: 800px;
  height: 400px;
  display: flex;
  justify-content: center;
  align-items: center;
  transform-origin: center;
}

.scale-box {
  position: absolute;
  width: 160px;
  height: 160px;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  border-radius: 8px;
}

.scale-box.left {
  left: 15%;
  top: 85px;
  background-color: #00a396;
  transform: rotate(-10deg);
}

.scale-box.center {
  top: 60px;
  background-color: white;
}

.scale-box.right {
  right: 15%;
  top: 85px;
  background-color: #00a396;
  transform: rotate(10deg);
}

.scale-box .text {
  color: white;
  font-size: 1.8rem;
  font-weight: bold;
}

.scale-box.center .text {
  color: #333;
}

.scale-pivot {
  position: absolute;
  bottom: 50px;
  width: 0;
  height: 0;
  border-left: 70px solid transparent;
  border-right: 70px solid transparent;
  border-bottom: 120px solid #00a396;
}

@media (max-width: 768px) {
  .balance-scale {
    transform: scale(0.9);
    /* تصغير كل الميزان */
    height: 300px;
  }

  .scale-box {
    width: 90px;
    height: 90px;
  }

  .scale-box .text {
    font-size: 1.2rem;
  }

  .scale-box.left {
    left: 5%;
    transform: scale(0.7);
    top: 160px;
  }

  .scale-box.right {
    right: 5%;
    transform: scale(0.7);

    top: 160px;
  }

  .scale-box.center {
    top: 140px;
    transform: scale(0.7);

  }

  .scale-pivot {
    top: 80%;
    border-left: 30px solid transparent;
    border-right: 30px solid transparent;
    border-bottom: 60px solid #00a396;
  }
}