:root {
  --primary-color: #3b82f6;
  --primary-dark: #2563eb;
  --primary-light: #60a5fa;
  --secondary-color: #8b5cf6;
  --accent-color: #f59e0b;
  --success-color: #10b981;
  --warning-color: #f59e0b;
  --dark-color: #1e293b;
  --darker-color: #0f172a;
  --light-color: rgba(255, 255, 255, 0.1);
  --lighter-color: rgba(255, 255, 255, 0.05);
  --white: #ffffff;
  --border-radius: 20px;
  --border-radius-lg: 40px;
  --box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
  --box-shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.5);
  --gradient-primary: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 50%, #ec4899 100%);
  --gradient-secondary: linear-gradient(135deg, #06b6d4 0%, #3b82f6 100%);
  --gradient-accent: linear-gradient(135deg, #f59e0b 0%, #ef4444 100%);
}

/* Hero Section - Glassmorphism */
.hero {
  color: var(--white);
  padding: 160px 0 120px;
  position: relative;
  overflow: hidden;
  background: transparent;
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 20% 80%, rgba(59, 130, 246, 0.3) 0%, transparent 50%),
              radial-gradient(circle at 80% 20%, rgba(139, 92, 246, 0.3) 0%, transparent 50%),
              radial-gradient(circle at 40% 40%, rgba(236, 72, 153, 0.2) 0%, transparent 50%);
  animation: pulseGlow 8s ease-in-out infinite;
  z-index: -1;
}

@keyframes pulseGlow {
  0%,
  100% {
    opacity: 0.5;
  }
  50% {
    opacity: 1;
  }
}

.hero::after {
  content: "";
  position: absolute;
  width: 100%;
  height: 100%;
  background-image: linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(0deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  animation: gridMove 30s linear infinite;
  z-index: -1;
}

@keyframes gridMove {
  0% {
    transform: translate(0, 0);
  }
  100% {
    transform: translate(60px, 60px);
  }
}

.hero .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  position: relative;
  z-index: 2;
}

.hero-badge {
  display: inline-block;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(20px);
  padding: 12px 24px;
  border-radius: 50px;
  font-size: 0.95rem;
  margin-bottom: 25px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  font-weight: 600;
  animation: fadeInUp 0.8s ease;
  color: rgba(255, 255, 255, 0.9);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.hero-title {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 900;
  line-height: 1.15;
  margin-bottom: 25px;
  animation: fadeInUp 1s ease;
  letter-spacing: -0.03em;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.hero-title .highlight {
  background: linear-gradient(135deg, #60a5fa, #f472b6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: inline-block;
  text-shadow: none;
}

.hero-description {
  font-size: 1.35rem;
  opacity: 0.9;
  margin-bottom: 45px;
  line-height: 1.8;
  animation: fadeInUp 1.2s ease;
  color: rgba(255, 255, 255, 0.85);
  font-weight: 500;
}

.hero-buttons {
  display: flex;
  gap: 20px;
  margin-bottom: 60px;
  flex-wrap: wrap;
  animation: fadeInUp 1.4s ease;
}

.btn {
  padding: 18px 40px;
  border-radius: var(--border-radius);
  text-decoration: none;
  font-weight: 700;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  display: inline-flex;
  align-items: center;
  gap: 12px;
  border: none;
  cursor: pointer;
  font-size: 1.05rem;
  box-shadow: var(--box-shadow-lg);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  transition: left 0.6s ease;
}

.btn:hover::before {
  left: 100%;
}

.btn-lg {
  padding: 20px 48px;
  font-size: 1.15rem;
}

.btn-primary {
  background: var(--gradient-primary);
  background-size: 200% 100%;
  color: var(--white);
  box-shadow: 0 15px 50px rgba(59, 130, 246, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.btn-primary:hover {
  background-position: 100% 0;
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 25px 60px rgba(59, 130, 246, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.12);
  color: var(--white);
  border: 2px solid rgba(255, 255, 255, 0.3);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.18);
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.5);
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.hero-stats {
  display: flex;
  gap: 50px;
  animation: fadeInUp 1.6s ease;
}

.stat {
  text-align: center;
}

.stat-number {
  display: block;
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 8px;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: 0 0 20px rgba(59, 130, 246, 0.6);
}

.stat-label {
  font-size: 1rem;
  opacity: 0.9;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.8);
}

/* Hero Visual - Glassmorphism */
.hero-visual {
  position: relative;
  animation: fadeInRight 1s ease;
}

.visual-container {
  position: relative;
  height: 450px;
}

.floating-card {
  position: absolute;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(30px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--border-radius);
  padding: 20px 24px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.95rem;
  animation: float 4s ease-in-out infinite;
  box-shadow: var(--box-shadow);
  color: var(--white);
  font-weight: 600;
  z-index: 10;
}

.floating-card i {
  font-size: 1.4rem;
  color: var(--primary-light);
  filter: drop-shadow(0 0 10px rgba(59, 130, 246, 0.6));
}

.card-1 {
  top: 10px;
  left: 20px;
  animation-delay: 0s;
}

.card-2 {
  top: 10px;
  right: 10px;
  animation-delay: 1.5s;
}

.card-3 {
  bottom: 10px;
  left: 10px;
  animation-delay: 3s;
}

.main-visual {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 340px;
}

.website-preview {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(30px);
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  box-shadow: var(--box-shadow-lg);
  animation: pulse 3s ease-in-out infinite;
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.browser-bar {
  background: rgba(255, 255, 255, 0.15);
  padding: 14px 20px;
  display: flex;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.browser-dots {
  display: flex;
  gap: 8px;
}

.browser-dots span {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  transition: var(--transition);
}

.browser-dots span:nth-child(1) {
  background: linear-gradient(135deg, #ff5f57, #ff8e8e);
}
.browser-dots span:nth-child(2) {
  background: linear-gradient(135deg, #ffbd2e, #ffd43b);
}
.browser-dots span:nth-child(3) {
  background: linear-gradient(135deg, #28ca42, #51cf66);
}

.website-content {
  height: 180px;
  background: var(--gradient-primary);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.traffic-flow {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
}

.visitor {
  position: absolute;
  width: 10px;
  height: 10px;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  animation: trafficFlow 5s linear infinite;
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.8);
  filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.6));
}

.visitor:nth-child(1) {
  top: 20%;
  left: 10%;
  animation-delay: 0s;
}

.visitor:nth-child(2) {
  top: 60%;
  left: 30%;
  animation-delay: 1.5s;
}

.visitor:nth-child(3) {
  top: 40%;
  left: 70%;
  animation-delay: 3s;
}

/* How It Works Section - Glassmorphism */
.how-it-works {
  padding: 120px 0;
  background: transparent;
  position: relative;
}

.how-it-works::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 30% 70%, rgba(59, 130, 246, 0.1) 0%, transparent 50%),
              radial-gradient(circle at 70% 30%, rgba(139, 92, 246, 0.1) 0%, transparent 50%);
  z-index: -1;
}

.section-header {
  text-align: center;
  margin-bottom: 80px;
}

.section-title {
  font-size: 3rem;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 20px;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-description {
  font-size: 1.3rem;
  color: rgba(255, 255, 255, 0.8);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.7;
  font-weight: 500;
}

.steps-container {
  position: relative;
  max-width: 1000px;
  margin: 0 auto;
}

.step-card {
  display: flex;
  align-items: center;
  margin-bottom: 80px;
  position: relative;
  z-index: 2;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(30px);
  padding: 3rem 2.5rem;
  border-radius: 30px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: var(--box-shadow);
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.step-card:hover {
  background: rgba(255, 255, 255, 0.12);
  transform: translateY(-10px);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.4);
  border-color: var(--primary-color);
}

.step-card:nth-child(odd) {
  flex-direction: row;
}

.step-card:nth-child(even) {
  flex-direction: row-reverse;
}

.step-icon {
  position: relative;
  width: 120px;
  height: 120px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(20px);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.3);
  border: 4px solid rgba(255, 255, 255, 0.15);
  flex-shrink: 0;
  transition: var(--transition);
}

.step-card:hover .step-icon {
  transform: scale(1.1) rotate(5deg);
  box-shadow: 0 25px 50px -10px rgba(59, 130, 246, 0.4);
}

.step-icon i {
  font-size: 2.5rem;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.step-number {
  position: absolute;
  top: -10px;
  right: -10px;
  background: var(--gradient-primary);
  color: var(--white);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.1rem;
  box-shadow: 0 8px 20px rgba(59, 130, 246, 0.4);
  border: 3px solid rgba(255, 255, 255, 0.3);
}

.step-content {
  flex: 1;
  padding: 0 40px;
}

.step-card:nth-child(odd) .step-content {
  text-align: right;
}

.step-card:nth-child(even) .step-content {
  text-align: left;
}

.step-content h3 {
  font-size: 1.8rem;
  color: var(--white);
  margin-bottom: 15px;
  font-weight: 700;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.step-content p {
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.7;
  font-size: 1.15rem;
  font-weight: 500;
}

/* Features Section - Glassmorphism */
.features {
  padding: 120px 0;
  background: transparent;
  position: relative;
}

.features::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 70% 70%, rgba(236, 72, 153, 0.1) 0%, transparent 50%),
              radial-gradient(circle at 30% 30%, rgba(59, 130, 246, 0.1) 0%, transparent 50%);
  z-index: -1;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 40px;
}

.feature-card {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(30px);
  padding: 3.5rem 2.5rem;
  border-radius: var(--border-radius-lg);
  text-align: center;
  box-shadow: var(--box-shadow);
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid rgba(255, 255, 255, 0.18);
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: var(--gradient-primary);
  transform: scaleX(0);
  transition: transform 0.5s ease;
}

.feature-card:hover::before {
  transform: scaleX(1);
}

.feature-card:hover {
  transform: translateY(-12px);
  box-shadow: 0 25px 60px rgba(59, 130, 246, 0.3);
  border-color: var(--primary-color);
  background: rgba(255, 255, 255, 0.12);
}

.feature-icon {
  width: 90px;
  height: 90px;
  background: var(--gradient-primary);
  color: var(--white);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  margin: 0 auto 2.5rem;
  transition: var(--transition);
  box-shadow: 0 15px 35px -10px rgba(59, 130, 246, 0.4);
  backdrop-filter: blur(10px);
}

.feature-card:hover .feature-icon {
  transform: scale(1.15) rotate(-5deg);
  box-shadow: 0 20px 45px -10px rgba(59, 130, 246, 0.5);
}

.feature-card h3 {
  font-size: 1.6rem;
  color: var(--white);
  margin-bottom: 1.5rem;
  font-weight: 700;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.feature-card p {
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.8;
  font-size: 1.05rem;
  font-weight: 500;
}

/* CTA Section - Glassmorphism */
.cta {
  padding: 120px 0;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(30px);
  color: var(--white);
  text-align: center;
  position: relative;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.cta::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 50% 50%, rgba(59, 130, 246, 0.2) 0%, transparent 70%);
  z-index: -1;
}

.cta-content h2 {
  font-size: 3rem;
  margin-bottom: 20px;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
  font-weight: 800;
}

.cta-content p {
  font-size: 1.3rem;
  opacity: 0.9;
  margin-bottom: 40px;
  color: rgba(255, 255, 255, 0.85);
  font-weight: 500;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.7;
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(-15px) rotate(3deg);
  }
}

@keyframes pulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.03);
  }
}

@keyframes trafficFlow {
  0% {
    transform: translateX(-100px);
    opacity: 0;
  }
  10% {
    opacity: 1;
  }
  90% {
    opacity: 1;
  }
  100% {
    transform: translateX(450px);
    opacity: 0;
  }
}

/* Responsive Design */
@media (max-width: 1024px) {
  .hero .container {
    gap: 60px;
  }
  
  .step-content {
    padding: 0 30px;
  }
  
  .features-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
  }
}

@media (max-width: 768px) {
  .hero .container {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 50px;
  }

  .hero {
    padding: 120px 0 80px;
  }

  .hero-title {
    font-size: clamp(2rem, 8vw, 3rem);
  }

  .hero-stats {
    justify-content: center;
    gap: 30px;
  }

  .hero-buttons {
    justify-content: center;
  }

  .floating-card {
    display: none;
  }

  .visual-container {
    height: 350px;
  }

  .main-visual {
    width: 280px;
  }

  .step-card {
    flex-direction: column !important;
    text-align: center;
    gap: 2rem;
    padding: 2.5rem 2rem;
    margin-bottom: 50px;
  }

  .step-content {
    padding: 0;
  }

  .step-card:nth-child(odd) .step-content,
  .step-card:nth-child(even) .step-content {
    text-align: center;
  }

  .step-icon {
    width: 100px;
    height: 100px;
  }

  .step-icon i {
    font-size: 2rem;
  }

  .section-title {
    font-size: 2.2rem;
  }

  .features-grid {
    grid-template-columns: 1fr;
    gap: 25px;
  }

  .feature-card {
    padding: 2.5rem 2rem;
  }

  .cta-content h2 {
    font-size: 2.2rem;
  }

  .cta-content p {
    font-size: 1.1rem;
  }
}

@media (max-width: 480px) {
  .hero {
    padding: 100px 0 60px;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }

  .hero-buttons .btn {
    width: 100%;
    max-width: 280px;
    justify-content: center;
  }

  .hero-stats {
    flex-direction: column;
    gap: 20px;
  }

  .stat-number {
    font-size: 2rem;
  }

  .step-card {
    padding: 2rem 1.5rem;
  }

  .feature-card {
    padding: 2rem 1.5rem;
  }

  .section-title {
    font-size: 1.8rem;
  }

  .cta {
    padding: 80px 0;
  }

  .cta-content h2 {
    font-size: 1.8rem;
  }
}

/* تحسينات إضافية للشاشات الصغيرة */
@media (max-width: 360px) {
  .hero-title {
    font-size: 1.6rem;
  }

  .hero-description {
    font-size: 1.1rem;
  }

  .btn {
    padding: 16px 24px;
    font-size: 1rem;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .feature-card {
    padding: 1.5rem 1rem;
  }

  .step-card {
    padding: 1.5rem 1rem;
  }
}

/* تأثيرات الحركة الإضافية */
@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* تحسينات الوصول */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* تحسينات الطباعة */
@media print {
  .hero::before,
  .hero::after,
  .how-it-works::before,
  .features::before,
  .cta::before {
    display: none !important;
  }

  .hero,
  .how-it-works,
  .features,
  .cta {
    background: white !important;
    color: black !important;
  }

  .hero-title,
  .step-content h3,
  .feature-card h3,
  .cta-content h2 {
    color: black !important;
  }

  .hero-description,
  .step-content p,
  .feature-card p,
  .cta-content p {
    color: #666 !important;
  }

  .btn {
    display: none !important;
  }
}