/* ═══════════════════════════════════════════════
   DMC 2026 — Digital Marketing Course
   Main Stylesheet
═══════════════════════════════════════════════ */

:root {
  --bg:      #0a1628;
  --bg2:     #0f2040;
  --bg3:     #162848;
  --card:    #1a3050;
  --card2:   #1e3860;
  --orange:  #ff6b35;
  --orange2: #ff8c5a;
  --teal:    #00c9a7;
  --gold:    #ffd166;
  --white:   #f0f4ff;
  --gray:    #8ba3c7;
  --gray2:   #4a6fa5;
  --gray3:   #2a4070;
  --green:   #06d6a0;
  --red:     #ef476f;
  --purple:  #845ec2;
  --blue:    #4a90d9;
  --border:  rgba(74, 111, 165, 0.25);
  --shadow:  0 4px 24px rgba(0,0,0,0.4);
  --rad:     12px;
  --rad2:    8px;
  --font:    'Tajawal', sans-serif;
  --font2:   'Cairo', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--white);
  direction: rtl;
  overflow-x: hidden;
}
a { text-decoration: none; color: inherit; }
button { cursor: pointer; border: none; background: none; font-family: var(--font); }
ul { list-style: none; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }

/* ── SCROLLBAR ── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg2); }
::-webkit-scrollbar-thumb { background: var(--gray3); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--orange); }

/* ═══════ NAVBAR ═══════ */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: rgba(10,22,40,0.92);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border);
  transition: background .3s;
}
.navbar.scrolled { background: rgba(10,22,40,0.98); }
.nav-inner {
  max-width: 1200px; margin: 0 auto; padding: 0 1.5rem;
  display: flex; align-items: center; gap: 1.5rem; height: 62px;
}
.nav-logo { display: flex; align-items: center; gap: 8px; font-weight: 800; font-size: 18px; }
.logo-icon { font-size: 22px; }
.logo-accent { color: var(--orange); }
.nav-links { display: flex; gap: 4px; margin-right: auto; }
.nav-link {
  padding: 6px 14px; border-radius: 20px; font-size: 14px;
  color: var(--gray); transition: all .2s; font-weight: 500;
}
.nav-link:hover, .nav-link.active { color: var(--white); background: rgba(255,107,53,0.12); }
.nav-link.active { color: var(--orange); }
.nav-cta {
  background: var(--orange); color: white; padding: 8px 18px;
  border-radius: 24px; font-size: 14px; font-weight: 700;
  transition: transform .2s, box-shadow .2s;
  box-shadow: 0 0 16px rgba(255,107,53,0.3);
  white-space: nowrap;
}
.nav-cta:hover { transform: translateY(-2px); box-shadow: 0 4px 24px rgba(255,107,53,0.4); }
.burger { display: none; font-size: 22px; color: var(--white); padding: 6px; }

/* ═══════ HERO ═══════ */
.hero {
  min-height: 100vh; display: flex; align-items: center;
  position: relative; overflow: hidden;
  padding-top: 62px;
}
.hero-bg-shapes { position: absolute; inset: 0; pointer-events: none; }
.hs {
  position: absolute; border-radius: 50%;
  filter: blur(80px); opacity: 0.18;
}
.hs1 { width: 600px; height: 600px; background: var(--orange); top: -200px; right: -150px; }
.hs2 { width: 500px; height: 500px; background: var(--teal); bottom: -150px; left: -100px; }
.hs3 { width: 300px; height: 300px; background: var(--gold); top: 50%; left: 40%; }

.hero .container { position: relative; z-index: 2; padding: 4rem 1.5rem; text-align: center; }
.hero-badge {
  display: inline-block; background: rgba(255,107,53,0.12);
  border: 1px solid rgba(255,107,53,0.35); border-radius: 24px;
  padding: 6px 20px; font-size: 13px; color: var(--orange);
  font-weight: 600; margin-bottom: 1.5rem;
  animation: fadeDown .6s ease both;
}
.hero-title {
  font-size: clamp(2.5rem, 6vw, 5rem);
  font-weight: 900; line-height: 1.15;
  font-family: var(--font2);
  animation: fadeDown .7s .1s ease both;
  margin-bottom: 1rem;
}
.hero-title .accent { color: var(--orange); }
.hero-sub {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--gray); max-width: 700px; margin: 0 auto 2.5rem;
  line-height: 1.8;
  animation: fadeDown .7s .2s ease both;
}
.hero-stats {
  display: flex; align-items: center; justify-content: center;
  gap: 0; flex-wrap: wrap;
  margin-bottom: 2.5rem;
  animation: fadeDown .7s .3s ease both;
}
.hstat { text-align: center; padding: 0 2rem; }
.hstat-n { display: block; font-size: 2.4rem; font-weight: 900; color: var(--orange); font-family: var(--font2); }
.hstat-l { display: block; font-size: 0.85rem; color: var(--gray); margin-top: 2px; }
.hstat-div { width: 1px; height: 45px; background: var(--border); flex-shrink: 0; }
.hero-btns {
  display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap;
  animation: fadeDown .7s .4s ease both;
}
.btn-primary {
  background: var(--orange); color: white; padding: 14px 28px;
  border-radius: 30px; font-size: 16px; font-weight: 700;
  display: flex; align-items: center; gap: 8px;
  transition: transform .2s, box-shadow .2s;
  box-shadow: 0 0 24px rgba(255,107,53,0.35);
}
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 8px 32px rgba(255,107,53,0.45); }
.btn-outline {
  border: 1px solid var(--teal); color: var(--teal); padding: 14px 28px;
  border-radius: 30px; font-size: 16px; font-weight: 700;
  display: flex; align-items: center; gap: 8px;
  transition: all .2s;
}
.btn-outline:hover { background: rgba(0,201,167,0.1); transform: translateY(-3px); }
.hero-scroll-hint {
  position: absolute; bottom: 2rem; left: 50%; transform: translateX(-50%);
  font-size: 24px; color: var(--gray); animation: bounce 2s infinite;
}

/* ═══════ SECTIONS ═══════ */
.section { padding: 5rem 0; }
.section-alt { background: var(--bg2); }
.section-header { text-align: center; margin-bottom: 3.5rem; }
.section-tag {
  display: inline-block; background: rgba(255,107,53,0.1);
  border: 1px solid rgba(255,107,53,0.25); border-radius: 20px;
  padding: 5px 18px; font-size: 13px; color: var(--orange);
  font-weight: 600; margin-bottom: 1rem;
}
.section-title { font-size: clamp(1.8rem, 3vw, 2.8rem); font-weight: 800; font-family: var(--font2); margin-bottom: 0.75rem; }
.section-sub { color: var(--gray); font-size: 1.05rem; max-width: 600px; margin: 0 auto; }

/* ═══════ MODULES GRID ═══════ */
.modules-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.2rem;
}
.module-card {
  background: var(--bg3); border-radius: var(--rad);
  border: 1px solid var(--border);
  padding: 1.5rem;
  cursor: pointer;
  transition: transform .25s, border-color .25s, box-shadow .25s;
  position: relative; overflow: hidden;
}
.module-card::before {
  content: ''; position: absolute; top: 0; right: 0;
  width: 4px; height: 100%;
  background: var(--accent-color, var(--orange));
  transition: width .3s;
}
.module-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: rgba(255,255,255,0.15); }
.module-card:hover::before { width: 8px; }
.module-card.active { border-color: var(--accent-color, var(--orange)); box-shadow: 0 0 0 1px var(--accent-color, var(--orange)), var(--shadow); }

.mod-num {
  font-size: 0.8rem; font-weight: 700; color: var(--gray2);
  margin-bottom: 0.3rem; letter-spacing: 1px;
}
.mod-icon { font-size: 2rem; margin-bottom: 0.5rem; display: block; }
.mod-title { font-size: 1.05rem; font-weight: 700; margin-bottom: 0.5rem; color: var(--white); }
.mod-desc { font-size: 0.875rem; color: var(--gray); line-height: 1.6; margin-bottom: 1rem; }
.mod-tags { display: flex; gap: 6px; flex-wrap: wrap; }
.mod-tag {
  font-size: 10px; padding: 2px 8px; border-radius: 10px;
  background: rgba(255,255,255,0.06); color: var(--gray);
  border: 1px solid var(--border);
}
.mod-arrow { position: absolute; left: 1rem; top: 50%; transform: translateY(-50%); color: var(--gray2); font-size: 18px; }

/* ═══════ MODULE DETAIL ═══════ */
.detail-header {
  display: flex; align-items: flex-start; gap: 1.5rem;
  padding-bottom: 2rem; border-bottom: 1px solid var(--border);
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
}
.detail-icon-big { font-size: 4rem; flex-shrink: 0; }
.detail-meta { flex: 1; }
.detail-num { font-size: 0.9rem; color: var(--gray2); font-weight: 700; margin-bottom: 0.3rem; }
.detail-title { font-size: 2rem; font-weight: 800; font-family: var(--font2); margin-bottom: 0.5rem; }
.detail-back {
  background: rgba(255,255,255,0.06); border: 1px solid var(--border);
  color: var(--gray); padding: 8px 18px; border-radius: 20px;
  font-size: 13px; transition: all .2s; font-weight: 600;
}
.detail-back:hover { background: rgba(255,255,255,0.1); color: var(--white); }

.detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}
.detail-col-full { grid-column: 1 / -1; }

.detail-card {
  background: var(--bg3); border-radius: var(--rad);
  border: 1px solid var(--border); padding: 1.5rem;
}
.dc-title {
  font-size: 0.8rem; font-weight: 700; color: var(--orange);
  text-transform: uppercase; letter-spacing: 1px;
  margin-bottom: 1rem; display: flex; align-items: center; gap: 6px;
}
.dc-list { display: flex; flex-direction: column; gap: 8px; }
.dc-item {
  display: flex; align-items: flex-start; gap: 8px;
  font-size: 0.9rem; color: var(--gray); line-height: 1.5;
}
.dc-item::before { content: '◆'; color: var(--orange); font-size: 8px; margin-top: 6px; flex-shrink: 0; }

.ai-tool-row {
  display: flex; align-items: center; gap: 12px;
  padding: 10px; border-radius: var(--rad2);
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  transition: background .2s;
}
.ai-tool-row:hover { background: rgba(255,255,255,0.06); }
.atr-name { font-weight: 700; font-size: 0.9rem; flex: 1; }
.atr-url { font-size: 0.75rem; color: var(--teal); }
.atr-badge {
  font-size: 0.7rem; padding: 2px 8px; border-radius: 8px;
  background: rgba(0,201,167,0.1); border: 1px solid rgba(0,201,167,0.3);
  color: var(--teal); font-weight: 700; flex-shrink: 0;
}

/* ═══════ AI TOOLS SECTION ═══════ */
.ai-filter-row {
  display: flex; gap: 8px; flex-wrap: wrap;
  justify-content: center; margin-bottom: 2rem;
}
.ai-filter {
  padding: 7px 18px; border-radius: 24px;
  border: 1px solid var(--border); background: transparent;
  color: var(--gray); font-size: 13px; font-weight: 600;
  transition: all .2s;
}
.ai-filter:hover { color: var(--white); border-color: rgba(255,255,255,0.3); }
.ai-filter.active {
  background: var(--orange); border-color: var(--orange);
  color: white;
}
.ai-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1rem;
}
.ai-card {
  background: var(--bg3); border-radius: var(--rad);
  border: 1px solid var(--border); padding: 1.25rem;
  transition: transform .2s, border-color .2s;
}
.ai-card:hover { transform: translateY(-3px); border-color: rgba(255,255,255,0.2); }
.ai-card-top { display: flex; align-items: center; gap: 10px; margin-bottom: 0.75rem; }
.ai-card-icon {
  width: 40px; height: 40px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; flex-shrink: 0;
}
.ai-card-name { font-weight: 700; font-size: 0.95rem; }
.ai-card-url { font-size: 0.75rem; color: var(--teal); }
.ai-card-desc { font-size: 0.85rem; color: var(--gray); line-height: 1.6; margin-bottom: 0.75rem; }
.ai-card-tags { display: flex; gap: 6px; flex-wrap: wrap; }
.ai-cat-tag {
  font-size: 10px; padding: 2px 8px; border-radius: 10px;
  font-weight: 600;
}
.ai-card-link {
  display: inline-flex; align-items: center; gap: 4px;
  margin-top: 0.75rem; font-size: 12px; color: var(--blue);
  border: 1px solid rgba(74,144,217,0.3); border-radius: 6px;
  padding: 4px 10px; transition: background .2s;
}
.ai-card-link:hover { background: rgba(74,144,217,0.1); }

/* ═══════ RESOURCES ═══════ */
.resources-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.2rem;
}
.res-card {
  background: var(--card); border-radius: var(--rad);
  border: 1px solid var(--border); overflow: hidden;
  transition: transform .2s, box-shadow .2s;
}
.res-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.res-card-top {
  padding: 1rem 1.25rem 0.75rem;
  display: flex; align-items: center; gap: 10px;
}
.res-icon {
  width: 42px; height: 42px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; flex-shrink: 0;
}
.res-name { font-weight: 700; font-size: 1rem; }
.res-badge {
  margin-right: auto; font-size: 10px; padding: 2px 8px;
  border-radius: 10px; font-weight: 700;
}
.res-body { padding: 0 1.25rem 1rem; }
.res-desc { font-size: 0.875rem; color: var(--gray); line-height: 1.6; margin-bottom: 0.75rem; }
.res-url {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 12px; color: var(--teal);
  border: 1px solid rgba(0,201,167,0.25); border-radius: 6px;
  padding: 4px 10px; transition: background .2s;
}
.res-url:hover { background: rgba(0,201,167,0.08); }
.res-divider { height: 3px; }

/* ═══════ ROADMAP ═══════ */
.roadmap-timeline { position: relative; }
.roadmap-timeline::before {
  content: ''; position: absolute;
  right: 2.5rem; top: 0; bottom: 0; width: 2px;
  background: linear-gradient(to bottom, var(--orange), var(--teal));
  opacity: 0.3;
}
.rm-phase {
  display: flex; gap: 2rem; margin-bottom: 3rem; position: relative;
  padding-right: 5rem;
}
.rm-dot {
  position: absolute; right: 1.75rem; top: 0.75rem;
  width: 20px; height: 20px; border-radius: 50%;
  border: 3px solid var(--dot-color, var(--orange));
  background: var(--bg);
  box-shadow: 0 0 12px var(--dot-color, var(--orange));
  flex-shrink: 0;
}
.rm-content { flex: 1; }
.rm-header {
  display: flex; align-items: center; gap: 1rem;
  margin-bottom: 1rem; flex-wrap: wrap;
}
.rm-phase-label {
  font-size: 0.8rem; font-weight: 700;
  padding: 3px 12px; border-radius: 12px;
  color: var(--dot-color, var(--orange));
  border: 1px solid var(--dot-color, var(--orange));
  background: transparent;
}
.rm-title { font-size: 1.25rem; font-weight: 800; font-family: var(--font2); }
.rm-result {
  font-size: 0.8rem; padding: 3px 12px; border-radius: 12px;
  background: rgba(255,255,255,0.06); color: var(--gray);
  margin-right: auto;
}
.rm-tasks {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 0.75rem;
}
.rm-task {
  background: var(--bg3); border-radius: var(--rad2);
  border: 1px solid var(--border); padding: 0.85rem 1rem;
  font-size: 0.875rem; color: var(--gray);
  display: flex; align-items: flex-start; gap: 8px;
  line-height: 1.5; transition: border-color .2s;
}
.rm-task:hover { border-color: rgba(255,255,255,0.2); }
.rm-task-icon { flex-shrink: 0; margin-top: 2px; }

/* ═══════ FOOTER ═══════ */
.footer {
  background: var(--bg2); border-top: 1px solid var(--border);
  padding: 2rem 0;
}
.footer-inner {
  display: flex; align-items: center; gap: 1rem; flex-wrap: wrap;
  justify-content: space-between;
}
.footer-logo { font-size: 1.1rem; font-weight: 800; display: flex; align-items: center; gap: 6px; }
.footer-text { font-size: 0.85rem; color: var(--gray); }
.footer-links { display: flex; gap: 1.5rem; }
.footer-links a { font-size: 0.85rem; color: var(--gray); transition: color .2s; }
.footer-links a:hover { color: var(--orange); }

/* ═══════ ANIMATIONS ═══════ */
@keyframes fadeDown {
  from { opacity: 0; transform: translateY(-20px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(-8px); }
}
.reveal {
  opacity: 0; transform: translateY(30px);
  transition: opacity .6s ease, transform .6s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ═══════ CHART PLACEHOLDER ═══════ */
.chart-box {
  background: var(--bg3); border-radius: var(--rad);
  border: 1px solid var(--border); padding: 1.5rem;
}
.chart-title { font-size: 0.9rem; font-weight: 700; color: var(--orange); margin-bottom: 1rem; }
.chart-bar-row { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.chart-label { font-size: 12px; color: var(--gray); width: 120px; text-align: right; flex-shrink: 0; }
.chart-bar-wrap { flex: 1; height: 8px; background: rgba(255,255,255,0.06); border-radius: 4px; overflow: hidden; }
.chart-bar { height: 100%; border-radius: 4px; animation: growBar 1s ease both; }
.chart-val { font-size: 12px; color: var(--white); font-weight: 700; width: 40px; }
@keyframes growBar { from { width: 0; } }

/* ═══════ RESPONSIVE ═══════ */
@media (max-width: 768px) {
  .nav-links { display: none; position: absolute; top: 62px; right: 0; left: 0; background: var(--bg); border-bottom: 1px solid var(--border); flex-direction: column; padding: 1rem; gap: 0; }
  .nav-links.open { display: flex; }
  .nav-cta { display: none; }
  .burger { display: block; }
  .hero-stats { gap: 0; }
  .hstat { padding: 0 1rem; }
  .hstat-n { font-size: 1.8rem; }
  .detail-grid { grid-template-columns: 1fr; }
  .roadmap-timeline::before { right: 0.75rem; }
  .rm-phase { padding-right: 2.5rem; }
  .rm-dot { right: -0.25rem; }
  .footer-inner { flex-direction: column; text-align: center; }
  .modules-grid { grid-template-columns: 1fr; }
}

.btn-download {
  border: 1px solid var(--gold); color: var(--gold); padding: 14px 28px;
  border-radius: 30px; font-size: 16px; font-weight: 700;
  display: flex; align-items: center; gap: 8px;
  transition: all .2s;
}
.btn-download:hover { background: rgba(255,209,102,0.1); transform: translateY(-3px); }
