/* ============================================================
   RADY MOHAMED PHYSICS ACADEMY — STATIC CSS
   ============================================================ */

:root {
  --navy-950: #3b0764;
  --navy-900: #581c87;
  --navy-800: #6b21a8;
  --navy-700: #7e22ce;
  --navy-600: #9333ea;
  --navy-500: #a855f7;

  --accent-600: #ca8a04; 
  --accent-500: #eab308; 
  --accent-400: #facc15; 
  --accent-300: #fdba74; 
  --accent-200: #fed7aa; 
  --accent-glow: rgba(234, 88, 12, 0.15);
  --accent-glow-strong: rgba(234, 88, 12, 0.35);

  --white: #FFFFFF;
  --white-90: #F8F9FF;
  --white-70: rgba(248, 249, 255, 0.70);
  --white-50: rgba(248, 249, 255, 0.50);
  --white-30: rgba(248, 249, 255, 0.30);
  --white-15: rgba(248, 249, 255, 0.15);
  --white-08: rgba(248, 249, 255, 0.08);
  --white-04: rgba(248, 249, 255, 0.04);

  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 32px;
  --space-10: 40px;
  --space-12: 48px;
  --space-16: 64px;

  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-2xl: 32px;
  --radius-full: 9999px;

  --shadow-sm: 0 1px 3px rgba(26, 11, 46, 0.30);
  --shadow-md: 0 4px 16px rgba(26, 11, 46, 0.40);
  --shadow-lg: 0 8px 32px rgba(26, 11, 46, 0.50);
  --shadow-xl: 0 16px 48px rgba(26, 11, 46, 0.60);
  --shadow-accent: 0 0 24px rgba(234, 88, 12, 0.15);
  --shadow-accent-strong: 0 0 40px rgba(234, 88, 12, 0.25);

  --transition-base: 250ms cubic-bezier(0.4, 0, 0.2, 1);

  --font-arabic: 'Tajawal', system-ui, sans-serif;
  --font-display: 'Inter', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', 'Courier New', monospace;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background-color: var(--white-90);
  color: var(--navy-900);
  font-family: var(--font-arabic);
  font-size: 16px;
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
  direction: rtl;
}

/* Base Utilities */
.container-academy { width: 100%; max-width: 1320px; margin: 0 auto; padding-inline: var(--space-6); }
@media (min-width: 640px) { .container-academy { padding-inline: var(--space-10); } }
@media (min-width: 1024px) { .container-academy { padding-inline: var(--space-12); } }

.section-padding { padding-block: 64px; }
@media (min-width: 768px) { .section-padding { padding-block: 100px; } }
@media (min-width: 1024px) { .section-padding { padding-block: 140px; } }

.text-center { text-align: center; }
.text-accent { color: var(--accent-500); }
.font-bold { font-weight: 700; }
.font-display { font-family: var(--font-display); }
.font-arabic { font-family: var(--font-arabic); }
.text-accent-gradient {
  background: linear-gradient(135deg, var(--accent-300) 0%, var(--accent-500) 50%, var(--accent-600) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.bg-navy-gradient { background: linear-gradient(135deg, var(--navy-950) 0%, var(--navy-900) 50%, var(--navy-800) 100%); }

a { color: inherit; text-decoration: none; }
button { background: transparent; border: none; cursor: pointer; }
img { max-width: 100%; display: block; }
.object-cover { object-fit: cover; }
.object-center { object-position: center; }
.object-top { object-position: top; }

/* ── UI Components ─────────────────────────────────────────── */
.btn-primary {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 0 32px; border-radius: 14px;
  font-weight: 700; white-space: nowrap; gap: 8px;
  background: linear-gradient(180deg, #facc15 0%, #eab308 100%);
  color: var(--navy-950);
  box-shadow: 0 1px 0 rgba(255,255,255,0.4) inset, 0 -3px 0 rgba(0,0,0,0.2) inset, 0 10px 24px rgba(234, 88, 12, 0.35), 0 4px 8px rgba(0,0,0,0.3);
  transition: all 300ms cubic-bezier(0.34, 1.56, 0.64, 1);
}
.btn-primary:hover {
  transform: translateY(-4px);
  box-shadow: 0 1px 0 rgba(255,255,255,0.5) inset, 0 -3px 0 rgba(0,0,0,0.2) inset, 0 16px 32px rgba(234, 88, 12, 0.5), 0 8px 16px rgba(0,0,0,0.25);
}
.btn-primary:active { transform: translateY(2px) scale(0.97); }

.btn-secondary {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 0 32px; border-radius: 14px;
  font-weight: 700; white-space: nowrap; gap: 8px;
  background: var(--white);
  border: 1.5px solid rgba(234, 88, 12, 0.8); color: var(--navy-900);
  box-shadow: 0 4px 12px rgba(26,11,46,0.05);
  transition: all 300ms cubic-bezier(0.34, 1.56, 0.64, 1);
}
.btn-secondary:hover {
  transform: translateY(-4px); border-color: rgba(234, 88, 12, 1);
  background: rgba(234, 88, 12, 0.1); box-shadow: 0 8px 16px rgba(26,11,46,0.1);
}
.btn-secondary:active { transform: translateY(2px) scale(0.97); }

.btn-pill { border-radius: 9999px; }
.btn-sm { min-height: 36px; height: 36px; padding: 0 16px; font-size: 0.95rem; }
.btn-xs { min-height: 30px; height: 30px; padding: 0 12px; font-size: 0.8rem; border-radius: 9999px; }
.btn-lg { min-height: 56px; padding: 0 32px; font-size: 1.125rem; }

.glass-accent {
  background: rgba(59, 26, 106, 0.65);
  backdrop-filter: blur(12px); border: 1px solid rgba(234, 88, 12, 0.25);
  box-shadow: var(--shadow-lg), var(--shadow-accent);
}

.section-pill {
  display: inline-flex; padding: 8px 24px; border-radius: 9999px;
  font-size: 0.875rem; font-weight: 600; font-family: var(--font-arabic);
}
.section-pill-info { border: 1px solid rgba(14,165,233,0.3); color: var(--accent-400); background: rgba(14,165,233,0.08); }
.section-pill-accent { border: 1px solid rgba(234,88,12,0.3); color: var(--accent-400); background: rgba(234,88,12,0.08); }


/* ── Animation Classes ──────────────────────────────────────── */
.fade-up {
  opacity: 0; transform: translateY(16px);
  transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1), transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.fade-up.in-view { opacity: 1; transform: translateY(0); }
.delay-1 { transition-delay: 50ms; }
.delay-2 { transition-delay: 100ms; }
.delay-3 { transition-delay: 150ms; }
.delay-4 { transition-delay: 200ms; }

@keyframes float { 0%, 100% { transform: translateY(0px); } 50% { transform: translateY(-8px); } }
.animate-float { animation: float 3s ease-in-out infinite; }


/* ── HEADER ─────────────────────────────────────────────────── */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  transition: all 0.4s; border-bottom: 1px solid rgba(255,255,255,0.05);
  background: var(--navy-950);
}
.site-header.scrolled {
  backdrop-filter: blur(16px); background: rgba(26,11,46,0.95);
  border-bottom-color: rgba(248,249,255,0.07); box-shadow: 0 4px 20px rgba(26,11,46,0.5);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 72px; padding-block: 8px; }
.logo-group { display: flex; align-items: center; gap: 12px; }
.logo-icon {
  width: 44px; height: 44px; border-radius: 12px; display: flex; align-items: center; justify-content: center;
  background: rgba(234, 88, 12, 0.1); border: 1px solid rgba(234, 88, 12, 0.3); color: var(--accent-600);
  transition: transform 0.6s ease-in-out;
}
.logo-group:hover .logo-icon { transform: rotate(180deg); }
.logo-text { font-weight: 800; font-size: 0.85rem; color: var(--white-90); white-space: nowrap; }
.logo-accent { color: var(--accent-600); }

.desktop-nav { display: none; align-items: center; gap: 32px; position: absolute; left: 50%; transform: translateX(-50%); }
@media (min-width: 768px) { .desktop-nav { display: flex; } }
.nav-link {
  position: relative; padding: 8px 12px; font-weight: 500; color: var(--white-70);
  transition: color 0.2s; border-radius: 12px; z-index: 1;
}
.nav-link:hover { color: var(--white); }
.nav-link::before {
  content: ""; position: absolute; inset: 0; border-radius: 12px;
  background: rgba(248,249,255,0.07); opacity: 0; transition: opacity 0.2s; z-index: -1;
}
.nav-link:hover::before { opacity: 1; }

.header-cta { display: flex; align-items: center; justify-content: flex-end; }


/* ── HERO SECTION ───────────────────────────────────────────── */
.hero-section { overflow: hidden; padding-bottom: 80px; background: linear-gradient(180deg, var(--white-90) 0%, var(--white) 100%); }
@media (min-width: 1024px) { .hero-section { padding-bottom: 128px; } }
.physics-grid-overlay {
  position: absolute; inset: 0; opacity: 0.15; pointer-events: none;
  background-image: radial-gradient(circle at 1px 1px, rgba(42, 18, 76, 1) 1px, transparent 0);
  background-size: 48px 48px;
}
.floating-formulas { position: absolute; inset: 0; pointer-events: none; user-select: none; }
.formula { position: absolute; font-family: var(--font-mono); color: rgba(42, 18, 76, 0.25); font-style: italic; font-weight: 700; z-index: 0; }
.f1 { top: 24%; left: 2%; font-size: 1rem; transform: rotate(12deg); }
.f2 { top: 25%; right: 2%; font-size: 0.9rem; transform: rotate(-12deg); }
.f3 { bottom: auto; top: 12%; left: 5%; font-size: 1.5rem; transform: rotate(20deg); }
.f4 { bottom: 16%; left: 4%; font-size: 1.15rem; transform: rotate(-6deg); }

@media (min-width: 1024px) {
  .f1 { top: 12%; left: 8%; font-size: 2rem; }
  .f2 { top: auto; bottom: 15%; right: 10%; font-size: 2rem; }
  .f3 { bottom: auto; top: 40%; left: 10%; font-size: 1.75rem; }
  .f4 { bottom: 15%; left: 38%; font-size: 1.75rem; }
}

.header-spacer { height: 100px; width: 100%; }
@media (min-width: 768px) { .header-spacer { height: 130px; } }
.pt-24 { padding-top: 120px; }
@media (min-width: 768px) { .pt-24 { padding-top: 150px; } }

.hero-grid { display: grid; grid-template-columns: 1fr; gap: 32px; align-items: center; }
@media (min-width: 1024px) { .hero-grid { grid-template-columns: 1fr 1fr; gap: 48px; } }

.hero-content { display: flex; flex-direction: column; align-items: center; text-align: center; order: 1; }
@media (min-width: 1024px) { .hero-content { align-items: flex-start; text-align: right; } }
.hero-badge { display: inline-block; background: rgba(234,88,12,0.1); border: 1px solid rgba(234,88,12,0.3); color: var(--accent-600); font-weight: 600; padding: 10px 24px; border-radius: 9999px; margin-bottom: 32px; font-size: 1rem; }
.hero-title { font-size: 2.25rem; font-weight: 800; line-height: 1.4; color: var(--navy-950); margin-bottom: 32px; }
@media (min-width: 768px) { .hero-title { font-size: 3rem; } }
@media (min-width: 1024px) { .hero-title { font-size: 3.5rem; line-height: 1.3; } }
.hero-subtitle { color: var(--navy-700); font-size: 1.125rem; max-width: 32rem; line-height: 1.8; margin-bottom: 48px; }
.hero-cta { width: 100%; display: flex; justify-content: center; }
@media (min-width: 1024px) { .hero-cta { justify-content: flex-start; } }
@media (max-width: 639px) { .hero-cta .btn-primary { width: 100%; } }

.hero-image-wrapper { display: flex; justify-content: center; order: 2; margin-top: 16px; }
@media (min-width: 1024px) { .hero-image-wrapper { margin-top: 48px; transform: translateY(24px); } }
.hero-image-container {
  position: relative; width: 100%; max-width: 280px; aspect-ratio: 1/1; border-radius: 40px; overflow: hidden;
  border: 2px solid rgba(234, 179, 8, 0.3); box-shadow: 0 30px 80px rgba(234,88,12,0.2);
}
@media (min-width: 640px) { .hero-image-container { max-width: 320px; } }
@media (min-width: 1024px) { .hero-image-container { max-width: 340px; } }
.hero-image { width: 100%; height: 100%; transition: transform 0.7s; }
.hero-image-container:hover .hero-image { transform: scale(1.05); }
.hero-image-overlay { position: absolute; inset: 0; background: linear-gradient(to top, var(--white), transparent 50%); opacity: 0.9; pointer-events: none; }


/* ── ABOUT SECTION ──────────────────────────────────────────── */
.about-section { background: var(--white); }
.about-bg-glow { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(ellipse 55% 55% at 15% 50%, rgba(234, 88, 12, 0.05) 0%, transparent 70%); }
.about-grid { display: grid; grid-template-columns: 1fr; gap: 64px; align-items: center; }
@media (min-width: 1024px) { .about-grid { grid-template-columns: 1fr 1fr; } }
.about-image-wrapper { position: relative; display: flex; justify-content: center; order: 2; }
@media (min-width: 1024px) { .about-image-wrapper { order: 1; } }
.about-image-container {
  position: relative; width: clamp(240px, 36vw, 380px); aspect-ratio: 1/1; border-radius: 32px; overflow: hidden;
  border: 2px solid rgba(234, 88, 12, 0.28); box-shadow: 0 0 48px rgba(234, 88, 12, 0.12), 0 12px 40px rgba(26,11,46,0.55);
  transition: transform 0.35s;
}
.about-image-container:hover { transform: scale(1.02); }
.about-image { width: 100%; height: 100%; object-fit: cover; }
.about-image-overlay { display: none; }
.about-badge { position: absolute; bottom: -16px; left: -16px; border-radius: 24px; padding: 20px 24px; background: #FFFFFF; border: 1px solid #E5E7EB; box-shadow: 0 10px 25px rgba(0,0,0,0.05); }
.about-badge-num { font-size: 1.875rem; font-weight: 800; color: var(--accent-600); margin: 0; line-height: 1; }
.about-badge-text { font-size: 0.75rem; font-weight: 600; color: var(--navy-700); margin-top: 4px; }
@media (max-width: 639px) { .about-badge { display: none; } }

.about-content { order: 1; }
@media (min-width: 1024px) { .about-content { order: 2; } }
.about-title { font-size: clamp(2rem, 4vw, 3rem); font-weight: 700; color: var(--navy-900); line-height: 1.2; margin-bottom: 32px; }
.about-points { display: flex; flex-direction: column; gap: 40px; margin-bottom: 80px; }
.about-point { display: flex; gap: 24px; align-items: flex-start; }
.check-icon {
  flex-shrink: 0; width: 48px; height: 48px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-size: 1.125rem; font-weight: 700; background: rgba(234, 88, 12, 0.12); color: var(--accent-400); border: 1px solid rgba(234, 88, 12, 0.3); margin-top: 4px;
}
.about-point p { color: var(--navy-700); line-height: 1.6; font-size: 1.15rem; max-width: 32rem; }

.about-stats-container {
  display: grid; grid-template-columns: 1fr; gap: 32px; padding: 48px; border-radius: 32px;
  background: var(--white-90); border: 1px solid rgba(234, 88, 12, 0.2);
}
@media (min-width: 640px) { .about-stats-container { grid-template-columns: 1fr 1fr 1fr; } }
.stat-item { text-align: center; position: relative; }
.stat-num { font-size: 1.875rem; font-weight: 800; color: var(--accent-400); margin-bottom: 8px; }
.stat-label { font-size: 0.875rem; font-weight: 500; color: var(--navy-600); }
.stat-divider { display: none; position: absolute; top: 50%; right: -16px; transform: translateY(-50%); width: 1px; height: 48px; background: linear-gradient(to bottom, transparent, rgba(26, 11, 46, 0.1), transparent); }
@media (min-width: 640px) { .stat-divider { display: block; } }


/* ── FEATURES SECTION ───────────────────────────────────────── */
.features-section { background: var(--white-90); }
.section-title { font-size: clamp(1.8rem, 4vw, 2.8rem); font-weight: 900; color: var(--navy-900); margin-bottom: 16px; }
.section-subtitle { color: var(--navy-600); font-size: 1.05rem; max-width: 36rem; margin: 0 auto; line-height: 1.6; }

.features-grid { display: grid; grid-template-columns: 1fr; gap: 20px; }
@media (min-width: 640px) { .features-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .features-grid { grid-template-columns: 1fr 1fr 1fr; } }
.feature-card {
  position: relative; border-radius: 16px; padding: 28px; border: 1px solid rgba(26,11,46,0.05);
  background: var(--white); box-shadow: 0 4px 20px rgba(26,11,46,0.05);
  transition: all 0.25s; overflow: hidden;
}
.feature-card:hover { transform: translateY(-6px); box-shadow: 0 16px 40px rgba(26,11,46,0.1), 0 0 24px rgba(234, 88, 12, 0.1); }
.feature-icon {
  width: 56px; height: 56px; border-radius: 16px; display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem; margin-bottom: 20px; transition: transform 0.4s;
}
.feature-card:hover .feature-icon { transform: scale(1.1); }
.feature-title { font-size: 1rem; font-weight: 700; color: var(--navy-900); margin-bottom: 10px; }
.feature-desc { font-size: 0.875rem; color: var(--navy-700); line-height: 1.8; }
.feature-line { position: absolute; bottom: 0; left: 0; right: 0; height: 2px; border-radius: 0 0 16px 16px; opacity: 0; transition: opacity 0.3s; }
.feature-card:hover .feature-line { opacity: 1; }


/* ── GRADES SECTION ─────────────────────────────────────────── */
.grades-section { background: var(--white); }
.grades-grid { display: grid; grid-template-columns: 1fr; gap: 48px; }
@media (min-width: 768px) { .grades-grid { grid-template-columns: 1fr 1fr 1fr; gap: 48px; } }
@media (min-width: 1024px) { .grades-grid { gap: 64px; } }

.grade-card-wrapper { transition: all 0.3s; }
.grade-card-wrapper:hover { transform: translateY(-8px); }

.grade-card {
  position: relative; border-radius: 32px; padding: 56px 40px; display: flex; flex-direction: column; height: 100%;
  backdrop-filter: blur(16px);
}
.standard-card {
  background: var(--navy-800);
  border: 1px solid var(--white-08);
  box-shadow: 0 12px 40px rgba(26,11,46,0.4);
}
.featured-card {
  background: linear-gradient(145deg, var(--navy-900), var(--navy-800)); border: 1px solid rgba(234,88,12,0.4); box-shadow: 0 12px 48px rgba(234,88,12,0.15);
}
.grade-card-wrapper:hover .standard-card {
  border-color: var(--white-15);
  box-shadow: 0 16px 40px rgba(26,11,46,0.5);
  background: var(--navy-700);
}
.grade-card-wrapper:hover .featured-card { box-shadow: 0 20px 48px rgba(26,11,46,0.4), 0 0 32px rgba(234,88,12,0.25); }

.grade-header { text-align: center; margin-bottom: 48px; }
.grade-icon-wrapper {
  width: 64px; height: 64px; border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 32px auto;
  border-width: 1px; border-style: solid; backdrop-filter: blur(8px); transition: transform 0.3s;
}
.grade-card-wrapper:hover .grade-icon-wrapper { transform: scale(1.12) rotate(5deg); }
.grade-icon { font-size: 1.5rem; }
.grade-title { font-size: 1.5rem; font-weight: 700; line-height: 1.4; color: var(--white); margin-bottom: 8px; }
.grade-en { font-size: 0.8125rem; font-weight: 500; letter-spacing: 0.5px; color: var(--white-50); text-transform: uppercase; }

.grade-topics { margin-bottom: 32px; display: flex; flex-direction: column; justify-content: center; }
.grade-topics h4 { font-family: var(--font-arabic); font-weight: 500; text-align: center; font-size: 0.875rem; color: var(--white-70); margin-bottom: 16px; }
.topics-list { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.topic-tag {
  padding: 8px 16px; border-radius: 12px; font-family: var(--font-arabic); font-weight: 500; font-size: 0.8125rem;
  background: rgba(255, 255, 255, 0.05); color: var(--white-90); border: 1px solid var(--white-08); height: 36px;
  display: flex; align-items: center; justify-content: center; transition: background 0.2s;
}
.topic-tag:hover { background: rgba(255, 255, 255, 0.1); }

.grade-divider { width: 100%; height: 1px; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent); margin-bottom: 48px; }

.grade-stats { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 16px; margin-bottom: 40px; }
.grade-stat { text-align: center; display: flex; flex-direction: column; justify-content: center; align-items: center; }
.grade-stat .num { font-size: 1.5rem; font-weight: 800; font-family: var(--font-display); margin-bottom: 4px; color: var(--white); }
.grade-stat .lbl { font-size: 0.8125rem; font-family: var(--font-arabic); font-weight: 500; color: var(--white-50); }

/* ── FOOTER ─────────────────────────────────────────────────── */
.site-footer { position: relative; margin-top: 128px; background: var(--navy-950); }
.footer-top-border { position: absolute; top: 0; left: 0; right: 0; height: 2px; background: rgba(234, 88, 12, 0.3); }
.footer-grid { display: grid; grid-template-columns: 1fr; gap: 32px; padding-top: 96px; padding-bottom: 48px; }
@media (min-width: 1024px) { .footer-grid { grid-template-columns: 1.2fr 1fr 1fr; gap: 64px; padding-bottom: 64px; } }

.footer-col { display: flex; flex-direction: column; }
.footer-brand { align-items: flex-start; }
.footer-logo-icon { width: 40px; height: 40px; }
.footer-desc { color: var(--white-50); font-size: 0.875rem; line-height: 1.6; margin-top: 16px; max-width: 320px; }
.social-links { display: flex; gap: 14px; margin-top: 24px; }
.social-link {
  width: 48px; height: 48px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  background: rgba(234, 88, 12, 0.1); color: var(--accent-500); transition: all 0.2s; font-size: 1.125rem;
}
.social-link:hover { transform: scale(1.05); background: rgba(234, 88, 12, 0.2); }

.col-heading { margin-bottom: 24px; }
.col-heading h4 { font-family: var(--font-arabic); font-weight: 700; font-size: 1.25rem; color: var(--white); }
.col-heading-line { height: 3px; width: 80px; margin-top: 12px; border-radius: 9999px; background: var(--accent-500); }

.footer-links { list-style: none; display: flex; flex-direction: column; gap: 20px; }
.footer-links a { color: var(--white-50); font-family: var(--font-arabic); font-size: 0.875rem; transition: color 0.2s; }
.footer-links a:hover { color: var(--accent-300); }

.footer-copyright-bar { width: 100%; background: rgba(0,0,0,0.2); }
.copyright-content { display: flex; justify-content: center; align-items: center; padding-top: 32px; padding-bottom: 100px; }
@media (min-width: 768px) { .copyright-content { padding-bottom: 32px; } }
.copyright-content p { color: var(--white-70); font-size: 1rem; text-align: center; }

/* ── SCROLL TO TOP & WHATSAPP ──────────────────────────────────────────── */
.scroll-to-top {
  position: fixed; bottom: 90px; right: 24px; z-index: 50; width: 48px; height: 48px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--white); border: 1px solid rgba(234, 88, 12, 0.4);
  box-shadow: 0 4px 20px rgba(26,11,46,0.1), 0 0 16px rgba(234, 88, 12, 0.15);
  opacity: 0; pointer-events: none; transform: scale(0.7); transition: all 0.3s;
}
.scroll-to-top.visible { opacity: 1; pointer-events: auto; transform: scale(1); }
.scroll-to-top:hover { transform: scale(1.12); box-shadow: 0 0 28px rgba(234, 88, 12, 0.3); }
.scroll-to-top:active { transform: scale(0.95); }

.whatsapp-float {
  position: fixed; bottom: 32px; right: 24px; z-index: 50; width: 50px; height: 50px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: #25D366; color: white; font-size: 1.8rem; text-decoration: none;
  box-shadow: 0 4px 20px rgba(37,211,102,0.4), 0 0 16px rgba(37,211,102,0.2);
  transition: all 0.3s;
}
.whatsapp-float:hover { transform: scale(1.12); box-shadow: 0 0 28px rgba(37,211,102,0.5); color: white; }
.whatsapp-float:active { transform: scale(0.95); }

@media (max-width: 767px) {
  .whatsapp-float { bottom: 90px; }
  .scroll-to-top { bottom: 150px; }
}

/* ── MOBILE NAV ─────────────────────────────────────────────── */
.mobile-nav {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 50; display: block;
  background: rgba(255, 255, 255, 0.95); backdrop-filter: blur(16px);
  border-top: 1px solid rgba(26, 11, 46, 0.08); padding-bottom: env(safe-area-inset-bottom);
}
@media (min-width: 768px) { .mobile-nav { display: none; } }
.hidden-mobile { display: none !important; }
@media (min-width: 768px) { .hidden-mobile { display: inline-flex !important; } }

.mobile-nav-inner { display: flex; align-items: center; justify-content: space-around; height: 72px; padding-inline: 8px; }
.mobile-nav-item { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; color: var(--navy-500); flex: 1; height: 100%; transition: color 0.2s; }
.mobile-nav-item i { font-size: 1.25rem; transition: transform 0.2s; }
.mobile-nav-item span { font-family: var(--font-arabic); font-size: 0.65rem; font-weight: 600; }
.mobile-nav-item.active { color: var(--accent-600); }
.mobile-nav-item.active i { transform: translateY(-2px); }

/* Utility Classes */
.text-white { color: #ffffff !important; }

/* Mobile Fullscreen Fallback */
.mobile-fullscreen {
  position: fixed !important;
  top: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 100% !important;
  height: 100dvh !important;
  height: -webkit-fill-available !important;
  z-index: 99999 !important;
  border-radius: 0 !important;
  background: #000 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}
.mobile-fullscreen .video-wrapper {
  padding-bottom: 0 !important;
  height: 100% !important;
  width: 100% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}
.mobile-fullscreen iframe {
  height: 100% !important;
  width: 100% !important;
  max-width: 100% !important;
}
.mobile-fullscreen #custom-fullscreen-btn {
  position: absolute !important;
  bottom: 0 !important;
  left: 0 !important;
  width: 100% !important;
}
.mobile-fullscreen .video-wrapper > div:not(:first-child) {
  display: none !important;
}
/* Dr Ahmed Branding Overrides */
.btn-primary { background: linear-gradient(180deg, #404040 0%, #171717 100%) !important; color: #facc15 !important; }
.hero-title, .about-title, .section-title, .logo-text, .grade-title, .footer-desc, .footer-links a, .copyright-content p, .col-heading h4 { color: #111827 !important; }
.hero-subtitle, .about-point p, .section-subtitle, .nav-link, .grade-en { color: #374151 !important; }
.hero-section, .site-header, .standard-card { background: #ffffff !important; border-color: #e5e7eb !important; }
.site-header.scrolled { background: rgba(255, 255, 255, 0.95) !important; }
.site-footer, .standard-card:hover { background: #f9fafb !important; border-color: #facc15 !important; }
.nav-link:hover, .social-link, .check-icon, .grade-icon-wrapper { background: #facc15 !important; color: #000000 !important; }
.site-footer { border-top: 4px solid #facc15 !important; }
.text-accent-gradient { background: linear-gradient(135deg, #facc15 0%, #eab308 50%, #ca8a04 100%) !important; -webkit-background-clip: text !important; -webkit-text-fill-color: transparent !important; background-clip: text !important; }
.text-accent, .logo-accent { color: #eab308 !important; }
.Chemistry-grid-overlay, .chemistry-grid-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.04 !important;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='100' viewBox='0 0 60 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M30 0l25.98 15v30L30 60 4.02 45V15z' fill-rule='evenodd' stroke='%230A0F1E' fill='none' stroke-width='2'/%3E%3C/svg%3E");
  background-size: 60px 100px;
  z-index: 0;
}
/* Mobile Nav Branding Overrides */
.mobile-nav-item { color: #111827 !important; }
.mobile-nav-item.active, .mobile-nav-item:hover { color: #eab308 !important; }
.mobile-nav-item i { color: inherit; }

/* Global Navy Purple Removal */
:root {
  --navy-950: #0a0a0a;
  --navy-900: #111827;
  --navy-800: #1f2937;
  --navy-700: #374151;
  --navy-600: #4b5563;
  --navy-500: #6b7280;
}

/* Global Orange Accent Removal */
:root {
  --accent-600: #ca8a04; 
  --accent-500: #eab308; 
  --accent-400: #facc15; 
  --accent-300: #fef08a; 
  --accent-200: #fef9c3; 
  --accent-glow: rgba(234, 179, 8, 0.15);
  --accent-glow-strong: rgba(234, 179, 8, 0.35);
}



/* About Image Background */
.about-image-container {
    aspect-ratio: 1 / 1.25 !important;
    background-color: #facc15 !important;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='100' viewBox='0 0 60 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M30 0l25.98 15v30L30 60 4.02 45V15z' fill-rule='evenodd' stroke='%23000' fill='none' stroke-width='2' stroke-opacity='0.1'/%3E%3C/svg%3E"), linear-gradient(135deg, #fef08a 0%, #eab308 100%) !important;
    background-size: 60px 100px, 100% 100% !important;
    border: 4px solid #fff !important;
    box-shadow: 0 20px 40px rgba(234, 179, 8, 0.25) !important;
}
.about-image { z-index: 1; position: relative; }

/* Override Badge Number Color */
.about-badge-num { color: #eab308 !important; }

/* Footer Copyright Bar Background */
.footer-copyright-bar {
    background: #eab308 !important;
}
