/* ==========================================================================
   Design System & CSS Variables (منصة مستر أحمد هديب)
   ========================================================================== */

:root {
  /* Color Palette - Bright, Clean, Apple-like EdTech */
  --bg-main: #fcfdfe;
  --bg-surface: #ffffff;
  --bg-subtle: #f8fafc;
  --bg-card: rgba(255, 255, 255, 0.88);
  --bg-blue-tint: #f0f7ff;
  --bg-blue-light: #e0f2fe;

  --accent-electric: #0066ff;
  --accent-electric-hover: #0052cc;
  --accent-cyan: #06b6d4;
  --accent-blue-gradient: linear-gradient(135deg, #0066ff 0%, #0ea5e9 100%);
  --accent-soft-glow: rgba(0, 102, 255, 0.12);

  --text-main: #0f172a;
  --text-secondary: #334155;
  --text-muted: #64748b;
  --text-light: #94a3b8;

  --border-subtle: rgba(226, 232, 240, 0.8);
  --border-glass: rgba(255, 255, 255, 0.6);
  --border-blue: rgba(0, 102, 255, 0.18);

  --shadow-sm: 0 2px 8px rgba(15, 23, 42, 0.04);
  --shadow-md: 0 8px 30px rgba(15, 23, 42, 0.06);
  --shadow-lg: 0 20px 45px rgba(15, 23, 42, 0.08);
  --shadow-blue: 0 10px 30px rgba(0, 102, 255, 0.2);

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-full: 9999px;

  --font-arabic: 'Cairo', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --transition-smooth: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  --container-max: 1200px;
}

/* Base Reset & Typography */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: var(--font-arabic);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

html {
  scroll-behavior: smooth;
  direction: rtl;
}

body {
  background-color: var(--bg-main);
  color: var(--text-main);
  line-height: 1.65;
  overflow-x: hidden;
  position: relative;
  min-height: 100vh;
}

/* Ambient Background Light Elements */
.ambient-glow {
  position: fixed;
  border-radius: 50%;
  filter: blur(100px);
  z-index: -1;
  pointer-events: none;
  opacity: 0.55;
  transition: transform 10s ease-in-out;
}

.ambient-glow-1 {
  width: 550px;
  height: 550px;
  background: radial-gradient(circle, rgba(0, 102, 255, 0.12) 0%, rgba(224, 242, 254, 0.4) 70%, transparent 100%);
  top: -10%;
  right: -5%;
  animation: floatAmbient 12s infinite alternate ease-in-out;
}

.ambient-glow-2 {
  width: 450px;
  height: 450px;
  background: radial-gradient(circle, rgba(6, 182, 212, 0.1) 0%, rgba(240, 247, 255, 0.6) 70%, transparent 100%);
  bottom: 10%;
  left: -5%;
  animation: floatAmbient 15s infinite alternate-reverse ease-in-out;
}

.ambient-grid {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    linear-gradient(to right, rgba(226, 232, 240, 0.35) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(226, 232, 240, 0.35) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.6) 0%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.6) 0%, transparent 80%);
  z-index: -1;
  pointer-events: none;
}

@keyframes floatAmbient {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(25px, 35px) scale(1.08); }
}

/* Container */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 1.5rem;
  width: 100%;
}

/* ==========================================================================
   Navigation Bar (Minimal, Transparent -> Glass on Scroll)
   ========================================================================== */

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  padding: 1.25rem 0;
  transition: var(--transition-smooth);
}

.navbar.scrolled {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-subtle);
  padding: 0.85rem 0;
  box-shadow: var(--shadow-sm);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--text-main);
}

.brand-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  background: var(--accent-blue-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 1.2rem;
  box-shadow: 0 4px 12px rgba(0, 102, 255, 0.25);
}

.brand-title {
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.3px;
  color: var(--text-main);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.nav-socials {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.nav-social-btn {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  text-decoration: none;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  transition: var(--transition-smooth);
}

.nav-social-btn:hover {
  color: var(--accent-electric);
  border-color: var(--border-blue);
  background: var(--bg-blue-tint);
  transform: translateY(-2px);
}

.nav-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 1.25rem;
  background: var(--accent-electric);
  color: #ffffff;
  font-size: 0.92rem;
  font-weight: 700;
  border-radius: var(--radius-full);
  text-decoration: none;
  transition: var(--transition-smooth);
  box-shadow: 0 4px 14px rgba(0, 102, 255, 0.22);
}

.nav-cta-btn:hover {
  background: var(--accent-electric-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0, 102, 255, 0.32);
}

/* ==========================================================================
   Hero Section
   ========================================================================== */

.hero-section {
  min-height: 100vh;
  padding: 7.5rem 0 3.5rem 0;
  display: flex;
  align-items: center;
  position: relative;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: 2.5rem;
}

/* Status Badge */
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.45rem 1.1rem;
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-secondary);
  box-shadow: var(--shadow-sm);
  margin-bottom: 1.5rem;
  transition: var(--transition-smooth);
}

.status-pill:hover {
  border-color: var(--border-blue);
  box-shadow: 0 4px 15px rgba(0, 102, 255, 0.1);
}

.status-pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--accent-electric);
  position: relative;
}

.status-pulse::after {
  content: '';
  position: absolute;
  top: -3px;
  left: -3px;
  right: -3px;
  bottom: -3px;
  border-radius: 50%;
  background-color: var(--accent-electric);
  opacity: 0.6;
  animation: pulseDot 2s cubic-bezier(0, 0, 0.2, 1) infinite;
}

@keyframes pulseDot {
  0% { transform: scale(1); opacity: 0.8; }
  70% { transform: scale(2.2); opacity: 0; }
  100% { transform: scale(2.2); opacity: 0; }
}

/* Hero Typography */
.hero-headline {
  font-size: clamp(2.3rem, 4.5vw, 3.6rem);
  font-weight: 900;
  line-height: 1.25;
  letter-spacing: -0.8px;
  color: var(--text-main);
  margin-bottom: 1.25rem;
}

.hero-headline .highlight {
  background: var(--accent-blue-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.hero-secondary {
  font-size: clamp(1.15rem, 2vw, 1.4rem);
  font-weight: 600;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 0.75rem;
}

.hero-supporting {
  font-size: clamp(0.98rem, 1.6vw, 1.1rem);
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 580px;
  margin-bottom: 2rem;
}

/* CTA Group */
.hero-cta-wrapper {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.25rem;
}

.main-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.95rem 2.2rem;
  background: var(--accent-blue-gradient);
  color: #ffffff;
  font-size: 1.08rem;
  font-weight: 800;
  border-radius: var(--radius-full);
  text-decoration: none;
  box-shadow: var(--shadow-blue);
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
}

.main-cta-btn:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 14px 35px rgba(0, 102, 255, 0.35);
  color: #ffffff;
}

.main-cta-btn i {
  font-size: 0.95rem;
  transition: transform 0.3s ease;
}

.main-cta-btn:hover i {
  transform: translateY(3px);
}

.cta-sub-label {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 1rem;
  background: var(--bg-blue-tint);
  border: 1px solid var(--border-blue);
  border-radius: var(--radius-full);
  color: var(--accent-electric);
  font-size: 0.9rem;
  font-weight: 700;
}

/* Hero Visual & Blend */
.hero-visual-wrapper {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-image-container {
  position: relative;
  width: 100%;
  max-width: 560px;
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: #ffffff;
  border: 1px solid rgba(226, 232, 240, 0.9);
  box-shadow: var(--shadow-lg);
  transition: var(--transition-smooth);
}

.hero-image-container:hover {
  box-shadow: 0 25px 60px rgba(0, 102, 255, 0.12);
  transform: translateY(-4px);
}

.hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  transition: transform 0.5s ease;
}

/* Soft holographic overlay card */
.hero-floating-badge {
  position: absolute;
  bottom: 1.5rem;
  right: 1.5rem;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.8);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  padding: 0.75rem 1.15rem;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  animation: floatBadge 4s ease-in-out infinite alternate;
}

.badge-spark {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  background: var(--bg-blue-tint);
  color: var(--accent-electric);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
}

.badge-text-primary {
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1.2;
}

.badge-text-sub {
  font-size: 0.75rem;
  color: var(--text-muted);
}

@keyframes floatBadge {
  0% { transform: translateY(0); }
  100% { transform: translateY(-8px); }
}

/* ==========================================================================
   Supporting Section: بنجهز كل حاجة قبل ما نفتحلكم الباب
   ========================================================================== */

.prep-section {
  padding: 5.5rem 0;
  position: relative;
  background: linear-gradient(180deg, var(--bg-main) 0%, var(--bg-subtle) 100%);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 3.5rem auto;
}

.section-title {
  font-size: clamp(1.8rem, 3.2vw, 2.5rem);
  font-weight: 900;
  color: var(--text-main);
  letter-spacing: -0.5px;
  margin-bottom: 1rem;
}

.section-desc {
  font-size: 1.08rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* Wireframe / UI Construction Cards */
.blueprints-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.blueprint-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
}

.blueprint-card:hover {
  transform: translateY(-5px);
  border-color: var(--border-blue);
  box-shadow: var(--shadow-md);
}

.blueprint-icon-box {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: var(--bg-blue-tint);
  color: var(--accent-electric);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  margin-bottom: 1.25rem;
}

.blueprint-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 0.5rem;
}

.blueprint-text {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 1.25rem;
}

/* Minimal UI wireframe skeleton element inside card */
.wireframe-preview {
  background: #f8fafc;
  border: 1px dashed #cbd5e1;
  border-radius: var(--radius-md);
  padding: 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.wireframe-bar {
  height: 8px;
  border-radius: 4px;
  background: #e2e8f0;
}

.wireframe-bar.w-75 { width: 75%; }
.wireframe-bar.w-50 { width: 50%; }
.wireframe-bar.w-90 { width: 90%; }
.wireframe-bar.accent { background: rgba(0, 102, 255, 0.25); }

/* ==========================================================================
   Social Media Hub Section
   ========================================================================== */

.social-section {
  padding: 5rem 0;
  position: relative;
}

.social-container-box {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 3rem 2.5rem;
  box-shadow: var(--shadow-lg);
  text-align: center;
}

.social-header {
  max-width: 600px;
  margin: 0 auto 2.5rem auto;
}

.social-header h3 {
  font-size: clamp(1.6rem, 2.8vw, 2.2rem);
  font-weight: 900;
  color: var(--text-main);
  margin-bottom: 0.75rem;
}

.social-header p {
  font-size: 1.05rem;
  color: var(--text-muted);
}

.social-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
  max-width: 620px;
  margin: 0 auto;
}

.social-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1.75rem 1rem;
  background: var(--bg-subtle);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  text-decoration: none;
  color: var(--text-main);
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
}

.social-card-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  margin-bottom: 0.85rem;
  transition: transform 0.3s ease;
}

.social-card-name {
  font-size: 1.05rem;
  font-weight: 800;
  margin-bottom: 0.25rem;
}

.social-card-action {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted);
}

/* Individual Social Colors & Hovers */
.social-card.facebook .social-card-icon {
  background: rgba(24, 119, 242, 0.1);
  color: #1877f2;
}

.social-card.facebook:hover {
  background: #ffffff;
  border-color: #1877f2;
  box-shadow: 0 10px 25px rgba(24, 119, 242, 0.18);
  transform: translateY(-5px);
}

.social-card.instagram .social-card-icon {
  background: rgba(225, 48, 108, 0.1);
  color: #e1306c;
}

.social-card.instagram:hover {
  background: #ffffff;
  border-color: #e1306c;
  box-shadow: 0 10px 25px rgba(225, 48, 108, 0.18);
  transform: translateY(-5px);
}

.social-card.tiktok .social-card-icon {
  background: rgba(0, 0, 0, 0.08);
  color: #0f172a;
}

.social-card.tiktok:hover {
  background: #ffffff;
  border-color: #0f172a;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
  transform: translateY(-5px);
}

.social-card.youtube .social-card-icon {
  background: rgba(255, 0, 0, 0.1);
  color: #ff0000;
}

.social-card.youtube:hover {
  background: #ffffff;
  border-color: #ff0000;
  box-shadow: 0 10px 25px rgba(255, 0, 0, 0.18);
  transform: translateY(-5px);
}

.social-card:hover .social-card-icon {
  transform: scale(1.1);
}

/* ==========================================================================
   Footer (Minimal, Clean)
   ========================================================================== */

.footer {
  padding: 3rem 0 2rem 0;
  border-top: 1px solid var(--border-subtle);
  background: var(--bg-surface);
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1.25rem;
}

.footer-brand {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--text-main);
}

.footer-tagline {
  font-size: 0.95rem;
  color: var(--text-muted);
  font-weight: 600;
}

.footer-social-links {
  display: flex;
  gap: 0.75rem;
}

.footer-social-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-subtle);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.95rem;
  transition: var(--transition-smooth);
}

.footer-social-btn:hover {
  color: var(--accent-electric);
  border-color: var(--border-blue);
  background: var(--bg-blue-tint);
  transform: translateY(-2px);
}

.footer-copyright {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-top: 0.5rem;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  flex-wrap: wrap;
  justify-content: center;
}

.footer-copyright .developer-link {
  color: var(--accent-electric);
  font-weight: 700;
  text-decoration: none;
  transition: var(--transition-smooth);
}

.footer-copyright .developer-link:hover {
  color: var(--accent-electric-hover);
  text-decoration: underline;
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */

@media (max-width: 992px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 3rem;
  }

  .hero-supporting {
    margin: 0 auto 2rem auto;
  }

  .hero-cta-wrapper {
    justify-content: center;
  }

  .blueprints-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .social-cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .navbar {
    padding: 1rem 0;
  }

  .nav-socials {
    display: none;
  }

  .hero-section {
    padding: 6rem 0 2.5rem 0;
  }

  .hero-headline {
    font-size: 2.1rem;
  }

  .blueprints-grid {
    grid-template-columns: 1fr;
  }

  .social-cards-grid {
    grid-template-columns: 1fr;
  }

  .social-container-box {
    padding: 2rem 1.25rem;
  }

  .hero-cta-wrapper {
    flex-direction: column;
    width: 100%;
  }

  .main-cta-btn {
    width: 100%;
    justify-content: center;
  }
}
