/* ==========================================
   1. VARIABLES & RESET
   ========================================== */
:root {
  --primary: #2563eb;
  --primary-hover: #1d4ed8;
  --primary-light: rgba(37, 99, 235, 0.1);
  --accent: #06b6d4;
  --bg-dark: #0f172a;
  --bg-card-dark: #1e293b;
  --text-main: #0f172a;
  --text-muted: #64748b;
  --bg-light: #ffffff;
  --bg-alt: #f8fafc;
  --border-color: #e2e8f0;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --shadow-sm: 0 2px 4px rgba(0,0,0,0.05);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
  --shadow-lg: 0 10px 30px rgba(0,0,0,0.12);
  --transition: all 0.3s ease;
  --container: 1200px;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'IBM Plex Sans Arabic', 'Inter', sans-serif;
  color: var(--text-main);
  background-color: var(--bg-light);
  line-height: 1.6;
  overflow-x: hidden;
}

html[lang="en"] body {
  font-family: 'Inter', 'IBM Plex Sans Arabic', sans-serif;
}

a {
  text-decoration: none;
  color: inherit;
}

img {
  max-width: 100%;
  display: block;
}

/* ==========================================
   2. REUSABLE COMPONENTS
   ========================================== */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
}

.section {
  padding: 80px 0;
}

.section-alt {
  background-color: var(--bg-alt);
}

.section-dark {
  background-color: var(--bg-dark);
  color: #fff;
}

.section-head {
  text-align: center;
  max-width: 650px;
  margin: 0 auto 50px;
}

.section-head h2 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 12px;
}

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

.section-dark .section-head p {
  color: #94a3b8;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 28px;
  border-radius: var(--radius-sm);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  border: none;
  outline: none;
}

.btn-sm {
  padding: 8px 18px;
  font-size: 0.9rem;
}

.btn-full {
  width: 100%;
}

.btn-primary {
  background-color: var(--primary);
  color: #fff;
}

.btn-primary:hover {
  background-color: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.btn-outline {
  border: 2px solid var(--primary);
  color: var(--primary);
  background: transparent;
}

.btn-outline:hover {
  background-color: var(--primary);
  color: #fff;
}

.btn-outline-light {
  border: 2px solid #fff;
  color: #fff;
  background: transparent;
}

.btn-outline-light:hover {
  background: #fff;
  color: var(--bg-dark);
}

/* ==========================================
   3. HEADER & NAVIGATION
   ========================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-color);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}

.logo-img {
  height: 40px;
  width: auto;
}

.main-nav {
  display: flex;
  gap: 28px;
}

.main-nav a {
  font-weight: 500;
  color: var(--text-main);
  transition: var(--transition);
}

.main-nav a:hover {
  color: var(--primary);
}

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

.btn-lang {
  background: var(--bg-alt);
  border: 1px solid var(--border-color);
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-weight: 600;
  transition: var(--transition);
}

.btn-lang:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
}

.menu-toggle span {
  width: 24px;
  height: 2px;
  background-color: var(--text-main);
  transition: var(--transition);
}

.mobile-nav {
  display: none;
  flex-direction: column;
  gap: 16px;
  padding: 20px;
  background: #fff;
  border-bottom: 1px solid var(--border-color);
}

.mobile-nav.active {
  display: flex;
}

/* ==========================================
   4. HERO SECTION
   ========================================== */
.hero {
  padding: 90px 0 70px;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #f8fafc 0%, #eff6ff 100%);
}

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

.hero h1 {
  font-size: 2.75rem;
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 12px;
  color: #0f172a;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--primary-light);
  color: var(--primary);
  border: 1px solid rgba(37, 99, 235, 0.25);
  padding: 8px 16px;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 18px;
  width: fit-content;
}

.hero-usp {
  font-size: 1.2rem;
  color: var(--primary);
  font-weight: 600;
  margin-bottom: 16px;
}

.hero-desc {
  color: var(--text-muted);
  font-size: 1.05rem;
  margin-bottom: 28px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  margin-bottom: 30px;
  flex-wrap: wrap;
}

.trust-points {
  display: flex;
  gap: 20px;
  list-style: none;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.trust-points li::before {
  content: "✓ ";
  color: #10b981;
  font-weight: bold;
}

/* Hero Visual */
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 320px;
}

.hero-glow {
  position: absolute;
  width: 250px;
  height: 250px;
  background: var(--primary);
  filter: blur(90px);
  opacity: 0.25;
  border-radius: 50%;
}

.hero-mark img {
  max-width: 200px;
  position: relative;
  z-index: 2;
}

.hero-chip {
  position: absolute;
  background: #fff;
  padding: 10px 18px;
  border-radius: 50px;
  box-shadow: var(--shadow-md);
  font-size: 0.85rem;
  font-weight: 600;
  z-index: 3;
  animation: float 4s ease-in-out infinite alternate;
}

.chip-1 { top: 10%; right: 5%; }
.chip-2 { bottom: 15%; right: 0%; animation-delay: 1s; }
.chip-3 { top: 50%; left: -5%; animation-delay: 2s; }

@keyframes float {
  from { transform: translateY(0); }
  to { transform: translateY(-10px); }
}

/* ==========================================
   5. PORTFOLIO
   ========================================== */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 30px;
}

.portfolio-card {
  background: #fff;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
  transition: var(--transition);
}

.portfolio-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.portfolio-img img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.portfolio-body {
  padding: 24px;
}

.portfolio-tag {
  font-size: 0.8rem;
  color: var(--primary);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
  display: block;
}

.portfolio-body h3 {
  font-size: 1.3rem;
  margin-bottom: 12px;
}

.portfolio-body p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 18px;
  line-height: 1.5;
}

.portfolio-link {
  color: var(--primary);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.portfolio-link:hover {
  text-decoration: underline;
}

/* ==========================================
   6. HOW WE WORK
   ========================================== */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}

.step-card {
  background: #fff;
  padding: 30px 24px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  position: relative;
}

.step-number {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--primary-light);
  line-height: 1;
  margin-bottom: 16px;
  display: block;
}

.step-card h3 {
  font-size: 1.15rem;
  margin-bottom: 10px;
}

.step-card p {
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* ==========================================
   7. SERVICES TABS
   ========================================== */
.tabs-nav {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 30px;
  flex-wrap: wrap;
}

.tab-btn {
  padding: 10px 24px;
  border-radius: 50px;
  border: 1px solid var(--border-color);
  background: #fff;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.tab-btn.active, .tab-btn:hover {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

.tab-panel {
  display: none;
}

.tab-panel.active {
  display: block;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

.service-item {
  background: #fff;
  padding: 20px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: var(--shadow-sm);
}

.service-item::before {
  content: "⚡";
  color: var(--primary);
}

/* ==========================================
   8. BENEFITS
   ========================================== */
.benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}

.benefit-card {
  background: var(--bg-card-dark);
  padding: 28px 20px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.benefit-card h3 {
  font-size: 1.2rem;
  margin-bottom: 10px;
  color: #fff;
}

.benefit-card p {
  color: #94a3b8;
  font-size: 0.9rem;
}

/* ==========================================
   9. PAYMENTS
   ========================================== */
.payment-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}

.payment-card {
  background: #fff;
  border-radius: var(--radius-md);
  padding: 28px;
  border: 1px solid var(--border-color);
  position: relative;
  box-shadow: var(--shadow-sm);
}

.payment-featured {
  border: 2px solid var(--primary);
}

.payment-badge {
  position: absolute;
  top: -12px;
  right: 20px;
  background: var(--primary);
  color: #fff;
  font-size: 0.75rem;
  padding: 4px 12px;
  border-radius: 50px;
  font-weight: 600;
}

html[lang="en"] .payment-badge {
  right: auto;
  left: 20px;
}

.payment-icon-wrapper {
  width: 50px;
  height: 50px;
  background: var(--primary-light);
  color: var(--primary);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.payment-card h3 {
  font-size: 1.15rem;
  margin-bottom: 10px;
}

.payment-card p {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 18px;
}

.payment-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.payment-tags span {
  background: var(--bg-alt);
  border: 1px solid var(--border-color);
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-main);
}

.payment-security-note {
  margin-top: 35px;
  text-align: center;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  color: #166534;
  padding: 14px 20px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

/* ==========================================
   10. FAQ
   ========================================== */
.faq-list {
  max-width: 750px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.faq-item {
  background: #fff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.faq-question {
  width: 100%;
  text-align: right;
  padding: 18px 20px;
  background: none;
  border: none;
  font-size: 1.05rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--text-main);
}

html[lang="en"] .faq-question {
  text-align: left;
}

.faq-question::after {
  content: "+";
  font-size: 1.4rem;
  color: var(--primary);
}

.faq-item.active .faq-question::after {
  content: "−";
}

.faq-answer {
  display: none;
  padding: 0 20px 18px;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.faq-item.active .faq-answer {
  display: block;
}

/* ==========================================
   11. FINAL CTA & FOOTER
   ========================================== */
.final-cta {
  background: linear-gradient(135deg, var(--primary) 0%, #1d4ed8 100%);
  color: #fff;
  text-align: center;
}

.final-cta-inner h2 {
  font-size: 2.2rem;
  margin-bottom: 12px;
}

.final-cta-inner p {
  font-size: 1.1rem;
  opacity: 0.9;
  margin-bottom: 28px;
}

.final-cta-actions {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.site-footer {
  background: var(--bg-dark);
  color: #fff;
  padding: 50px 0 20px;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 30px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  flex-wrap: wrap;
  gap: 20px;
}

.footer-logo {
  height: 36px;
  margin-bottom: 10px;
}

.footer-brand p {
  color: #94a3b8;
  font-size: 0.9rem;
}

.footer-social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  margin-top: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: #cbd5e1;
  transition: var(--transition);
}

.footer-social-icon:hover {
  background: var(--primary);
  color: #fff;
}

.footer-links {
  display: flex;
  gap: 20px;
}

.footer-links a {
  color: #cbd5e1;
  font-size: 0.9rem;
  transition: var(--transition);
}

.footer-links a:hover {
  color: #fff;
}

.footer-bottom {
  text-align: center;
  padding-top: 20px;
  color: #64748b;
  font-size: 0.85rem;
}

/* Floating WhatsApp */
.floating-whatsapp {
  position: fixed;
  bottom: 24px;
  left: 24px;
  background: #25d366;
  color: #fff;
  padding: 12px 20px;
  border-radius: 50px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 0.9rem;
  box-shadow: 0 4px 16px rgba(37, 211, 102, 0.4);
  z-index: 999;
  transition: var(--transition);
}

html[lang="en"] .floating-whatsapp {
  left: auto;
  right: 24px;
}

.floating-whatsapp:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.6);
}

/* ==========================================
   12. MODAL & FORMS
   ========================================== */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  padding: 20px;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-card {
  background: #fff;
  border-radius: var(--radius-md);
  width: 100%;
  max-width: 480px;
  padding: 30px;
  position: relative;
  box-shadow: var(--shadow-lg);
}

.modal-close {
  position: absolute;
  top: 16px;
  left: 16px;
  background: none;
  border: none;
  font-size: 1.8rem;
  cursor: pointer;
  color: var(--text-muted);
}

html[lang="en"] .modal-close {
  left: auto;
  right: 16px;
}

.modal-header {
  margin-bottom: 20px;
}

.modal-header h3 {
  font-size: 1.4rem;
  margin-bottom: 6px;
}

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

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

.form-group label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  margin-bottom: 6px;
}

.form-control {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 0.95rem;
  outline: none;
  transition: var(--transition);
}

.form-control:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-light);
}

/* ==========================================
   13. MEDIA QUERIES
   ========================================== */
@media (max-width: 992px) {
  .hero-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-actions, .trust-points {
    justify-content: center;
  }

  .main-nav {
    display: none;
  }

  .menu-toggle {
    display: flex;
  }
}

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

  .section {
    padding: 50px 0;
  }

  .modal-card {
    padding: 20px;
  }
}
