/* Base reset and RTL layout */
body {
  margin: 0;
  padding: 0;
  direction: rtl;
  font-family: "Tahoma", sans-serif;
  background: #f5f7fa;
  color: #333;
  line-height: 1.8;
}

/* ===== HEADER & NAVBAR ===== */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: linear-gradient(135deg, #007bff, #00c6ff);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  padding: 1rem 2rem;
}

header .logo {
  font-size: 1.3rem;
  font-weight: bold;
  color: #fff;
}

.navbar ul {
  list-style: none;
  display: flex;
  justify-content: flex-end;
  gap: 2rem;
  margin: 0;
  padding: 0;
}

.navbar a {
  color: #fff;
  text-decoration: none;
  font-size: 1rem;
  transition: color 0.3s ease;
}

.navbar a:hover {
  color: #ffd700;
}

/* Hamburger button */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
}

.hamburger span {
  width: 25px;
  height: 3px;
  background: #fff;
  border-radius: 3px;
}

/* ===== MOBILE MENU ===== */
@media (max-width: 768px) {
  .navbar {
    display: none;
    position: absolute;
    top: 70px;
    right: 0;
    background: linear-gradient(135deg, #007bff, #00c6ff);
    width: 100%;
  }

  .navbar ul {
    flex-direction: column;
    align-items: center;
    padding: 20px 0;
    gap: 15px;
  }

  .navbar.show {
    display: block;
  }

  .hamburger {
    display: flex;
  }
}

/* ===== SECTIONS ===== */
main section {
  min-height: 100vh;
  padding: 5rem 3rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
}

/* Alternate background colors */
main section:nth-child(even) {
  background: #ffffff;
}
main section:nth-child(odd) {
  background: #eef4ff;
}

/* Section titles */
main section h2 {
  font-size: 2.2rem;
  margin-bottom: 1rem;
  color: #007bff;
}

/* ===== FOOTER ===== */
footer {
  text-align: center;
  padding: 1.5rem;
  background: #222;
  color: #ccc;
  font-size: 0.9rem;
}
footer p {
  margin: 0;
}

/* ===== FADE-IN ANIMATION ===== */
main section {
  opacity: 0;
  transform: translateY(50px);
  transition: opacity 1s ease, transform 1s ease;
}

main section.show {
  opacity: 1;
  transform: translateY(0);
}
