@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Cairo:wght@300;400;500;600;700;800&display=swap');

:root {
  --primary: #F9D423;
  --primary-rgb: 249, 212, 35;
  --primary-hover: #fae055;
  --secondary: #0A2619;
  --accent: #2ECC71;
  --bg-dark: #020805;
  --bg-card: #06120b;
  --text-main: #FFFFFF;
  --text-muted: #94a3b8;
  --glass-bg: rgba(255, 255, 255, 0.02);
  --glass-border: rgba(255, 255, 255, 0.08);
  --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  --gradient-gold: linear-gradient(135deg, #F9D423 0%, #ffec82 100%);
  --gradient-dark: linear-gradient(180deg, #050E09 0%, #020805 100%);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Outfit', sans-serif;
}

[dir="rtl"] * {
  font-family: 'Cairo', sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg-dark);
  color: var(--text-main);
  overflow-x: hidden;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* Scrollbar Customization */
::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: var(--bg-dark);
}
::-webkit-scrollbar-thumb {
  background: #1a2e24;
  border-radius: 10px;
  border: 2px solid var(--bg-dark);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--primary);
}

/* Global Elements */
a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

ul {
  list-style: none;
}

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 2rem;
}

.glass {
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-lg);
}

.section-padding {
  padding: 120px 0;
}

@media (max-width: 768px) {
  .section-padding {
    padding: 80px 0;
  }
}

.btn {
  padding: 14px 34px;
  border-radius: 14px;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  border: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.btn::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.1);
  transform: translateX(-101%);
  transition: var(--transition);
  z-index: -1;
}

.btn:hover::after {
  transform: translateX(0);
}

.btn-primary {
  background: var(--gradient-gold);
  color: #000;
  box-shadow: 0 10px 20px rgba(var(--primary-rgb), 0.2);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 30px rgba(var(--primary-rgb), 0.3);
}

.btn-outline {
  background: transparent;
  border: 1.5px solid var(--glass-border);
  color: white;
}

.btn-outline:hover {
  border-color: var(--primary);
  color: var(--primary);
  transform: translateY(-3px);
}

.btn-whatsapp {
  border-color: #25d366;
  color: #25d366;
}

.btn-whatsapp:hover {
  background: rgba(37, 211, 102, 0.1);
  border-color: #25d366;
  color: #25d366;
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  animation: fadeInUp 1s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

/* Trust Badge */
.trust-badge {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: rgba(var(--primary-rgb), 0.1);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(var(--primary-rgb), 0.3);
  padding: 12px 24px;
  border-radius: 50px;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 25px;
  animation: pulse-border 3s infinite;
  box-shadow: 0 0 20px rgba(var(--primary-rgb), 0.05);
}

@keyframes pulse-border {
  0% { border-color: rgba(var(--primary-rgb), 0.3); box-shadow: 0 0 20px rgba(var(--primary-rgb), 0.05); }
  50% { border-color: rgba(var(--primary-rgb), 0.6); box-shadow: 0 0 30px rgba(var(--primary-rgb), 0.1); }
  100% { border-color: rgba(var(--primary-rgb), 0.3); box-shadow: 0 0 20px rgba(var(--primary-rgb), 0.05); }
}

.trust-badge i {
  color: var(--primary);
  font-size: 1.3rem;
}

/* Header */
header {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  padding: 25px 0;
  transition: var(--transition);
}

header.scrolled {
  background: rgba(2, 8, 5, 0.8);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  padding: 15px 0;
  border-bottom: 1px solid var(--glass-border);
}

.header-cta {
  display: flex;
  gap: 12px;
  align-items: center;
}

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding-top: 100px;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23F9D423' fill-opacity='0.02'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  z-index: -1;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 80px;
  align-items: center;
}

.hero-content h1 {
  font-size: 4.2rem;
  line-height: 1.15;
  font-weight: 800;
  margin-bottom: 28px;
}

.hero-content h1 span {
  display: block;
  background: linear-gradient(90deg, var(--primary), #FFED4B);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-content p {
  font-size: 1.3rem;
  color: var(--text-muted);
  margin-bottom: 40px;
  max-width: 650px;
  line-height: 1.8;
}

/* Checklist */
.checklist {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 40px;
}

.check-item {
  display: flex;
  align-items: center;
  gap: 14px;
}

.check-item i {
  color: var(--accent);
  background: rgba(46, 204, 113, 0.1);
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  flex-shrink: 0;
}

.check-item p {
  margin-bottom: 0 !important;
  font-size: 1.1rem !important;
  color: var(--text-main) !important;
}

/* Hero Lead Form */
.hero-form-container {
  padding: 48px;
  border-radius: 32px;
  position: relative;
  overflow: hidden;
}

.hero-form-container::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--gradient-gold);
}

.hero-form-container h3 {
  font-size: 2rem;
  margin-bottom: 30px;
  text-align: center;
  font-weight: 700;
}

.form-group {
  margin-bottom: 24px;
}

.form-group input, .form-group select, .form-group textarea {
  width: 100%;
  padding: 18px 24px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--glass-border);
  color: white;
  font-size: 1rem;
  transition: var(--transition);
}

.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  background: rgba(255, 255, 255, 0.07);
  box-shadow: 0 0 0 4px rgba(var(--primary-rgb), 0.1);
}

.hero-form-container .btn {
  width: 100%;
  padding: 18px;
}

/* Sections Header */
.section-header {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 70px;
}

.section-header h2 {
  font-size: 3.2rem;
  margin-bottom: 24px;
  line-height: 1.2;
}

.section-header h2 span {
  color: var(--primary);
}

.section-header p {
  font-size: 1.25rem;
  color: var(--text-muted);
}

/* Service Grid */
.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 32px;
}

.service-card {
  padding: 50px 40px;
  border-radius: 28px;
  transition: var(--transition);
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.service-card:hover {
  transform: translateY(-12px);
  border-color: rgba(var(--primary-rgb), 0.3);
  background: rgba(249, 212, 35, 0.03);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
}

.service-icon {
  width: 70px;
  height: 70px;
  background: rgba(var(--primary-rgb), 0.1);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 30px;
  color: var(--primary);
  font-size: 2.2rem;
  transition: var(--transition);
}

.service-card:hover .service-icon {
  background: var(--primary);
  color: #000;
  transform: rotate(-5deg) scale(1.1);
}

.service-card h3 {
  font-size: 1.6rem;
  margin-bottom: 20px;
  font-weight: 700;
}

.service-card p {
  color: var(--text-muted);
  font-size: 1.1rem;
  line-height: 1.7;
}

/* Stat Section */
.stat-bar {
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  gap: 40px;
  text-align: center;
}

.stat-item h4 {
  font-size: 3.5rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 8px;
  line-height: 1;
}

.stat-item p {
  color: var(--text-main);
  font-weight: 700;
  font-size: 1.1rem;
}

/* Help Section */
.help-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.help-card {
  padding: 50px 40px;
  border-radius: 28px;
  text-align: center;
  transition: var(--transition);
}

.help-card:hover {
  border-color: var(--primary);
  background: rgba(var(--primary-rgb), 0.05);
  transform: translateY(-8px);
}

.help-card i {
  font-size: 3.5rem;
  color: var(--primary);
  margin-bottom: 30px;
  display: block;
}

.help-card h3 {
  font-size: 1.8rem;
  margin-bottom: 20px;
}

/* Why Us Section */
.why-us-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 100px;
  align-items: center;
}

.why-image {
  position: relative;
  border-radius: 40px;
  overflow: hidden;
  box-shadow: 0 40px 80px rgba(0, 0, 0, 0.6);
}

.why-image img {
  width: 100%;
  aspect-ratio: 4/5;
  object-fit: cover;
  display: block;
  transition: transform 0.8s ease;
}

.why-image:hover img {
  transform: scale(1.05);
}

/* Testimonials */
.testimonial-card {
  padding: 48px;
  border-radius: 28px;
}

.user-info {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 24px;
}

.user-text h5 {
  font-size: 1.25rem;
  margin-bottom: 4px;
}

.testimonial-card p {
  font-style: italic;
  font-size: 1.15rem;
  color: var(--text-muted);
  line-height: 1.8;
}

/* Offer Box */
.offer-box {
  background: linear-gradient(135deg, rgba(var(--primary-rgb), 0.05) 0%, rgba(46, 204, 113, 0.05) 100%);
  border: 1px solid rgba(var(--primary-rgb), 0.2);
  padding: 80px 40px;
  border-radius: 40px;
  text-align: center;
  position: relative;
}

.badge-limited {
  position: absolute;
  top: -18px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary);
  color: #000;
  padding: 10px 30px;
  border-radius: 50px;
  font-weight: 800;
  font-size: 0.95rem;
  box-shadow: 0 10px 20px rgba(var(--primary-rgb), 0.3);
}

/* Footer */
footer {
  padding: 100px 0 50px;
  border-top: 1px solid var(--glass-border);
  background: #010503;
}

footer p {
  margin-bottom: 20px;
  font-size: 1.1rem;
}

footer i {
  color: var(--primary);
  width: 24px;
}

/* Floating WhatsApp Button */
.whatsapp-float {
  position: fixed;
  bottom: 40px;
  left: 40px;
  width: 65px;
  height: 65px;
  background-color: #25d366;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  box-shadow: 0 10px 25px rgba(37, 211, 102, 0.4);
  z-index: 2000;
  transition: var(--transition);
}

.whatsapp-float:hover {
  transform: scale(1.15) rotate(15deg);
  background-color: #128c7e;
  box-shadow: 0 15px 35px rgba(37, 211, 102, 0.6);
}

/* RTL Overrides */
[dir="rtl"] .hero-content,
[dir="rtl"] .section-header,
[dir="rtl"] .service-card,
[dir="rtl"] .help-card,
[dir="rtl"] .why-content,
[dir="rtl"] .testimonial-card,
[dir="rtl"] footer {
  text-align: right;
}

[dir="rtl"] .section-header {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

[dir="rtl"] .user-info {
  flex-direction: row-reverse;
  justify-content: flex-end;
}

[dir="rtl"] .header-cta {
  margin-right: auto;
  margin-left: 0;
}

/* Responsive Overrides */
@media (max-width: 1024px) {
  .hero-grid, .why-us-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 60px;
  }
  
  [dir="rtl"] .hero-content, 
  [dir="rtl"] .why-content {
    text-align: center;
  }
  
  .hero-content h1 {
    font-size: 3.2rem;
  }
  
  .hero-content p {
    margin-left: auto;
    margin-right: auto;
  }
  
  .checklist {
    align-items: center;
  }
  
  .help-grid {
    grid-template-columns: 1fr;
  }

  .why-image {
    max-width: 600px;
    margin: 0 auto;
  }
}

@media (max-width: 768px) {
  .section-padding {
    padding: 70px 0;
  }

  .section-header h2 {
    font-size: 2.4rem;
  }

  header {
    padding: 15px 0;
  }

  .header-cta .btn-whatsapp {
    padding: 10px 15px;
    font-size: 0.9rem;
  }

  .header-cta .btn-primary {
    display: none; /* Hide phone button to save space, keep WhatsApp */
  }

  .hero-content h1 {
    font-size: 2.4rem;
    margin-bottom: 20px;
  }

  .hero-content p {
    font-size: 1.1rem;
  }

  .trust-badge {
    padding: 8px 16px;
    font-size: 0.9rem;
  }

  .hero-form-container {
    padding: 30px 20px;
  }

  .hero-form-container h3 {
    font-size: 1.6rem;
  }

  .stat-bar {
    flex-direction: column;
    gap: 30px;
  }

  .stat-item h4 {
    font-size: 2.8rem;
  }

  .service-grid {
    grid-template-columns: 1fr;
  }

  .offer-box {
    padding: 50px 20px;
  }

  .offer-box h2 {
    font-size: 1.8rem;
  }

  footer {
    text-align: center;
  }

  [dir="rtl"] footer {
     text-align: center;
  }
}

@media (max-width: 480px) {
  .hero-content h1 {
    font-size: 2rem;
  }

  .btn {
    width: 100%;
    padding: 16px;
  }

  .hero-content .btn {
    margin-bottom: 10px;
  }

  .hero-grid {
    gap: 40px;
  }
}
