/* ============================================================
   مهندس هوش - آکادمی هوش مصنوعی
   Full pixel-perfect CSS implementation
   ============================================================ */

/* ---- Google Font ---- */
@import url('https://fonts.googleapis.com/css2?family=Vazirmatn:wght@300;400;500;600;700;800;900&display=swap');

/* ---- CSS Variables ---- */
:root {
  --bg-main:       #080d1a;
  --bg-section:    #0c1122;
  --bg-card:       #111827;
  --bg-card-hover: #162035;
  --border-card:   #1e2d47;
  --accent:        #FFB800;
  --accent-dark:   #e0a000;
  --accent-glow:   rgba(255,184,0,0.25);
  --text-primary:  #ffffff;
  --text-secondary:#b0bcd0;
  --text-muted:    #6b7a96;
  --blue-glow:     rgba(56,139,253,0.35);
  --cyan:          #00d4ff;
  --purple:        #7c3aed;
  --green:         #10b981;
  --radius-sm:     8px;
  --radius-md:     12px;
  --radius-lg:     18px;
  --radius-xl:     24px;
  --font:          'Vazirmatn', 'Tahoma', sans-serif;
  --shadow-card:   0 4px 24px rgba(0,0,0,0.4);
  --shadow-glow:   0 0 30px rgba(255,184,0,0.2);
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background-color: var(--bg-main);
  color: var(--text-primary);
  direction: rtl;
  overflow-x: hidden;
  line-height: 1.7;
}
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

/* ---- Container ---- */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  border-radius: var(--radius-sm);
  font-family: var(--font);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all 0.25s ease;
  white-space: nowrap;
}
.btn--primary {
  background: var(--accent);
  color: #000;
}
.btn--primary:hover { background: var(--accent-dark); transform: translateY(-1px); }

.btn--ghost {
  background: rgba(255,255,255,0.07);
  color: var(--text-primary);
  border: 1px solid rgba(255,255,255,0.12);
}
.btn--ghost:hover { background: rgba(255,255,255,0.13); }

.btn--outline {
  background: transparent;
  color: var(--text-primary);
  border: 1.5px solid rgba(255,255,255,0.3);
}
.btn--outline:hover { border-color: var(--accent); color: var(--accent); }

.btn--lg { padding: 14px 28px; font-size: 1rem; border-radius: var(--radius-md); }
.btn--sm { padding: 8px 16px; font-size: 0.82rem; }
.btn--icon { padding: 10px 16px; }
.btn-icon { font-size: 1.1em; }

/* ============================================================
   NAVBAR
   ============================================================ */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(8, 13, 26, 0.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.navbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  padding-bottom: 14px;
  gap: 20px;
}

/* Logo */
.navbar__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.logo-icon { font-size: 2rem; line-height: 1; }
.logo-title {
  display: block;
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--text-primary);
}
.logo-sub {
  display: block;
  font-size: 0.72rem;
  color: var(--text-muted);
  font-weight: 400;
}

/* Nav */
.navbar__nav {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 1;
  justify-content: center;
}
.nav-link {
  padding: 8px 14px;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-secondary);
  border-radius: var(--radius-sm);
  transition: color 0.2s, background 0.2s;
}
.nav-link:hover { color: var(--text-primary); background: rgba(255,255,255,0.05); }
.nav-link.active {
  color: var(--accent);
  position: relative;
}
.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -18px;
  right: 50%;
  transform: translateX(50%);
  width: 30px;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
}

/* Actions */
.navbar__actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

/* ============================================================
   HERO SECTION
   ============================================================ */
.hero {
  padding: 80px 0 60px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -100px; left: -200px;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(255,184,0,0.07) 0%, transparent 70%);
  pointer-events: none;
}
.hero::after {
  content: '';
  position: absolute;
  bottom: -50px; left: 0;
  width: 500px; height: 400px;
  background: radial-gradient(circle, rgba(56,139,253,0.08) 0%, transparent 70%);
  pointer-events: none;
}

.hero__inner {
  display: flex;
  align-items: center;
  gap: 60px;
}

/* Hero Content (right) */
.hero__content {
  flex: 1;
  z-index: 2;
}
.hero__title {
  font-size: 2.6rem;
  font-weight: 900;
  line-height: 1.4;
  margin-bottom: 20px;
  color: var(--text-primary);
}
.hero__title .highlight {
  color: var(--accent);
}
.hero__desc {
  font-size: 0.98rem;
  color: var(--text-secondary);
  margin-bottom: 36px;
  line-height: 1.9;
}
.hero__actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

/* Hero Visual (left) */
.hero__visual {
  flex: 0 0 420px;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  z-index: 2;
}
.hero__robot-wrap {
  position: relative;
  width: 340px;
  height: 380px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

/* Robot glow platform */
.robot-glow {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 280px;
  height: 80px;
  background: radial-gradient(ellipse, rgba(56,139,253,0.5) 0%, transparent 70%);
  filter: blur(20px);
}
.robot-platform {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 180px;
  height: 16px;
  background: rgba(56,139,253,0.3);
  border-radius: 50%;
  filter: blur(6px);
}

/* Robot SVG-style CSS art */
.robot-body {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  width: 160px;
  animation: robotFloat 3s ease-in-out infinite;
}

@keyframes robotFloat {
  0%,100% { transform: translateX(-50%) translateY(0); }
  50%      { transform: translateX(-50%) translateY(-10px); }
}

.robot-head {
  position: relative;
  width: 120px;
  height: 100px;
  background: linear-gradient(145deg, #2a3a5c, #1a2540);
  border-radius: 20px;
  margin: 0 auto;
  border: 2px solid rgba(56,139,253,0.4);
  box-shadow: 0 0 20px rgba(56,139,253,0.3), inset 0 1px 0 rgba(255,255,255,0.1);
}
.robot-antenna {
  position: absolute;
  top: -22px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 18px;
  background: linear-gradient(to top, #3890ff, #00d4ff);
  border-radius: 2px;
}
.robot-antenna::after {
  content: '';
  position: absolute;
  top: -5px;
  left: 50%;
  transform: translateX(-50%);
  width: 8px; height: 8px;
  background: #00d4ff;
  border-radius: 50%;
  box-shadow: 0 0 8px #00d4ff;
}
.robot-eyes {
  display: flex;
  justify-content: center;
  gap: 20px;
  padding-top: 28px;
}
.robot-eye {
  width: 28px; height: 22px;
  background: linear-gradient(135deg, #00b8ff, #0060ff);
  border-radius: 6px;
  box-shadow: 0 0 12px rgba(0,180,255,0.7), inset 0 1px 2px rgba(255,255,255,0.3);
  animation: eyePulse 2.5s ease-in-out infinite;
}
@keyframes eyePulse {
  0%,100% { opacity: 1; }
  50%      { opacity: 0.7; box-shadow: 0 0 20px rgba(0,180,255,1); }
}
.robot-mouth {
  width: 50px; height: 8px;
  background: rgba(0,180,255,0.5);
  border-radius: 4px;
  margin: 14px auto 0;
  border: 1px solid rgba(0,180,255,0.7);
}

.robot-torso {
  width: 140px;
  height: 110px;
  background: linear-gradient(145deg, #1e2d4a, #131f36);
  border-radius: 14px;
  margin: 6px auto 0;
  border: 2px solid rgba(56,139,253,0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 15px rgba(56,139,253,0.15);
}
.robot-chest-panel {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 14px;
  background: rgba(0,0,0,0.3);
  border-radius: 10px;
  border: 1px solid rgba(56,139,253,0.2);
}
.robot-light {
  width: 50px; height: 8px;
  border-radius: 4px;
}
.robot-light.r { background: linear-gradient(to right, #ff4040, #ff8888); box-shadow: 0 0 6px #ff4040; }
.robot-light.y { background: linear-gradient(to right, var(--accent), #ffdc80); box-shadow: 0 0 6px var(--accent); }
.robot-light.b { background: linear-gradient(to right, #0090ff, #00d4ff); box-shadow: 0 0 6px #0090ff; }

.robot-arm {
  position: absolute;
  width: 26px;
  height: 80px;
  background: linear-gradient(145deg, #1e2d4a, #131f36);
  border-radius: 12px;
  top: 108px;
  border: 1.5px solid rgba(56,139,253,0.3);
}
.robot-arm--right { right: -4px; transform: rotate(8deg); }
.robot-arm--left  { left: -4px; transform: rotate(-8deg); }

/* Circuit lines decoration */
.circuit-lines {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  pointer-events: none;
  background-image:
    linear-gradient(90deg, rgba(56,139,253,0.08) 1px, transparent 1px),
    linear-gradient(0deg, rgba(56,139,253,0.08) 1px, transparent 1px);
  background-size: 40px 40px;
  border-radius: 50%;
  opacity: 0.5;
}

/* ============================================================
   FEATURES BAR
   ============================================================ */
.features-bar {
  padding: 32px 0;
  background: var(--bg-card);
  border-top: 1px solid var(--border-card);
  border-bottom: 1px solid var(--border-card);
}
.features-bar__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}
.feature-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 20px 24px;
  border-right: 1px solid var(--border-card);
  transition: background 0.2s;
}
.feature-item:first-child { border-right: none; }
.feature-item:hover { background: rgba(255,255,255,0.03); }
.feature-icon {
  font-size: 1.8rem;
  flex-shrink: 0;
  margin-top: 2px;
}
.feature-text h3 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
}
.feature-text p {
  font-size: 0.78rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ============================================================
   COURSES
   ============================================================ */
.courses {
  padding: 60px 0;
}

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 32px;
}
.section-title {
  font-size: 1.5rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 14px;
}
.section-dash {
  display: inline-block;
  width: 28px;
  height: 3px;
  background: var(--accent);
  border-radius: 2px;
  flex-shrink: 0;
}

/* Slider */
.courses__slider {
  display: flex;
  gap: 20px;
  align-items: stretch;
  position: relative;
}
.slider-arrow {
  position: absolute;
  left: -18px;
  top: 50%;
  transform: translateY(-50%);
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--accent);
  color: #000;
  font-size: 1.4rem;
  font-weight: 700;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 5;
  box-shadow: 0 4px 14px rgba(255,184,0,0.35);
}

/* Course Card */
.course-card {
  flex: 1;
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
}
.course-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(0,0,0,0.4);
  border-color: rgba(255,184,0,0.3);
}

.course-card__thumb {
  position: relative;
  height: 150px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.course-card__thumb.purple { background: linear-gradient(135deg, #2d1b6b 0%, #1a0f3d 100%); }
.course-card__thumb.blue   { background: linear-gradient(135deg, #0f2060 0%, #061030 100%); }
.course-card__thumb.green  { background: linear-gradient(135deg, #0b3a28 0%, #061a10 100%); }
.course-card__thumb.dark   { background: linear-gradient(135deg, #1a1a2e 0%, #0f0f1a 100%); }

.thumb-placeholder {
  font-size: 3.5rem;
  opacity: 0.8;
}
.purple-net::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 40% 40%, rgba(168, 85, 247, 0.4) 0%, transparent 50%),
    radial-gradient(circle at 70% 70%, rgba(124, 58, 237, 0.3) 0%, transparent 40%);
}

.course-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.72rem;
  font-weight: 700;
  z-index: 2;
}
.course-badge.advanced     { background: rgba(239, 68, 68, 0.85); color: #fff; }
.course-badge.beginner     { background: rgba(16, 185, 129, 0.85); color: #fff; }
.course-badge.intermediate { background: rgba(245, 158, 11, 0.85); color: #fff; }

.course-card__body {
  padding: 16px 18px 18px;
}
.course-meta { margin-bottom: 8px; }
.course-duration {
  font-size: 0.78rem;
  color: var(--text-muted);
}
.course-title {
  font-size: 1rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 6px;
  line-height: 1.4;
}
.course-desc {
  font-size: 0.78rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 14px;
}
.course-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.course-avatars {
  display: flex;
  align-items: center;
  gap: 4px;
}
.avatar {
  display: inline-block;
  width: 24px; height: 24px;
  border-radius: 50%;
  background: linear-gradient(135deg, #3b82f6, #8b5cf6);
  border: 2px solid var(--bg-card);
  margin-right: -6px;
}
.avatar:first-child { background: linear-gradient(135deg, #f59e0b, #ef4444); }
.avatar:nth-child(2) { background: linear-gradient(135deg, #10b981, #3b82f6); }
.avatar-count {
  margin-right: 10px;
  font-size: 0.74rem;
  color: var(--text-muted);
}
.course-rating {
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--accent);
}

/* ============================================================
   LEARNING PATH
   ============================================================ */
.learning-path {
  padding: 60px 0 80px;
  background: var(--bg-section);
  position: relative;
}
.learning-path::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 50% 50%, rgba(56,139,253,0.04) 0%, transparent 70%);
  pointer-events: none;
}

.path__grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 40px;
  align-items: center;
  margin-top: 16px;
}

.path__col {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* Steps */
.path-step {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px;
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  transition: border-color 0.2s, transform 0.2s;
}
.path-step:hover {
  border-color: rgba(56,139,253,0.4);
  transform: scale(1.02);
}
.path-step--right { flex-direction: row-reverse; text-align: right; }
.path-step--left  { flex-direction: row; text-align: right; }

.path-step__content h3 {
  font-size: 0.9rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 5px;
}
.path-step__content p {
  font-size: 0.76rem;
  color: var(--text-secondary);
  line-height: 1.6;
}
.step-icon-box {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px; height: 44px;
  background: rgba(56,139,253,0.1);
  border: 1.5px solid rgba(56,139,253,0.3);
  border-radius: 10px;
  font-size: 1.2rem;
  color: var(--cyan);
  flex-shrink: 0;
}

/* Chip center visual */
.path__center { display: flex; justify-content: center; align-items: center; }
.chip-visual {
  position: relative;
  width: 220px;
  height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.chip-glow {
  position: absolute;
  inset: -20px;
  background: radial-gradient(circle, rgba(255,184,0,0.2) 0%, rgba(56,139,253,0.15) 40%, transparent 70%);
  filter: blur(20px);
  animation: chipPulse 3s ease-in-out infinite;
}
@keyframes chipPulse {
  0%,100% { transform: scale(1); opacity: 0.8; }
  50%      { transform: scale(1.08); opacity: 1; }
}
.chip-board {
  position: relative;
  width: 130px; height: 130px;
  background: linear-gradient(145deg, #131f36, #0c1525);
  border: 2px solid rgba(255,184,0,0.5);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow:
    0 0 30px rgba(255,184,0,0.25),
    0 0 60px rgba(56,139,253,0.15),
    inset 0 0 20px rgba(56,139,253,0.05);
  z-index: 2;
}
.chip-robot { font-size: 2.8rem; }

/* Connector lines radiating from chip */
.chip-connectors {
  position: absolute;
  background: rgba(255,184,0,0.35);
}
.chip-connectors--top,
.chip-connectors--bottom {
  width: 2px; height: 40px;
  left: 50%; transform: translateX(-50%);
}
.chip-connectors--left,
.chip-connectors--right {
  height: 2px; width: 40px;
  top: 50%; transform: translateY(-50%);
}
.chip-connectors--top    { top: 0; }
.chip-connectors--bottom { bottom: 0; }
.chip-connectors--left   { left: 0; }
.chip-connectors--right  { right: 0; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: #060a14;
  border-top: 1px solid var(--border-card);
}
.footer__inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1.3fr 1fr;
  gap: 40px;
  padding: 56px 24px 40px;
}

.footer__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}
.footer__desc {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.8;
}

.footer__heading {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 18px;
  position: relative;
  padding-bottom: 10px;
}
.footer__heading::after {
  content: '';
  position: absolute;
  bottom: 0; right: 0;
  width: 24px; height: 2px;
  background: var(--accent);
  border-radius: 2px;
}

.footer__links li { margin-bottom: 10px; }
.footer__links a {
  font-size: 0.82rem;
  color: var(--text-muted);
  transition: color 0.2s;
}
.footer__links a:hover { color: var(--accent); }

.footer__newsletter-desc {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 14px;
}
.footer__newsletter {
  display: flex;
  gap: 0;
  border: 1px solid var(--border-card);
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--bg-card);
}
.footer__newsletter input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  padding: 10px 14px;
  color: var(--text-primary);
  font-family: var(--font);
  font-size: 0.82rem;
  direction: rtl;
}
.footer__newsletter input::placeholder { color: var(--text-muted); }
.footer__newsletter .btn {
  border-radius: 0;
  padding: 10px 18px;
  font-size: 1.2rem;
}

.footer__socials {
  display: flex;
  gap: 10px;
  margin-top: 4px;
}
.social-link {
  width: 38px; height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: 8px;
  font-size: 1rem;
  color: var(--text-secondary);
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}
.social-link:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(255,184,0,0.07);
}

.footer__bottom {
  border-top: 1px solid var(--border-card);
  padding: 18px 0;
}
.footer__bottom-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.footer__bottom p {
  font-size: 0.76rem;
  color: var(--text-muted);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .hero__inner { gap: 30px; }
  .hero__visual { flex: 0 0 320px; }
  .hero__title  { font-size: 2rem; }
  .features-bar__grid { grid-template-columns: repeat(2, 1fr); }
  .feature-item:nth-child(2) { border-right: none; }
  .courses__slider { flex-wrap: wrap; }
  .course-card { flex: 0 0 calc(50% - 10px); }
  .footer__inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .navbar__nav { display: none; }
  .hero__inner { flex-direction: column-reverse; text-align: center; }
  .hero__actions { justify-content: center; }
  .hero__visual { flex: none; width: 100%; }
  .hero__robot-wrap { width: 260px; height: 290px; }
  .hero__title { font-size: 1.7rem; }
  .features-bar__grid { grid-template-columns: 1fr; }
  .feature-item { border-right: none; border-bottom: 1px solid var(--border-card); }
  .path__grid { grid-template-columns: 1fr; }
  .path__center { order: -1; }
  .courses__slider { gap: 14px; }
  .course-card { flex: 0 0 100%; }
  .footer__inner { grid-template-columns: 1fr; gap: 30px; }
  .footer__bottom-inner { flex-direction: column; gap: 8px; text-align: center; }
}

@media (max-width: 480px) {
  .hero__title { font-size: 1.45rem; }
  .btn--lg { padding: 12px 20px; font-size: 0.9rem; }
  .navbar__actions .btn--ghost { display: none; }
}