/* ==========================================
   NiceChat - About Page CSS
   نفس التصميم العربي + دعم الإنجليزية
   ========================================== */

/* Reset & Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary-green: #77bd20;
  --dark-green: #39a750;
  --text-color: #39a750;
  --special-btn-1: #082611;
  --special-btn-2: #114922;
  --gradient-green: linear-gradient(135deg, #77bd20, #39a750);
  --dark-gradient: linear-gradient(135deg, #0d2818, #1a3d2e, #082611);
  --mysterious-gradient: linear-gradient(
    135deg,
    #000000,
    #1a3d2e,
    #39a750,
    #77bd20
  );
  --glow-green: #77bd20;
  --light-bg: #f8f9fa;
  --white: #ffffff;
  --shadow: rgba(57, 167, 80, 0.1);
  --dark-shadow: rgba(0, 0, 0, 0.3);
  --glass: rgba(255, 255, 255, 0.1);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: linear-gradient(180deg, #1a3d2e, #39a750);
  border-radius: 10px;
}

::-webkit-scrollbar-thumb {
  background: var(--gradient-green);
  border-radius: 10px;
  box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.2);
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #77bd20, #39a750);
}

/* تعريف خط Bahij TheSansArabic */
@font-face {
  font-family: "Bahij TheSansArabic";
  src: url("../fonts/Bahij_TheSansArabic-Light.ttf") format("truetype");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Bahij TheSansArabic";
  src: url("../fonts/alfont_com_ArbFONTS-Bahij_TheSansArabic-Plain.ttf")
    format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Bahij TheSansArabic";
  src: url("../fonts/ArbFONTS-Bahij_TheSansArabic-Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* حماية شاملة للخط - تطبيق على جميع العناصر */
* {
  font-family: inherit;
}

body,
html {
  font-family: "Bahij TheSansArabic", -apple-system, BlinkMacSystemFont,
    sans-serif !important;
}

/* تطبيق الخط على جميع الأزرار والنماذج */
button,
input,
textarea,
select,
.cta-button,
.hero-btn,
.form-btn,
.faq-question,
.nav-link,
.mobile-menu-btn,
.language-toggle,
.close {
  font-family: "Bahij TheSansArabic", -apple-system, BlinkMacSystemFont,
    sans-serif !important;
}

/* تطبيق على العربي والإنجليزي */
body[dir="rtl"] *,
body[dir="ltr"] * {
  font-family: "Bahij TheSansArabic", -apple-system, BlinkMacSystemFont,
    sans-serif !important;
}

/* Body & Background */
body {
  font-family: "Bahij TheSansArabic", -apple-system, BlinkMacSystemFont,
    sans-serif;
  line-height: 1.6;
  color: #333;
  overflow-x: hidden;
  background: #000;
  position: relative;
  text-align: justify;
}

/* English Font Support */
body[dir="ltr"] {
  font-family: "Bahij TheSansArabic", -apple-system, BlinkMacSystemFont,
    sans-serif;
  text-align: left;
}

/* Animated Background */
body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--mysterious-gradient);
  z-index: -2;
  animation: backgroundShift 25s ease-in-out infinite;
}

body::after {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000"><defs><radialGradient id="g1"><stop offset="0%" stop-color="%2377bd20" stop-opacity="0.15"/><stop offset="100%" stop-color="%2377bd20" stop-opacity="0"/></radialGradient><radialGradient id="g2"><stop offset="0%" stop-color="%2339a750" stop-opacity="0.08"/><stop offset="100%" stop-color="%2339a750" stop-opacity="0"/></radialGradient></defs><circle cx="200" cy="200" r="400" fill="url(%23g1)" opacity="0.8"><animate attributeName="cx" values="200;800;200" dur="35s" repeatCount="indefinite"/><animate attributeName="cy" values="200;600;200" dur="30s" repeatCount="indefinite"/></circle><circle cx="800" cy="800" r="350" fill="url(%23g2)" opacity="0.6"><animate attributeName="cy" values="800;200;800" dur="28s" repeatCount="indefinite"/><animate attributeName="r" values="350;500;350" dur="32s" repeatCount="indefinite"/></circle><circle cx="500" cy="500" r="450" fill="url(%23g1)" opacity="0.4"><animate attributeName="r" values="450;650;450" dur="40s" repeatCount="indefinite"/><animate attributeName="cx" values="500;300;500" dur="25s" repeatCount="indefinite"/></circle></svg>')
    center/cover;
  z-index: -1;
  opacity: 0.7;
}

@keyframes backgroundShift {
  0%,
  100% {
    background: linear-gradient(
      135deg,
      #000000 0%,
      #1a3d2e 25%,
      #39a750 75%,
      #77bd20 100%
    );
  }
  25% {
    background: linear-gradient(
      225deg,
      #082611 0%,
      #1a3d2e 35%,
      #39a750 65%,
      #77bd20 100%
    );
  }
  50% {
    background: linear-gradient(
      315deg,
      #000000 0%,
      #082611 30%,
      #1a3d2e 70%,
      #39a750 100%
    );
  }
  75% {
    background: linear-gradient(
      45deg,
      #1a3d2e 0%,
      #39a750 40%,
      #77bd20 80%,
      #39a750 100%
    );
  }
}

/* ==========================================
   HEADER STYLES
   ========================================== */
header {
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(119, 189, 32, 0.2);
  box-shadow: 0 4px 30px rgba(119, 189, 32, 0.1);
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  transition: all 0.3s ease;
}

.header-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Logo */
.logo {
  cursor: pointer;
  transition: all 0.3s ease;
  filter: drop-shadow(0 0 10px rgba(119, 189, 32, 0.5));
  display: flex;
  align-items: center;
  gap: 1rem;
}

.logo:hover {
  transform: scale(1.05);
  filter: drop-shadow(0 0 15px rgba(119, 189, 32, 0.8));
}

.logo img {
  height: clamp(60px, 7vw, 90px);
  width: auto;
  max-width: clamp(200px, 35vw, 350px);
  object-fit: contain;
  transition: all 0.3s ease;
  border-radius: 8px;
  padding: 5px;
}

.logo-text {
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  font-weight: 800;
  color: var(--primary-green);
  text-shadow: 0 0 10px rgba(119, 189, 32, 0.3);
}

@media (max-width: 480px) {
  .logo img {
    height: 65px;
    max-width: 220px;
  }
  .logo-text {
    font-size: 2rem;
  }
}

@media (min-width: 1200px) {
  .logo img {
    height: 90px;
    max-width: 350px;
  }
  .logo-text {
    font-size: 2.5rem;
  }
}

/* Navigation Menu */
.nav-menu {
  display: flex;
  gap: 2.5rem;
  align-items: center;
}

.nav-link {
  text-decoration: none;
  color: #fff;
  font-weight: 600;
  font-size: 1rem;
  position: relative;
  transition: all 0.3s ease;
  padding: 0.8rem 0;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.nav-link.active {
  color: var(--primary-green);
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: 0;
  right: 0;
  width: 0;
  height: 3px;
  background: var(--gradient-green);
  transition: width 0.3s ease;
  box-shadow: 0 0 10px rgba(119, 189, 32, 0.5);
  border-radius: 2px;
}

body[dir="ltr"] .nav-link::after {
  right: auto;
  left: 0;
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.nav-link:hover {
  color: var(--glow-green);
  text-shadow: 0 0 15px rgba(119, 189, 32, 0.8);
  transform: translateY(-2px);
}

/* CTA Button */
.cta-button {
  background: var(--gradient-green);
  color: var(--white);
  padding: 1rem 2rem;
  border: none;
  border-radius: 30px;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.4s ease;
  text-decoration: none;
  display: inline-block;
  position: relative;
  overflow: hidden;
  box-shadow: 0 0 25px rgba(119, 189, 32, 0.4);
}

.cta-button::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.3),
    transparent
  );
  transition: left 0.6s;
}

.cta-button:hover::before {
  left: 100%;
}

.cta-button:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 10px 35px rgba(119, 189, 32, 0.6);
}

/* Header Actions */
.header-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* Language Toggle Button */
.language-toggle {
  background: rgba(119, 189, 32, 0.1);
  border: 1px solid rgba(119, 189, 32, 0.3);
  border-radius: 25px;
  padding: 0.6rem 1.2rem;
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.3s ease;
}

.language-toggle:hover {
  background: rgba(119, 189, 32, 0.2);
  border-color: rgba(119, 189, 32, 0.5);
  transform: translateY(-2px);
}

.globe-icon {
  width: 20px;
  height: 20px;
}

/* Mobile Menu Button */
.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  color: white;
  font-size: 1.8rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.mobile-menu-btn:hover {
  color: var(--primary-green);
  transform: scale(1.1);
}

.mobile-menu-btn.active {
  color: var(--primary-green);
  transform: scale(1.1) rotate(90deg);
}

/* Mobile Menu */
.mobile-menu {
  display: none;
  position: fixed;
  top: 80px;
  left: 0;
  width: 100%;
  background: rgba(0, 0, 0, 0.95);
  backdrop-filter: blur(20px);
  z-index: 999;
  padding: 2rem;
  transform: translateY(-100%);
  transition: transform 0.3s ease;
}

.mobile-menu.active {
  display: block;
  transform: translateY(0);
}

.mobile-nav-links {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  text-align: center;
}

.mobile-nav-links .nav-link {
  font-size: 1.2rem;
  padding: 1rem;
  border-bottom: 1px solid rgba(119, 189, 32, 0.2);
}

/* ==========================================
   PAGE HERO SECTION
   ========================================== */
.page-hero {
  background: linear-gradient(
    135deg,
    rgba(0, 0, 0, 0.8),
    rgba(26, 61, 46, 0.9)
  );
  min-height: 60vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  margin-top: 80px;
  padding: 4rem 0;
}

.page-hero-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 2rem;
  text-align: center;
  position: relative;
  z-index: 2;
}

.page-title {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 900;
  margin-bottom: 1.5rem;
  line-height: 1.1;
  background: linear-gradient(45deg, #fff, #77bd20, #fff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: none;
}

.page-subtitle {
  font-size: clamp(1.2rem, 3vw, 1.8rem);
  color: #77bd20;
  margin-bottom: 2rem;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  opacity: 0.95;
  text-align: justify;
}

body[dir="ltr"] .page-subtitle {
  text-align: center;
}

/* Social Media Icons Grid */
.social-icons-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(50px, 1fr));
  gap: clamp(1rem, 2vw, 1.5rem);
  max-width: 500px;
  margin: 2rem auto;
  justify-items: center;
}

.social-icon {
  width: clamp(50px, 8vw, 60px);
  height: clamp(50px, 8vw, 60px);
  background: rgba(119, 189, 32, 0.1);
  border-radius: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  border: 1px solid rgba(119, 189, 32, 0.3);
}

.social-icon:hover {
  background: var(--gradient-green);
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(119, 189, 32, 0.4);
}

.social-icon svg {
  width: clamp(25px, 5vw, 30px);
  height: clamp(25px, 5vw, 30px);
  fill: #ffffff;
}

/* ==========================================
   STEPS SECTION
   ========================================== */
.steps-section {
  background: linear-gradient(135deg, #0d2818, #1a3d2e);
  padding: clamp(4rem, 8vw, 6rem) 2rem;
  position: relative;
}

.steps-container {
  max-width: 1400px;
  margin: 0 auto;
}

.section-title {
  text-align: center;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  color: var(--white);
  margin-bottom: 1rem;
  text-shadow: 0 0 20px rgba(119, 189, 32, 0.3);
}

.section-subtitle {
  text-align: center;
  font-size: clamp(1rem, 2.5vw, 1.3rem);
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 4rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  text-align: justify;
}

body[dir="ltr"] .section-subtitle {
  text-align: center;
}

.steps-timeline {
  position: relative;
  max-width: 1000px;
  margin: 0 auto;
}

.timeline-line {
  position: absolute;
  right: 50%;
  top: 0;
  bottom: 0;
  width: 4px;
  background: linear-gradient(180deg, var(--primary-green), var(--dark-green));
  transform: translateX(50%);
  border-radius: 2px;
  box-shadow: 0 0 20px rgba(119, 189, 32, 0.3);
}

body[dir="ltr"] .timeline-line {
  right: auto;
  left: 50%;
  transform: translateX(-50%);
}

.step-item {
  display: flex;
  align-items: center;
  margin-bottom: 4rem;
  position: relative;
}

.step-item:nth-child(even) {
  flex-direction: row-reverse;
}

.step-number {
  width: clamp(60px, 10vw, 80px);
  height: clamp(60px, 10vw, 80px);
  background: var(--gradient-green);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 900;
  color: white;
  position: absolute;
  right: 50%;
  transform: translateX(50%);
  z-index: 10;
  box-shadow: 0 0 30px rgba(119, 189, 32, 0.5);
  border: 4px solid rgba(0, 0, 0, 0.8);
}

body[dir="ltr"] .step-number {
  right: auto;
  left: 50%;
  transform: translateX(-50%);
}

.step-content {
  background: linear-gradient(
    135deg,
    rgba(0, 0, 0, 0.8),
    rgba(26, 61, 46, 0.6)
  );
  border-radius: 25px;
  padding: clamp(2rem, 5vw, 3rem);
  width: 45%;
  margin: 0 5%;
  border: 1px solid rgba(119, 189, 32, 0.3);
  backdrop-filter: blur(15px);
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
}

.step-content::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(119, 189, 32, 0.1),
    transparent
  );
  transition: left 0.6s;
}

.step-content:hover::before {
  left: 100%;
}

.step-content:hover {
  transform: translateY(-5px);
  border-color: rgba(119, 189, 32, 0.6);
  box-shadow: 0 20px 50px rgba(119, 189, 32, 0.2);
}

.step-title {
  font-size: clamp(1.4rem, 3vw, 1.8rem);
  font-weight: 700;
  color: var(--white);
  margin-bottom: 1rem;
  text-shadow: 0 0 10px rgba(119, 189, 32, 0.3);
}

.step-description {
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.7;
  margin-bottom: 1.5rem;
  text-align: justify;
  font-size: clamp(0.9rem, 2vw, 1rem);
}

body[dir="ltr"] .step-description {
  text-align: left;
}

.step-features {
  list-style: none;
}

.step-features li {
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 0.5rem;
  position: relative;
  padding-right: 1.5rem;
  text-align: justify;
  font-size: clamp(0.85rem, 1.8vw, 0.95rem);
}

body[dir="ltr"] .step-features li {
  padding-right: 0;
  padding-left: 1.5rem;
  text-align: left;
}

.step-features li::before {
  content: "✓";
  position: absolute;
  right: 0;
  color: var(--primary-green);
  font-weight: bold;
}

body[dir="ltr"] .step-features li::before {
  right: auto;
  left: 0;
}

/* ==========================================
   DEMO SECTION
   ========================================== */
.demo-section {
  background: linear-gradient(135deg, #082611, #1a3d2e, #000);
  padding: clamp(4rem, 8vw, 6rem) 2rem;
  position: relative;
  overflow: hidden;
}

.demo-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.demo-content {
  color: white;
}

.demo-title {
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 800;
  margin-bottom: 1.5rem;
  text-shadow: 0 0 15px rgba(119, 189, 32, 0.3);
}

.demo-description {
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  line-height: 1.7;
  margin-bottom: 2rem;
  opacity: 0.9;
  text-align: justify;
}

body[dir="ltr"] .demo-description {
  text-align: left;
}

.demo-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.chat-demo {
  width: 100%;
  max-width: 400px;
  background: linear-gradient(135deg, #1a1a1a, #2a2a2a);
  border-radius: 25px;
  padding: clamp(1.5rem, 3vw, 2rem);
  box-shadow: 0 0 50px rgba(119, 189, 32, 0.4);
  border: 1px solid rgba(119, 189, 32, 0.3);
}

.chat-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2rem;
  padding: 1rem;
  background: var(--gradient-green);
  border-radius: 15px;
}

.chat-avatar {
  width: clamp(40px, 8vw, 50px);
  height: clamp(40px, 8vw, 50px);
  background: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.chat-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.chat-info h4 {
  color: white;
  font-size: clamp(1rem, 2vw, 1.1rem);
  margin-bottom: 0.2rem;
}

.demo-messages {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.demo-message {
  background: var(--gradient-green);
  color: white;
  padding: clamp(0.8rem, 2vw, 1rem) clamp(1rem, 2.5vw, 1.5rem);
  border-radius: 20px;
  border-bottom-right-radius: 5px;
  align-self: flex-end;
  max-width: 80%;
  animation: messageSlideIn 0.6s ease-out;
  font-size: clamp(0.85rem, 1.8vw, 0.95rem);
}

body[dir="ltr"] .demo-message {
  border-bottom-right-radius: 20px;
  border-bottom-left-radius: 5px;
  align-self: flex-start;
}

.demo-response {
  background: #333;
  color: white;
  padding: clamp(0.8rem, 2vw, 1rem) clamp(1rem, 2.5vw, 1.5rem);
  border-radius: 20px;
  border-bottom-left-radius: 5px;
  align-self: flex-start;
  max-width: 80%;
  animation: responseSlideIn 0.6s ease-out 0.3s both;
  text-align: justify;
  font-size: clamp(0.85rem, 1.8vw, 0.95rem);
}

body[dir="ltr"] .demo-response {
  border-bottom-left-radius: 20px;
  border-bottom-right-radius: 5px;
  text-align: left;
}

@keyframes messageSlideIn {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes responseSlideIn {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* ==========================================
   CTA SECTION
   ========================================== */
.cta-section {
  background: linear-gradient(135deg, #39a750, #77bd20, #39a750);
  padding: clamp(4rem, 8vw, 5rem) 2rem;
  text-align: center;
  color: white;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000"><circle cx="150" cy="150" r="100" fill="rgba(255,255,255,0.1)"/><circle cx="850" cy="850" r="120" fill="rgba(255,255,255,0.05)"/><circle cx="500" cy="300" r="80" fill="rgba(255,255,255,0.08)"/></svg>');
  animation: ctaFloat 18s ease-in-out infinite;
}

@keyframes ctaFloat {
  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(-15px) rotate(8deg);
  }
}

.cta-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  margin: 0 auto;
}

.cta-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 900;
  margin-bottom: 1.5rem;
  text-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
}

.hero-buttons {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}

.hero-btn {
  padding: clamp(1rem, 2.5vw, 1.3rem) clamp(1.5rem, 4vw, 2.5rem);
  border: none;
  border-radius: 35px;
  font-weight: 700;
  font-size: clamp(1rem, 2vw, 1.1rem);
  cursor: pointer;
  transition: all 0.4s ease;
  text-decoration: none;
  display: inline-block;
  min-width: clamp(180px, 30vw, 200px);
}

.hero-btn-primary {
  background: rgba(255, 255, 255, 0.2);
  color: white;
  border: 2px solid white;
}

.hero-btn:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

/* ==========================================
   MODAL STYLES
   ========================================== */
.modal {
  display: none;
  position: fixed;
  z-index: 2000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(15px);
  animation: modalFadeIn 0.3s ease-out;
}

.modal-content {
  background: linear-gradient(135deg, #1a1a1a, #2a2a2a);
  margin: 3% auto;
  padding: 0;
  border-radius: 30px;
  width: 90%;
  max-width: 600px;
  position: relative;
  animation: modalSlideIn 0.4s ease-out;
  max-height: 90vh;
  overflow-y: auto;
  border: 1px solid rgba(119, 189, 32, 0.3);
  box-shadow: 0 0 80px rgba(119, 189, 32, 0.3);
}

.modal-header {
  background: var(--gradient-green);
  color: white;
  padding: clamp(1.5rem, 3vw, 2rem) clamp(2rem, 4vw, 2.5rem);
  border-radius: 30px 30px 0 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-title {
  font-size: clamp(1.3rem, 3vw, 1.5rem);
  font-weight: 700;
}

.close {
  background: rgba(255, 255, 255, 0.2);
  border: none;
  color: white;
  font-size: clamp(1.5rem, 3vw, 1.8rem);
  cursor: pointer;
  padding: 0;
  width: clamp(35px, 6vw, 40px);
  height: clamp(35px, 6vw, 40px);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.close:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: rotate(90deg) scale(1.1);
}

.modal-body {
  padding: clamp(2rem, 4vw, 2.5rem);
}

.form-group {
  margin-bottom: 2rem;
}

.form-label {
  display: block;
  margin-bottom: 0.8rem;
  font-weight: 600;
  color: var(--white);
  font-size: clamp(1rem, 2vw, 1.1rem);
}

.form-input {
  width: 100%;
  padding: clamp(0.8rem, 2vw, 1rem) clamp(1rem, 2.5vw, 1.5rem);
  border: 2px solid rgba(119, 189, 32, 0.3);
  border-radius: 15px;
  font-size: clamp(0.9rem, 2vw, 1rem);
  transition: all 0.3s ease;
  font-family: "Bahij TheSansArabic", -apple-system, BlinkMacSystemFont,
    sans-serif;
  background: rgba(255, 255, 255, 0.1);
  color: white;
  backdrop-filter: blur(10px);
}

body[dir="ltr"] .form-input {
  font-family: "Bahij TheSansArabic", sans-serif;
}

.form-input:focus {
  outline: none;
  border-color: var(--primary-green);
  box-shadow: 0 0 0 4px rgba(119, 189, 32, 0.2);
  background: rgba(255, 255, 255, 0.15);
  transform: translateY(-2px);
}

.form-input::placeholder {
  color: rgba(255, 255, 255, 0.6);
}

.form-buttons {
  display: flex;
  gap: 1.5rem;
  justify-content: flex-end;
  margin-top: 3rem;
  flex-wrap: wrap;
}

body[dir="ltr"] .form-buttons {
  justify-content: flex-start;
}

.form-btn {
  padding: clamp(0.8rem, 2vw, 1rem) clamp(1.5rem, 3vw, 2rem);
  border: none;
  border-radius: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.4s ease;
  font-size: clamp(0.9rem, 2vw, 1rem);
  min-width: clamp(120px, 25vw, 140px);
}

.form-btn-primary {
  background: var(--gradient-green);
  color: white;
  box-shadow: 0 0 20px rgba(119, 189, 32, 0.3);
}

.form-btn-secondary {
  background: rgba(255, 255, 255, 0.1);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.form-btn:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

@keyframes modalFadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes modalSlideIn {
  from {
    opacity: 0;
    transform: translateY(-60px) scale(0.9);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* ==========================================
   FOOTER STYLES (موحد مع index.html)
   ========================================== */
footer {
  background: linear-gradient(135deg, #000, #1a1a1a);
  color: white;
  padding: 4rem 2rem 2rem;
  border-top: 1px solid rgba(119, 189, 32, 0.2);
}

.footer-container {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 3rem;
  margin-bottom: 3rem;
  text-align: center;
}

@media (min-width: 769px) {
  .footer-container {
    text-align: right;
  }

  body[dir="ltr"] .footer-container {
    text-align: left;
  }
}

.footer-section h3 {
  margin-bottom: 1.5rem;
  color: var(--primary-green);
  font-weight: 700;
  font-size: 1.3rem;
}

.footer-section p {
  line-height: 1.6;
  opacity: 0.9;
  text-align: justify;
}

body[dir="ltr"] .footer-section p {
  text-align: left;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 1rem;
}

.footer-links a {
  color: #ccc;
  text-decoration: none;
  transition: all 0.3s ease;
  display: inline-block;
}

.footer-links a:hover {
  color: var(--primary-green);
  text-shadow: 0 0 10px rgba(119, 189, 32, 0.3);
  transform: translateX(-5px);
}

body[dir="ltr"] .footer-links a:hover {
  transform: translateX(5px);
}

.footer-bottom {
  border-top: 1px solid #333;
  padding-top: 2rem;
  text-align: center;
  color: #999;
}

.footer-bottom a {
  color: var(--primary-green);
  text-decoration: none;
  transition: all 0.3s ease;
}

.footer-bottom a:hover {
  color: #fff;
  text-shadow: 0 0 10px rgba(119, 189, 32, 0.5);
}

.social-links {
  display: flex;
  gap: 1.5rem;
  margin-top: 1.5rem;
  justify-content: center;
}

.social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 45px;
  height: 45px;
  background: rgba(119, 189, 32, 0.1);
  border-radius: 50%;
  transition: all 0.4s ease;
  font-size: 1.2rem;
}

.social-links a:hover {
  background: var(--gradient-green);
  transform: translateY(-5px) scale(1.1);
  box-shadow: 0 10px 25px rgba(119, 189, 32, 0.4);
}

.social-links svg {
  width: 20px;
  height: 20px;
  fill: #fff;
}

/* ==========================================
   RESPONSIVE DESIGN
   ========================================== */
@media (max-width: 1024px) {
  .demo-container {
    grid-template-columns: 1fr;
    gap: 3rem;
    text-align: center;
  }

  .step-content {
    width: 40%;
  }

  .timeline-line {
    display: none;
  }

  .step-number {
    position: relative;
    right: auto;
    transform: none;
    margin-bottom: 2rem;
  }

  body[dir="ltr"] .step-number {
    left: auto;
  }

  .step-item {
    flex-direction: column;
    text-align: center;
  }

  .step-item:nth-child(even) {
    flex-direction: column;
  }
}

@media (max-width: 768px) {
  .nav-menu {
    display: none;
  }

  .mobile-menu-btn {
    display: block;
  }

  .mobile-menu {
    display: block;
  }

  .header-container {
    padding: 0.8rem 1rem;
  }

  .page-hero {
    padding: 2rem 0;
    margin-top: 70px;
  }

  .steps-timeline {
    padding: 0 1rem;
  }

  .step-content {
    width: 100%;
    margin: 0;
    padding: 1.5rem;
  }

  .demo-content ul {
    padding-right: 1rem;
  }

  body[dir="ltr"] .demo-content ul {
    padding-right: 0;
    padding-left: 1rem;
  }

  .demo-content li {
    font-size: 0.9rem;
    margin-bottom: 0.6rem;
  }

  .social-icons-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    max-width: 300px;
  }

  .modal-content {
    margin: 5% auto;
    width: 95%;
  }

  .form-buttons {
    flex-direction: column;
    gap: 1rem;
  }

  .form-btn {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .header-container {
    padding: 0.6rem 0.8rem;
  }

  .logo img {
    height: 45px;
    max-width: 160px;
  }

  .page-hero {
    padding: 1.5rem 0;
    margin-top: 65px;
  }

  .page-hero-container {
    padding: 1.5rem;
  }

  .steps-section,
  .demo-section,
  .cta-section {
    padding: 3rem 1rem;
  }

  .step-content {
    padding: 1.2rem;
  }

  .chat-demo {
    padding: 1.2rem;
  }

  .demo-messages {
    gap: 0.6rem;
  }

  .demo-message,
  .demo-response {
    padding: 0.6rem 1rem;
    font-size: 0.8rem;
  }

  .social-icons-grid {
    gap: 0.8rem;
    grid-template-columns: repeat(3, 1fr);
  }

  .social-icon {
    width: 45px;
    height: 45px;
  }

  .social-icon svg {
    width: 22px;
    height: 22px;
  }

  .footer-container {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .modal-header {
    padding: 1.2rem 1.5rem;
  }

  .modal-body {
    padding: 1.5rem;
  }

  .form-input {
    padding: 0.7rem 1rem;
  }
}

/* ==========================================
   PRINT STYLES
   ========================================== */
@media print {
  .mobile-menu-btn,
  .modal,
  .language-toggle {
    display: none !important;
  }

  body::before,
  body::after {
    display: none;
  }

  * {
    background: white !important;
    color: black !important;
  }

  .page-title {
    -webkit-text-fill-color: black !important;
  }
}

/* ==========================================
   ACCESSIBILITY
   ========================================== */
@media (prefers-contrast: high) {
  :root {
    --primary-green: #00ff00;
    --dark-green: #008000;
  }

  .page-title {
    -webkit-text-fill-color: white;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  body::before {
    animation: none;
  }
}

*:focus {
  outline: 2px solid var(--primary-green);
  outline-offset: 2px;
}

@media (hover: none) {
  .cta-button:hover,
  .nav-link:hover,
  .step-content:hover {
    transform: none;
  }

  .cta-button:active {
    transform: scale(0.95);
  }
}
