* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: Arial, sans-serif;
}

/* ---------------- LIGHT / DARK MODE ---------------- */
.page.light {
  background: linear-gradient(135deg, #dfe6e0, #f7f7f7);
  color: #2f3e33;
}

.page.dark {
  background: linear-gradient(135deg, #1e293b, #0f172a);
  color: #e0e0e0;
}

.page.dark .footer-bottom .developed a:hover img {
  filter: invert(100%) sepia(0%) saturate(1%) hue-rotate(324deg)
    brightness(110%) contrast(101%);
}
/* ---------------- NAV ---------------- */
.nav {
  width: 100%;
  padding: 15px 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  position: relative;
}

.nav-logo {
  width: 90px;
  height: auto;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 25px;
}

.nav-links li a {
  text-decoration: none;
  color: inherit;
  font-weight: 600;
  transition: 0.3s;
}

.nav-links li a:hover {
  color: #82a47d;
}

.toggle-btn {
  padding: 6px 12px;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  font-size: 18px;
  background-color: #50654a;
  color: #fff;
  transition: 0.3s;
}

.toggle-btn:hover {
  transform: scale(1.2);
}

/* ---------------- MAIN ---------------- */
.content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  animation: fadeIn 1.8s ease-in-out;
  padding: 50px 20px;
}

.animated-logo {
  width: 200px;
  margin-bottom: 30px;
  animation: logoPulseRotate 4s ease-in-out infinite;
}

.animated-title {
  font-size: 48px;
  font-weight: 700;
  margin-bottom: 10px;
  animation: titlePulse 3s ease-in-out infinite;
}

.subtitle {
  font-size: 18px;
  margin-bottom: 10px;
}

.welcome-msg {
  font-size: 16px;
  font-weight: 500;
  color: #4b5d49;
}

.page.dark .welcome-msg {
  color: #c0c0c0;
}

/* Pulse + Rotate للوجو */
@keyframes logoPulseRotate {
  0% {
    transform: scale(1) rotate(0deg);
  }
  25% {
    transform: scale(1.05) rotate(-1deg);
  }
  50% {
    transform: scale(1.08) rotate(1deg);
  }
  75% {
    transform: scale(1.05) rotate(-1deg);
  }
  100% {
    transform: scale(1) rotate(0deg);
  }
}

/* Pulse للعنوان */
@keyframes titlePulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.03);
  }
  100% {
    transform: scale(1);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ---------------- FOOTER MODERN ---------------- */
.footer-modern {
  background: inherit;
  padding: 50px 20px 20px 20px;
  color: inherit;
}

.footer-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 30px;
  max-width: 1100px;
  margin: 0 auto;
}

.footer-column {
  flex: 1 1 200px;
}

.footer-logo {
  width: 100px;
  margin-bottom: 15px;
}

.footer-desc {
  font-size: 14px;
}

.footer-column h4 {
  margin-bottom: 12px;
  font-size: 16px;
  font-weight: 700;
}

.footer-column ul {
  list-style: none;
  padding: 0;
}

.footer-column ul li {
  margin-bottom: 8px;
}

.footer-column ul li a {
  text-decoration: none;
  color: inherit;
  transition: 0.3s;
}

.footer-column ul li a:hover {
  color: #82a47d;
}

.footer-column p a {
  color: inherit;
  text-decoration: none;
  font-weight: 600;
}

.footer-column p a:hover {
  color: #82a47d;
  text-decoration: underline;
}

.social-icons {
  display: flex;
  gap: 15px;
  margin-top: 10px;
}

.social-icons a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: #50654a;
  font-weight: 700;
  text-decoration: none;
  transition: 0.3s;
}
.social-icons a img {
  width: 20px;
  height: 20px;
  filter: invert(100%) sepia(1%) saturate(0%) hue-rotate(62deg) brightness(109%)
    contrast(100%);
}
.social-icons a:hover {
  transform: scale(1.2);
  background-color: #2f3e33;
}
.social-icons a:hover img {
  filter: invert(0%) sepia(0%) saturate(7466%) hue-rotate(67deg) brightness(88%)
    contrast(94%);
}
.footer-bottom {
  text-align: center;
  margin-top: 30px;
  margin: 30px auto;
  font-size: 14px;
}

.footer-bottom .developed {
  font-weight: 600;
  margin: 20px auto 0px;
  text-align: center;
  font-size: 18px;
  font-family: "Dancing Script", cursive;
  transform: translateX(-30px);
}

.footer-bottom .developed a {
  color: #3a5735;
  text-decoration: none;
  position: relative;
}

.footer-bottom .developed a img {
  width: 130px;
  height: auto;
  position: absolute;
  top: -20px;
  left: -30px;
}

.footer-bottom .developed a:hover {
  text-decoration: underline;
  color: #2f3e33;
  font-size: 20px;
  transition: all 0.5s ease;
}
