:root {
  --primary-color: #601cfc;
  --primary-hover: #5016db;
  --secondary-color: #8599a9;
  --background-color: #ffffff;
  --text-color: #1a1a1a;
  --text-light: #6b7280;
  --border-color: #e5e7eb;
  --success-color: #10b981;
  --error-color: #e24646;
  --card-bg: #f9fafb;
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Tajawal', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  line-height: 1.6;
  color: var(--text-color);
  background-color: var(--background-color);
  direction: rtl;
}


.main {
    display: flex;
    background-color:#603fb6;
    height: 75px;
    border-radius: 0px 0px 25px 25px;
    position: fixed;
    width: 100%;
    left: 0px;
    top: 0px;
    z-index: 1000;
}

.logo{
    width: 12%;
    margin-left: -20px;
    
}

.logo img {
    width: 85%;
    height: 100%;
}

.mmm106 {
    font-size: 20px;
    color: white;
    width: 30%;
    align-items: flex-start;
}



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

/* Header */
.logo h2 {
  color: whitesmoke;
  font-size: 28px;
  font-weight: 900;
}

.logo h2 span {
  font-size: larger;
  font-weight: bolder;
  color: rgb(67, 20, 20);
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 32px;
}

.nav-links a {
  color: var(--text-color);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s;
}

.nav-links a:hover {
  color: var(--primary-color);
}

.nav-actions {
  display: flex;
  gap: 12px;
}

.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  gap: 4px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.mobile-menu-toggle span {
  width: 24px;
  height: 3px;
  background-color: var(--text-color);
  border-radius: 2px;
  transition: all 0.3s;
}

/* Buttons */
.btn-primary,
.btn-secondary,
.btn-outline {
  padding: 12px 24px;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
  border: none;
  font-size: 16px;
  text-align: center;
  text-decoration: none;
}

.btn-primary {
  background-color: var(--primary-color);
  color: white;
}

.btn-primary:hover {
  background-color: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.feature-icon img {
    width: 200px; /* Sets a consistent size for images */
    height: 200px;
    background-color: white;
    border-radius: 50%; /* Makes images circular */
    
}

.feature-icon img:hover {
    transform: scale(1.1); /* Enlarges the image on hover */
}

a {
  text-decoration: none;
}

.btn-secondary {
  background-color: transparent;
  color: var(--text-color);
  border: 2px solid var(--border-color);
}

.btn-secondary:hover {
  background-color: var(--card-bg);
}

.btn-outline {
  background-color: transparent;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
}

.btn-outline:hover {
  background-color: var(--primary-color);
  color: white;
}

.btn-large {
  padding: 16px 32px;
  font-size: 18px;
}

/* Hero Section */
.hero {
  padding: 80px 0;
  background: linear-gradient(135deg, #f8f9ff 0%, #ffffff 100%);
  direction: ltr;
}

.hero-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.badge {
  display: inline-block;
  background-color: #dcfce7;
  color: #16a34a;
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 20px;
}

.hero h2 {
  font-family: cursive;
  font-size: 28px;
  font-weight: 900;
  line-height: 1.2;
  margin-bottom: 20px;
  color: var(--text-color);
}

.hero-description {
  font-size: 18px;
  color: var(--text-light);
  margin-bottom: 32px;
  line-height: 1.8;
}

.hero-stats {
  display: flex;
  gap: 40px;
  margin-bottom: 32px;
}

.stat {
  display: flex;
  flex-direction: column;
}

.stat-number {
  font-size: 32px;
  font-weight: 900;
  color: var(--primary-color);
}

.stat-label {
  font-size: 14px;
  color: var(--text-light);
}

.hero-actions {
  display: flex;
  gap: 16px;
}

/* Code Window */
.code-window {
  background-color: #1e1e1e;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-xl);
}

.window-header {
  background-color: #323232;
  padding: 12px 16px;
  display: flex;
  gap: 8px;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.dot.red {
  background-color: #ff5f56;
}

.dot.yellow {
  background-color: #ffbd2e;
}

.dot.green {
  background-color: #27c93f;
}

.code-content {
  padding: 24px;
  overflow-x: auto;
  height: 5rem
}

/* Responsive iFrame Styling */
.code-window iframe {
  display: block;
  width: 100%;
  height: 400px;
  border: none;
  border-radius: 8px;
  animation: slideInUp 0.8s ease-out;
}

.code-window {
  animation: scaleIn 0.8s ease-out;
}

/* Animations */
@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* Hover effects for iFrame container */
.code-window:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px -10px rgba(96, 31, 252, 0.3);
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.code-window:hover iframe {
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

/* Responsive iFrame Container */
@media (max-width: 768px) {
  .code-window iframe {
    height: 300px;
  }
  
  .hero-content {
    gap: 30px;
  }
}

@media (max-width: 480px) {
  .code-window {
    border-radius: 8px;
  }
  
  .code-window iframe {
    height: 250px;
  }
  
  .hero-content {
    gap: 20px;
  }
}



.keyword {
  color: #c586c0;
}

.function {
  color: #dcdcaa;
}

.string {
  color: #ce9178;
}

.number {
  color: #b5cea8;
}

.comment {
  color: #6a9955;
  font-style: italic;
}

/* Sections */
.section {
  padding: 80px 0;
}

.section-title {
  text-align: center;
  font-size: 40px;
  font-weight: 900;
  margin-bottom: 60px;
  color: var(--text-color);
}

/* Features Grid */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 32px;
}

.feature-card {
  background-color: rgba(132, 82, 174, 0.174);
  padding: 32px;
  border-radius: 16px;
  box-shadow: var(--shadow-md);
  transition: all 0.3s;
  text-align: center;
}



.feature-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
  background-color: white;
  color: black;
}

.feature-icon {
  font-size: 48px;
  margin-bottom: 16px;
}

.feature-card h3 {
  font-size: 24px;
  margin-bottom: 12px;
  color: var(--text-color);
}

.feature-card p {
  color: var(--text-light);
  line-height: 1.6;
}

/* Curriculum */
.curriculum {
  background-color: var(--card-bg);
}

.curriculum-list {
  max-width: 900px;
  margin: 0 auto;
}

.curriculum-item {
  background-color: white;
  border-radius: 12px;
  margin-bottom: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.curriculum-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px;
  cursor: pointer;
  transition: background-color 0.3s;
}

.curriculum-header:hover {
  background-color: var(--card-bg);
}

.curriculum-title {
  display: flex;
  align-items: center;
  gap: 16px;
}

.curriculum-number {
  background-color: var(--primary-color);
  color: white;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}

.curriculum-title h3 {
  font-size: 20px;
  color: var(--text-color);
}

.curriculum-toggle {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-light);
  transition: transform 0.3s;
}

.curriculum-item.active .curriculum-toggle {
  transform: rotate(180deg);
}

.curriculum-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out;
}

.curriculum-item.active .curriculum-content {
  max-height: 500px;
}

.lesson-list {
  list-style: none;
  padding: 0 24px 24px;
}

.lesson-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border-radius: 8px;
  transition: background-color 0.3s;
}

.lesson-item:hover {
  background-color: var(--card-bg);
}

.lesson-icon {
  font-size: 14px;
}

.lesson-name {
  flex: 1;
  color: var(--text-color);
}

.lesson-duration {
  color: var(--text-light);
  font-size: 14px;
}

/* CTA Section */
.cta-section {
  background: linear-gradient(135deg, var(--primary-color) 0%, #7c3aed 100%);
  padding: 80px 0;
  text-align: center;
}

.cta-content h2 {
  color: white;
  font-size: 40px;
  font-weight: 900;
  margin-bottom: 16px;
}

.cta-content p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 20px;
  margin-bottom: 32px;
}

.cta-section .btn-primary {
  background-color: white;
  color: var(--primary-color);
}

.cta-section .btn-primary:hover {
  background-color: #f3f4f6;
}

/* Footer */
.footer {
  background-color: #121821;
  color: white;
  padding: 60px 0 24px;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  margin-bottom: 40px;
}

.footer-section h3 {
  font-size: 24px;
  margin-bottom: 16px;
}

.footer-section h4 {
  font-size: 18px;
  margin-bottom: 16px;
}

.footer-section p {
  color: #d1d5db;
  line-height: 1.6;
}

.footer-section ul {
  list-style: none;
}

.footer-section ul li {
  margin-bottom: 8px;
}

.footer-section ul li a {
  color: #d1d5db;
  text-decoration: none;
  transition: color 0.3s;
}

.footer-section ul li a:hover {
  color: white;
}

.footer-bottom {
  border-top: 1px solid #374151;
  padding-top: 24px;
  text-align: center;
  color: #9ca3af;
}

/* Chat Widget */
.chat-widget {
  position: fixed;
  bottom: 24px;
  left: 24px;
  z-index: 1000;
}

.chat-bubble {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background-color: var(--primary-color);
  color: white;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-lg);
  transition: all 0.3s;
  position: relative;
}

.chat-bubble:hover {
  transform: scale(1.1);
  background-color: var(--primary-hover);
}

.notification-dot {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 12px;
  height: 12px;
  background-color: var(--error-color);
  border-radius: 50%;
  border: 2px solid white;
}

.chat-window {
  position: absolute;
  bottom: 70px;
  left: 0;
  width: 380px;
  height: 480px;
  background-color: white;
  border-radius: 16px;
  box-shadow: var(--shadow-xl);
  display: none;
  flex-direction: column;
  overflow: hidden;
}

.chat-window.active {
  display: flex;
}

.chat-header {
  background-color: var(--primary-color);
  color: white;
  padding: 16px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.chat-header h4 {
  font-size: 18px;
  font-weight: 600;
}

.chat-close {
  background: none;
  border: none;
  color: white;
  font-size: 24px;
  cursor: pointer;
  padding: 0;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  transition: background-color 0.3s;
}

.chat-close:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.message {
  max-width: 80%;
  padding: 12px 16px;
  border-radius: 12px;
  line-height: 1.5;
}

.system-message {
  background-color: #f3f4f6;
  align-self: flex-start;
}

.customer-message {
  background-color: var(--primary-color);
  color: white;
  align-self: flex-end;
}

.chat-input-container {
  display: flex;
  gap: 8px;
  padding: 16px;
  border-top: 1px solid var(--border-color);
}

.chat-input {
  flex: 1;
  padding: 12px 16px;
  border: 1px solid var(--border-color);
  border-radius: 24px;
  font-size: 14px;
  font-family: inherit;
  outline: none;
}

.chat-input:focus {
  border-color: var(--primary-color);
}

.chat-send {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: var(--primary-color);
  color: white;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.3s;
}

.chat-send:hover {
  background-color: var(--primary-hover);
}

/* Responsive Design */
@media (max-width: 968px) {
  .nav-links,
  .nav-actions {
    display: none;
  }

  .mobile-menu-toggle {
    display: flex;
  }

  .hero-content {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .hero h1 {
    font-size: 36px;
  }

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

  .hero-actions {
    flex-direction: column;
  }

  .hero-stats {
    flex-wrap: wrap;
    gap: 20px;
  }

  .section-title {
    font-size: 32px;
  }

  .chat-window {
    width: calc(100vw - 48px);
    height: 500px;
  }
}

@media (max-width: 420px) {
  .container {
    padding: 0 16px;
  }

  .hero {
    padding: 40px 0;
  }

  .section {
    padding: 40px 0;
  }

  .hero h1 {
    font-size: 28px;
  }

  .hero-description {
    font-size: 16px;
  }

  .btn-large {
    padding: 14px 24px;
    font-size: 16px;
  }

  .section-title {
    font-size: 28px;
    margin-bottom: 40px;
  }

  .cta-content h2 {
    font-size: 28px;
  }

  .cta-content p {
    font-size: 16px;
  }
}

/* Smooth Scrolling */
html {
  scroll-behavior: smooth;
}
