/* ============================================================
   SHADITECH ACADEMY STYLE
   - مطابق لهوية الموقع الأصلي (ألوان داكنة، تدرجات، بطاقات شفافة)
   - دعم RTL كامل
   ============================================================ */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Inter", sans-serif;
  background: #050816;
  color: #fff;
  line-height: 1.6;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ============================================================
   NAVBAR
   ============================================================ */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 100;
  background: rgba(10, 10, 20, 0.5);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.nav-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 16px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* ============================================================
   LOGO (Circular)
   ============================================================ */
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}

.logo-img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center top;
  display: block;
  flex-shrink: 0;
  transition: 0.3s;
  border: 2px solid rgba(56, 189, 248, 0.3);
  background: rgba(255, 255, 255, 0.05);
}

.logo:hover .logo-img {
  transform: scale(1.1);
  border-color: #38bdf8;
}

.logo-text {
  font-weight: 800;
  font-size: 20px;
  background: linear-gradient(90deg, #38bdf8, #22c55e);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  white-space: nowrap;
  flex-shrink: 0;
}

/* ============================================================
   NAV LINKS
   ============================================================ */
.nav-links {
  display: flex;
  gap: 20px;
}

.nav-links a {
  color: #cbd5e1;
  text-decoration: none;
  font-size: 14px;
  transition: 0.3s;
}

.nav-links a:hover {
  color: #fff;
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  padding: 130px 0 60px;
  text-align: center;
}

.hero h1 {
  font-size: 48px;
  font-weight: 800;
}

.hero h1 span {
  background: linear-gradient(90deg, #38bdf8, #22c55e);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero p {
  color: #94a3b8;
  max-width: 650px;
  margin: 16px auto 0;
  font-size: 18px;
}

.hero p strong {
  color: #fff;
}

.cta-group {
  margin-top: 28px;
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  padding: 10px 28px;
  border-radius: 12px;
  font-weight: 600;
  text-decoration: none;
  display: inline-block;
  transition: 0.3s;
}

.btn.primary {
  background: #2563eb;
  color: #fff;
}

.btn.primary:hover {
  background: #1d4ed8;
  transform: translateY(-2px);
}

.btn.secondary {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
}

.btn.secondary:hover {
  border-color: #38bdf8;
  transform: translateY(-2px);
}

/* ============================================================
   SECTION TITLE
   ============================================================ */
.section-title {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 8px;
  color: #e2e8f0;
}

.section-sub {
  color: #94a3b8;
  margin-bottom: 30px;
}

/* ============================================================
   PROGRAMS
   ============================================================ */
.programs {
  padding: 40px 0 60px;
}

.programs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 24px;
}

.program-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  padding: 24px;
  transition: 0.3s;
  cursor: pointer;
}

.program-card:hover {
  transform: translateY(-6px);
  border-color: rgba(56, 189, 248, 0.4);
}

.program-card h3 {
  font-size: 20px;
  margin-bottom: 6px;
  color: #fff;
}

.program-card .subtitle {
  color: #94a3b8;
  font-size: 13px;
  margin-bottom: 8px;
}

.program-card .tech {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 10px 0 12px;
}

.program-card .tech span {
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.2);
  color: #38bdf8;
  font-size: 11px;
  padding: 2px 10px;
  border-radius: 20px;
}

.program-card .price {
  font-size: 24px;
  font-weight: 700;
  color: #22c55e;
  margin: 8px 0 12px;
}

.program-card .meta {
  display: flex;
  gap: 16px;
  font-size: 12px;
  color: #64748b;
  margin: 12px 0;
  flex-wrap: wrap;
}

.program-card .meta span {
  display: flex;
  align-items: center;
  gap: 4px;
}

.program-card .btn {
  width: 100%;
  text-align: center;
  padding: 10px;
  font-size: 14px;
}

/* ============================================================
   ABOUT
   ============================================================ */
.about {
  padding: 40px 0 60px;
}

.about-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 24px;
}

.about-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 24px;
  text-align: center;
}

.about-icon {
  font-size: 36px;
  margin-bottom: 12px;
}

.about-card h3 {
  font-size: 18px;
  margin-bottom: 6px;
}

.about-card p {
  color: #94a3b8;
  font-size: 14px;
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  padding: 30px 0;
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: #64748b;
  font-size: 12px;
}

.footer-links {
  margin-top: 12px;
  display: flex;
  gap: 20px;
  justify-content: center;
}

.footer-links a {
  color: #64748b;
  text-decoration: none;
}

.footer-links a:hover {
  color: #38bdf8;
}

/* ============================================================
   LOADING / EMPTY / ERROR STATES
   ============================================================ */
.loading-state,
.empty-state,
.error-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: 60px 20px;
  color: #94a3b8;
}

.loading-state .spinner {
  width: 40px;
  height: 40px;
  margin: 0 auto 16px;
  border: 3px solid rgba(56, 189, 248, 0.2);
  border-top-color: #38bdf8;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.empty-state .sub,
.error-state .sub {
  font-size: 14px;
  color: #64748b;
  margin-top: 8px;
}

/* ============================================================
   RESPONSIVE (Mobile)
   ============================================================ */
@media (max-width: 768px) {
  .navbar {
    padding: 12px 16px;
  }

  .nav-container {
    padding: 12px 16px;
  }

  .logo-img {
    width: 36px;
    height: 36px;
  }

  .logo-text {
    font-size: 17px;
  }

  .nav-links {
    gap: 12px;
    font-size: 12px;
  }

  .nav-links a {
    font-size: 12px;
  }

  .hero {
    padding: 110px 0 40px;
  }

  .hero h1 {
    font-size: 32px;
  }

  .hero p {
    font-size: 15px;
    padding: 0 16px;
  }

  .cta-group {
    gap: 12px;
    padding: 0 16px;
  }

  .btn {
    padding: 10px 20px;
    font-size: 14px;
  }

  .section-title {
    font-size: 22px;
  }

  .section-sub {
    font-size: 14px;
  }

  .programs-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .about-card {
    padding: 20px;
  }

  .footer {
    font-size: 11px;
    padding: 20px 0;
  }

  .footer-links {
    gap: 12px;
    font-size: 11px;
    flex-wrap: wrap;
  }
}

@media (max-width: 480px) {
  .logo-img {
    width: 32px;
    height: 32px;
  }

  .logo-text {
    font-size: 15px;
  }

  .hero h1 {
    font-size: 26px;
  }

  .nav-links {
    gap: 8px;
    font-size: 11px;
  }

  .nav-links a {
    font-size: 11px;
  }
}