/* ===== RGA - Premium Styles ===== */
/* Tailwind-like utility classes + Custom styles */

/* ===== CSS Variables ===== */
:root {
  --primary-50: #eff6ff;
  --primary-100: #dbeafe;
  --primary-200: #bfdbfe;
  --primary-300: #93c5fd;
  --primary-400: #60a5fa;
  --primary-500: #3b82f6;
  --primary-600: #2563eb;
  --primary-700: #1d4ed8;
  --primary-800: #1e40af;
  --primary-900: #1e3a8a;
  
  --secondary-400: #a78bfa;
  --secondary-500: #8b5cf6;
  --secondary-600: #7c3aed;
  
  --accent-500: #f97316;
  --accent-600: #ea580c;
  
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-400: #9ca3af;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --gray-900: #111827;
  
  --font-arabic: 'Cairo', sans-serif;
  --font-english: 'Inter', sans-serif;
}

/* ===== Reset & Base ===== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-arabic);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background-color 0.3s ease, color 0.3s ease;
}

/* Light Mode (Default) */
body {
  background: linear-gradient(135deg, #f9fafb 0%, #eff6ff 50%, #f3e8ff 100%);
  color: var(--gray-800);
}

/* Dark Mode */
body.dark {
  background: linear-gradient(135deg, #111827 0%, #1e3a5f 50%, #2d1f4e 100%);
  color: #f3f4f6;
}

a {
  text-decoration: none;
  color: inherit;
}

img {
  max-width: 100%;
  height: auto;
}

/* ===== Custom Scrollbar ===== */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: var(--gray-100);
}

body.dark ::-webkit-scrollbar-track {
  background: var(--gray-900);
}

::-webkit-scrollbar-thumb {
  background: var(--primary-500);
  border-radius: 9999px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--primary-600);
}

/* ===== Container ===== */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1rem;
}

@media (min-width: 640px) {
  .container { padding: 0 1.5rem; }
}

@media (min-width: 1024px) {
  .container { padding: 0 2rem; }
}

/* ===== Glass Morphism ===== */
.glass {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

body.dark .glass {
  background: rgba(17, 24, 39, 0.3);
  border: 1px solid rgba(55, 65, 81, 0.3);
}

/* ===== Premium Card ===== */
.premium-card {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #ffffff 0%, #f9fafb 100%);
  border-radius: 1rem;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  border: 1px solid var(--gray-200);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

body.dark .premium-card {
  background: linear-gradient(135deg, #1f2937 0%, #111827 100%);
  border: 1px solid var(--gray-700);
}

.premium-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 60px -15px rgba(0, 0, 0, 0.3);
}

/* ===== Gradient Text ===== */
.gradient-text {
  background: linear-gradient(90deg, var(--primary-500), var(--secondary-500), var(--accent-500));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ===== Header ===== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.logo-box {
  position: relative;
}

.logo-glow {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, var(--primary-500), var(--secondary-500));
  border-radius: 0.5rem;
  filter: blur(12px);
  opacity: 0.5;
  transition: opacity 0.3s;
}

.logo:hover .logo-glow {
  opacity: 1;
}

.logo-text {
  position: relative;
  background: linear-gradient(90deg, var(--primary-500), var(--secondary-500));
  color: white;
  font-weight: bold;
  font-size: 1.5rem;
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  transition: transform 0.3s;
}

.logo:hover .logo-text {
  transform: scale(1.05);
}

.logo-name {
  font-size: 1.25rem;
  font-weight: bold;
}

/* ===== Navigation ===== */
.nav-desktop {
  display: none;
  align-items: center;
  gap: 2rem;
}

@media (min-width: 1024px) {
  .nav-desktop { display: flex; }
}

.nav-link {
  color: var(--gray-700);
  font-weight: 500;
  transition: color 0.3s;
}

body.dark .nav-link {
  color: var(--gray-200);
}

.nav-link:hover {
  color: var(--primary-500);
}

.nav-cta {
  background: linear-gradient(90deg, var(--primary-500), var(--secondary-500));
  color: white;
  padding: 0.5rem 1.5rem;
  border-radius: 9999px;
  font-weight: 500;
  transition: all 0.3s;
}

.nav-cta:hover {
  box-shadow: 0 10px 25px -5px rgba(59, 130, 246, 0.5);
  transform: scale(1.05);
}

/* ===== Header Actions ===== */
.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.action-btn {
  padding: 0.5rem;
  border-radius: 0.5rem;
  background: var(--gray-100);
  border: none;
  cursor: pointer;
  transition: all 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
}

body.dark .action-btn {
  background: var(--gray-800);
  color: white;
}

.action-btn:hover {
  background: var(--gray-200);
}

body.dark .action-btn:hover {
  background: var(--gray-700);
}

.action-btn svg {
  width: 20px;
  height: 20px;
}

.admin-btn {
  background: linear-gradient(90deg, var(--accent-500), var(--accent-600));
  color: white;
}

.admin-btn:hover {
  box-shadow: 0 10px 25px -5px rgba(249, 115, 22, 0.5);
}

.menu-btn {
  display: flex;
}

@media (min-width: 1024px) {
  .menu-btn { display: none; }
}

/* ===== Mobile Menu ===== */
.mobile-menu {
  display: none;
  padding: 1rem 0;
}

.mobile-menu.active {
  display: block;
  animation: slideDown 0.3s ease;
}

@keyframes slideDown {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

.mobile-menu a {
  display: block;
  padding: 0.75rem 1rem;
  border-radius: 0.5rem;
  transition: background 0.3s;
}

.mobile-menu a:hover {
  background: var(--gray-100);
}

body.dark .mobile-menu a:hover {
  background: var(--gray-800);
}

.mobile-menu .nav-cta {
  display: block;
  text-align: center;
  margin-top: 0.5rem;
}

/* ===== Hero Section ===== */
.hero {
  position: relative;
  padding: 8rem 0 5rem;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.hero-blob {
  position: absolute;
  border-radius: 9999px;
  filter: blur(60px);
  animation: float 6s ease-in-out infinite;
}

.hero-blob-1 {
  top: -10rem;
  right: -10rem;
  width: 20rem;
  height: 20rem;
  background: rgba(59, 130, 246, 0.2);
}

.hero-blob-2 {
  bottom: -10rem;
  left: -10rem;
  width: 20rem;
  height: 20rem;
  background: rgba(139, 92, 246, 0.2);
  animation-delay: 2s;
}

.hero-blob-3 {
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 24rem;
  height: 24rem;
  background: rgba(249, 115, 22, 0.1);
  animation-delay: 4s;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-20px); }
}

.hero-content {
  position: relative;
  z-index: 10;
  max-width: 56rem;
  margin: 0 auto;
  text-align: center;
  animation: slideUp 0.6s ease;
}

@keyframes slideUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: linear-gradient(90deg, rgba(59, 130, 246, 0.1), rgba(139, 92, 246, 0.1));
  border-radius: 9999px;
  border: 1px solid rgba(59, 130, 246, 0.2);
  margin-bottom: 1.5rem;
}

.hero-badge svg {
  width: 20px;
  height: 20px;
  color: var(--primary-500);
}

.hero-badge span {
  font-size: 0.875rem;
  font-weight: 600;
}

.hero-title {
  font-size: 3rem;
  font-weight: bold;
  line-height: 1.2;
  margin-bottom: 1.5rem;
}

@media (min-width: 640px) {
  .hero-title { font-size: 3.75rem; }
}

@media (min-width: 1024px) {
  .hero-title { font-size: 4.5rem; }
}

.hero-title-gradient {
  background: linear-gradient(90deg, var(--primary-600), var(--secondary-600), var(--accent-600));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-title-main {
  color: var(--gray-800);
}

body.dark .hero-title-main {
  color: white;
}

.hero-desc {
  font-size: 1.25rem;
  color: var(--gray-600);
  max-width: 42rem;
  margin: 0 auto 2rem;
  line-height: 1.8;
}

body.dark .hero-desc {
  color: var(--gray-300);
}

.hero-buttons {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  padding-top: 1rem;
}

@media (min-width: 640px) {
  .hero-buttons { flex-direction: row; justify-content: center; }
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 2rem;
  background: linear-gradient(90deg, var(--primary-500), var(--secondary-500));
  color: white;
  border-radius: 9999px;
  font-weight: 600;
  box-shadow: 0 10px 25px -5px rgba(59, 130, 246, 0.4);
  transition: all 0.3s;
  border: none;
  cursor: pointer;
}

.btn-primary:hover {
  box-shadow: 0 20px 40px -10px rgba(59, 130, 246, 0.5);
  transform: scale(1.05);
}

.btn-primary svg {
  width: 20px;
  height: 20px;
  transition: transform 0.3s;
}

.btn-primary:hover svg {
  transform: translateX(-4px);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  padding: 1rem 2rem;
  background: white;
  color: var(--gray-800);
  border-radius: 9999px;
  font-weight: 600;
  border: 2px solid var(--gray-300);
  transition: all 0.3s;
  cursor: pointer;
}

body.dark .btn-secondary {
  background: var(--gray-800);
  color: white;
  border-color: var(--gray-600);
}

.btn-secondary:hover {
  border-color: var(--primary-500);
  transform: scale(1.05);
}

/* ===== Stats ===== */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  padding-top: 4rem;
  max-width: 56rem;
  margin: 0 auto;
}

@media (min-width: 1024px) {
  .stats-grid { grid-template-columns: repeat(4, 1fr); }
}

.stat-card {
  padding: 1.5rem;
  text-align: center;
}

.stat-value {
  font-size: 2.25rem;
  font-weight: bold;
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 0.875rem;
  color: var(--gray-600);
  font-weight: 500;
}

body.dark .stat-label {
  color: var(--gray-400);
}

/* ===== Services Section ===== */
.section {
  padding: 5rem 0;
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-title {
  font-size: 2.25rem;
  font-weight: bold;
  margin-bottom: 1rem;
}

@media (min-width: 640px) {
  .section-title { font-size: 3rem; }
}

.section-subtitle {
  font-size: 1.25rem;
  color: var(--gray-600);
  max-width: 42rem;
  margin: 0 auto;
}

body.dark .section-subtitle {
  color: var(--gray-300);
}

.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 768px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
  .services-grid { grid-template-columns: repeat(3, 1fr); }
}

.service-card {
  padding: 2rem;
  cursor: pointer;
}

.service-header {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1rem;
}

.service-icon {
  flex-shrink: 0;
  padding: 0.75rem;
  background: linear-gradient(135deg, var(--primary-500), var(--secondary-500));
  border-radius: 0.75rem;
  box-shadow: 0 10px 25px -5px rgba(59, 130, 246, 0.4);
  transition: all 0.3s;
}

.service-card:hover .service-icon {
  box-shadow: 0 15px 35px -5px rgba(59, 130, 246, 0.5);
  transform: scale(1.1);
}

.service-icon svg {
  width: 32px;
  height: 32px;
  color: white;
}

.service-title {
  font-size: 1.25rem;
  font-weight: bold;
  color: var(--gray-800);
  transition: color 0.3s;
}

body.dark .service-title {
  color: white;
}

.service-card:hover .service-title {
  color: var(--primary-600);
}

body.dark .service-card:hover .service-title {
  color: var(--primary-400);
}

.service-desc {
  color: var(--gray-600);
  line-height: 1.7;
}

body.dark .service-desc {
  color: var(--gray-400);
}

.service-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1.5rem;
  color: var(--primary-600);
  font-weight: 600;
  font-size: 0.875rem;
  opacity: 0;
  transition: opacity 0.3s;
}

body.dark .service-link {
  color: var(--primary-400);
}

.service-card:hover .service-link {
  opacity: 1;
}

.service-link svg {
  width: 16px;
  height: 16px;
}

/* ===== Features Section ===== */
.features-section {
  background: linear-gradient(135deg, var(--primary-50) 0%, rgba(139, 92, 246, 0.1) 100%);
}

body.dark .features-section {
  background: linear-gradient(135deg, var(--gray-800) 0%, var(--gray-900) 100%);
}

.features-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 768px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
  .features-grid { grid-template-columns: repeat(3, 1fr); }
}

.feature-card {
  padding: 2rem;
  border-radius: 1rem;
  transition: all 0.3s;
}

.feature-card:hover {
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  transform: translateY(-8px);
}

.feature-icon {
  padding: 0.75rem;
  background: linear-gradient(135deg, var(--primary-500), var(--secondary-500));
  border-radius: 0.75rem;
  width: fit-content;
  margin-bottom: 1rem;
}

.feature-icon svg {
  width: 32px;
  height: 32px;
  color: white;
}

.feature-title {
  font-size: 1.25rem;
  font-weight: bold;
  color: var(--gray-800);
  margin-bottom: 0.75rem;
}

body.dark .feature-title {
  color: white;
}

.feature-desc {
  color: var(--gray-600);
}

body.dark .feature-desc {
  color: var(--gray-400);
}

/* ===== CTA Section ===== */
.cta-section {
  position: relative;
  padding: 5rem 0;
  overflow: hidden;
}

.cta-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, var(--primary-600), var(--secondary-600), var(--accent-600));
  opacity: 0.9;
}

.cta-blobs {
  position: absolute;
  inset: 0;
}

.cta-blob {
  position: absolute;
  width: 16rem;
  height: 16rem;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 9999px;
  filter: blur(60px);
  animation: float 6s ease-in-out infinite;
}

.cta-blob-1 {
  top: 0;
  left: 0;
}

.cta-blob-2 {
  bottom: 0;
  right: 0;
  animation-delay: 2s;
}

.cta-content {
  position: relative;
  z-index: 10;
  max-width: 48rem;
  margin: 0 auto;
  text-align: center;
  color: white;
}

.cta-title {
  font-size: 2.25rem;
  font-weight: bold;
  margin-bottom: 1.5rem;
}

@media (min-width: 640px) {
  .cta-title { font-size: 3rem; }
}

.cta-subtitle {
  font-size: 1.25rem;
  opacity: 0.9;
  margin-bottom: 2rem;
}

.cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 2rem;
  background: white;
  color: var(--primary-600);
  border-radius: 9999px;
  font-weight: 600;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.3);
  transition: all 0.3s;
  border: none;
  cursor: pointer;
}

.cta-btn:hover {
  box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.4);
  transform: scale(1.05);
}

.cta-btn svg {
  width: 20px;
  height: 20px;
}

/* ===== Footer ===== */
.footer {
  background: linear-gradient(135deg, var(--gray-900), var(--gray-800), var(--gray-900));
  color: white;
  padding: 4rem 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-bottom: 3rem;
}

@media (min-width: 768px) {
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
  .footer-grid { grid-template-columns: repeat(4, 1fr); }
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.footer-brand-logo {
  background: linear-gradient(90deg, var(--primary-500), var(--secondary-500));
  color: white;
  font-weight: bold;
  font-size: 1.5rem;
  padding: 0.25rem 0.75rem;
  border-radius: 0.5rem;
}

.footer-desc {
  color: var(--gray-400);
  font-size: 0.875rem;
  line-height: 1.7;
}

.footer-title {
  font-size: 1.25rem;
  font-weight: bold;
  margin-bottom: 1rem;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.5rem;
}

.footer-links a {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--gray-400);
  font-size: 0.875rem;
  transition: color 0.3s;
}

.footer-links a:hover {
  color: var(--primary-400);
}

.footer-links .dot {
  width: 8px;
  height: 8px;
  background: var(--primary-500);
  border-radius: 9999px;
}

.footer-contact li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
  color: var(--gray-400);
  font-size: 0.875rem;
}

.footer-contact li:hover {
  color: var(--primary-400);
}

.footer-contact svg {
  width: 20px;
  height: 20px;
  color: var(--primary-500);
  flex-shrink: 0;
  margin-top: 2px;
}

.social-title {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--gray-300);
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
}

.social-links {
  display: flex;
  gap: 0.75rem;
}

.social-link {
  padding: 0.5rem;
  background: var(--gray-800);
  border-radius: 0.5rem;
  transition: all 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.social-link:hover {
  background: var(--primary-500);
  transform: scale(1.1);
}

.social-link svg {
  width: 20px;
  height: 20px;
}

.footer-bottom {
  border-top: 1px solid var(--gray-700);
  padding-top: 2rem;
  text-align: center;
  color: var(--gray-400);
  font-size: 0.875rem;
}

/* ===== Contact Page ===== */
.contact-section {
  padding: 8rem 0 5rem;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  max-width: 80rem;
  margin: 0 auto;
}

@media (min-width: 1024px) {
  .contact-grid { grid-template-columns: 1fr 2fr; }
}

.contact-info-card {
  padding: 2rem;
}

.contact-info-title {
  font-size: 1.5rem;
  font-weight: bold;
  margin-bottom: 1.5rem;
}

.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.contact-info-icon {
  flex-shrink: 0;
  padding: 0.75rem;
  background: linear-gradient(135deg, var(--primary-500), var(--secondary-500));
  border-radius: 0.75rem;
}

.contact-info-icon svg {
  width: 24px;
  height: 24px;
  color: white;
}

.contact-info-label {
  font-weight: 600;
  color: var(--gray-800);
  margin-bottom: 0.25rem;
}

body.dark .contact-info-label {
  color: white;
}

.contact-info-value {
  color: var(--gray-600);
  transition: color 0.3s;
}

body.dark .contact-info-value {
  color: var(--gray-400);
}

.contact-info-value:hover {
  color: var(--primary-600);
}

body.dark .contact-info-value:hover {
  color: var(--primary-400);
}

.contact-divider {
  border-top: 1px solid var(--gray-200);
  padding-top: 1.5rem;
  margin-top: 1.5rem;
}

body.dark .contact-divider {
  border-top-color: var(--gray-700);
}

.contact-form-card {
  padding: 2rem;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .form-grid-2 { grid-template-columns: repeat(2, 1fr); }
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--gray-700);
  margin-bottom: 0.5rem;
}

body.dark .form-label {
  color: var(--gray-300);
}

.form-input {
  width: 100%;
  padding: 0.75rem 1rem;
  border-radius: 0.5rem;
  border: 2px solid var(--gray-200);
  background: white;
  color: var(--gray-800);
  font-family: inherit;
  font-size: 1rem;
  transition: border-color 0.3s, outline 0.3s;
}

body.dark .form-input {
  background: var(--gray-800);
  border-color: var(--gray-700);
  color: white;
}

.form-input:focus {
  outline: none;
  border-color: var(--primary-500);
}

.form-input::placeholder {
  color: var(--gray-400);
}

textarea.form-input {
  resize: none;
  min-height: 150px;
}

.form-submit {
  width: 100%;
  padding: 1rem 2rem;
  background: linear-gradient(90deg, var(--primary-500), var(--secondary-500));
  color: white;
  border: none;
  border-radius: 0.5rem;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: all 0.3s;
}

.form-submit:hover {
  box-shadow: 0 10px 25px -5px rgba(59, 130, 246, 0.4);
  transform: translateY(-2px);
}

.form-submit svg {
  width: 20px;
  height: 20px;
}

.form-message {
  padding: 1rem;
  border-radius: 0.5rem;
  margin-top: 1rem;
  display: none;
  align-items: center;
  gap: 0.5rem;
}

.form-message.success {
  display: flex;
  background: rgba(34, 197, 94, 0.1);
  color: #22c55e;
  border: 1px solid rgba(34, 197, 94, 0.3);
}

.form-message.error {
  display: flex;
  background: rgba(239, 68, 68, 0.1);
  color: #ef4444;
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.form-message svg {
  width: 20px;
  height: 20px;
}

/* ===== RTL Support ===== */
[dir="rtl"] .hero-buttons { flex-direction: row-reverse; }
[dir="rtl"] .btn-primary svg { transform: rotate(180deg); }
[dir="rtl"] .btn-primary:hover svg { transform: rotate(180deg) translateX(4px); }
[dir="rtl"] .service-header { flex-direction: row-reverse; }
[dir="rtl"] .service-link { flex-direction: row-reverse; }
[dir="rtl"] .service-link svg { transform: rotate(180deg); }
[dir="rtl"] .contact-info-item { flex-direction: row-reverse; }
[dir="rtl"] .footer-links a { flex-direction: row-reverse; }
[dir="rtl"] .footer-contact li { flex-direction: row-reverse; }
[dir="rtl"] .social-links { flex-direction: row-reverse; }
[dir="rtl"] .cta-btn svg { transform: rotate(180deg); }
[dir="rtl"] .header-actions { flex-direction: row-reverse; }

/* ===== Animations ===== */
.animate-float {
  animation: float 6s ease-in-out infinite;
}

.animate-slide-up {
  animation: slideUp 0.6s ease;
}

/* ===== Hidden utility ===== */
.hidden {
  display: none !important;
}

@media (min-width: 640px) {
  .sm\:block { display: block; }
}

@media (min-width: 768px) {
  .md\:block { display: block; }
  .md\:hidden { display: none; }
}

/* ===== Promises Section - وعودنا لك ===== */
.promises-section {
  background: linear-gradient(180deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
  position: relative;
  overflow: hidden;
}

.promises-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 20% 50%, rgba(59, 130, 246, 0.1) 0%, transparent 50%),
              radial-gradient(circle at 80% 50%, rgba(139, 92, 246, 0.1) 0%, transparent 50%);
  pointer-events: none;
}

.section-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: rgba(59, 130, 246, 0.1);
  border: 1px solid rgba(59, 130, 246, 0.3);
  border-radius: 50px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--primary-500);
  margin-bottom: 1rem;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  background: var(--primary-500);
  border-radius: 50%;
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.5); }
}

.promises-grid {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 1.5rem;
}

@media (min-width: 640px) {
  .promises-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
  .promises-grid { grid-template-columns: repeat(3, 1fr); }
}

.promise-card {
  padding: 2rem;
  border-radius: 1.5rem;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.promise-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-500), var(--secondary-500));
  transform: scaleX(0);
  transition: transform 0.4s ease;
}

.promise-card:hover::before {
  transform: scaleX(1);
}

.promise-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.promise-highlight {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.15) 0%, rgba(139, 92, 246, 0.15) 100%);
  border: 2px solid rgba(59, 130, 246, 0.3);
}

.promise-icon {
  width: 60px;
  height: 60px;
  border-radius: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  transition: transform 0.3s ease;
}

.promise-card:hover .promise-icon {
  transform: scale(1.1) rotate(5deg);
}

.promise-icon svg {
  width: 30px;
  height: 30px;
}

.promise-icon-speed {
  background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
  color: white;
}

.promise-icon-db {
  background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
  color: white;
}

.promise-icon-link {
  background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
  color: white;
}

.promise-icon-control {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: white;
}

.promise-icon-app {
  background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
  color: white;
}

.promise-icon-tech {
  background: linear-gradient(135deg, #ec4899 0%, #db2777 100%);
  color: white;
}

.promise-number {
  font-size: 5rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--primary-500), var(--secondary-500));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: 0;
}

.promise-unit {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary-500);
  margin-bottom: 1rem;
}

.promise-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.75rem;
}

.promise-desc {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 1rem;
}

.promise-tag {
  display: inline-block;
  padding: 0.5rem 1rem;
  background: linear-gradient(135deg, rgba(251, 191, 36, 0.2) 0%, rgba(245, 158, 11, 0.2) 100%);
  border: 1px solid rgba(251, 191, 36, 0.4);
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  color: #f59e0b;
}

.promise-stats {
  display: flex;
  gap: 1.5rem;
  margin-top: 1rem;
}

.promise-stat {
  text-align: center;
}

.promise-stat-value {
  display: block;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--primary-500);
}

.promise-stat-label {
  font-size: 0.75rem;
  color: var(--text-secondary);
}

.promise-integrations {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}

.integration-badge {
  padding: 0.35rem 0.75rem;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-secondary);
  transition: all 0.3s ease;
}

.integration-badge:hover {
  background: var(--primary-500);
  color: white;
  border-color: var(--primary-500);
}

.promise-feature-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 1rem;
}

.promise-feature {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.promise-platforms {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
  font-size: 2rem;
}

.platform-icon {
  transition: transform 0.3s ease;
  cursor: pointer;
}

.platform-icon:hover {
  transform: scale(1.2);
}

.promise-tech-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}

.tech-tag {
  padding: 0.35rem 0.75rem;
  background: linear-gradient(135deg, var(--primary-500), var(--secondary-500));
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 700;
  color: white;
}

/* ===== Revolution Section - لا تدع المحتكرين ===== */
.revolution-section {
  position: relative;
  padding: 6rem 0;
  overflow: hidden;
}

.revolution-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #1e1b4b 0%, #312e81 50%, #1e1b4b 100%);
  z-index: -2;
}

.revolution-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: 
    radial-gradient(circle at 10% 20%, rgba(251, 191, 36, 0.15) 0%, transparent 40%),
    radial-gradient(circle at 90% 80%, rgba(236, 72, 153, 0.15) 0%, transparent 40%),
    radial-gradient(circle at 50% 50%, rgba(59, 130, 246, 0.1) 0%, transparent 60%);
  z-index: -1;
}

.revolution-content {
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
}

.revolution-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  background: rgba(251, 191, 36, 0.2);
  border: 1px solid rgba(251, 191, 36, 0.4);
  border-radius: 50px;
  font-size: 1rem;
  font-weight: 600;
  color: #fbbf24;
  margin-bottom: 2rem;
  animation: pulse-glow 2s ease-in-out infinite;
}

@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 20px rgba(251, 191, 36, 0.3); }
  50% { box-shadow: 0 0 40px rgba(251, 191, 36, 0.5); }
}

.fire-icon {
  font-size: 1.25rem;
  animation: fire-dance 0.5s ease-in-out infinite alternate;
}

@keyframes fire-dance {
  from { transform: scale(1) rotate(-5deg); }
  to { transform: scale(1.1) rotate(5deg); }
}

.revolution-title {
  font-size: 2.5rem;
  font-weight: 800;
  line-height: 1.3;
  margin-bottom: 2rem;
}

@media (min-width: 768px) {
  .revolution-title { font-size: 3.5rem; }
}

.revolution-line {
  display: block;
  color: white;
}

.revolution-highlight {
  display: block;
  background: linear-gradient(135deg, #fbbf24 0%, #f97316 50%, #ec4899 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.revolution-message {
  margin-bottom: 3rem;
}

.revolution-message p {
  font-size: 1.125rem;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.8;
  margin-bottom: 1rem;
}

.revolution-message strong {
  color: #fbbf24;
}

.revolution-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-bottom: 3rem;
  padding: 2rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 1.5rem;
  backdrop-filter: blur(10px);
}

.rev-stat {
  text-align: center;
}

.rev-stat-icon {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.rev-stat-value {
  font-size: 2.5rem;
  font-weight: 800;
  background: linear-gradient(135deg, #fbbf24 0%, #f97316 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

@media (min-width: 768px) {
  .rev-stat-value { font-size: 3rem; }
}

.rev-stat-label {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.7);
}

.revolution-cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.revolution-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1.25rem 3rem;
  background: linear-gradient(135deg, #fbbf24 0%, #f97316 100%);
  color: #1e1b4b;
  font-size: 1.25rem;
  font-weight: 700;
  border-radius: 100px;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 10px 40px rgba(251, 191, 36, 0.4);
}

.revolution-btn:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 20px 50px rgba(251, 191, 36, 0.5);
}

.revolution-btn svg {
  width: 24px;
  height: 24px;
  transition: transform 0.3s ease;
}

.revolution-btn:hover svg {
  transform: translateX(4px);
}

[dir="rtl"] .revolution-btn svg {
  transform: rotate(180deg);
}

[dir="rtl"] .revolution-btn:hover svg {
  transform: rotate(180deg) translateX(4px);
}

.revolution-note {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.7);
  margin: 0;
}

/* Dark mode adjustments for promises */
.dark .promise-card {
  background: rgba(30, 41, 59, 0.8);
}

.dark .promise-highlight {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.2) 0%, rgba(139, 92, 246, 0.2) 100%);
}

.dark .integration-badge {
  background: rgba(51, 65, 85, 0.8);
}

/* ===== AI Chat Widget ===== */
.ai-chat {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  font-family: var(--font-arabic);
}

[dir="ltr"] .ai-chat {
  font-family: var(--font-english);
}

.ai-chat-toggle {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-500), var(--secondary-500));
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 32px rgba(59, 130, 246, 0.4);
  transition: all 0.3s ease;
  position: relative;
}

.ai-chat-toggle:hover {
  transform: scale(1.1);
  box-shadow: 0 12px 40px rgba(59, 130, 246, 0.5);
}

.ai-chat-toggle.active {
  transform: scale(0.9);
}

.ai-chat-toggle .ai-icon {
  width: 32px;
  height: 32px;
  color: white;
}

.ai-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  background: #10b981;
  color: white;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 8px;
  animation: pulse-badge 2s ease-in-out infinite;
}

@keyframes pulse-badge {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.1); }
}

.ai-chat-window {
  position: absolute;
  bottom: 80px;
  right: 0;
  width: 380px;
  max-width: calc(100vw - 48px);
  background: var(--bg-primary);
  border-radius: 1.5rem;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  border: 1px solid var(--border-color);
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px) scale(0.95);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.ai-chat-window.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.ai-chat-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  background: linear-gradient(135deg, var(--primary-500), var(--secondary-500));
  color: white;
}

.ai-chat-avatar {
  width: 44px;
  height: 44px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ai-chat-avatar svg {
  width: 24px;
  height: 24px;
}

.ai-chat-info {
  flex: 1;
}

.ai-chat-name {
  font-weight: 700;
  font-size: 1rem;
}

.ai-chat-status {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  opacity: 0.9;
}

.status-dot {
  width: 8px;
  height: 8px;
  background: #10b981;
  border-radius: 50%;
  animation: pulse-dot 2s ease-in-out infinite;
}

.ai-chat-close {
  width: 32px;
  height: 32px;
  background: rgba(255, 255, 255, 0.2);
  border: none;
  border-radius: 50%;
  color: white;
  font-size: 1.5rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.ai-chat-close:hover {
  background: rgba(255, 255, 255, 0.3);
}

.ai-chat-messages {
  height: 300px;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.ai-message {
  max-width: 85%;
  animation: messageSlide 0.3s ease;
}

@keyframes messageSlide {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.ai-message-bot {
  align-self: flex-start;
}

.ai-message-user {
  align-self: flex-end;
}

.ai-message-content {
  padding: 12px 16px;
  border-radius: 1rem;
  font-size: 0.9rem;
  line-height: 1.5;
}

.ai-message-bot .ai-message-content {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-bottom-left-radius: 4px;
}

[dir="ltr"] .ai-message-bot .ai-message-content {
  border-bottom-left-radius: 4px;
  border-bottom-right-radius: 1rem;
}

.ai-message-user .ai-message-content {
  background: linear-gradient(135deg, var(--primary-500), var(--secondary-500));
  color: white;
  border-bottom-right-radius: 4px;
}

[dir="ltr"] .ai-message-user .ai-message-content {
  border-bottom-right-radius: 4px;
  border-bottom-left-radius: 1rem;
}

.ai-whatsapp-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  padding: 10px 20px;
  background: #25d366;
  color: white !important;
  font-weight: 600;
  border-radius: 50px;
  text-decoration: none;
  transition: all 0.3s ease;
}

.ai-whatsapp-btn:hover {
  background: #128c7e;
  transform: scale(1.05);
}

.ai-typing .ai-message-content {
  display: flex;
  gap: 4px;
  padding: 16px 20px;
}

.typing-dot {
  width: 8px;
  height: 8px;
  background: var(--text-secondary);
  border-radius: 50%;
  animation: typingBounce 1.4s ease-in-out infinite;
}

.typing-dot:nth-child(2) { animation-delay: 0.2s; }
.typing-dot:nth-child(3) { animation-delay: 0.4s; }

@keyframes typingBounce {
  0%, 60%, 100% { transform: translateY(0); }
  30% { transform: translateY(-8px); }
}

.ai-quick-replies {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0 16px 12px;
}

.quick-reply-btn {
  padding: 8px 16px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 50px;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.2s;
}

.quick-reply-btn:hover {
  background: var(--primary-500);
  color: white;
  border-color: var(--primary-500);
}

.ai-chat-form {
  display: flex;
  gap: 8px;
  padding: 12px 16px;
  border-top: 1px solid var(--border-color);
  background: var(--bg-secondary);
}

.ai-chat-input {
  flex: 1;
  padding: 12px 16px;
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: 50px;
  font-size: 0.9rem;
  color: var(--text-primary);
  outline: none;
  transition: border-color 0.2s;
}

.ai-chat-input:focus {
  border-color: var(--primary-500);
}

.ai-chat-send {
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, var(--primary-500), var(--secondary-500));
  border: none;
  border-radius: 50%;
  color: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s;
}

.ai-chat-send:hover {
  transform: scale(1.1);
}

.ai-chat-send svg {
  width: 20px;
  height: 20px;
}

/* ===== Floating Animated Icons ===== */
.floating-icons-container {
  position: fixed;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 1;
}

.floating-icon {
  position: absolute;
  bottom: -50px;
  width: 32px;
  height: 32px;
  opacity: 0;
  animation: floatUp 6s ease-out forwards;
}

.floating-icon svg {
  width: 100%;
  height: 100%;
}

@keyframes floatUp {
  0% {
    opacity: 0;
    transform: translateY(0) rotate(0deg) scale(0.5);
  }
  10% {
    opacity: 0.7;
  }
  50% {
    opacity: 0.5;
  }
  90% {
    opacity: 0.2;
  }
  100% {
    opacity: 0;
    transform: translateY(-100vh) rotate(360deg) scale(1);
  }
}

/* Mobile adjustments */
@media (max-width: 480px) {
  .ai-chat {
    bottom: 16px;
    right: 16px;
  }
  
  .ai-chat-toggle {
    width: 56px;
    height: 56px;
  }
  
  .ai-chat-window {
    width: calc(100vw - 32px);
    right: -8px;
    bottom: 72px;
  }
  
  .ai-chat-messages {
    height: 250px;
  }
  
  .floating-icon {
    width: 24px;
    height: 24px;
  }
}
