@import url("https://fonts.googleapis.com/css2?family=Tajawal:wght@300;400;500;700&display=swap");

:root {
  --primary-color: #4f46e5;
  --secondary-color: #7c3aed;
  --accent-color: #05f68d;
  --success-color: #10b981;
  --error-color: #ef4444;
}

* {
  box-sizing: border-box;
}

body {
  font-family: "Tajawal", sans-serif;

  min-height: 100vh;
  margin: 0;
  padding: 0;
  line-height: 1.6;
  background-attachment: fixed;
  background-size: cover;
  position: relative;
}

/* إضافة تأثير الضبابية للدائرة الخضراء */
body::before {
  content: "";
  position: fixed;
  top: 50%;
  left: 50%;
  width: 80rem;
  height: 80rem;
  background: rgba(5, 246, 141, 0.1);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  filter: blur(120px);
  z-index: -1;
  pointer-events: none;
}
html {
  scroll-behavior: smooth;
}

/* تصميم البطاقات */
.card {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  transform-style: preserve-3d;
  perspective: 1000px;
  background: white;
  border-radius: 1rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    45deg,
    rgba(255, 255, 255, 0.1) 0%,
    rgba(255, 255, 255, 0) 100%
  );
  z-index: 1;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.card:hover::before {
  opacity: 1;
}

.icon-container {
  position: relative;
  transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  transform-style: preserve-3d;
}

.card:hover .icon-container {
  transform: translateY(-5px) scale(1.1);
  color: var(--primary-color);
}

.pulse-effect {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(79, 70, 229, 0.3);
  transform: translate(-50%, -50%);
  opacity: 0;
  transition: all 0.6s ease;
}

.card:hover .pulse-effect {
  width: 120px;
  height: 120px;
  opacity: 1;
}

.content {
  position: relative;
  z-index: 2;
}

/* أنيميشن ظهور البطاقات */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  animation: fadeInUp 0.6s ease forwards;
  opacity: 0;
}

/* تأثيرات خاصة للأيقونات */
.icon-lightning {
  transition: all 0.5s ease;
}

.card:hover .icon-lightning {
  filter: drop-shadow(0 0 8px rgba(255, 215, 0, 0.7));
}

.icon-exchange {
  transition: all 0.5s ease;
}

.card:hover .icon-exchange {
  animation: spin 1.5s linear infinite;
}

.icon-shield {
  transition: all 0.5s ease;
}

.card:hover .icon-shield {
  animation: bounce 0.8s ease infinite alternate;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

@keyframes bounce {
  0% {
    transform: translateY(0);
  }
  100% {
    transform: translateY(-5px);
  }
}

/* تصميم النموذج */
.form-container {
  background: white;
  border-radius: 1.5rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  padding: 2rem;
  width: 100%;
  max-width: 700px;
  margin: 0 auto;
}

.input-group {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

@media (max-width: 640px) {
  .input-group {
    grid-template-columns: 1fr;
  }
}

.form-input {
  transition: all 0.3s ease;
  position: relative;
}

.form-input input,
.form-input select,
.form-input textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border-radius: 0.75rem;
  border: 2px solid #e5e7eb;
  background: #f9fafb;
  transition: all 0.3s ease;
  font-family: "Tajawal", sans-serif;
}

.form-input input:focus,
.form-input select:focus,
.form-input textarea:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
  background: white;
}

.form-input.valid input,
.form-input.valid select,
.form-input.valid textarea {
  border-color: var(--success-color);
}

.form-input.invalid input,
.form-input.invalid select,
.form-input.invalid textarea {
  border-color: var(--error-color);
}

.validation-message {
  font-size: 0.75rem;
  margin-top: 0.25rem;
  display: none;
}

.form-input.invalid .validation-message {
  display: block;
  color: var(--error-color);
}

.form-input.valid .validation-message {
  display: block;
  color: var(--success-color);
}

.terms-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1000;
  justify-content: center;
  align-items: center;
}

.terms-content {
  background: white;
  padding: 2rem;
  border-radius: 1rem;
  max-width: 500px;
  width: 90%;
  max-height: 80vh;
  overflow-y: auto;
}

.submit-btn {
  background: linear-gradient(
    135deg,
    var(--primary-color),
    var(--secondary-color)
  );
  color: white;
  font-weight: bold;
  padding: 1rem 2rem;
  border-radius: 0.75rem;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  width: 100%;
  font-size: 1.1rem;
  position: relative;
  overflow: hidden;
}

.submit-btn:hover {
  background: linear-gradient(135deg, #4338ca, #6d28d9);
}

.submit-btn:active {
  transform: scale(0.98);
}

.submit-btn:disabled {
  background: #9ca3af;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.checkbox-container {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  transition: all 0.3s ease;
  padding: 0.5rem;
  border-radius: 0.5rem;
}

.checkbox-container:hover {
  background: #f3f4f6;
}

.checkbox-container input {
  width: 1.2rem;
  height: 1.2rem;
  cursor: pointer;
}

.terms-link {
  color: var(--primary-color);
  text-decoration: underline;
  cursor: pointer;
  transition: all 0.3s ease;
}

.terms-link:hover {
  color: #3730a3;
}

.required::after {
  content: " *";
  color: var(--error-color);
}

/* تصميم الفوتر */
footer {
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
  border-top: 1px solid #e2e8f0;
}

@keyframes pulse-slow {
  0%,
  100% {
    opacity: 0.2;
    transform: scale(1);
  }
  50% {
    opacity: 0.3;
    transform: scale(1.05);
  }
}

@keyframes bounce-slow {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

.animate-pulse-slow {
  animation: pulse-slow 4s ease-in-out infinite;
}

.animate-bounce-slow {
  animation: bounce-slow 6s ease-in-out infinite;
}

/* تحسينات للاستجابة */
@media (max-width: 768px) {
  .hero-section h2 {
    font-size: 2.5rem !important;
  }

  .stats-section .grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }

  .features-section .grid {
    grid-template-columns: 1fr !important;
  }

  .form-container {
    padding: 1.5rem;
  }
}

@media (max-width: 480px) {
  .stats-section .grid {
    grid-template-columns: 1fr !important;
  }

  .hero-buttons {
    flex-direction: column;
    gap: 1rem;
  }

  .hero-section h2 {
    font-size: 2rem !important;
  }
}

/* تحسينات للصور */
img {
  max-width: 100%;
  height: auto;
}

/* تحسينات للروابط */
a {
  transition: all 0.3s ease;
}

a:hover {
  opacity: 0.8;
}

/* تحسينات للنصوص */
h1,
h2,
h3,
h4,
h5,
h6 {
  line-height: 1.2;
}
/* جعل كامل الصفحة بنفس نمط الهيرو */
#root {
    background: inherit;
}

.relative.z-10 {
    background: inherit;
}

main {
    background: inherit;
}

section {
    background: inherit;
    position: relative;
    z-index: 1;
}

/* إزالة أي خلفيات إضافية من الأقسام */
.hero-section,
.features-section,
.stats-section,
.join-section,
.benefits-section {
    background: transparent !important;
}

/* التأكد من أن المحتوى يظهر فوق الخلفية */
header, main, footer {
    position: relative;
    z-index: 2;
}

/* تحسين مظهر البطاقات مع الخلفية الجديدة */
.card {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
}

.form-container {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(15px);
}