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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 120px;
}

body {
  font-family: "Poppins", sans-serif;
  color: #fff;
  background: url("assets/mw_bg.png") center center / contain no-repeat fixed;
  background-color: #000;
  overflow-x: hidden;
  position: relative;
  scroll-behavior: smooth;
}

/* Dark overlay (lightened for clarity) */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.65); /* keep for darkness */
  backdrop-filter: blur(0px); /* set to 0 — removes blur */
  z-index: -1;
}


/* --- NAVBAR PERFECT CENTER --- */
.navbar {
  position: fixed;
  top: 1rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 999;
  background: rgba(0, 0, 0, 0.7); /* was 0.75 */
  backdrop-filter: blur(25px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  box-shadow: 0 4px 25px rgba(0, 0, 0, 0.45);
  padding: 0.6rem 1.5rem;
  display: flex;
  justify-content: center;
  align-items: center;
}

.nav-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
}

.nav-links {
  display: flex;
  gap: 1.8rem;
  align-items: center;
  justify-content: center;
}

.nav-link {
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s;
}

.nav-link:hover {
  color: #f9c851;
}

.lang-btn {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 0.4rem 0.8rem;
  cursor: pointer;
  transition: 0.3s;
}

.lang-btn:hover {
  background: rgba(255, 255, 255, 0.25);
}

/* Arabic font fix */
[dir="rtl"] {
  font-family: "Tajawal", sans-serif;
}

[dir="rtl"] .nav-links {
  direction: rtl;
}

[dir="rtl"] .nav-link {
  text-align: center;
}

/* Hero */
.hero {
  height: 100vh;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  padding-top: 6rem;
}

.hero-logo-container {
  position: relative;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem auto;
  background: radial-gradient(
    circle at 30% 30%,
    rgba(76, 141, 246, 0.3),
    rgba(249, 200, 81, 0.15),
    rgba(0, 0, 0, 0.2) /* slightly less dark */
  );
  box-shadow:
    0 0 25px rgba(76, 141, 246, 0.4),
    0 0 45px rgba(249, 200, 81, 0.3),
    inset 0 0 10px rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(15px);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.hero-logo-container::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.08), transparent 70%);
}

.hero-logo {
  width: 85px;
  height: 85px;
  object-fit: contain;
  z-index: 2;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.8));
  transition: transform 0.3s ease;
}

.hero-logo:hover {
  transform: scale(1.08);
}

.hero h1 {
  font-size: 2.8rem;
  background: linear-gradient(90deg, #4c8df6, #f9c851);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 700;
}

.hero p {
  font-size: 1.2rem;
  opacity: 0.9;
  margin-top: 0.5rem;
  color: rgba(255, 255, 255, 0.9);
}

.hero-buttons {
  margin-top: 2rem;
}

.btn {
  text-decoration: none;
  display: inline-block;
  padding: 0.8rem 1.4rem;
  border-radius: 14px;
  font-weight: 600;
  transition: 0.3s;
}

.primary {
  background: linear-gradient(90deg, #4c8df6, #f9c851);
  color: #000;
}

.secondary {
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #fff;
  margin-left: 1rem;
}

.btn:hover {
  transform: scale(1.05);
}

.download-buttons {
  margin-top: 2rem;
}

.store-btn {
  display: inline-block;
  margin: 0.5rem;
  padding: 0.7rem 1.2rem;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  color: #fff;
  text-decoration: none;
  font-size: 0.9rem;
  transition: 0.3s;
}

.store-btn:hover {
  background: linear-gradient(90deg, #4c8df6, #f9c851);
  color: #000;
}

/* Section */
.section {
  padding: 6rem 1.5rem;
  display: flex;
  justify-content: center;
  scroll-margin-top: 100px;
}

.content {
  padding: 2rem;
}

/* Glass panels (lighter, keep same style) */
.glass {
  background: rgba(0, 0, 0, 0.5); /* was 0.55 */
  backdrop-filter: blur(18px); /* was 20px */
  border-radius: 20px;
  max-width: 900px;
  width: 90%;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.28);
}

.section h2 {
  text-align: center;
  font-size: 1.8rem;
  background: linear-gradient(90deg, #4c8df6, #f9c851);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 1rem;
}

/* About */
.about-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin-top: 1.5rem;
}

.card {
  flex: 1;
  min-width: 260px;
  background: rgba(255, 255, 255, 0.07); /* was 0.06 */
  border-radius: 12px;
  padding: 1.5rem;
  text-align: center;
  transition: 0.3s;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.card:hover {
  transform: translateY(-5px);
  background: rgba(255, 255, 255, 0.14); /* was 0.12 */
}

/* Features */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.2rem;
  margin-top: 2rem;
}

.feature-card {
  background: rgba(255, 255, 255, 0.07); /* was 0.06 */
  border-radius: 15px;
  padding: 1.5rem;
  text-align: center;
  transition: 0.3s;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.feature-card:hover {
  transform: scale(1.03);
  background: rgba(255, 255, 255, 0.14);
}

/* Join */
#join {
  margin-bottom: 3rem;
}

.join-benefits {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.2rem;
  margin: 2rem 0 1rem 0;
}

.benefit-card {
  background: rgba(255, 255, 255, 0.07);
  border-radius: 15px;
  padding: 1.3rem;
  text-align: center;
  transition: 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.benefit-card:hover {
  transform: translateY(-5px);
  background: rgba(255, 255, 255, 0.14);
}

.join-form {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  margin-top: 1.5rem;
}

.join-form input {
  width: 80%;
  padding: 0.8rem;
  border-radius: 10px;
  border: none;
  outline: none;
}

/* ===============================
   CONTACT SECTION (Updated & Polished)
   =============================== */
#contact .glass {
  background: rgba(0, 0, 0, 0.48); /* lighter for visibility */
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 20px;
  padding: 3rem 2rem;
  text-align: center;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
  max-width: 800px;
  margin: 0 auto;
  transition: background 0.4s ease;
}

#contact h2 {
  font-size: 2rem;
  background: linear-gradient(90deg, #4c8df6, #f9c851);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 1rem;
  font-weight: 700;
}

#contact p {
  color: rgba(255, 255, 255, 0.9);
  max-width: 700px;
  margin: 0 auto 2rem auto;
  line-height: 1.6;
}

/* --- Form Styling --- */
.contact-form {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.8rem;
  margin: 1.5rem 0 2rem 0;
}

.contact-form input,
.contact-form textarea {
  flex: 1 1 250px;
  padding: 0.9rem 1rem;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  outline: none;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-size: 0.95rem;
  transition: all 0.3s ease;
}

/* --- Glowing Effect on Focus --- */
.contact-form input:focus,
.contact-form textarea:focus {
  border: 1px solid transparent;
  background: rgba(255, 255, 255, 0.12);
  box-shadow: 0 0 8px rgba(76, 141, 246, 0.6), 0 0 12px rgba(249, 200, 81, 0.4);
  outline: none;
  transition: all 0.25s ease-in-out;
}

/* Larger textarea */
.contact-form textarea {
  flex-basis: 100%;
  height: 120px;
  resize: none;
}

/* --- Submit Button --- */
.contact-form button {
  background: linear-gradient(90deg, #4c8df6, #f9c851);
  border: none;
  color: #000;
  font-weight: 600;
  padding: 0.9rem 1.6rem;
  border-radius: 12px;
  cursor: pointer;
  transition: transform 0.3s, box-shadow 0.3s, filter 0.3s;
}

.contact-form button:hover {
  transform: scale(1.05);
  box-shadow: 0 0 15px rgba(249, 200, 81, 0.6);
  filter: brightness(1.1);
}

/* --- Contact Info --- */
.contact-list {
  list-style: none;
  margin-top: 1rem;
  text-align: center;
}

.contact-list li {
  margin-bottom: 0.6rem;
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.95rem;
}

.contact-list a {
  color: #4c8df6;
  text-decoration: none;
  transition: color 0.3s;
}

.contact-list a:hover {
  color: #f9c851;
}

/* --- Social Links --- */
.socials {
  display: flex;
  justify-content: center;
  gap: 1.2rem;
  margin-top: 1.2rem;
}

.social {
  color: #f9c851;
  text-decoration: none;
  font-weight: 500;
  transition: 0.3s;
}

.social:hover {
  color: #4c8df6;
}

/* --- Footer --- */
.footer {
  text-align: center;
  padding: 2rem;
  font-size: 0.9rem;
  background: rgba(0, 0, 0, 0.65);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.8);
}

.footer a {
  color: #f9c851;
  text-decoration: none;
  transition: color 0.3s;
}

.footer a:hover {
  color: #4c8df6;
}


/* --- Navbar Logo Glow --- */
.nav-logo-container {
  position: relative;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(
    circle at 30% 30%,
    rgba(76, 141, 246, 0.25),
    rgba(249, 200, 81, 0.2),
    rgba(0, 0, 0, 0.7)
  );
  box-shadow:
    0 0 10px rgba(76, 141, 246, 0.3),
    0 0 20px rgba(249, 200, 81, 0.2),
    inset 0 0 6px rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  overflow: hidden;
  transition: all 0.3s ease;
}

.nav-logo-container::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.08), transparent 70%);
}

.nav-logo {
  width: 28px;
  height: 28px;
  z-index: 2;
  filter: drop-shadow(0 1px 4px rgba(0, 0, 0, 0.8));
  transition: transform 0.3s ease;
}

.nav-logo-container:hover {
  transform: scale(1.05);
  box-shadow:
    0 0 15px rgba(76, 141, 246, 0.4),
    0 0 25px rgba(249, 200, 81, 0.3);
}

/* Responsive */
@media (max-width: 768px) {
  .nav-links {
    gap: 1rem;
    font-size: 0.9rem;
  }

  .hero h1 {
    font-size: 2.2rem;
  }

  .section {
    padding: 4rem 1rem;
  }
}

/* --- Active Nav Highlight --- */
.nav-link.active {
  color: #f9c851;
  text-shadow: 0 0 12px rgba(249, 200, 81, 0.8);
  position: relative;
}

.nav-link.active::after {
  content: "";
  position: absolute;
  bottom: -6px;
  left: 50%;
  transform: translateX(-50%);
  width: 18px;
  height: 3px;
  background: linear-gradient(90deg, #f9c851, #4c8df6);
  border-radius: 4px;
  box-shadow: 0 0 10px rgba(249, 200, 81, 0.7);
}
