:root {
  --bg-color: #ffffff;
  --card-bg: #ffffff;
  --section-alt-bg: #f9fafb;
  --primary-color: #5e35b1;
  --secondary-color: #1e88e5;
  --dark-color: #2c3e50;
  --text-muted: #6c757d;
  --primary-gradient: linear-gradient(
    135deg,
    var(--primary-color),
    var(--secondary-color)
  );
  --shadow: 0 2px 4px rgba(0, 0, 0, 0.04), 0 8px 16px rgba(0, 0, 0, 0.06),
    0 20px 40px rgba(0, 0, 0, 0.04);
  --shadow-hover: 0 2px 4px rgba(0, 0, 0, 0.05), 0 12px 24px rgba(0, 0, 0, 0.08),
    0 30px 60px rgba(0, 0, 0, 0.06);
  --border-radius: 20px;
  --transition: all 0.3s ease-in-out;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Vazirmatn", sans-serif;
  background-color: var(--bg-color);
  color: var(--dark-color);
  line-height: 1.8;
  overflow-x: hidden;
}

#preloader {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: var(--bg-color);
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: opacity 0.5s ease;
}

#particles-js {
  position: fixed;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  z-index: -1;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  position: relative;
  z-index: 1;
}

.reveal {
  opacity: 0;
  transition: opacity 1s ease-out, transform 0.8s ease-out;
}

.reveal.from-bottom {
  transform: translateY(50px);
}

.reveal.from-left {
  transform: translateX(-50px);
}

.reveal.from-right {
  transform: translateX(50px);
}

.reveal.zoom-in {
  transform: scale(0.9);
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

.clean-card {
  background: var(--card-bg);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  padding: 35px;
  transition: var(--transition);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.clean-card:hover {
  transform: translateY(-12px);
  box-shadow: var(--shadow-hover);
}

.section {
  padding: 100px 0;
  position: relative;
}

.section-title {
  text-align: center;
  margin-bottom: 70px;
  font-size: 2.8rem;
  font-weight: 700;
  color: var(--dark-color);
}

.section-title span {
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

#why-english,
#courses {
  background-color: var(--section-alt-bg);
}

.hero {
  min-height: 90vh;
  display: flex;
  align-items: center;
  text-align: center;
  padding: 100px 0;
}

.hero h1 {
  font-size: 3.5rem;
  font-weight: 800;
  margin-bottom: 20px;
  color: var(--dark-color);
  line-height: 1.4;
}

.hero h1 .word {
  display: inline-block;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s, transform 0.5s;
}

.hero h1 .word.visible {
  opacity: 1;
  transform: translateY(0);
}

.hero h1 span.gradient-text {
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero p {
  font-size: 1.3rem;
  color: var(--text-muted);
  max-width: 750px;
  margin: 0 auto 40px;
  font-weight: 300;
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 40px;
  margin-top: 50px;
  flex-wrap: wrap;
}

.hero-stat .number {
  font-size: 2.5rem;
  font-weight: 700;
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-stat .label {
  font-size: 1rem;
  color: var(--text-muted);
}

.loader {
  border: 5px solid #eee;
  border-top: 5px solid var(--primary-color);
  border-radius: 50%;
  width: 50px;
  height: 50px;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 30px;
}

.feature-card .icon {
  font-size: 2.8rem;
  margin-bottom: 20px;
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.feature-card h3 {
  font-size: 1.5rem;
  color: var(--dark-color);
  margin-bottom: 10px;
}

.feature-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  flex-grow: 1;
}

/* New Section Styles */
.why-english-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 30px;
}

.why-card .icon {
  font-size: 2.5rem;
  margin-bottom: 20px;
  color: var(--primary-color);
}

.why-card h3 {
  font-size: 1.4rem;
  color: var(--dark-color);
  margin-bottom: 10px;
}

.why-card p {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.courses-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.course-card {
  text-align: center;
}

.course-card .icon-wrapper {
  font-size: 4rem;
  margin-bottom: 20px;
  transition: transform 0.3s ease;
  display: inline-block;
}

.course-card:hover .icon-wrapper {
  transform: scale(1.2) rotate(5deg);
}

.course-card.kids .icon-wrapper {
  color: #f39c12;
}

.course-card.teens .icon-wrapper {
  color: #27ae60;
}

.course-card.adults .icon-wrapper {
  color: #2980b9;
}

.course-card h3 {
  font-size: 1.8rem;
  margin-bottom: 20px;
  color: var(--dark-color);
}

.course-card ul {
  list-style: none;
  text-align: right;
  margin-bottom: 30px;
  color: var(--text-muted);
  flex-grow: 1;
}

.course-card ul li {
  margin-bottom: 10px;
  padding-right: 30px;
  position: relative;
}

.course-card ul li::before {
  font-family: "Font Awesome 6 Free";
  content: "\f058";
  font-weight: 900;
  position: absolute;
  right: 0;
  top: 1px;
  color: var(--secondary-color);
}

.qa-container {
  max-width: 800px;
  margin: 0 auto;
}

.qa-item {
  background: var(--card-bg);
  margin-bottom: 15px;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.qa-item summary {
  padding: 20px;
  font-size: 1.2rem;
  font-weight: 500;
  color: var(--dark-color);
  cursor: pointer;
  outline: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.qa-item summary::marker {
  content: "";
}

.qa-item summary .icon {
  transition: transform 0.3s ease;
  color: var(--primary-color);
}

.qa-item[open] summary .icon {
  transform: rotate(180deg);
}

.qa-item .answer {
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.5s cubic-bezier(0, 1, 0, 1);
}

.qa-item .answer p,
.qa-item .answer ul {
  padding: 0 20px 20px;
  border-top: 1px solid #e9ecef;
  padding-top: 20px;
  color: var(--text-muted);
}

.qa-item .answer ul {
  padding-right: 40px;
}

.qa-item[open] > .answer {
  max-height: 1000px;
  transition: max-height 1s ease-in-out;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 15px 35px;
  background: var(--primary-gradient);
  color: #fff;
  text-decoration: none;
  border-radius: 50px;
  font-weight: 700;
  font-size: 1.1rem;
  transition: var(--transition);
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(94, 53, 177, 0.3);
  position: relative;
  overflow: hidden;
}

.btn:hover {
  transform: translateY(-5px) scale(1.05);
  box-shadow: 0 8px 30px rgba(30, 136, 229, 0.4);
}

.btn .fa-fw {
  margin-left: 10px;
}

@keyframes pulse-glow {
  0% {
    box-shadow: 0 0 5px rgba(30, 136, 229, 0.3),
      0 0 10px rgba(30, 136, 229, 0.2);
  }

  50% {
    box-shadow: 0 0 20px rgba(30, 136, 229, 0.6),
      0 0 30px rgba(30, 136, 229, 0.4);
  }

  100% {
    box-shadow: 0 0 5px rgba(30, 136, 229, 0.3),
      0 0 10px rgba(30, 136, 229, 0.2);
  }
}

.btn.glow {
  animation: pulse-glow 3s infinite;
}

.contact-footer {
  padding: 80px 0;
  text-align: center;
  background-color: var(--dark-color);
  color: var(--bg-color);
  margin-top: 50px;
  border-top-left-radius: 20px;
  border-top-right-radius: 20px;
}

.contact-footer h2 {
  font-size: 2.5rem;
  margin-bottom: 20px;
  color: #fff;
}

.contact-footer h2 span {
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.contact-footer > p {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 40px;
}

.contact-details {
  max-width: 500px;
  margin: 0 auto;
  text-align: center;
}

.contact-details p {
  font-size: 1.2rem;
  margin-bottom: 20px;
}

.contact-details .fa-fw {
  margin-left: 15px;
  color: var(--secondary-color);
}

.contact-details a {
  color: var(--bg-color);
  text-decoration: none;
  transition: color 0.3s ease;
}

.contact-details a:hover {
  color: var(--secondary-color);
}

@media (max-width: 992px) {
  .courses-grid,
  .features-grid,
  .why-english-grid {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  }

  .hero h1 {
    font-size: 2.8rem;
  }

  .section-title {
    font-size: 2.2rem;
  }
}

@media (max-width: 768px) {
  .hero {
    min-height: auto;
    padding: 120px 0 80px;
  }

  .hero h1 {
    font-size: 2.4rem;
  }

  .hero-stats {
    gap: 20px;
    flex-direction: column;
    align-items: center;
  }
}
.m1{
  margin: 10px 0px;
}