@import url("https://fonts.googleapis.com/css2?family=Vazirmatn:wght@400;500;600;700;800;900&display=swap");
:root {
  --bg: #080a0f;
  --panel: #10141d;
  --panel2: #141a25;
  --text: #f4f7fb;
  --muted: #929bab;
  --line: #252d3b;
  --accent: #7c5cff;
  --cyan: #27d9ff;
  --green: #4ee6a0;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background:
    radial-gradient(circle at 80% 0, #18113c 0, transparent 35%), var(--bg);
  color: var(--text);
  font-family: Vazirmatn, Arial, sans-serif;
  line-height: 1.8;
}
a {
  text-decoration: none;
  color: inherit;
}
.topbar {
  height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 6%;
  border-bottom: 1px solid var(--line);
  background: #080a0fe8;
  backdrop-filter: blur(16px);
  position: sticky;
  top: 0;
  z-index: 10;
}
.brand {
  font-weight: 900;
  font-size: 18px;
  display: flex;
  align-items: center;
  gap: 9px;
}
.brand span {
  display: grid;
  place-items: center;
  width: 35px;
  height: 35px;
  border-radius: 11px;
  background: linear-gradient(135deg, var(--accent), var(--cyan));
  font-size: 21px;
}
.brand small {
  color: var(--muted);
  font-size: 10px;
  margin-right: 2px;
  direction: ltr;
}
.topbar nav {
  display: flex;
  gap: 28px;
  color: #c8ced8;
  font-size: 14px;
}
.topbar nav a:hover {
  color: white;
}
.theme-btn {
  background: var(--panel);
  border: 1px solid var(--line);
  color: white;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  cursor: pointer;
  font-size: 17px;
}
.hero {
  min-height: 640px;
  padding: 90px 7%;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 70px;
}
.badge,
.eyebrow {
  color: var(--cyan);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 1px;
}
.hero h1 {
  font-size: clamp(42px, 6vw, 76px);
  line-height: 1.15;
  margin: 18px 0;
}
.hero h1 strong {
  background: linear-gradient(90deg, #fff, var(--cyan));
  -webkit-background-clip: text;
  color: transparent;
}
.hero p {
  max-width: 680px;
  color: var(--muted);
  font-size: 17px;
}
.hero-actions {
  display: flex;
  gap: 12px;
  margin: 30px 0;
}
.btn {
  border: 0;
  border-radius: 13px;
  padding: 12px 22px;
  font-family: inherit;
  font-weight: 800;
  cursor: pointer;
}
.primary {
  background: linear-gradient(135deg, var(--accent), #5d91ff);
  color: #fff;
}
.ghost {
  border: 1px solid var(--line);
  padding: 11px 22px;
  border-radius: 13px;
}
.stats {
  display: flex;
  gap: 38px;
  margin-top: 35px;
}
.stats b {
  display: block;
  font-size: 26px;
}
.stats span {
  color: var(--muted);
  font-size: 12px;
}
.code-card {
  background: #0d1119;
  border: 1px solid #273143;
  border-radius: 22px;
  box-shadow: 0 30px 80px #0008;
  overflow: hidden;
  transform: rotate(1deg);
}
.window {
  height: 45px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 0 16px;
  color: #747c89;
  font-size: 11px;
  direction: ltr;
}
.window i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #333;
}
.window span {
  margin-left: auto;
}
.code-card pre {
  padding: 28px;
  margin: 0;
  direction: ltr;
  text-align: left;
  font:
    15px/2 "Courier New",
    monospace;
  color: #c8d1e0;
}
.code-card em {
  color: #9a7dff;
}
.code-card b {
  color: #59d9ff;
}
.code-card u {
  color: #ffcc75;
  text-decoration: none;
}
.code-card span {
  color: #77e3a8;
}
.section {
  padding: 85px 7%;
}
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 20px;
  margin-bottom: 35px;
}
.section-head h2 {
  font-size: 34px;
  margin: 5px 0;
}
.section-head p {
  color: var(--muted);
  margin: 0;
}
.course-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 15px;
}
.course {
  padding: 24px;
  border: 1px solid var(--line);
  background: linear-gradient(160deg, #111621, #0c0f15);
  border-radius: 19px;
  min-height: 280px;
  transition: 0.25s;
}
.course:hover {
  transform: translateY(-8px);
  border-color: #46516a;
  box-shadow: 0 20px 45px #0005;
}
.course .icon {
  display: grid;
  place-items: center;
  width: 53px;
  height: 53px;
  border-radius: 15px;
  background: #1a2130;
  font-weight: 900;
  margin-bottom: 25px;
}
.course small {
  color: #697486;
}
.course h3 {
  font-size: 24px;
  margin: 7px 0;
}
.course p {
  color: var(--muted);
  font-size: 13px;
  min-height: 72px;
}
.course b {
  font-size: 12px;
  color: #cdd4df;
}
.roadmap {
  background: #0c0f15;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.timeline {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
}
.timeline > div {
  position: relative;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--panel);
}
.timeline span,
.project-grid article > span {
  color: var(--cyan);
  font-weight: 900;
}
.timeline h3 {
  margin: 12px 0 3px;
}
.timeline p,
.project-grid p {
  color: var(--muted);
  font-size: 13px;
}
.project-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.project-grid article {
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 27px;
  background: var(--panel);
}
.project-grid h3 {
  font-size: 23px;
}
.mini {
  background: none;
  border: 1px solid #3a4558;
  color: white;
  border-radius: 10px;
  padding: 8px 14px;
  font-family: inherit;
  cursor: pointer;
}
.about {
  display: flex;
  align-items: center;
  gap: 30px;
}
.about-avatar {
  width: 95px;
  height: 95px;
  border-radius: 28px;
  display: grid;
  place-items: center;
  font-size: 45px;
  font-weight: 900;
  background: linear-gradient(135deg, var(--accent), var(--cyan));
}
.about p {
  color: var(--muted);
  max-width: 800px;
}
footer {
  padding: 28px 7%;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
}
footer span {
  float: left;
}
.course-page {
  padding: 50px 7% 90px;
}
.back {
  color: var(--muted);
  font-size: 13px;
}
.course-hero {
  margin: 35px 0;
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 30px;
}
.course-hero h1 {
  font-size: 54px;
  margin: 4px 0;
}
.course-hero p {
  color: var(--muted);
}
.progress {
  min-width: 270px;
}
.progress span {
  font-size: 12px;
  color: var(--muted);
}
.progress b {
  float: left;
}
.progress > div {
  height: 8px;
  background: #1b2230;
  border-radius: 10px;
  margin-top: 10px;
  overflow: hidden;
}
.progress i {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--cyan));
  transition: 0.3s;
}
.lesson-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 25px;
}
.lesson-list,
.lesson-content {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--panel);
}
.lesson-list {
  padding: 18px;
  height: max-content;
}
.lesson-list h3 {
  margin-top: 5px;
}
.lesson-item {
  padding: 11px;
  border-radius: 10px;
  color: #aeb6c5;
  font-size: 13px;
  cursor: pointer;
  margin: 4px 0;
}
.lesson-item:hover,
.lesson-item.active {
  background: #1a2130;
  color: white;
}
.lesson-item.done {
  color: var(--green);
}
.lesson-content {
  padding: 35px;
  min-height: 500px;
}
.lesson-content h2 {
  font-size: 30px;
}
.lesson-content p {
  color: #b9c0cc;
}
.lesson-content pre {
  direction: ltr;
  text-align: left;
  background: #090c12;
  border: 1px solid var(--line);
  padding: 20px;
  border-radius: 14px;
  overflow: auto;
  color: #d9e1ed;
}
.video-box {
  margin: 28px 0;
  padding: 45px;
  text-align: center;
  border: 1px dashed #3b4659;
  border-radius: 15px;
  background: #0c1017;
}
.play {
  width: 60px;
  height: 60px;
  margin: auto;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--cyan));
  font-size: 20px;
}
.video-box p,
.video-box small {
  color: var(--muted);
}
.lesson-actions {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}
.lesson-actions button {
  font-family: inherit;
  border: 1px solid var(--line);
  background: #151b27;
  color: white;
  padding: 10px 16px;
  border-radius: 10px;
  cursor: pointer;
}
@media (max-width: 950px) {
  .hero {
    grid-template-columns: 1fr;
  }
  .course-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .timeline {
    grid-template-columns: 1fr 1fr;
  }
  .lesson-layout {
    grid-template-columns: 1fr;
  }
  .topbar nav {
    display: none;
  }
}
@media (max-width: 600px) {
  .hero,
  .section,
  .course-page {
    padding-left: 5%;
    padding-right: 5%;
  }
  .course-grid,
  .project-grid,
  .timeline {
    grid-template-columns: 1fr;
  }
  .hero {
    padding-top: 55px;
  }
  .stats {
    gap: 18px;
  }
  .course-hero {
    display: block;
  }
  .progress {
    margin-top: 25px;
  }
  .lesson-content {
    padding: 22px;
  }
  .about {
    align-items: flex-start;
    flex-direction: column;
  }
}
body.light {
  --bg: #f5f7fb;
  --panel: #fff;
  --panel2: #eef2f7;
  --text: #101522;
  --muted: #667085;
  --line: #dfe4ec;
}
body.light .topbar {
  background: #ffffffdd;
}
.light .code-card,
body.light .code-card {
  box-shadow: 0 20px 50px #8290a233;
}
.output-panel {
  margin: 24px 0;
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.04);
}
.output-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}
.output-head h3 {
  margin: 4px 0 0;
}
.output-frame {
  min-height: 280px;
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
}
.output-frame iframe {
  width: 100%;
  height: 360px;
  border: 0;
  display: block;
  background: #fff;
}
.output-note {
  opacity: 0.7;
  font-size: 0.9rem;
  margin: 12px 0 0;
}
/* ایکون اینستاگرام */

.social-button {
    position: fixed;
    left: 20px;
    width: 55px;
    height: 55px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    font-size: 28px;
    z-index: 9999;
    transition: 0.3s ease;
}
/* واتساپ */
.whatsapp-button {
    bottom: 20px;
    background: #25D366;
    box-shadow: 0 5px 15px rgba(37, 211, 102, 0.35);
}
/* اینستاگرام */
.instagram-button {
    bottom: 90px;
    background: linear-gradient(
        45deg,
        #f09433,
        #e6683c,
        #dc2743,
        #cc2366,
        #bc1888
    );
    box-shadow: 0 5px 15px rgba(220, 39, 67, 0.35);
}
/* Hover */
.social-button:hover {
    transform: scale(1.12);
}
.instagram-button:hover {
    box-shadow: 0 7px 20px rgba(220, 39, 67, 0.55);
}
.whatsapp-button:hover {
    box-shadow: 0 7px 20px rgba(37, 211, 102, 0.55);
}
/* واتساپ */
.whatsapp-button {
    position: fixed;
    bottom: 20px;
    left: 20px;
    width: 55px;
    height: 55px;
    background: #25D366;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    text-decoration: none;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.25);
    z-index: 9999;
    transition: 0.3s ease;
}
.whatsapp-button:hover {
    transform: scale(1.12);
    box-shadow: 0 7px 20px rgba(37, 211, 102, 0.5);
}