/* ===============================
   1️⃣ CSS VARIABLES (COLORS)
================================ */
:root {
  /* Light Mode - Default */
  --bg-main: #ffffff;
  --bg-secondary: #f8fafc;

  --primary: #6C4DFF;
  --primary-hover: #5a3ee6;
  --primary-soft: #ede9fe;

  --text-main: #0f172a;
  --text-muted: #64748b;

  --nav-bg: #ffffff;
  --nav-text: #0f172a;

  --sidebar-bg: #f1f5f9;
  --sidebar-active: #6C4DFF;
  --sidebar-text: #334155;

  --card-bg: #ffffff;
  --border: #e2e8f0;
  --shadow: 0 10px 30px rgba(0,0,0,0.05);

  --btn-bg: linear-gradient(135deg, #6C4DFF, #00E5FF);
  --btn-hover: linear-gradient(135deg, #5a3ee6, #00c4dd);
}

/* Dark Mode */


/* ================= DARK AI THEME ================= */

body.dark {

  /* ========== BACKGROUNDS ========== */
  --bg-main: #0b0f1a;
  --bg-secondary: #0f172a;

  /* ========== PRIMARY BRAND COLORS ========== */
  --primary: #6C4DFF;         /* AI purple */
  --primary-hover: #5740d4;
  --primary-soft: #312e81;

  /* ========== TEXT COLORS ========== */
  --text-main: #f1f5f9;
  --text-muted: #94a3b8;

  /* ========== NAVBAR ========== */
  --nav-bg: linear-gradient(135deg, #0f172a, #1e1b4b);
  --nav-text: #ffffff;

  /* ========== SIDEBAR ========== */
  --sidebar-bg: #111827;
  --sidebar-active: #6C4DFF;
  --sidebar-text: #e2e8f0;

  /* ========== CARDS ========== */
  --card-bg: rgba(17, 24, 39, 0.8); /* glass feel */
  --border: #1f2937;

  /* ========== SHADOWS (AI Glow Effect) ========== */
  --shadow: 0 15px 50px rgba(108, 77, 255, 0.35);

  /* ========== BUTTON GRADIENT ========== */
  --btn-bg: linear-gradient(135deg, #6C4DFF, #00E5FF);
  --btn-hover: linear-gradient(135deg, #5740d4, #00c8e6);
}
/* ===============================
   2️⃣ GLOBAL RESET
================================ */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;

}

body {
  background: var(--bg-main);
  color: var(--text-main);
   font-family: system-ui, sans-serif;
  transition:
    background 0.4s,
    color 0.4s;
}

a {
  text-decoration: none;
  color: inherit;
}


/* Button */
.btn-primary {
  width: 100%;
  padding: 14px;
  background: var(--btn-bg);
  color: #fff;
  border: none;
  border-radius: 12px;
  font-size: 16px;
  cursor: pointer;
  transition:  background 0.3s ease, transform 0.2s ease;
  box-shadow: var(--shadow);
  font-family: inherit;
}

button {
  border: none;
  cursor: pointer;
  font-family: inherit;
}

.btn-primary:hover {
  background: var(--btn-hover);
}

/* Hero & Sections */
.hero-section,
.features-section,
.pricing-section,
.testimonials-section,
.contact-section {
  background: var(--bg-secondary);
  color: var(--text-main);
}

html {
  scroll-behavior: smooth;
}



/* ===============================
   3️⃣ LAYOUT
================================ */
.layout {
  display: flex;
  width: 100%;
}

/* ===============================
   4️⃣ SIDEBAR
================================ */

.sidebar {
  position: fixed;
  top: 70px;
  width: 260px;
  height: calc(100vh - 70px);
  padding: 30px 20px;
  transition: transform 0.3s ease;
  z-index: 1100;
  flex-shrink: 0;
  background: var(--nav-bg);
  color: var(--nav-text);
}

/* LTR */
body[dir="ltr"] .sidebar {
  left: 0;
  transform: translateX(-100%);
}

body[dir="ltr"] .sidebar.open {
  transform: translateX(0);
}

/* RTL */
body[dir="rtl"] .sidebar {
  right: 0;
  transform: translateX(100%);
}

body[dir="rtl"] .sidebar.open {
  transform: translateX(0);
}

/* ===============================
   MAIN CONTENT MOVE
================================= */
main {
  transition: transform 0.3s ease;
}

/* LTR */
body[dir="ltr"].sidebar-open main {
  transform: translateX(260px);
}

/* RTL */
body[dir="rtl"].sidebar-open main {
  transform: translateX(-260px);
}

/* ===============================
   OVERLAY
================================= */
.overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.4);
  backdrop-filter: blur(3px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 1000;
}

/* تظهر الـ overlay إذا sidebar مفتوح */
.sidebar.open ~ .overlay {
  opacity: 1;
  pointer-events: all;
}

/* ===============================
   SIDEBAR CONTENT
================================= */
.sidebar .logo {
  font-size: 40px;
  margin-bottom: 40px;
  color: var(--text-main);
}

.sidebar nav a {
  display: block;
  margin-bottom: 25px;
  opacity: 0.9;
  font-size: 20px;
  color: var(--text-main);
  text-decoration: none;
  padding: 8px 12px;
  border-radius: 8px;
  transition: 0.3s;
}

.sidebar nav a:hover,
.sidebar nav a.active {
  background: var(--primary);
  color: #fff;
  opacity: 1;
  font-weight: 600;
}

.no-transition * {
  transition: none !important;
}
/* ===============================
   5️⃣ NAVBAR
================================ */
.navbar {
  background: var(--nav-bg);
  color: var(--nav-text);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 70px;
  padding: 0 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border);
  z-index: 1000;
}


.navbar .logo {
  font-size: 36px;
  font-weight: 800;
  letter-spacing: 1px;
}

.navbar .logo span {
  background: linear-gradient(135deg, #6C4DFF, #00E5FF);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}


.navbar .links a {
  color: var(--text-main);
  font-size: 20px;
  text-decoration: none;
  transition:color 0.3s ease;
}
.navbar .links a:hover {
  opacity: 0.8;
}

.navbar .links {
  display: flex;
  align-items: center;
  gap: 20px;
}



.navbar-buttons {
  display: flex;
  align-items: center;
  gap: 10px;
}

.navbar-buttons button {
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 14px;
  border: none;
  cursor: pointer;
  background: var(--primary);
  color: #fff;
  transition: 0.3s;
}

.navbar-buttons button:hover {
  opacity: 0.85;
}

.navbar .side-btn {
  padding: 10px 16px;
  font-size: 20px;
  border-radius: 10px;
  background: var(--primary);
  color: #fff;
  border: none;
  cursor: pointer;
  transition: 0.3s;
}

.navbar .side-btn:hover {
  opacity: 0.85;
}

/* ===============================
   6️⃣ MAIN + SECTIONS
================================ */
main {
  padding-top: 70px;
  width: 100%;
}

.section {
  padding: 80px 60px;
}

.section h1,
.section h2 {
  margin-bottom: 20px;
}

.section p {
  color: var(--text-muted);
  max-width: 600px;
}

/* ===============================
   7️⃣ HERO SECTION
================================ */


/* ================= AI HERO SECTION ================= */

.hero-section {
  position: relative;
  min-height: 100vh;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  overflow: hidden;
  background: linear-gradient(
  to bottom,
  var(--bg-main),
  var(--bg-secondary)
);
  color: #fff;
}

/* Animated Glow Background */
.hero-section::before {
  content: "";
  position: absolute;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(108,77,255,0.4), transparent 70%);
  top: -150px;
  left: -150px;
  filter: blur(120px);
  animation: floatGlow 8s infinite alternate ease-in-out;
}

@keyframes floatGlow {
  from { transform: translate(0, 0); }
  to { transform: translate(80px, 60px); }
}

/* TITLE */
.hero-section h1 {
  font-size: clamp(42px, 6vw, 70px);
  font-weight: 900;
  margin-bottom: 25px;
  background: linear-gradient(90deg, #6C4DFF, #00E5FF, #6C4DFF);
  background-size: 200%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: gradientMove 6s linear infinite;
  text-shadow: 0 0 25px rgba(108,77,255,0.6);
}

/* Animated Gradient */
@keyframes gradientMove {
  0% { background-position: 0%; }
  100% { background-position: 200%; }
}

/* DESCRIPTION */
.hero-section p {
  font-size: clamp(18px, 2.5vw, 22px);
  max-width: 650px;
  color: rgba(255,255,255,0.75);
  margin-bottom: 40px;
  line-height: 1.6;
}

/* CTA BUTTON */
.btn-cta {
  padding: 16px 45px;
  margin: 10px;
  font-size: 18px;
  font-weight: 600;
  border-radius: 50px;
  border: none;
  cursor: pointer;
  background: linear-gradient(135deg, #2563eb, #7c3aed);
  color: #fff;
  transition: all 0.4s ease;
  box-shadow: 0 0 20px rgba(124,58,237,0.6);
  position: relative;
  z-index: 2;
}

.btn-cta:hover {
  transform: translateY(-5px) scale(1.05);
  box-shadow: 0 0 40px rgba(124,58,237,0.9);
}

.btn-cta:active {
  transform: scale(0.96);
}

/* MOBILE */
@media (max-width: 768px) {
  .btn-cta {
    width: 100%;
    max-width: 320px;
  }
}
/* ===============================
FEATURES SECTION
================================ */
.features-section {
  text-align: center;
}

.features-section h2 {
  font-size: 56px;
  margin-bottom: 20px;
}

/* GRID */
.features-section .grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 50px;
  width: 100%;
  max-width: 1200px;
  margin: 70px auto 0;
}

/* CARD */
.feature-card {
  padding: 50px 40px;
  border-radius: 24px;
  text-align: left;

  display: flex;
  flex-direction: column;
  gap: 16px;

  min-height: 240px;

  transition:
    transform 0.35s ease,
    box-shadow 0.35s ease;
   
  opacity: 0;
  transform: translateY(40px);
  animation: fadeUp 0.8s ease forwards;


}

/* ICON */
.feature-card .icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;

  display: flex;
  align-items: center;
  justify-content: center;

  font-size: 26px;
  margin-bottom: 10px;
}

/* TEXT */
.feature-card h3 {
  font-size: 22px;
  font-weight: 600;
}

.feature-card p {
  font-size: 16px;
  line-height: 1.7;
  opacity: 0.9;
}

/* HOVER */
.feature-card:hover {
  transform: translateY(-10px) scale(1.03);
}

/* ENTRANCE ANIMATION */

.feature-card:nth-child(1) {
  animation-delay: 0.1s;
}
.feature-card:nth-child(2) {
  animation-delay: 0.2s;
}
.feature-card:nth-child(3) {
  animation-delay: 0.3s;
}

@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ===============================
  PRICING SECTION
================================ */
.pricing-section {
  text-align: center;
}

.pricing-section h2 {
  font-size: 56px;
  margin-bottom: 40px;
}

/* GRID */
.pricing-section .grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 40px;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}

/* CARD */
.pricing-card {
  padding: 50px 40px;
  border-radius: 24px;
  text-align: center;
  background: var(--card-bg);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 20px;
  min-height: 300px;
  transition:
    transform 0.35s ease,
    box-shadow 0.35s ease;
}

.pricing-card:hover {
  transform: translateY(-12px) scale(1.04);
}

/* Highlight card */
.pricing-card.highlight {
  border: 2px solid var(--primary);
  box-shadow: var(--shadow);
  transform: scale(1.03);
}

/* Price */
.pricing-card .price {
  font-size: 28px;
  font-weight: 700;
  margin: 10px 0;
}

/* List */
.pricing-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
  text-align: left;
}

.pricing-card ul li {
  margin-bottom: 12px;
  font-size: 16px;
  line-height: 1.6;
}

/* Button */
.pricing-card button.btn-primary {
  margin-top: auto;
  padding: 14px 20px;
  border-radius: 12px;
  background: var(--btn-bg);
  color: #fff;
  transition: 0.3s ease;
}

.pricing-card button.btn-primary:hover {
  background: var(--btn-hover);
}

/* ENTRANCE animation */
.pricing-card {
  opacity: 0;
  transform: translateY(40px);
  animation: fadeUpPricing 0.8s ease forwards;
}

.pricing-card:nth-child(1) {
  animation-delay: 0.1s;
}
.pricing-card:nth-child(2) {
  animation-delay: 0.2s;
}
.pricing-card:nth-child(3) {
  animation-delay: 0.3s;
}

@keyframes fadeUpPricing {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ===============================
    8️⃣ TESTIMONIALS (SLIDER)
================================ */
.testimonials-section {
  text-align: center;
  padding: 100px 20px;
}
.testimonials-section h2 {
  font-size: 52px;
  margin-bottom: 50px;
}

/* Wrapper */
.testimonials-wrapper {
  position: relative;
  max-width: 700px;
  margin: 0 auto 40px;
  min-height: 260px;
}

/* Card */
.testimonial-card {
  position: absolute;
  inset: 0;
  background: var(--card-bg);
  border-radius: 20px;
  padding: 40px;
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translateX(40px);
  transition: 0.6s ease;
}

.testimonial-card.active {
  opacity: 1;
  transform: translateX(0);
  position: relative;
}

/* Text */
.testimonial-card p {
  font-size: 20px;
  line-height: 1.6;
  opacity: 0.9;
}

.testimonial-card p::before {
  content: "“";
  font-size: 50px;
  color: var(--primary);
  display: block;
  line-height: 1;
  margin-bottom: 10px;
}

/* User */
.user {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin-bottom: 30px;
}

.user img {
  width: 72px;
  height: 72px;
  border-radius: 50%;
}

.user h4 {
  font-size: 18px;
  margin-bottom: 2px;
}

.user span {
  font-size: 14px;
  opacity: 0.7;
}

.user::after {
  content: "";
  width: 40px;
  height: 3px;
  background: var(--primary);
  border-radius: 10px;
  margin-top: 12px;
}

/* Dots */
.dots {
  display: flex;
  justify-content: center;
  gap: 12px;
}

.dot {
  width: 10px;
  height: 10px;
  background: #ccc;
  border-radius: 50%;
  cursor: pointer;
  transition: 0.3s;
}

.dot.active {
  background: var(--primary);
  transform: scale(1.4);
}

/* ===============================
   GRID + CARDS
================================ */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 25px;
  margin-top: 40px;
}

.card {
  background: var(--card-bg);
  padding: 30px;
  border-radius: 12px;
  text-align: center;
  border: 1px solid var(--border);
  transition: transform 0.3s ease, box-shadow  0.3s ease;
  box-shadow: var(--shadow);
}

.card.highlight {
  border: 2px solid var(--primary);
  transform: scale(1.05);
}

.card:hover {
  transform: translateY(-8px) scale(1.03);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
}

.card:hover,
.pricing-card:hover,
.feature-card:hover {
  box-shadow: 0 0 40px rgba(108, 77, 255, 0.4);
}
.card:hover h3 {
  letter-spacing: 0.5px;
}

/* ===============================
   CONTACT SECTION
================================ */
.contact-section {
  padding: 100px 20px;
  color: var(--text-main); /* اللون الأساسي للنص */
}

.contact-section .section-inner {
  max-width: 1100px;
  margin: auto;
  text-align: center;
}

/* Title */
.contact-section h2 {
  font-size: 56px;
  margin-bottom: 10px;
  color: var(--text-main);
}

/* Subtitle */
.contact-sub {
  color: var(--text-muted); /* لون ثانوي للنص */
  margin-bottom: 60px;
  font-size: 16px;
}

/* Wrapper */
.contact-wrapper {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 40px;
  align-items: stretch;
}

/* ===== Contact Card (Form) ===== */
.contact-card {
  background: var(--bg-secondary);
  padding: 40px;
  border-radius: 20px;
  box-shadow: var(--shadow);
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
  text-align: left;
  color: var(--text-main); /* لون النص يتغير مع الثيم */
}

.contact-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 50px rgba(37, 99, 235, 0.25);
}

.contact-card h3 {
  margin-bottom: 25px;
  font-size: 28px;
  color: var(--text-main);
}

.contact-card p {
  color: var(--text-muted);
}

/* Form Inputs */
.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 14px 16px;
  margin-bottom: 20px;
  border-radius: 12px;
  border: 1px solid var(--border);
  font-size: 15px;
  outline: none;
  background: var(--bg-main);
  color: var(--text-main); /* يتغير مع الثيم */
}

.contact-form textarea {
  resize: none;
  height: 120px;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--primary);
}

/* ===== Contact Info Box ===== */
.contact-info-box {
  background: var(--bg-secondary);
  padding: 40px;
  border-radius: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  box-shadow: var(--shadow);
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
  text-align: center;
  color: var(--text-main); /* النصوص الرئيسية */
}

.contact-info-box h3 {
  font-size: 28px;
  margin-bottom: 20px;
  font-weight: 600;
  color: var(--text-main);
}

.contact-info-box p {
  font-size: 18px;
  margin-bottom: 8px;
  opacity: 0.9;
  color: var(--text-muted); /* نص ثانوي */
}

/* Social Icons */
.contact-socials {
  display: flex;
  gap: 12px;
  margin-top: 20px;
}

.contact-socials a {
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: var(--text-main);
  font-size: 18px;
  transition: 0.3s;
}

.contact-socials a:hover {
  background: var(--primary);
  color: #fff;
}

/* Hover effect على الـ Info Box */
.contact-info-box:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 50px rgba(37, 99, 235, 0.3);
}

.final-cta{
    padding:100px 20px;
    background:linear-gradient(135deg,#0f172a,#1e293b);
    display:flex;
    justify-content:center;
}

.cta-box{
    max-width:700px;
    background:#111827;
    padding:50px;
    border-radius:20px;
    text-align:center;
    box-shadow:0 20px 60px rgba(0,0,0,0.4);
}

.cta-box h2{
    font-size:36px;
    color:white;
    margin-bottom:15px;
}

.cta-subtitle{
    color:#94a3b8;
    margin-bottom:30px;
    font-size:18px;
}

.cta-features{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:10px;
    margin-bottom:35px;
    color:#e2e8f0;
    font-size:15px;
}

.btn-buy{
    display:inline-block;
    padding:16px 40px;
    font-size:18px;
    font-weight:600;
    color:white;
    background:linear-gradient(135deg,#6366f1,#22c55e);
    border-radius:10px;
    text-decoration:none;
    transition:0.3s;
}

.btn-buy:hover{
    transform:translateY(-3px);
    box-shadow:0 10px 25px rgba(99,102,241,0.5);
}

.cta-note{
    margin-top:15px;
    color:#64748b;
    font-size:14px;
}

/* ===============================
   FOOTER
================================ */
.footer {
  background: var(--bg-secondary);
  color: var(--text-main);
  padding: 60px 20px 30px;
}

.footer-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  max-width: 1200px;
  margin: 0 auto;
  gap: 40px;
}

/* Logo */
.footer-logo h3 {
  font-size: 28px;
  font-weight: 700;
}

/* Links */
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-links a {
  color: var(--text-main);
  font-size: 16px;
  transition: 0.3s ease;
}

.footer-links a:hover {
  color: var(--primary);
}

/* Socials */
.footer-socials {
  display: flex;
  gap: 15px;
}

.footer-socials a {
  color: var(--text-main);
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: 0.3s ease;
}

.footer-socials a:hover {
  color: var(--primary);
}

/* Copyright */
.footer-copy {
  text-align: center;
  margin-top: 40px;
  font-size: 14px;
  opacity: 0.7;
  color: var(--text-muted);
}

/* Dark Theme */
body.dark .footer {
  background: var(--bg-secondary);
  color: var(--text-main);
}

body.dark .footer-links a,
body.dark .footer-socials a {
  color: var(--text-main);
}

body.dark .footer-links a:hover,
body.dark .footer-socials a:hover {
  color: var(--primary);
}

body.dark .footer-copy {
  color: var(--text-muted);
}

/* ===============================
   🔟 WHATSAPP
================================ */
.whatsapp {
  position: fixed;
  bottom: 25px;
  right: 25px;
  background: #25d366;
  color: #fff;
  font-size: 24px;
  padding: 14px;
  border-radius: 50%;
}

/* ===============================
   SCROLL ANIMATIONS
================================ */
.reveal {
  opacity: 0;
  transform: translateY(60px);
  transition: 0.8s ease;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* ===============================
   🔟 RESPONSIVE
================================ */
@media (max-width: 1024px) {
  main {
    padding: 20px;
  }
  .navbar .links a {
    font-size: 16px;
  }
}

@media (max-width: 900px) {
  .contact-wrapper {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 768px) {
  .sidebar {
    width: 100%;
    left: -100%;
  }

  .hero-section h1 {
    font-size: 48px;
  }
  .hero-section p {
    font-size: 22px;
  }
  .section {
    padding: 60px 20px;
  }
  .grid {
    gap: 20px;
  }
  .contact-wrapper {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .footer-container {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 20px;
  }
  .pricing-section h2 {
    font-size: 42px;
  }
  .pricing-card {
    padding: 40px 30px;
  }
  .features-section {
    padding: 100px 20px;
  }

  .features-section h2 {
    font-size: 42px;
  }

  .feature-card {
    padding: 40px 30px;
  }

  .navbar .links {
    display: none;
  } /* إخفاء روابط Navbar على الموبايل */
  .navbar .side-btn {
    display: block;
  } /* زرار الهامبرجر يظهر */
}
@media (max-width: 480px) {
  .hero-section h1 {
    font-size: 36px;
  }
  .hero-section p {
    font-size: 18px;
  }
}




