:root {
  --primary-color: #3d63dd;
  --primary-light: #6a86e6;
  --primary-dark: #2a4bb8;
  --accent-color: #ff6b6b;
  --success-color: #10b981;
  --dark-bg: #0f172a;
  --darker-bg: #0a0f1c;
  --light-text: #f8fafc;
  --dark-text: #1e1f24;
  --light-bg: #fdfdfe;
  --card-light: #ffffff;
  --card-dark: #1e293b;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  --shadow-dark: 0 10px 30px rgba(0, 0, 0, 0.3);
  --glow: 0 0 20px rgba(61, 99, 221, 0.3);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  overflow-y: scroll;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  -ms-text-size-adjust: 100%;
}

body {
  font-family: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  width: 100%;
  max-width: 100vw;
  overflow-x: hidden;
  overflow-y: auto;
  background-color: var(--light-bg);
  color: var(--dark-text);
  line-height: 1.6;
  transition: background-color 0.3s ease, color 0.3s ease;
  position: relative;
}

body.dark-theme {
  background-color: var(--dark-bg);
  color: var(--light-text);
}

.section-header {
  text-align: center;
  margin-bottom: 3.5rem;
}

.section-badge {
  display: inline-block;
  padding: 0.8rem 2rem;
  background: rgba(61, 99, 221, 0.15);
  color: var(--primary-color);
  border-radius: 50px;
  font-weight: 700;
  margin-bottom: 1.5rem;
  text-align: center;
  border: 1px solid rgba(61, 99, 221, 0.2);
  backdrop-filter: blur(10px);
  font-size: 0.9rem;
  letter-spacing: 0.5px;
  animation: pulse 2s infinite;
}

.section-title {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  color: var(--dark-text);
  text-align: center;
  width: 100%;
  background: linear-gradient(
    135deg,
    var(--primary-color),
    var(--primary-light)
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.dark-theme .section-title {
  color: var(--light-text);
}

.section-description {
  font-size: clamp(1.1rem, 2vw, 1.3rem);
  line-height: 1.7;
  color: var(--dark-text);
  opacity: 0.9;
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
  font-weight: 400;
}

.dark-theme .section-description {
  color: var(--light-text);
  opacity: 0.8;
}

.section-spacing {
  padding: clamp(5rem, 8vw, 8rem) 0;
  margin: 0;
}

.rtl .section-header,
.rtl .section-badge,
.rtl .section-title,
.rtl .section-description {
  text-align: center;
}

.rtl .section-badge {
  letter-spacing: normal;
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(61, 99, 221, 0.4);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(61, 99, 221, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(61, 99, 221, 0);
  }
}

@media (max-width: 768px) {
  .section-container {
    padding: 0 1rem;
  }

  .section-spacing {
    padding: 4rem 0;
  }

  .section-badge {
    padding: 0.6rem 1.5rem;
    font-size: 0.85rem;
  }
}

@media (max-width: 480px) {
  .section-spacing {
    padding: 3rem 0;
  }

  .section-badge {
    padding: 0.5rem 1.2rem;
    font-size: 0.8rem;
  }
}

.container {
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 1.5rem;
}
.section-container {
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 1.5rem;
}
.text-center {
  text-align: center;
}

.max-w-800 {
  max-width: 800px;
}

.mx-auto {
  margin-left: auto;
  margin-right: auto;
}

.mb-16 {
  margin-bottom: 4rem;
}

/* واتساپ */
.whatsapp-float {
  position: fixed;
  bottom: 60px;
  left: 20px;
  inset-inline-start: 20px;
  z-index: 1000;
}

.whatsapp-float a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  background-color: #25d366;
  border-radius: 50%;
  text-decoration: none;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease;
  animation: gentle-pulse 3s ease-in-out infinite;
}

.whatsapp-float a:hover {
  transform: scale(1.1);
  animation-play-state: paused;
}

.whatsapp-float a:active {
  transform: scale(0.95);
}

.whatsapp-float i {
  font-size: 32px;
  color: white;
}

@keyframes gentle-pulse {
  0%,
  100% {
    transform: scale(1);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  }
  50% {
    transform: scale(1.05);
    box-shadow: 0 0 0 5px rgba(37, 211, 102, 0.2),
      0 0 0 10px rgba(37, 211, 102, 0.1), 0 2px 10px rgba(0, 0, 0, 0.2);
  }
}

.prevent-overflow {
  max-width: 100%;
  overflow: hidden;
}

.transform-fix {
  transform: translateZ(0);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.overflow-guard {
  contain: layout style paint;
}

.grid-fix,
.flex-fix {
  min-width: 0;
  min-height: 0;
}

img,
video,
iframe {
  max-width: 100%;
  height: auto;
  display: block;
}

.positioned-element {
  max-width: 100vw;
  left: 0;
  right: 0;
}

.animation-fix {
  will-change: transform;
  transform: translate3d(0, 0, 0);
}

@media (max-width: 768px) {
  .mobile-no-scroll-x {
    overflow-x: hidden !important;
  }

  body {
    overflow-x: hidden;
    position: relative;
  }
}

.smooth-transition {
  transition: all 0.3s ease;
}

.animate-spin {
  animation: spin 1s linear infinite;
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

#submit-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.swal2-popup {
  font-family: "Vazir", sans-serif !important;
}

.swal2-confirm {
  border-radius: 8px !important;
  padding: 10px 24px !important;
}

#form-message {
  transition: all 0.3s ease;
  animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.border-red-500 {
  border-color: #ef4444 !important;
}
