/* ===================================================
   وَميض — Landing Page Premium Redesign
   هوية بصرية حصرية لمدارس الأندلس الأهلية
   =================================================== */

/* ---- Override hero background: حاد وعميق ---- */
.hero-section {
  min-height: 100vh;
  background:
    radial-gradient(ellipse 70% 60% at 80% 10%, rgba(99,40,200,0.28) 0%, transparent 60%),
    radial-gradient(ellipse 50% 50% at 10% 90%, rgba(30,90,200,0.18) 0%, transparent 55%),
    linear-gradient(160deg, #07060f 0%, #0c0920 50%, #060412 100%);
  overflow: hidden;
}

/* ---- Grain texture overlay ---- */
.hero-section::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.035'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 0;
}

.hero-section::before {
  background: none;
  animation: none;
}

/* ---- Accent line top ---- */
.landing-navbar::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, #7c3aed, #4f46e5, #06b6d4, transparent);
}

/* ---- Navbar: fixed properly ---- */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  height: 72px;
  background: rgba(7,6,15,0.75);
  backdrop-filter: blur(24px);
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.navbar::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, #7c3aed 30%, #4f46e5 70%, transparent);
}
.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 2.5rem;
}

/* ---- Logo enhancement ---- */
.brand-logo {
  display: flex;
  align-items: center;
  gap: 10px;
}
.brand-logo .logo-icon {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, #7c3aed, #4f46e5);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  box-shadow: 0 0 20px rgba(124,58,237,0.5);
}
.brand-logo .logo-text {
  font-size: 1.4rem;
  font-weight: 900;
  letter-spacing: -0.5px;
  background: linear-gradient(135deg, #e0d9ff, #a78bfa);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ---- Nav links override ---- */
.nav-link {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.55);
  font-weight: 500;
  letter-spacing: 0.3px;
  transition: color 0.2s;
  position: relative;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0; right: 0;
  height: 1px;
  background: #7c3aed;
  transform: scaleX(0);
  transition: transform 0.2s;
}
.nav-link:hover { color: #fff; }
.nav-link:hover::after { transform: scaleX(1); }

/* ---- Hero badge: sharp pill ---- */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(124,58,237,0.12);
  border: 1px solid rgba(124,58,237,0.35);
  border-radius: 6px;
  padding: 5px 14px;
  font-size: 0.78rem;
  font-weight: 600;
  color: #a78bfa;
  letter-spacing: 0.5px;
  margin-bottom: 1.75rem;
}

/* ---- Hero title: massive and sharp ---- */
.hero-title {
  font-size: clamp(2.8rem, 5.5vw, 5rem);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -1px;
  margin-bottom: 1.5rem;
  color: #f0eeff;
}

.gradient-text {
  background: linear-gradient(135deg, #a78bfa 0%, #818cf8 40%, #38bdf8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ---- Hero desc ---- */
.hero-desc {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.48);
  line-height: 1.75;
  max-width: 460px;
  font-weight: 400;
}

/* ---- Buttons: sharp modern ---- */
.btn-primary {
  background: linear-gradient(135deg, #6d28d9, #4f46e5);
  color: #fff;
  border-radius: 10px;
  padding: 12px 28px;
  font-weight: 700;
  font-size: 0.95rem;
  transition: all 0.25s;
  box-shadow: 0 4px 20px rgba(109,40,217,0.4);
  border: 1px solid rgba(255,255,255,0.08);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(109,40,217,0.6);
  background: linear-gradient(135deg, #7c3aed, #6366f1);
}
.btn-primary.btn-lg {
  padding: 14px 36px;
  font-size: 1rem;
  border-radius: 12px;
}

.btn-ghost {
  background: transparent;
  color: rgba(255,255,255,0.55);
  border-radius: 10px;
  padding: 12px 22px;
  font-size: 0.9rem;
  font-weight: 500;
  border: 1px solid rgba(255,255,255,0.1);
  transition: all 0.2s;
}
.btn-ghost:hover {
  color: #fff;
  border-color: rgba(255,255,255,0.25);
  background: rgba(255,255,255,0.04);
}
.btn-ghost.btn-lg { padding: 14px 28px; }

.btn-outline {
  background: transparent;
  border: 1px solid rgba(124,58,237,0.5);
  color: #a78bfa;
  border-radius: 10px;
  padding: 10px 24px;
  font-size: 0.9rem;
  font-weight: 600;
  transition: all 0.2s;
}
.btn-outline:hover {
  background: rgba(124,58,237,0.12);
  border-color: #7c3aed;
  color: #fff;
}

/* ---- Hero content: proper spacing & layout ---- */
.hero-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  padding: 160px 2.5rem 100px;
  width: 100%;
  gap: 4rem;
  position: relative;
  z-index: 1;
}
.hero-text {
  flex: 1;
  max-width: 560px;
}
.hero-visual {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}
.hero-img-wrapper {
  position: relative;
}
.hero-img {
  border-radius: 20px;
  border: 1px solid rgba(124,58,237,0.25);
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.04),
    0 40px 100px rgba(0,0,0,0.7),
    0 0 80px rgba(109,40,217,0.2);
}

/* ---- Features Section: dark grid ---- */
.features-section {
  padding: 100px 0;
  background:
    radial-gradient(ellipse 80% 50% at 50% 100%, rgba(79,70,229,0.07) 0%, transparent 70%),
    #08070f;
  position: relative;
}
.features-section::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(124,58,237,0.4), transparent);
}

.section-badge {
  background: rgba(124,58,237,0.1);
  border: 1px solid rgba(124,58,237,0.3);
  border-radius: 6px;
  padding: 4px 14px;
  font-size: 0.75rem;
  font-weight: 700;
  color: #a78bfa;
  letter-spacing: 1px;
  text-transform: uppercase;
}
.section-title {
  font-size: 2.4rem;
  font-weight: 900;
  letter-spacing: -0.5px;
  color: #f0eeff;
}

.feature-card {
  background: rgba(255,255,255,0.025);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 16px;
  padding: 2rem 1.75rem;
  text-align: right;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}
.feature-card::before {
  content: '';
  position: absolute;
  top: 0; right: 0;
  width: 100px; height: 100px;
  background: radial-gradient(circle, rgba(124,58,237,0.12) 0%, transparent 70%);
  border-radius: 50%;
  opacity: 0;
  transition: opacity 0.3s;
}
.feature-card:hover {
  border-color: rgba(124,58,237,0.3);
  background: rgba(124,58,237,0.06);
  transform: translateY(-5px);
  box-shadow: 0 20px 60px rgba(0,0,0,0.4), 0 0 30px rgba(124,58,237,0.1);
}
.feature-card:hover::before { opacity: 1; }
.feature-icon {
  font-size: 2rem;
  margin-bottom: 1.25rem;
  display: block;
  filter: drop-shadow(0 0 10px rgba(124,58,237,0.4));
}
.feature-card h3 {
  font-size: 1.05rem;
  font-weight: 800;
  margin-bottom: 0.6rem;
  color: #e8e3ff;
}
.feature-card p {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.38);
  line-height: 1.7;
}

/* ---- Courses Section ---- */
.courses-preview-section {
  padding: 100px 0;
  background: #07060f;
  position: relative;
}
.courses-preview-section::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(79,70,229,0.4), transparent);
}

.tab-btn {
  padding: 8px 22px;
  border-radius: 8px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.07);
  color: rgba(255,255,255,0.45);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.3px;
  transition: all 0.2s;
}
.tab-btn.active, .tab-btn:hover {
  background: rgba(124,58,237,0.2);
  border-color: rgba(124,58,237,0.45);
  color: #a78bfa;
}

.course-card {
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 14px;
  overflow: hidden;
  transition: all 0.25s;
}
.course-card:hover {
  border-color: rgba(124,58,237,0.35);
  transform: translateY(-4px);
  box-shadow: 0 20px 50px rgba(0,0,0,0.5);
}
.course-thumb { height: 120px; }

/* ---- CTA Section ---- */
.cta-section {
  padding: 80px 0;
  background: #07060f;
}
.cta-card {
  background: linear-gradient(135deg, rgba(109,40,217,0.15) 0%, rgba(79,70,229,0.1) 100%);
  border: 1px solid rgba(124,58,237,0.2);
  border-radius: 24px;
  padding: 4rem 3rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  position: relative;
  overflow: hidden;
}
.cta-card::before {
  content: '';
  position: absolute;
  top: -100px; left: -100px;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(124,58,237,0.15) 0%, transparent 70%);
  border-radius: 50%;
}
.cta-text h2 {
  font-size: 2rem;
  font-weight: 900;
  letter-spacing: -0.5px;
  color: #f0eeff;
  margin-bottom: 0.5rem;
}
.cta-text p {
  color: rgba(255,255,255,0.45);
  font-size: 1rem;
}

/* ---- Footer override ---- */
.footer {
  background: #060510;
  border-top: 1px solid rgba(255,255,255,0.05);
  padding: 2.5rem 0;
}
.footer-tagline { color: rgba(255,255,255,0.3); font-size: 0.85rem; }
.footer-links a {
  color: rgba(255,255,255,0.3);
  font-size: 0.85rem;
  transition: color 0.2s;
}
.footer-links a:hover { color: #a78bfa; }
.footer-copy { color: rgba(255,255,255,0.18); font-size: 0.8rem; }

/* ---- Separator lines between sections ---- */
.exams-preview-section {
  background: #08070f;
}

/* ---- Landing page-specific scroll reveal animation ---- */
@keyframes revealUp {
  from { opacity: 0; transform: translateY(40px); }
  to   { opacity: 1; transform: translateY(0); }
}
.reveal { animation: revealUp 0.7s ease both; }

/* ---- Wave color fix ---- */
.hero-wave svg path { fill: #08070f; }
