@import url("https://fonts.googleapis.com/css2?family=Almarai:wght@400;700&display=swap");

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Almarai", sans-serif;
  scroll-behavior: smooth;
}

body {
  background-color: #f9fffb;
  color: #222;
  line-height: 1.8;
  overflow-x: hidden;
}

/* 🌿 خلفية عامة */
.hero-overlay {
  background-image: url("https://static.vecteezy.com/system/resources/thumbnails/007/926/257/small/futuristic-hud-interface-technology-background-vector.jpg");
  background-size: cover;
  background-position: center;
  position: absolute;
  inset: 0;
  opacity: 0.12;
  z-index: 0;
}

/* Glass Effect */
.glass {
  background: rgba(255, 255, 255, 0.85);
  border-radius: 35px;
  box-shadow: 0 8px 25px rgba(0, 176, 80, 0.1);
  backdrop-filter: blur(10px);
  transition: all 0.4s;
}

.glass:hover {
  transform: translateY(-6px);
  box-shadow: 0 15px 40px rgba(0, 176, 80, 0.15);
}

/* Navbar */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  background: #ffffffee;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 10%;
  z-index: 1000;
  border-bottom: 2px solid #00b05033;
  border-radius: 0 0 25px 25px;
}

.navbar a {
  color: #333;
  text-decoration: none;
  margin: 0 10px;
  font-weight: 500;
  transition: 0.3s;
  border-radius: 25px;
  padding: 6px 12px;
}

.navbar a:hover {
  background: #00b0501a;
  color: #00b050;
}

.logo {
  font-size: 22px;
  color: #00b050;
  font-weight: 700;
}

/* Hero */
.hero {
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero-content {
  position: relative;
  z-index: 1;
  padding: 50px;
  max-width: 750px;
}

.hero h1 {
  font-size: 50px;
  color: #00b050;
  margin-bottom: 20px;
}

.hero p {
  font-size: 18px;
  color: #333;
}

.btn {
  display: inline-block;
  padding: 14px 35px;
  border-radius: 40px;
  font-weight: 700;
  transition: 0.3s;
  text-decoration: none;
}

.primary-btn {
  background: #00b050;
  color: #fff;
}

.primary-btn:hover {
  background: #009743;
  transform: scale(1.05);
}

.secondary-btn {
  background: #fff;
  border: 2px solid #00b050;
  color: #00b050;
}

.secondary-btn:hover {
  background: #00b050;
  color: #fff;
}

/* Sections */
section {
  padding: 100px 10%;
  position: relative;
}

h2 {
  color: #00b050;
  text-align: center;
  margin-bottom: 40px;
  font-size: 36px;
}

.subtitle {
  text-align: center;
  color: #555;
  margin-bottom: 50px;
}

/* Stats */
.stats {
  display: flex;
  justify-content: center;
  gap: 25px;
  flex-wrap: wrap;
  margin-top: 50px;
}

.stats .card {
  padding: 35px;
  border-radius: 35px;
  background: #fafffb;
  text-align: center;
  color: #00b050;
  min-width: 180px;
}

/* Services */
.services {
  background: #ffffff;
  text-align: center;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 30px;
}

.service-card {
  padding: 40px;
  border-radius: 35px;
}

/* Courses */
.courses {
  background: #f7fff8;
  text-align: center;
}

.course-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 35px;
}

.course-card {
  overflow: hidden;
  padding-bottom: 25px;
}

.course-card img {
  width: 100%;
  border-radius: 35px 35px 0 0;
  margin-bottom: 20px;
}

/* Partners */
.partners {
  background: #ffffff;
  text-align: center;
}

.partner-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 35px;
}

/* Contact */
.contact {
  background: #f8fdf8;
  text-align: center;
}

.contact input,
.contact textarea {
  width: 85%;
  max-width: 500px;
  padding: 15px;
  border-radius: 30px;
  border: 1px solid #00b05033;
  margin-bottom: 15px;
  font-size: 16px;
}

.contact textarea {
  height: 120px;
}

/* Footer */
footer {
  background: #00b050;
  color: #fff;
  text-align: center;
  padding: 25px;
  border-top-left-radius: 40px;
  border-top-right-radius: 40px;
}

footer .socials {
  margin-top: 10px;
}

footer a {
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  transition: 0.3s;
}

footer a:hover {
  text-decoration: underline;
}

/* Animation */
.fade-section {
  opacity: 0;
  transform: translateY(40px);
  transition: all 1s ease;
}

.fade-section.visible {
  opacity: 1;
  transform: translateY(0);
}
/* ✅ زر الثلاث شرطات (Navbar Responsive) */
.menu-toggle {
  display: none;
  font-size: 28px;
  cursor: pointer;
  color: #00b050;
  transition: 0.3s;
}

@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }

  .navbar nav {
    position: absolute;
    top: 70px;
    right: 8%;
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 8px 20px rgba(0, 176, 80, 0.1);
    display: none;
    flex-direction: column;
    text-align: center;
    width: 80%;
  }

  .navbar nav.show {
    display: flex;
    animation: fadeInMenu 0.3s ease-in-out;
  }

  .navbar a {
    padding: 12px;
    font-size: 16px;
    border-bottom: 1px solid #f1f1f1;
  }

  .navbar a:last-child {
    border-bottom: none;
  }

  @keyframes fadeInMenu {
    from {
      opacity: 0;
      transform: translateY(-10px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
}
