@import url('https://fonts.googleapis.com/css2?family=Open+Sans:wght@300;400;600;700&display=swap');

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

body {
  font-family: "Open Sans", sans-serif;
  line-height: 1.6;
  color: #333;
}

/* ========== MAIN HERO ========== */
.main {
  width: 100%;
  height: 100vh;
  background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)),
              url("img/business-2.jpg") center/cover no-repeat;
  display: flex;
  flex-direction: column;
}

/* ========== NAVBAR ========== */
.navbar {
  width: 90%;
  height: 70px;
  margin: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.navbar_logo img {
  height: 50px;
  width: auto;
  transition: transform 0.3s ease;
}
.navbar_logo img:hover {
  transform: scale(1.05);
}

.navbar_links ul {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 25px;
}

.navbar_links ul li a {
  text-decoration: none;
  color: white;
  font-weight: 600;
  font-size: 15px;
  transition: color 0.3s ease;
}
.navbar_links ul li a:hover {
  color: #4caf50;
}

.navbar_links ul li button {
  padding: 10px 16px;
  border-radius: 5px;
  background-color: white;
  border: none;
  transition: all 0.3s ease;
}
.navbar_links ul li button:hover {
  background: #4caf50;
}
.navbar_links ul li button a {
  color: black;
  font-weight: 500;
  text-decoration: none;
}
.navbar_links ul li button:hover a {
  color: white;
}

/* ========== HERO TEXT ========== */
.text {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: white;
  padding: 0 10px;
  animation: fadeIn 1.5s ease forwards;
}

.text h1 {
  font-size: clamp(32px, 6vw, 60px);
  font-weight: 600;
}
.text h3 {
  font-weight: 400;
  font-size: clamp(16px, 2vw, 22px);
  margin: 20px 0;
}
.text button {
  padding: 15px 28px;
  border-radius: 8px;
  background-color: #4caf50;
  font-weight: 600;
  letter-spacing: 0.5px;
  line-height: 22px;
  border: none;
  transition: transform 0.3s ease;
}
.text button:hover {
  transform: translateY(-5px);
}
.text button a {
  text-decoration: none;
  color: white;
}

/* ========== FEATURES BOXES ========== */
.container {
  width: 90%;
  margin: 100px auto;
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
}

.boxes {
  flex: 1 1 280px;
  display: flex;
  gap: 15px;
  background: white;
  border-radius: 10px;
  padding: 20px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}
.boxes:hover {
  transform: translateY(-8px);
  box-shadow: 0 6px 15px rgba(0,0,0,0.2);
}
.boxes-icon {
  font-size: 35px;
  color: #4caf50;
}
.boxes-content h3 {
  font-weight: 600;
}
.boxes-content p {
  color: gray;
}

/* ========== SERVICES ========== */
.services {
  background-color: #f8f8f8;
  width: 100%;
  padding: 60px 20px;
  text-align: center;
}
.services h1 {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 600;
}
.services p {
  color: gray;
  font-size: 18px;
  margin: 15px auto;
  max-width: 600px;
}

/* ========== SERVICES CARDS ========== */
.container2 {
  width: 90%;
  margin: 50px auto;
  display: flex;
  flex-wrap: wrap;
  gap: 25px;
  justify-content: center;
}
.container2 > div {
  flex: 1 1 280px;
  background: white;
  border-radius: 12px;
  overflow: hidden;
  transition: transform 0.3s ease;
}
.container2 > div:hover {
  transform: scale(1.05);
}
.container2 div img {
  width: 100%;
  display: block;
}
.container2-content {
  padding: 15px;
  text-align: left;
}
.container2-content h2 a {
  text-decoration: none;
  color: black;
  font-size: 20px;
  font-weight: 600;
}
.container2-content a {
  text-decoration: none;
  color: gray;
}

/* ========== FINAL SECTION ========== */
.final {
  width: 100%;
  padding: 60px 20px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}
.img {
  flex: 1 1 400px;
  max-width: 450px;
}
.img img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  object-fit: cover;
}
.final-content {
  flex: 1 1 400px;
  max-width: 500px;
}
.final-content h2 {
  font-size: 28px;
  font-weight: 600;
  margin-bottom: 15px;
}
.final-content p {
  color: gray;
}
.final-content ul {
  list-style: none;
  padding: 0;
}
.final-content ul li {
  margin: 10px 0;
}
.final-content ul li i {
  color: #4caf50;
  margin-right: 10px;
}
.final-content button {
  padding: 12px 20px;
  background-color:#4caf50;
  font-weight: 700;
  letter-spacing: 0.5px;
  line-height: 22px;
  color: white;
  font-size: 14px;
  border: 0;
  border-radius: 6px;
  margin-top: 20px;
  transition: transform 0.3s ease;
}
.final-content button:hover {
  transform: translateY(-4px);
}

/* ========== ANIMATIONS ========== */
@keyframes fadeIn {
  from {opacity: 0; transform: translateY(20px);}
  to {opacity: 1; transform: translateY(0);}
}

/* ========== RESPONSIVE ========== */
@media (max-width: 768px) {
  .navbar_links ul {
    flex-direction: column;
    background: rgba(0,0,0,0.85);
    position: absolute;
    top: 70px;
    right: 0;
    width: 200px;
    padding: 20px;
    display: none;
  }
  .navbar_links.active ul {
    display: flex;
  }
  .text {
    margin-top: 80px;
  }
  .final {
    flex-direction: column;
    text-align: center;
  }
  .final-content {
    margin: 0 auto;
  }
  .img {
    order: -1; /* تخلي الصورة فوق الكلام */
    max-width: 100%;
  }
}
/* سكشن Why Us */
/* Why Us Section */
.why-us {
  background-color: #f9f9f9;
  padding: 80px 5%;
  text-align: center;
}

.why-us h2 {
  font-size: 2.5rem;
  margin-bottom: 15px;
  color: #111;
}

.why-us p {
  font-size: 1.1rem;
  color: #555;
  margin-bottom: 50px;
}

.why-us-container {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 25px;
}

.why-card {
  flex: 1 1 calc(33.333% - 25px); /* 3 كروت جنب بعض */
  background: #fff;
  border-radius: 18px;
  padding: 30px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.1);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  animation: fadeInUp 1s ease forwards;
  opacity: 0;
}

.why-card img {
  max-width: 120px;
  margin-bottom: 20px;
}

.why-card h3 {
  font-size: 1.5rem;
  margin-bottom: 15px;
  color: #111;
}

.why-card p {
  color: #555;
  font-size: 1rem;
  line-height: 1.6;
}

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

/* Responsive */
@media (max-width: 992px) {
  .why-card {
    flex: 1 1 calc(50% - 25px); /* 2 كروت في الصف */
  }
}

@media (max-width: 600px) {
  .why-card {
    flex: 1 1 100%; /* كارت واحد في الصف */
  }
}

/* Animation */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
/* Testimonials Section */
.testimonials {
  padding: 80px 20px;
  text-align: center;
  background: #fff;
}

.testimonials h1 {
  font-size: 2.5rem;
  margin-bottom: 50px;
  color: #222;
  animation: fadeInDown 1s ease-in-out;
}

.testimonial-container {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 25px;
}

.testimonial.card {
  background: #f9f9f9;
  border-radius: 15px;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
  padding: 25px;
  width: 300px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  animation: fadeInUp 1s ease-in-out;
}

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

.testimonial-img {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 20px;
  border: 3px solid #007BFF;
}

.testimonial p {
  font-size: 1rem;
  color: #444;
  margin-bottom: 15px;
  line-height: 1.6;
}

.testimonial h4 {
  font-size: 1.1rem;
  font-weight: bold;
  color: #007BFF;
}
/* Footer */
footer {
  background: #111;
  color: #ddd;
  padding: 50px 5%;
  text-align: center;
  animation: fadeIn 1.5s ease forwards;
}

.footer-content {
  max-width: 1000px;
  margin: auto;
}

.footer-logo img {
  max-width: 140px;
  margin-bottom: 20px;
}

.footer-links {
  margin: 20px 0;
}

.footer-links a {
  color: #ddd;
  text-decoration: none;
  margin: 0 10px;
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: #4caf50;
}

footer p {
  font-size: 0.9rem;
  margin-top: 10px;
  color: #aaa;
}
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
/* ===== Scroll Reveal Sections ===== */
.section-hidden {
  opacity: 0;
  transform: translateY(50px);
  transition: all 0.8s ease-out;
}

.section-visible {
  opacity: 1;
  transform: translateY(0);
}