/* =====================================================
   فقية التقنية — Custom Redesign CSS
   Modern Dark + Glassmorphism + Animated Gradient
   ===================================================== */

/* ── Google Font: Cairo (Arabic-optimized) ──────── */
@import url("https://fonts.googleapis.com/css2?family=Cairo:wght@300;400;500;600;700;900&display=swap");

/* ── CSS Variables ──────────────────────────────── */
:root {
  --primary: #6b7de9;
  --primary-dark: #4b5ec9;
  --accent: #06b6d4;
  --secondary: #8b5cf6;
  --dark: #0f172a;
  --dark-mid: #1e293b;
  --dark-surface: #263245;
  --glass-bg: rgba(255, 255, 255, 0.06);
  --glass-border: rgba(255, 255, 255, 0.12);
  --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  --text-light: #f1f5f9;
  --text-muted: #94a3b8;
  --radius-lg: 16px;
  --radius-md: 12px;
  --radius-sm: 8px;
  --transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ── Base Reset ─────────────────────────────────── */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Cairo", "Rubik", sans-serif !important;
  background: var(--dark);
  color: var(--text-light);
  overflow-x: hidden;
  line-height: 1.7;
}

/* Gradient mesh background for the whole page */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(
      ellipse 80% 50% at 20% 20%,
      rgba(107, 125, 233, 0.12) 0%,
      transparent 60%
    ),
    radial-gradient(
      ellipse 60% 40% at 80% 80%,
      rgba(139, 92, 246, 0.1) 0%,
      transparent 60%
    ),
    radial-gradient(
      ellipse 50% 60% at 50% 50%,
      rgba(6, 182, 212, 0.06) 0%,
      transparent 70%
    );
  pointer-events: none;
  z-index: 0;
}

body > * {
  position: relative;
  z-index: 1;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: var(--transition);
}
a:hover {
  color: var(--accent);
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Cairo", sans-serif;
  color: var(--text-light);
}

/* ── Scrollbar ──────────────────────────────────── */
::-webkit-scrollbar {
  width: 6px;
}
::-webkit-scrollbar-track {
  background: var(--dark);
}
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--primary), var(--secondary));
  border-radius: 3px;
}

/* ── Back to Top ────────────────────────────────── */
.back-to-top {
  position: fixed;
  visibility: hidden;
  opacity: 0;
  left: 24px;
  bottom: 24px;
  z-index: 996;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  width: 44px;
  height: 44px;
  border-radius: 50%;
  box-shadow: 0 4px 20px rgba(107, 125, 233, 0.4);
  transition: var(--transition);
}
.back-to-top i {
  font-size: 22px;
  color: #fff;
  line-height: 0;
}
.back-to-top:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(107, 125, 233, 0.6);
}
.back-to-top.active {
  visibility: visible;
  opacity: 1;
}

/* =====================================================
   HEADER / NAVBAR
   ===================================================== */
#header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 997;
  padding: 14px 0;
  background: rgba(15, 23, 42, 0.7);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--glass-border);
  transition: var(--transition);
}

#header.header-scrolled {
  padding: 10px 0;
  background: rgba(15, 23, 42, 0.92);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.4);
}

#header .logo h1 {
  font-size: 26px;
  margin: 0;
  padding: 0;
  line-height: 1;
  font-weight: 700;
}
#header .logo h1 a,
#header .logo h1 a:hover {
  color: var(--text-light);
  text-decoration: none;
}
#header .logo img {
  padding: 0;
  margin: 0;
  max-height: 48px;
}

/* Navbar - Desktop */
.navbar {
  padding: 0;
}
.navbar ul {
  margin: 0;
  padding: 0;
  display: flex;
  list-style: none;
  align-items: center;
  gap: 2px;
}
.navbar li {
  position: relative;
}

.navbar a,
.navbar a:focus {
  display: flex;
  align-items: center;
  padding: 7px 11px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
  border-radius: var(--radius-sm);
  transition: var(--transition);
  white-space: nowrap;
}
.navbar a:hover,
.navbar .active,
.navbar .active:focus,
.navbar li:hover > a {
  color: var(--text-light);
  background: var(--glass-bg);
}

/* Navbar CTA Button */
.navbar .nav-cta,
.navbar .nav-cta:focus {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #fff !important;
  padding: 8px 22px;
  border-radius: 50px;
  font-weight: 600;
  margin-right: 8px;
  box-shadow: 0 4px 15px rgba(107, 125, 233, 0.3);
}
.navbar .nav-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(107, 125, 233, 0.5);
  color: #fff !important;
  background: linear-gradient(135deg, var(--primary-dark), var(--secondary));
}

/* Dropdown */
.navbar .dropdown ul {
  display: block;
  position: absolute;
  left: 0;
  top: calc(100% + 10px);
  margin: 0;
  padding: 8px 0;
  z-index: 99;
  opacity: 0;
  visibility: hidden;
  background: var(--dark-mid);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
  transition: 0.3s;
  border-radius: var(--radius-md);
}
.navbar .dropdown ul li {
  min-width: 180px;
}
.navbar .dropdown ul a {
  padding: 10px 20px;
  font-size: 14px;
  color: var(--text-muted);
}
.navbar .dropdown ul a:hover,
.navbar .dropdown ul .active:hover,
.navbar .dropdown ul li:hover > a {
  color: var(--primary);
  background: var(--glass-bg);
}
.navbar .dropdown:hover > ul {
  opacity: 1;
  top: 100%;
  visibility: visible;
}

/* ── Theme Toggle — Floating Bottom Left ───────── */
#theme-toggle {
  position: fixed;
  left: 24px;
  bottom: 76px;             /* sits above back-to-top */
  z-index: 996;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border: none;
  border-radius: 50%;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #fff;
  font-size: 18px;
  box-shadow: 0 4px 20px rgba(107, 125, 233, 0.4);
  transition: var(--transition);
  visibility: visible;
  opacity: 1;
}
#theme-toggle:hover {
  transform: scale(1.12) rotate(20deg);
  box-shadow: 0 8px 30px rgba(107, 125, 233, 0.6);
}
@media (max-width: 991px) {
  #theme-toggle {
    left: 16px;
    bottom: 72px;
    width: 40px;
    height: 40px;
    font-size: 16px;
  }
}
/* Mobile Nav Toggle */
.mobile-nav-toggle {
  color: var(--text-light);
  font-size: 28px;
  cursor: pointer;
  display: none;
  line-height: 0;
  transition: 0.5s;
}
.mobile-nav-toggle.bi-x {
  color: var(--text-light);
}

@media (max-width: 991px) {
  .mobile-nav-toggle {
    display: block;
  }
  .navbar ul {
    display: none;
  }
}

.navbar-mobile {
  position: fixed;
  overflow: hidden;
  top: 0;
  right: 0;
  left: 0;
  bottom: 0;
  background: rgba(15, 23, 42, 0.97);
  backdrop-filter: blur(20px);
  transition: 0.3s;
  z-index: 999;
}
.navbar-mobile .mobile-nav-toggle {
  position: absolute;
  top: 15px;
  right: 15px;
}
.navbar-mobile ul {
  display: block;
  position: absolute;
  top: 65px;
  right: 12px;
  bottom: 12px;
  left: 12px;
  padding: 12px 0;
  border-radius: var(--radius-lg);
  background: var(--dark-mid);
  border: 1px solid var(--glass-border);
  overflow-y: auto;
}
.navbar-mobile a,
.navbar-mobile a:focus {
  padding: 12px 24px;
  font-size: 15px;
  color: var(--text-muted);
}
.navbar-mobile a:hover,
.navbar-mobile .active,
.navbar-mobile li:hover > a {
  color: var(--primary);
  background: var(--glass-bg);
}
.navbar-mobile .dropdown ul {
  position: static;
  display: none;
  margin: 8px 16px;
  padding: 8px 0;
  z-index: 99;
  opacity: 1;
  visibility: visible;
  background: var(--dark-surface);
  box-shadow: none;
}
.navbar-mobile .dropdown > .dropdown-active {
  display: block;
}

/* =====================================================
   HERO SECTION
   ===================================================== */
#hero {
  position: relative;
  width: 100%;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: linear-gradient(
    135deg,
    var(--dark) 0%,
    #0d1b2e 50%,
    #0f172a 100%
  );
  padding-top: 80px;
}

/* Animated blobs */
#hero::before {
  content: "";
  position: absolute;
  width: 700px;
  height: 700px;
  top: -200px;
  right: -200px;
  background: radial-gradient(
    circle,
    rgba(107, 125, 233, 0.18) 0%,
    transparent 70%
  );
  animation: heroBlob1 8s ease-in-out infinite alternate;
  border-radius: 50%;
  pointer-events: none;
}

#hero::after {
  content: "";
  position: absolute;
  width: 500px;
  height: 500px;
  bottom: -150px;
  left: -100px;
  background: radial-gradient(
    circle,
    rgba(139, 92, 246, 0.15) 0%,
    transparent 70%
  );
  animation: heroBlob2 10s ease-in-out infinite alternate;
  border-radius: 50%;
  pointer-events: none;
}

@keyframes heroBlob1 {
  0% {
    transform: translate(0, 0) scale(1);
  }
  100% {
    transform: translate(-60px, 80px) scale(1.15);
  }
}
@keyframes heroBlob2 {
  0% {
    transform: translate(0, 0) scale(1);
  }
  100% {
    transform: translate(50px, -60px) scale(1.2);
  }
}

/* Animated grid/dots overlay */
#hero .hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(107, 125, 233, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(107, 125, 233, 0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
}

#hero .container {
  position: relative;
  z-index: 2;
}

#hero h1 {
  margin: 0 0 20px 0;
  font-size: 52px;
  font-weight: 900;
  line-height: 1.2;
  color: var(--text-light);
}

#hero h1 .company-name-title {
  background: linear-gradient(
    135deg,
    var(--primary),
    var(--accent),
    var(--secondary)
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

#hero h2 {
  color: var(--text-muted);
  margin-bottom: 40px;
  font-size: 20px;
  font-weight: 400;
  line-height: 1.7;
}

#hero .btn-get-started {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 36px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 16px;
  font-family: "Cairo", sans-serif;
  letter-spacing: 0.5px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #fff;
  border: none;
  box-shadow: 0 8px 30px rgba(107, 125, 233, 0.4);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

#hero .btn-get-started::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--accent), var(--primary));
  opacity: 0;
  transition: var(--transition);
}

#hero .btn-get-started:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(107, 125, 233, 0.55);
  color: #fff;
}
#hero .btn-get-started:hover::before {
  opacity: 1;
}

#hero .btn-hero-outline {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 32px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 16px;
  font-family: "Cairo", sans-serif;
  color: var(--text-light);
  border: 1.5px solid var(--glass-border);
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  transition: var(--transition);
  margin-right: 12px;
}
#hero .btn-hero-outline:hover {
  border-color: var(--primary);
  color: var(--primary);
  transform: translateY(-4px);
}

/* Hero image animation */
#hero .animated {
  animation: up-down 3s ease-in-out infinite alternate-reverse both;
  filter: drop-shadow(0 20px 60px rgba(107, 125, 233, 0.3));
}

@keyframes up-down {
  0% {
    transform: translateY(12px);
  }
  100% {
    transform: translateY(-12px);
  }
}

/* Hero badges / stats strip */
.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 50px;
}
.hero-stat-item {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(10px);
  padding: 12px 20px;
  border-radius: var(--radius-md);
  transition: var(--transition);
}
.hero-stat-item:hover {
  border-color: var(--primary);
  transform: translateY(-3px);
}
.hero-stat-item .stat-number {
  font-size: 26px;
  font-weight: 900;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
}
.hero-stat-item .stat-label {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.3;
}

@media (max-width: 991px) {
  #hero {
    height: auto !important;
    min-height: calc(100vh - 70px);
    margin-top: 70px;
    padding-top: 30px;
    padding-bottom: 30px;
    align-items: flex-start;
  }
  #hero h1 {
    font-size: 36px;
  }
  #hero h2 {
    font-size: 17px;
  }
  #hero .hero-img {
    text-align: center;
    margin-bottom: 30px;
  }
  #hero .hero-img img {
    width: 70%;
  }
  .hero-stats {
    justify-content: center;
  }
}
@media (max-width: 768px) {
  #hero h1 {
    font-size: 30px;
  }
  #hero {
    margin-top: 70px;
    padding-top: 20px;
  }
}

/* =====================================================
   SECTION GENERAL
   ===================================================== */
section {
  padding: 80px 0;
  overflow: hidden;
}

.section-bg {
  background: rgba(30, 41, 59, 0.4);
}

.section-title {
  text-align: center;
  padding-bottom: 40px;
}

.section-title h2 {
  font-size: 34px;
  font-weight: 800;
  color: var(--text-light);
  position: relative;
  display: inline-block;
  margin-bottom: 0;
}

/* Gradient underline for section titles */
.section-title h2::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  border-radius: 2px;
}
/* Remove the old ::before decoration */
.section-title h2::before {
  display: none;
}

.section-title p {
  margin: 24px auto 0;
  max-width: 600px;
  color: var(--text-muted);
  font-size: 16px;
}

/* =====================================================
   CLIENTS
   ===================================================== */
.clients {
  background: rgba(30, 41, 59, 0.5);
  backdrop-filter: blur(10px);
  padding: 30px 0;
  border-top: 1px solid var(--glass-border);
  border-bottom: 1px solid var(--glass-border);
}

.clients .col-lg-2 {
  display: flex;
  align-items: center;
  justify-content: center;
}

.clients img {
  width: 55%;
  filter: brightness(0) invert(1) opacity(0.3);
  transition: var(--transition);
  padding: 10px 0;
}

.clients img:hover {
  filter: brightness(0) invert(1) opacity(0.85);
  transform: scale(1.1);
}

@media (max-width: 768px) {
  .clients img {
    width: 45%;
  }
}
@media (max-width: 575px) {
  .clients img {
    width: 35%;
  }
}

/* =====================================================
   ABOUT
   ===================================================== */
.about {
  background: transparent;
}

.about .section-title {
  text-align: right;
}
.about .section-title h2::after {
  left: auto;
  right: 0;
  transform: none;
}

.about .content p {
  font-size: 16px;
  color: var(--text-muted);
  line-height: 1.9;
}

.about .content ul {
  list-style: none;
  padding: 0;
  margin: 20px 0;
}

.about .content ul li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 18px;
  margin-bottom: 10px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  color: var(--text-muted);
  transition: var(--transition);
}
.about .content ul li:hover {
  border-color: var(--primary);
  color: var(--text-light);
  transform: translateX(-4px);
}

.about .content ul i {
  font-size: 20px;
  color: var(--primary);
  flex-shrink: 0;
  margin-top: 2px;
}

.about .content .btn-learn-more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 15px;
  font-family: "Cairo", sans-serif;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #fff;
  border: none;
  box-shadow: 0 4px 20px rgba(107, 125, 233, 0.35);
  transition: var(--transition);
  margin-top: 10px;
}
.about .content .btn-learn-more:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(107, 125, 233, 0.5);
  color: #fff;
  text-decoration: none;
}

/* =====================================================
   COUNTS
   ===================================================== */
.counts {
  background: var(--dark-mid);
  border: 1px solid var(--glass-border);
  border-radius: 24px;
  margin: 0 15px;
  padding: 60px 0 !important;
}

.counts .image img {
  filter: drop-shadow(0 10px 40px rgba(107, 125, 233, 0.2));
  max-width: 85%;
}

.counts .content .count-box {
  padding: 24px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  text-align: center;
  transition: var(--transition);
  height: 100%;
}

.counts .content .count-box:hover {
  border-color: var(--primary);
  transform: translateY(-6px);
  box-shadow: 0 12px 40px rgba(107, 125, 233, 0.2);
}

.counts .content .count-box i {
  display: block;
  font-size: 40px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  float: none;
  margin-bottom: 12px;
  line-height: 1;
}

.counts .content .count-box span {
  font-size: 42px;
  font-weight: 900;
  display: block;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-left: 0;
  line-height: 1;
}

.counts .content .count-box p {
  padding: 10px 0 0;
  margin: 0;
  font-size: 14px;
  color: var(--text-muted);
}
.counts .content .count-box p strong {
  display: block;
  color: var(--text-light);
  font-size: 15px;
  margin-bottom: 4px;
}

/* =====================================================
   SERVICES
   ===================================================== */
.services {
  background: transparent;
}

.services .icon-box {
  padding: 36px 30px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  transition: var(--transition);
  height: 100%;
  position: relative;
  overflow: hidden;
}

.services .icon-box::before {
  content: "";
  position: absolute;
  top: -80px;
  right: -80px;
  width: 160px;
  height: 160px;
  background: radial-gradient(
    circle,
    rgba(107, 125, 233, 0.15),
    transparent 70%
  );
  border-radius: 50%;
  transition: var(--transition);
  z-index: 0;
}

.services .icon-box:hover::before {
  width: 300%;
  height: 300%;
  top: -100%;
  right: -100%;
  background: radial-gradient(
    circle,
    rgba(107, 125, 233, 0.12),
    transparent 60%
  );
}

.services .icon-box:hover {
  border-color: var(--primary);
  transform: translateY(-8px);
  box-shadow: 0 20px 60px rgba(107, 125, 233, 0.2);
  background: rgba(107, 125, 233, 0.05);
}

.services .icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  background: linear-gradient(
    135deg,
    rgba(107, 125, 233, 0.15),
    rgba(139, 92, 246, 0.15)
  );
  border: 1px solid rgba(107, 125, 233, 0.3);
  position: relative;
  z-index: 1;
  transition: var(--transition);
}

.services .icon-box:hover .icon {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border-color: transparent;
  box-shadow: 0 8px 25px rgba(107, 125, 233, 0.4);
}

.services .icon i {
  font-size: 30px;
  color: var(--primary);
  transition: var(--transition);
}

.services .icon-box:hover .icon i {
  color: #fff;
}

.services .title {
  font-weight: 700;
  margin-bottom: 12px;
  font-size: 18px;
  position: relative;
  z-index: 1;
}
.services .title a {
  color: var(--text-light);
}
.services .icon-box:hover .title a {
  color: var(--text-light);
}

.services .description {
  font-size: 15px;
  line-height: 1.8;
  color: var(--text-muted);
  margin-bottom: 0;
  position: relative;
  z-index: 1;
}
.services .icon-box:hover .description {
  color: var(--text-muted);
}

/* =====================================================
/* Products cards new design from mockup */
.more-services .card {
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
  width: 100%;
  background: var(--glass-bg); /* Use solid color in light mode for the mockup look */
  display: flex;
  flex-direction: column;
  transition: var(--transition);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.more-services .card:hover {
  transform: translateY(-8px);
  border-color: var(--primary);
  box-shadow: 0 20px 60px rgba(107, 125, 233, 0.25);
}

/* Image wrapper and image */
.more-services .card-img-wrapper {
  width: 100%;
  height: 200px;
  overflow: hidden;
  position: relative;
  background: rgba(255, 255, 255, 0.05); /* very light background behind logo */
  display: flex;
  align-items: center;
  justify-content: center;
}

.more-services .card-img-top {
  max-width: 60%;
  max-height: 60%;
  object-fit: contain;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.more-services .card:hover .card-img-top {
  transform: scale(1.08); /* slight zoom on hover */
}

.more-services .card-body {
  position: relative;
  z-index: 2;
  padding: 20px 24px; /* padding inside card text area */
  width: 100%;
  display: flex;
  flex-direction: column;
  flex-grow: 1; 
  background: var(--dark-mid); /* Text area background */
  text-align: center; /* Center text as per mockup */
}

.more-services .card-title {
  font-weight: 800;
  font-size: 20px;
  margin-bottom: 8px;
  text-align: center;
  line-height: 1.4;
}
.more-services .card-title a {
  color: var(--text-light);
  transition: var(--transition);
}
.more-services .card:hover .card-title a {
  color: var(--primary);
}

.more-services .card-text {
  font-size: 14px;
  color: var(--text-muted);
  text-align: center;
  line-height: 1.6;
  flex-grow: 1; /* push button to bottom if texts vary in height */
  margin-bottom: 24px;
}

/* New clear action button */
.more-services .read-more {
  display: flex;
  justify-content: center;
  width: 100%;
}

.more-services .read-more a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: #fff;
  font-weight: 600;
  font-size: 15px;
  background: linear-gradient(90deg, #2563eb, #8b5cf6); /* Gradient from blue to purple as per mockup */
  padding: 12px 24px;
  border-radius: 50px;
  transition: var(--transition);
  box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3);
  text-decoration: none;
  font-family: inherit;
  width: 100%; /* Full width button in card */
}

.more-services .read-more a:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(37, 99, 235, 0.5);
  background: linear-gradient(90deg, #1d4ed8, #7c3aed);
  gap: 12px; /* move arrow slightly */
  color: #fff;
}

/* =====================================================
   FEATURES
   ===================================================== */
.features {
  background: transparent;
}

.features .icon-box {
  padding: 22px;
  border-radius: var(--radius-md);
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  display: flex;
  align-items: center;
  gap: 16px;
  transition: var(--transition);
}

.features .icon-box:hover {
  border-color: var(--primary);
  transform: translateY(-4px) translateX(-4px);
  box-shadow: 0 10px 30px rgba(107, 125, 233, 0.15);
}

.features .icon-box i {
  font-size: 28px;
  flex-shrink: 0;
  line-height: 1;
  transition: var(--transition);
}

.features .icon-box:hover i {
  transform: scale(1.2) rotate(-5deg);
}

.features .icon-box h3 {
  font-size: 15px;
  font-weight: 600;
  margin: 0;
}
.features .icon-box h3 a {
  color: var(--text-light);
  transition: var(--transition);
}
.features .icon-box:hover h3 a {
  color: var(--primary);
}

/* =====================================================
   FAQ
   ===================================================== */
.faq {
  background: transparent;
}

.faq .faq-item {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 24px 28px;
  margin-bottom: 16px;
  transition: var(--transition);
}

.faq .faq-item:hover {
  border-color: var(--primary);
  box-shadow: 0 8px 30px rgba(107, 125, 233, 0.15);
}

.faq .faq-item i {
  font-size: 26px;
  color: var(--primary);
  flex-shrink: 0;
}

.faq .faq-item h4 {
  font-size: 17px;
  font-weight: 700;
  margin: 0;
  color: var(--text-light);
}

.faq .faq-item p {
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.8;
  margin: 0;
}

/* Remove old faq-item row margin */
.faq .row.faq-item {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-bottom: 16px;
  margin-right: 0;
  margin-left: 0;
  transition: var(--transition);
}
.faq .row.faq-item:hover {
  border-color: var(--primary);
  box-shadow: 0 8px 30px rgba(107, 125, 233, 0.15);
}

/* =====================================================
   CONTACT
   ===================================================== */
.contact {
  background: transparent;
}

.contact .contact-about {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 30px;
  height: 100%;
}
.contact .contact-about h3 {
  font-size: 24px;
  font-weight: 800;
  margin-bottom: 16px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.contact .contact-about p {
  color: var(--text-muted);
  line-height: 1.8;
}

.contact .social-links {
  display: flex;
  gap: 10px;
  margin-top: 20px;
}
.contact .social-links a {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  color: var(--text-muted);
  font-size: 16px;
  transition: var(--transition);
}
.contact .social-links a:hover {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border-color: transparent;
  color: #fff;
  transform: translateY(-3px);
}

.contact .info {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 28px;
  height: 100%;
}
.contact .info > div {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 12px 0;
  border-bottom: 1px solid var(--glass-border);
}
.contact .info > div:last-child {
  border-bottom: none;
}
.contact .info i {
  font-size: 20px;
  color: var(--primary);
  flex-shrink: 0;
  margin-top: 2px;
}
.contact .info p {
  color: var(--text-muted);
  margin: 0;
  font-size: 15px;
}

/* Contact Form */
.contact .php-email-form {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 30px;
}

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

.contact .php-email-form .form-control {
  background: var(--dark-mid);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  font-size: 15px;
  color: var(--text-light);
  font-family: "Cairo", sans-serif;
  transition: var(--transition);
}
.contact .php-email-form .form-control::placeholder {
  color: var(--text-muted);
}
.contact .php-email-form .form-control:focus {
  background: var(--dark-surface);
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(107, 125, 233, 0.15);
  color: var(--text-light);
  outline: none;
}

.contact .php-email-form button[type="submit"] {
  width: 100%;
  padding: 14px;
  border: none;
  border-radius: 50px;
  font-size: 16px;
  font-weight: 700;
  font-family: "Cairo", sans-serif;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #fff;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 4px 20px rgba(107, 125, 233, 0.35);
}
.contact .php-email-form button[type="submit"]:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(107, 125, 233, 0.55);
}

.contact .php-email-form .loading,
.contact .php-email-form .error-message,
.contact .php-email-form .sent-message {
  border-radius: var(--radius-sm);
  padding: 10px 16px;
  font-size: 14px;
}
.contact .php-email-form .loading {
  color: var(--text-muted);
}
.contact .php-email-form .error-message {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #fca5a5;
}
.contact .php-email-form .sent-message {
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.3);
  color: #86efac;
}

/* =====================================================
   FOOTER
   ===================================================== */
#footer {
  background: var(--dark-mid);
  border-top: 1px solid var(--glass-border);
  padding: 28px 0;
}

#footer .copyright {
  text-align: center;
  color: var(--text-muted);
  font-size: 14px;
}
#footer .copyright strong {
  color: var(--primary);
}

/* =====================================================
   COMPANY NAME CLASSES
   ===================================================== */
.company-name-title {
  background: linear-gradient(
    135deg,
    var(--primary),
    var(--accent),
    var(--secondary)
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.company-name-subtitle {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* =====================================================
   FLOATING PARTICLES via CSS
   ===================================================== */
.particle {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  opacity: 0.4;
  animation: floatParticle 6s ease-in-out infinite;
}
@keyframes floatParticle {
  0%,
  100% {
    transform: translateY(0) rotate(0deg);
    opacity: 0.4;
  }
  50% {
    transform: translateY(-20px) rotate(180deg);
    opacity: 0.8;
  }
}

/* =====================================================
   AOS ANIMATIONS — Dark mode override
   ===================================================== */
[data-aos] {
  color: inherit !important;
}

/* =====================================================
   RESPONSIVE TWEAKS
   ===================================================== */
@media (max-width: 768px) {
  .section-title h2 {
    font-size: 26px;
  }
  section {
    padding: 60px 0;
  }
  .counts {
    margin: 0 8px;
  }
  .hero-stat-item .stat-number {
    font-size: 22px;
  }
  .faq .row.faq-item {
    padding: 18px;
  }
}

@media (max-width: 1024px) {
  .counts .image {
    text-align: center;
  }
  .counts .image img {
    max-width: 65%;
  }
}
@media (max-width: 667px) {
  .counts .image img {
    max-width: 90%;
  }
}

/* =====================================================
   UTILITY
   ===================================================== */
.text-gradient {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* =====================================================
   THEME TOGGLE BUTTON
   ===================================================== */
#theme-toggle {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 50%;
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-muted);
  font-size: 17px;
  margin-right: 10px;
  transition: var(--transition);
  flex-shrink: 0;
}
#theme-toggle:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: rgba(107, 125, 233, 0.1);
  transform: rotate(20deg) scale(1.1);
}
/* ensure toggle shows on mobile too */
@media (max-width: 991px) {
  #theme-toggle { display: flex; }
}

/* =====================================================
   🌞 LIGHT MODE  (body.light-mode)
   ===================================================== */
body.light-mode {
  --dark:         #F0F6FF;
  --dark-mid:     #E2EBF8;
  --dark-surface: #D0DDF3;
  --glass-bg:     rgba(255, 255, 255, 0.7);
  --glass-border: rgba(107, 125, 233, 0.2);
  --glass-shadow: 0 8px 32px rgba(107, 125, 233, 0.1);
  --text-light:   #0F172A;
  --text-muted:   #475569;
  background: var(--dark);
  color: var(--text-light);
}

/* Body background in light mode */
body.light-mode::before {
  background:
    radial-gradient(ellipse 80% 50% at 20% 20%, rgba(107, 125, 233, 0.08) 0%, transparent 60%),
    radial-gradient(ellipse 60% 40% at 80% 80%, rgba(139, 92, 246, 0.06) 0%, transparent 60%);
}

/* Header light */
body.light-mode #header {
  background: rgba(240, 246, 255, 0.85);
  border-bottom-color: rgba(107, 125, 233, 0.15);
}
body.light-mode #header.header-scrolled {
  background: rgba(240, 246, 255, 0.96);
  box-shadow: 0 4px 30px rgba(107, 125, 233, 0.12);
}

/* Navbar items light */
body.light-mode .navbar a,
body.light-mode .navbar a:focus { color: #475569; }
body.light-mode .navbar a:hover,
body.light-mode .navbar .active,
body.light-mode .navbar li:hover > a {
  color: #0F172A;
  background: rgba(107, 125, 233, 0.08);
}
body.light-mode .navbar .dropdown ul {
  background: #fff;
  border-color: rgba(107, 125, 233, 0.2);
  box-shadow: 0 8px 30px rgba(107, 125, 233, 0.15);
}
body.light-mode .navbar .dropdown ul a { color: #475569; }
body.light-mode .navbar .dropdown ul a:hover { color: var(--primary); background: rgba(14,165,233,0.06); }

/* Headings light */
body.light-mode h1,
body.light-mode h2,
body.light-mode h3,
body.light-mode h4,
body.light-mode h5,
body.light-mode h6 { color:  #0F172A; }

/* Hero light */
body.light-mode #hero {
  background: linear-gradient(135deg, #EFF6FF 0%, #E0EFFE 50%, #F0F6FF 100%);
}
body.light-mode #hero h1 { color: #0F172A; }
body.light-mode #hero h2 { color: #475569; }
body.light-mode #hero::before {
  background: radial-gradient(circle, rgba(107, 125, 233, 0.12) 0%, transparent 70%);
}
body.light-mode #hero::after {
  background: radial-gradient(circle, rgba(139, 92, 246, 0.10) 0%, transparent 70%);
}
body.light-mode #hero .hero-grid {
  background-image:
    linear-gradient(rgba(107, 125, 233, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(107, 125, 233, 0.06) 1px, transparent 1px);
}
body.light-mode .hero-stat-item {
  background: rgba(255,255,255,0.8);
  border-color: rgba(14,165,233,0.2);
}

/* Clients light */
body.light-mode .clients {
  background: rgba(224, 239, 254, 0.5);
  border-color: rgba(107, 125, 233, 0.15);
}
body.light-mode .clients img {
  filter: none;
  opacity: 0.6;
}
body.light-mode .clients img:hover { opacity: 1; }

/* About light */
body.light-mode .about .content ul li {
  background: rgba(255,255,255,0.75);
  border-color: rgba(14,165,233,0.2);
  color: #475569;
}
body.light-mode .about .content p { color: #475569; }

/* Counts light */
body.light-mode .counts {
  background: #fff;
  border-color: rgba(14,165,233,0.2);
}
body.light-mode .counts .content .count-box {
  background: rgba(240,246,255,0.85);
  border-color: rgba(14,165,233,0.2);
}

/* Services / icon boxes light */
body.light-mode .services .icon-box,
body.light-mode .features .icon-box {
  background: rgba(255,255,255,0.85);
  border-color: rgba(14,165,233,0.18);
}
body.light-mode .services .description,
body.light-mode .features .icon-box h3 a { color: #475569; }
body.light-mode .services .title a { color: #0F172A; }

/* Products cards light */
body.light-mode .more-services .card {
  background: rgba(255, 255, 255, 0.85);
  border-color: rgba(107, 125, 233, 0.2);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}
body.light-mode .more-services .card-img-wrapper {
  border-bottom-color: rgba(107, 125, 233, 0.15);
}
body.light-mode .more-services .card-title a { color: #0F172A; }
body.light-mode .more-services .card:hover .card-title a { color: var(--primary); }
body.light-mode .more-services .card-text { color: #475569; }

/* FAQ light */
body.light-mode .faq .row.faq-item {
  background: rgba(255,255,255,0.85);
  border-color: rgba(14,165,233,0.18);
}
body.light-mode .faq .faq-item h4 { color: #0F172A; }
body.light-mode .faq .faq-item p { color: #475569; }

/* Contact light */
body.light-mode .contact .contact-about,
body.light-mode .contact .info,
body.light-mode .contact .php-email-form {
  background: rgba(255,255,255,0.85);
  border-color: rgba(14,165,233,0.18);
}
body.light-mode .contact .info > div { border-bottom-color: rgba(14,165,233,0.15); }
body.light-mode .contact .info p,
body.light-mode .contact .contact-about p { color: #475569; }
body.light-mode .contact .php-email-form .form-control {
  background: #F8FAFF;
  border-color: rgba(14,165,233,0.25);
  color: #0F172A;
}
body.light-mode .contact .php-email-form .form-control::placeholder { color: #94a3b8; }
body.light-mode .contact .php-email-form .form-control:focus {
  background: #fff;
  border-color: var(--primary);
}

/* Social links light */
body.light-mode .contact .social-links a {
  background: rgba(240,246,255,0.8);
  border-color: rgba(14,165,233,0.2);
  color: #475569;
}

/* Footer light */
body.light-mode #footer {
  background: #E2EBF8;
  border-top-color: rgba(14,165,233,0.15);
}
body.light-mode #footer .copyright { color: #475569; }

/* Section titles light */
body.light-mode .section-title h2 { color: #0F172A; }
body.light-mode .section-title p { color: #475569; }

/* Scrollbar light */
body.light-mode ::-webkit-scrollbar-track { background: #EFF6FF; }

/* Mobile nav light */
body.light-mode .navbar-mobile {
  background: rgba(240,246,255,0.97);
}
body.light-mode .navbar-mobile ul {
  background: #fff;
  border-color: rgba(14,165,233,0.2);
}
body.light-mode .navbar-mobile a { color: #475569; }
body.light-mode .navbar-mobile a:hover { color: var(--primary); }

/* Theme toggle button light */
body.light-mode #theme-toggle {
  background: rgba(255,255,255,0.8);
  border-color: rgba(14,165,233,0.3);
  color: #475569;
}

/* Smooth transition for all theme changes */
body,
body * {
  transition:
    background-color 0.4s ease,
    border-color 0.4s ease,
    color 0.3s ease,
    box-shadow 0.4s ease !important;
}
/* but keep transform animations fast */
body *:hover { transition-duration: 0.35s !important; }

/* =====================================================
   THEME TOGGLE
   ===================================================== */
#theme-toggle {
  position: absolute !important;
  left: 30px;
  top: 50%;
  transform: translateY(-50%);
  margin: 0 !important;
  z-index: 1000;
  background: var(--glass-bg, rgba(30, 41, 59, 0.5));
  border: 1px solid var(--glass-border, rgba(255, 255, 255, 0.1));
  color: var(--primary, #6b7de9);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

#theme-toggle i {
  font-size: 20px;
}

#theme-toggle:hover {
  background: var(--primary, #6b7de9);
  color: #fff;
  border-color: var(--primary, #6b7de9);
  box-shadow: 0 6px 20px rgba(107, 125, 233, 0.4);
  margin: 0 !important;
  transform: translateY(-50%);
}

@media (max-width: 991px) {
  #theme-toggle {
    left: 60px; /* leave space for mobile menu toggle if it's on the left, but mobile-nav-toggle is usually on left in RTL? let me check */
  }
}

/* =====================================================
   WHATSAPP FLOATING BUTTON
   ===================================================== */
.whatsapp-btn {
  position: fixed;
  bottom: 25px;
  left: 25px;
  width: 50px;
  height: 50px;
  background-color: #25d366;
  color: #fff !important;
  border-radius: 50%;
  display: flex !important;
  align-items: center;
  justify-content: center;
  font-size: 25px;
  box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
  z-index: 999;
  transition: all 0.3s ease;
}

.whatsapp-btn:hover {
  background-color: #128c7e;
  transform: scale(1.1) translateY(-5px);
  box-shadow: 0 8px 25px rgba(37, 211, 102, 0.6);
  color: #fff !important;
}

/* Mobile adjustments */
@media (max-width: 768px) {
  .whatsapp-btn {
    bottom: 20px;
    left: 20px;
    width: 50px;
    height: 50px;
    font-size: 28px;
  }
}
