:root {
  --teal: #0e9aac;
  --teal-light: #2fc4d8;
  --teal-glow: rgba(14, 154, 172, 0.35);
  --bg-deep: #070d12;
  --bg-card: rgba(12, 26, 36, 0.75);
  --bg-glass: rgba(14, 154, 172, 0.06);
  --border: rgba(14, 154, 172, 0.18);
  --border-h: rgba(14, 154, 172, 0.55);
  --text-hi: #e8f7fb;
  --text-mid: #9cbdca;
  --text-lo: #4d7a89;
  --white: #ffffff;
  --danger: #e05050;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Cairo", "Tajawal", sans-serif;
  background: var(--bg-deep);
  color: var(--text-hi);
  min-height: 100vh;
  overflow-x: hidden;
  direction: rtl;
}

/* ─── GRID NOISE BACKGROUND ─── */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(
      ellipse 80% 60% at 15% 20%,
      rgba(14, 154, 172, 0.12) 0%,
      transparent 60%
    ),
    radial-gradient(
      ellipse 60% 50% at 85% 75%,
      rgba(14, 100, 120, 0.1) 0%,
      transparent 55%
    ),
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 39px,
      rgba(14, 154, 172, 0.03) 40px
    ),
    repeating-linear-gradient(
      90deg,
      transparent,
      transparent 39px,
      rgba(14, 154, 172, 0.03) 40px
    );
  pointer-events: none;
}

/* ─── PAGES ─── */
.page {
  display: none;
  position: relative;
  z-index: 1;
  min-height: 100vh;
}
.page.active {
  display: block;
  animation: fadeIn 0.45s ease;
}
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* ─── NAV ─── */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2.5rem;
  height: 64px;
  background: rgba(7, 13, 18, 0.88);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border);
}
.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--teal-light);
  cursor: pointer;
  text-decoration: none;
}
.nav-logo-badge {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 2px solid var(--teal);
  background: var(--bg-glass);
  display: grid;
  place-items: center;
  font-size: 0.65rem;
  color: var(--teal-light);
  font-weight: 700;
}
.nav-links {
  display: flex;
  gap: 0.2rem;
}
.nav-btn {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-mid);
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 500;
  padding: 0.45rem 0.9rem;
  border-radius: 8px;
  transition:
    color 0.2s,
    background 0.2s;
}
.nav-btn:hover,
.nav-btn.active {
  color: var(--teal-light);
  background: var(--bg-glass);
}
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
}
.hamburger span {
  width: 22px;
  height: 2px;
  background: var(--text-mid);
  border-radius: 2px;
  transition: 0.3s;
}
.mobile-menu {
  display: none;
  position: fixed;
  inset: 64px 0 0 0;
  z-index: 99;
  background: rgba(7, 13, 18, 0.97);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.2rem;
}
.mobile-menu.open {
  display: flex;
  animation: fadeIn 0.3s ease;
}
.mobile-menu .nav-btn {
  font-size: 1.1rem;
  padding: 0.7rem 2rem;
}

@media (max-width: 680px) {
  .nav-links {
    display: none;
  }
  .hamburger {
    display: flex;
  }
  nav {
    padding: 0 1.2rem;
  }
}

/* ─── HERO / HOME PAGE ─── */
#home {
  padding-top: 64px;
}

.hero {
  min-height: calc(100vh - 64px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 3rem 1.5rem 4rem;
  text-align: center;
  position: relative;
}

/* Animated ring behind logo */
.logo-wrap {
  position: relative;
  margin-bottom: 2rem;
}
.ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid var(--teal-glow);
  animation: pulse-ring 3s ease-out infinite;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}
.ring:nth-child(1) {
  width: 130px;
  height: 130px;
  animation-delay: 0s;
}
.ring:nth-child(2) {
  width: 175px;
  height: 175px;
  animation-delay: 0.8s;
}
.ring:nth-child(3) {
  width: 220px;
  height: 220px;
  animation-delay: 1.6s;
}
@keyframes pulse-ring {
  0% {
    opacity: 0.6;
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(1.15);
  }
}

.logo-circle {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: linear-gradient(
    135deg,
    rgba(14, 154, 172, 0.18),
    rgba(14, 154, 172, 0.05)
  );
  border: 2px solid var(--teal);
  display: grid;
  place-items: center;
  box-shadow:
    0 0 30px var(--teal-glow),
    0 0 60px rgba(14, 154, 172, 0.1);
  position: relative;
  z-index: 2;
  overflow: hidden;
}
.logo-circle svg {
  width: 52px;
  height: 52px;
  color: var(--teal-light);
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: var(--bg-glass);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 0.3rem 0.9rem;
  font-size: 0.78rem;
  color: var(--teal-light);
  font-weight: 600;
  margin-bottom: 1.2rem;
  letter-spacing: 0.04em;
  backdrop-filter: blur(10px);
}

.hero h1 {
  font-size: clamp(2.4rem, 6vw, 4.2rem);
  font-weight: 900;
  line-height: 1.75;
  background: linear-gradient(135deg, var(--white) 0%, var(--teal-light) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.6rem;
}
.hero h1 span {
  background: linear-gradient(135deg, var(--teal) 0%, var(--teal-light) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-sub {
  font-size: clamp(0.95rem, 2.2vw, 1.15rem);
  color: var(--text-mid);
  max-width: 520px;
  line-height: 1.75;
  margin-bottom: 0.5rem;
  font-weight: 400;
}
.hero-hashtag {
  font-size: 0.88rem;
  color: var(--teal);
  font-weight: 700;
  margin-bottom: 2.5rem;
  letter-spacing: 0.02em;
}

/* Social link buttons */
.links-stack {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  width: 100%;
  max-width: 440px;
}
.social-btn {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 0.95rem 1.4rem;
  cursor: pointer;
  text-decoration: none;
  color: var(--text-hi);
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  transition:
    border-color 0.25s,
    background 0.25s,
    transform 0.2s,
    box-shadow 0.25s;
  backdrop-filter: blur(12px);
  position: relative;
  overflow: hidden;
  width: 100%;
}
.social-btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(14, 154, 172, 0.06),
    transparent
  );
  transform: translateX(-100%);
  transition: transform 0.5s ease;
}
.social-btn:hover::before {
  transform: translateX(100%);
}
.social-btn:hover {
  border-color: var(--border-h);
  background: rgba(14, 26, 36, 0.9);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(14, 154, 172, 0.12);
}
.social-btn:active {
  transform: translateY(0);
}
.social-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  font-size: 1.05rem;
}
.social-btn span {
  flex: 1;
  text-align: center;
}
.social-btn .arrow {
  font-size: 0.8rem;
  opacity: 0.4;
  margin-right: auto;
}

.fb-btn .social-icon {
  background: rgba(24, 119, 242, 0.15);
  color: #4a8fee;
}
.ig-btn .social-icon {
  background: rgba(225, 48, 108, 0.12);
  color: #e1306c;
}
.tt-btn .social-icon {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-hi);
}
.ab-btn .social-icon {
  background: rgba(14, 154, 172, 0.15);
  color: var(--teal-light);
}

.hero-footer {
  margin-top: 2.8rem;
  font-size: 0.8rem;
  color: var(--text-lo);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
}
.contact-row {
  display: flex;
  gap: 1.8rem;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
}
.contact-item {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--text-mid);
}
.contact-item svg {
  color: var(--teal);
}

/* ─── ABOUT PAGE ─── */
#about {
  padding-top: 64px;
}

.about-hero {
  padding: 3.5rem 1.5rem 1.5rem;
  text-align: center;
}
.page-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--teal);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 0.28rem 0.9rem;
  background: var(--bg-glass);
  margin-bottom: 1rem;
}
.about-hero h2 {
  font-size: clamp(1.9rem, 4.5vw, 3rem);
  font-weight: 900;
  margin-bottom: 0.6rem;
  background: linear-gradient(135deg, var(--white), var(--teal-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.about-hero p {
  color: var(--text-mid);
  max-width: 500px;
  margin: 0 auto;
  line-height: 1.7;
}

.about-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 440px), 1fr));
  gap: 1.25rem;
  max-width: 1100px;
  margin: 2.5rem auto;
  padding: 0 1.5rem 4rem;
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 1.8rem 2rem;
  backdrop-filter: blur(14px);
  transition:
    border-color 0.3s,
    box-shadow 0.3s,
    transform 0.3s;
  position: relative;
  overflow: hidden;
}
.card::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 180px;
  height: 180px;
  background: radial-gradient(
    circle,
    rgba(14, 154, 172, 0.08),
    transparent 70%
  );
  pointer-events: none;
}
.card:hover {
  border-color: var(--border-h);
  box-shadow: 0 12px 40px rgba(14, 154, 172, 0.1);
  transform: translateY(-3px);
}
.card-title {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--teal-light);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.55rem;
}
.card-title-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: rgba(14, 154, 172, 0.14);
  display: grid;
  place-items: center;
  color: var(--teal-light);
  flex-shrink: 0;
}
.card p {
  font-size: 0.93rem;
  line-height: 1.85;
  color: var(--text-mid);
  font-weight: 400;
}
.card p strong {
  color: var(--teal-light);
  font-weight: 700;
}

/* Logo card */
.logo-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 260px;
  text-align: center;
}
.logo-display {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: linear-gradient(
    135deg,
    rgba(14, 154, 172, 0.15),
    rgba(14, 154, 172, 0.04)
  );
  border: 2px solid var(--teal);
  display: grid;
  place-items: center;
  box-shadow: 0 0 24px var(--teal-glow);
  margin-bottom: 1.1rem;
}
.logo-display svg {
  width: 46px;
  height: 46px;
  color: var(--teal-light);
}
.logo-name-ar {
  font-size: 2rem;
  font-weight: 900;
  color: var(--teal-light);
  line-height: 1.1;
}
.logo-name-en {
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--text-hi);
  letter-spacing: 0.18em;
  margin-top: 0.2rem;
}
.logo-sub {
  font-size: 0.75rem;
  letter-spacing: 0.22em;
  color: var(--text-lo);
  margin-top: 0.15rem;
}

/* Activities list */
.activity-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  margin-top: 0.5rem;
}
.activity-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  font-size: 0.9rem;
  color: var(--text-mid);
  line-height: 1.65;
}
.activity-list li::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--teal);
  margin-top: 0.55rem;
  flex-shrink: 0;
}

/* Contact bar */
.contact-bar {
  max-width: 1100px;
  margin: 0 auto 1.5rem;
  padding: 0 1.5rem;
}
.contact-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 1.5rem 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 2rem;
  backdrop-filter: blur(14px);
  text-align: center;
}
.contact-card h3 {
  font-size: 1rem;
  font-weight: 800;
  color: var(--teal-light);
  width: 100%;
}
.contact-detail {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--text-mid);
  font-size: 0.93rem;
}
.contact-detail svg {
  color: var(--teal);
}
.back-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: linear-gradient(135deg, var(--teal), #0b7a8a);
  color: var(--white);
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 700;
  padding: 0.75rem 1.8rem;
  border-radius: 12px;
  transition:
    box-shadow 0.25s,
    transform 0.2s;
  text-decoration: none;
  margin: 0 1.5rem 3rem;
  box-shadow: 0 4px 20px rgba(14, 154, 172, 0.3);
}
.back-btn:hover {
  box-shadow: 0 8px 30px rgba(14, 154, 172, 0.45);
  transform: translateY(-2px);
}

/* ─── PLACEHOLDER PAGE ─── */
#placeholder {
  display: none;
  min-height: 100vh;
  align-items: center;
  justify-content: center;
  padding: 64px 1.5rem 3rem;
  text-align: center;
  flex-direction: column;
  gap: 1.5rem;
}
#placeholder.active {
  display: flex;
  animation: fadeIn 0.4s ease;
}

.ph-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: rgba(14, 154, 172, 0.1);
  border: 2px dashed var(--teal);
  display: grid;
  place-items: center;
  color: var(--teal-light);
  animation: float 3s ease-in-out infinite;
}
@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}
.ph-icon svg {
  width: 36px;
  height: 36px;
}

.ph-title {
  font-size: clamp(1rem, 3vw, 1.35rem);
  font-weight: 700;
  color: var(--text-hi);
  max-width: 480px;
  line-height: 1.7;
}
.ph-sub {
  font-size: 0.85rem;
  color: var(--text-lo);
}

.ph-progress {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0.8rem 1.3rem;
}
.ph-bar-track {
  width: 160px;
  height: 4px;
  background: rgba(14, 154, 172, 0.12);
  border-radius: 4px;
  overflow: hidden;
}
.ph-bar-fill {
  height: 100%;
  width: 35%;
  background: linear-gradient(90deg, var(--teal), var(--teal-light));
  border-radius: 4px;
  animation: prog 2.5s ease-in-out infinite alternate;
}
@keyframes prog {
  from {
    width: 20%;
  }
  to {
    width: 65%;
  }
}
.ph-pct {
  font-size: 0.75rem;
  color: var(--text-lo);
}

/* ─── SCROLLBAR ─── */
::-webkit-scrollbar {
  width: 6px;
}
::-webkit-scrollbar-track {
  background: var(--bg-deep);
}
::-webkit-scrollbar-thumb {
  background: rgba(14, 154, 172, 0.3);
  border-radius: 6px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--teal);
}

/* ─── RESPONSIVE ─── */
@media (max-width: 500px) {
  .about-grid {
    padding: 0 1rem 3rem;
  }
  .card {
    padding: 1.4rem 1.2rem;
  }
  .contact-card {
    padding: 1.2rem;
  }
}
