
/* General Styles */
:root {
  --green: #28a745; /* Changed primary color from blue to green */
  --dark-gray: #212529;
  --white: #ffffff;
  --light-gray: #f8f9fa;
  --medium-gray: #e9ecef;
  --transparent-green: rgba(40, 167, 69, 0.8); /* Updated to match new primary color */
  --transparent-dark: rgba(33, 37, 41, 0.8);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Cairo', sans-serif;
  line-height: 1.6;
  color: var(--dark-gray);
  direction: rtl;
}

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

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
}

section {
  padding: 80px 0;
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-header h2 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 15px;
  color: var(--dark-gray);
  position: relative;
  display: inline-block;
}

.section-header h2::after {
  content: '';
  position: absolute;
  bottom: -10px;
  right: 50%;
  transform: translateX(50%);
  width: 50px;
  height: 3px;
  background-color: var(--green); /* Changed from blue to green */
}

.section-header p {
  font-size: 1.1rem;
  color: #555;
}

.btn {
  display: inline-block;
  background-color: var(--green); /* Changed from blue to green */
  color: var(--white);
  padding: 12px 25px;
  border-radius: 5px;
  font-weight: 600;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  text-align: center;
}

.btn:hover {
  background-color: #218838; /* Darker green color */
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.btn-lg {
  padding: 15px 30px;
  font-size: 1.1rem;
}

/* Header Styles */
#header {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  background-color: var(--white);
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

#header.sticky {
  padding: 10px 0;
  background-color: var(--white);
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

#header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 20px;
}

.logo {
  width: 200px;
}

.logo a {
  display: flex;
  flex-direction: column;
}

.logo h1 {
  font-size: 1.5rem;
  color: var(--green); /* Changed from blue to green */
  margin: 0;
}

.logo span {
  font-size: 0.9rem;
  color: var(--dark-gray);
}

nav {
  display: flex;
  align-items: center;
}

.nav-links {
  display: flex;
  gap: 30px;
}

.nav-links li a {
  font-weight: 600;
  color: var(--dark-gray);
  transition: color 0.3s ease;
  position: relative;
}

.nav-links li a::after {
  content: '';
  position: absolute;
  bottom: -5px;
  right: 0;
  width: 0;
  height: 2px;
  background-color: var(--green); /* Changed from blue to green */
  transition: width 0.3s ease;
}

.nav-links li a:hover,
.nav-links li a.active {
  color: var(--green); /* Changed from blue to green */
}

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

.mobile-menu {
  display: none;
  cursor: pointer;
}

.bar {
  width: 25px;
  height: 3px;
  background-color: var(--dark-gray);
  margin: 5px 0;
  transition: 0.4s;
}

/* Hero Section */
#hero {
  background-image: url('https://images.unsplash.com/photo-1558494949-ef010cbdcc31?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=2274&q=80');
  background-size: cover;
  background-position: center;
  height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

#hero .overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--transparent-dark);
  z-index: 1;
}

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

.hero-content {
  color: var(--white);
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
}

.hero-content h1 {
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: 20px;
  line-height: 1.2;
}

.hero-content p {
  font-size: 1.3rem;
  margin-bottom: 30px;
}

/* Services Section */
#services {
  background-color: var(--light-gray);
}

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

.service-card {
  background-color: var(--white);
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  transition: all 0.3s ease;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  overflow: hidden;
  padding-top: 50px;
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.service-image {
  margin: -30px -30px 20px -30px;
  height: 180px;
  overflow: hidden;
}

.service-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.service-card:hover .service-image img {
  transform: scale(1.1);
}

.service-card .icon {
  width: 70px;
  height: 70px;
  margin: 0 auto 20px;
  background-color: var(--green); /* Changed from blue to green */
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 1.8rem;
  position: relative;
  margin-top: -35px;
  border: 5px solid var(--white);
}

.service-card h3 {
  font-size: 1.5rem;
  margin-bottom: 15px;
  color: var(--dark-gray);
}

.service-card p {
  color: #555;
}

/* Why Us Section */
.benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}

.benefit-item {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 20px;
  background-color: var(--white);
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

.benefit-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.check-icon {
  font-size: 2rem;
  color: var(--green); /* Changed from blue to green */
}

.benefit-item h3 {
  font-size: 1.2rem;
  margin: 0;
}

/* Testimonials Section */
#testimonials {
  background-color: var(--light-gray);
}

.testimonials-slider {
  position: relative;
  max-width: 700px;
  margin: 0 auto;
  overflow: hidden;
}

.testimonial-item {
  background-color: var(--white);
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  display: none;
}

.testimonial-item.active {
  display: block;
}

.quote-icon {
  font-size: 2rem;
  color: var(--green); /* Changed from blue to green */
  margin-bottom: 20px;
}

.testimonial-item p {
  font-size: 1.1rem;
  margin-bottom: 20px;
  font-style: italic;
}

.client-info h4 {
  font-weight: 700;
  margin-bottom: 5px;
}

.slider-controls {
  display: flex;
  justify-content: center;
  margin-top: 30px;
  gap: 10px;
}

.dot {
  width: 12px;
  height: 12px;
  background-color: #ccc;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s ease;
}

.dot.active {
  background-color: var(--green); /* Changed from blue to green */
  transform: scale(1.2);
}

/* Contact Section */
.contact-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
}

.contact-form {
  background-color: var(--white);
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.form-group {
  margin-bottom: 20px;
}

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

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 5px;
  font-family: 'Cairo', sans-serif;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--green); /* Changed from blue to green */
  box-shadow: 0 0 0 3px rgba(40, 167, 69, 0.2); /* Updated to match green */
}

.btn-submit {
  width: 100%;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.info-item {
  display: flex;
  align-items: flex-start;
  gap: 15px;
}

.info-icon {
  width: 45px;
  height: 45px;
  background-color: var(--green); /* Changed from blue to green */
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 1.2rem;
}

.info-content h4 {
  margin-bottom: 5px;
  font-size: 1.2rem;
}

/* Footer */
#footer {
  background-color: var(--dark-gray);
  color: var(--white);
  padding: 60px 0 30px;
}

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

.footer-logo h2 {
  color: var(--green); /* Changed from blue to green */
  margin-bottom: 10px;
}

.footer-logo p {
  margin-top: 10px;
  color: #aaa;
}

.footer-links h3,
.footer-social h3 {
  font-size: 1.3rem;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 10px;
}

.footer-links h3::after,
.footer-social h3::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  width: 40px;
  height: 3px;
  background-color: var(--green); /* Changed from blue to green */
}

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

.footer-links ul li a {
  color: #aaa;
  transition: color 0.3s ease;
}

.footer-links ul li a:hover {
  color: var(--green); /* Changed from blue to green */
}

.social-icons {
  display: flex;
  gap: 15px;
}

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

.social-icon:hover {
  background-color: var(--green); /* Changed from blue to green */
  transform: translateY(-5px);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 20px;
  text-align: center;
}

/* Back to Top Button */
.back-to-top {
  position: fixed;
  bottom: 30px;
  left: 30px;
  width: 45px;
  height: 45px;
  background-color: var(--green); /* Changed from blue to green */
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  z-index: 99;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.back-to-top.active {
  opacity: 1;
  visibility: visible;
}

/* Responsive Styles */
@media (max-width: 992px) {
  .container {
    padding: 0 30px;
  }
  
  .section-header h2 {
    font-size: 2rem;
  }
  
  .hero-content h1 {
    font-size: 2.5rem;
  }
}

@media (max-width: 768px) {
  #header .container {
    padding: 10px 20px;
  }
  
  .nav-links {
    position: fixed;
    top: 80px;
    left: -100%;
    width: 100%;
    height: 100vh;
    background-color: var(--white);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 40px;
    transition: 0.5s;
    opacity: 0;
  }
  
  .nav-links.active {
    left: 0;
    opacity: 1;
  }
  
  .mobile-menu {
    display: block;
    z-index: 10;
  }
  
  .mobile-menu.active .bar:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
  }
  
  .mobile-menu.active .bar:nth-child(2) {
    opacity: 0;
  }
  
  .mobile-menu.active .bar:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
  }
  
  .cta-button {
    display: none;
  }
  
  #hero {
    height: 80vh;
  }
  
  .hero-content {
    padding: 0 20px;
  }
  
  .hero-content h1 {
    font-size: 2rem;
  }
  
  .hero-content p {
    font-size: 1.1rem;
  }
  
  .contact-wrapper {
    grid-template-columns: 1fr;
  }
  
  .footer-content {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .footer-links h3::after,
  .footer-social h3::after {
    right: 50%;
    transform: translateX(50%);
  }
  
  .social-icons {
    justify-content: center;
  }
  
  .service-image {
    height: 150px;
  }
}

@media (max-width: 576px) {
  section {
    padding: 60px 0;
  }
  
  .section-header {
    margin-bottom: 40px;
  }
  
  .benefits-grid, 
  .services-grid {
    grid-template-columns: 1fr;
  }
  
  .service-card {
    padding: 20px;
  }

  .service-image {
    margin: -20px -20px 20px -20px;
  }
  
  .back-to-top {
    bottom: 20px;
    left: 20px;
    width: 40px;
    height: 40px;
  }
}
