/* ===== General Body Styles ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  font-family: "Inter", sans-serif;
  background: linear-gradient(135deg, #fff8e1, #ffe0b2);
  color: #333;
  line-height: 1.6;
}

/* ===== Header ===== */
header {
  position: fixed; /* بدل sticky */
  top: 0;
  left: 0;
  width: 100%; /* ضروري */
  z-index: 1000;
  background: linear-gradient(135deg, #4caf50, #2e7d32);
  padding: 20px 0;
  text-align: center;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  backdrop-filter: blur(10px);
}
.logo {
  height: 60px;
  transition: transform 0.5s ease;
}
.logo:hover {
  transform: rotate(360deg) scale(1.1);
}

/* ===== Navbar ===== */
nav {
  background: rgba(46, 125, 50, 0.95);
  padding: 0;
  border-top: 2px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(5px);
}
.nav-links {
  display: flex;
  justify-content: center;
  gap: 20px;
  list-style: none;
}
.nav-links a {
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  padding: 18px 30px;
  border-radius: 8px;
  position: relative;
  transition: 0.3s ease;
}
.nav-links a:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #ffd54f;
}

/* ===== Hero Section ===== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: url("earth.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero_section {
  text-align: center;
  color: white;
}

.hero_section img {
  max-width: 150px;
  margin-bottom: 20px;
}

.hero_section h1 {
  font-size: 3rem;
  margin-bottom: 15px;
  font-weight: 300;
}

.hero_section p {
  font-size: 1.2rem;
  margin-bottom: 30px;
  color: rgba(255, 255, 255, 0.8);
}

.hero_section a {
  display: inline-block;
  padding: 12px 30px;
  background: rgba(0, 191, 255, 0.2);
  border: 2px solid #00bfff;
  border-radius: 25px;
  color: white;
  text-decoration: none;
  transition: all 0.3s;
}

/* ===== Container ===== */
.container {
  width: 90%;
  max-width: 1200px;
  margin: 120px auto 3rem auto; /* زيادة الهامش العلوي لتجنب تغطية الهيدر */
}

/* ===== Features Sections ===== */
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
  margin-bottom: 60px;
}
.feature {
  background: linear-gradient(135deg, #ffd54f, #ffb300);
  padding: 30px;
  border-radius: 20px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
  text-align: center;
  color: #fff;
  transform: translateY(50px);
  opacity: 0;
  transition: transform 0.5s ease, box-shadow 0.3s ease;
}
.feature:hover {
  transform: translateY(-7px);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.3);
}
.feature i {
  font-size: 3rem;
  margin-bottom: 15px;
  display: block;
}
.feature h2 {
  margin-bottom: 12px;
  font-size: 1.5rem;
}
.feature p {
  font-size: 1rem;
  line-height: 1.7;
}

/* ===== About Section ===== */
.about-section {
  background: linear-gradient(135deg, #ffffff, #f5f5f5);
  padding: 50px 40px;
  border-radius: 20px;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
  text-align: center;
  margin-bottom: 50px;
  transform: translateY(30px);
  opacity: 0;
}
.about-section h2 {
  color: #2e7d32;
  font-size: 2.5rem;
  margin-bottom: 20px;
  position: relative;
  display: inline-block;
}
.about-section h2::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, #ffd54f, #ffb300);
  border-radius: 2px;
}
.about-section p {
  font-size: 1.2rem;
  margin-bottom: 10px;
  color: #555;
}

/* ===== Contact Section ===== */
.contact-section {
  background: linear-gradient(135deg, #e0f7fa, #b2ebf2);
  padding: 50px 40px;
  border-radius: 20px;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
  text-align: center;
  margin-bottom: 50px;
  transform: translateY(30px);
  opacity: 0;
}
.contact-section h2 {
  color: #00796b;
  font-size: 2.5rem;
  margin-bottom: 20px;
  position: relative;
  display: inline-block;
}
.contact-section h2::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, #4dd0e1, #00bcd4);
  border-radius: 2px;
}
.contact-section p {
  font-size: 1.2rem;
  margin-bottom: 12px;
  color: #555;
}
.contact-section a {
  color: #00796b;
  font-weight: 600;
  text-decoration: none;
}
.contact-section a:hover {
  text-decoration: underline;
}

/* Footer */
footer {
  background: #222;
  color: #fff;
  padding: 20px 0;
  text-align: center;
}

.footer-content {
  display: flex;
  justify-content: center;
  gap: 50px;
  margin-bottom: 15px;
}

.footer-content ul {
  list-style: none;
  padding: 0;
}

.footer-content a {
  color: #ccc;
  text-decoration: none;
}

.footer-content a:hover {
  color: #00ff99;
  text-decoration: underline;
}

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .nav-links {
    flex-direction: column;
  }
  .nav-links a {
    width: 100%;
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }
}
