/* ═══════════════════════════════════════════════
   SMART TOOLS — MAIN STYLESHEET
   الوسائل الذكية
═══════════════════════════════════════════════ */

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

:root {
  --teal:       #2aacac;
  --teal-light: #4ec0c0;
  --teal-dark:  #0a3d4a;
  --teal-bg:    #e8f7f7;
  --teal-bg2:   #d0eeee;
  --white:      #ffffff;
  --gray-light: #f5fafa;
  --gray-mid:   #e4f0f0;
  --text-dark:  #1a2e3b;
  --text-mid:   #2d4a55;
  --text-soft:  #4a6470;
  --text-muted: #7a9aaa;
  --shadow-sm:  0 2px 12px rgba(10,61,74,0.07);
  --shadow-md:  0 6px 28px rgba(10,61,74,0.11);
  --shadow-lg:  0 16px 56px rgba(10,61,74,0.15);
  --radius:     12px;
  --radius-lg:  20px;
}

body {
  font-family: 'Cairo', sans-serif;
  background: var(--white);
  color: var(--text-dark);
  overflow-x: hidden;
  direction: rtl;
}

/* ── CANVAS BG ── */
#bg-canvas {
  position: fixed; top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: 0; pointer-events: none;
}

/* ══════════════════════════════════════
   SPLASH SCREEN
══════════════════════════════════════ */
#splash {
  position: fixed; inset: 0; z-index: 9999;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  background: var(--teal-dark);
  transition: opacity 0.7s ease, visibility 0.7s ease;
}
#splash.hidden { opacity: 0; visibility: hidden; pointer-events: none; }

.splash-rings {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.splash-ring {
  position: absolute; border-radius: 50%;
  border: 1px solid rgba(78,192,192,0.12);
  animation: ringPulse 3s ease-in-out infinite;
}
.splash-ring:nth-child(1) { width: 200px; height: 200px; animation-delay: 0s; }
.splash-ring:nth-child(2) { width: 350px; height: 350px; animation-delay: 0.4s; }
.splash-ring:nth-child(3) { width: 500px; height: 500px; animation-delay: 0.8s; }
.splash-ring:nth-child(4) { width: 680px; height: 680px; animation-delay: 1.2s; border-color: rgba(78,192,192,0.06); }

@keyframes ringPulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50%       { transform: scale(1.05); opacity: 0.6; }
}

/* floating particles */
.splash-particle {
  position: absolute; border-radius: 50%;
  background: rgba(78,192,192,0.15);
  animation: particleRise linear infinite;
}

@keyframes particleRise {
  0%   { transform: translateY(110vh) scale(0); opacity: 0; }
  10%  { opacity: 1; }
  90%  { opacity: 0.6; }
  100% { transform: translateY(-10vh) scale(1); opacity: 0; }
}

.splash-content {
  position: relative; z-index: 2;
  display: flex; flex-direction: column;
  align-items: center; gap: 28px;
}

.splash-logo {
  width: 100px;
  background: transparent;
  filter: drop-shadow(0 0 24px rgba(78,192,192,0.5));
  animation: splashLogoIn 0.9s cubic-bezier(0.34,1.56,0.64,1) both;
}

@keyframes splashLogoIn {
  from { opacity: 0; transform: scale(0.6); }
  to   { opacity: 1; transform: scale(1); }
}

.splash-progress-track {
  width: 220px; height: 3px;
  background: rgba(255,255,255,0.12);
  border-radius: 10px; overflow: hidden;
  animation: fadeInUp 0.5s 0.7s ease both;
}

.splash-progress-bar {
  height: 100%; width: 0;
  background: linear-gradient(90deg, var(--teal-light), #7ee8e8);
  border-radius: 10px;
  animation: progressFill 4.2s 0.8s ease forwards;
}

@keyframes progressFill { to { width: 100%; } }

.splash-tagline {
  font-size: 13px; letter-spacing: 4px;
  color: rgba(255,255,255,0.4);
  font-weight: 300;
  animation: fadeInUp 0.5s 0.9s ease both;
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: none; }
}

/* ══════════════════════════════════════
   NAVBAR
══════════════════════════════════════ */
nav {
  position: fixed; top: 0; width: 100%; z-index: 500;
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(42,172,172,0.12);
  height: 66px;
  display: flex; align-items: center;
  padding: 0 5%; gap: 24px;
  box-shadow: 0 2px 18px rgba(10,61,74,0.06);
  transition: box-shadow 0.3s;
}
nav.scrolled { box-shadow: var(--shadow-md); }

.nav-logo img { height: 65px; display: block; }

.nav-spacer { flex: 1; }

.nav-links {
  display: flex; align-items: center;
  gap: 28px; list-style: none;
}
.nav-links a {
  font-size: 14px; font-weight: 600;
  color: var(--text-dark); text-decoration: none;
  transition: color 0.2s; position: relative;
}
.nav-links a::after {
  content: ''; position: absolute; bottom: -3px; right: 0;
  width: 0; height: 2px; background: var(--teal);
  transition: width 0.3s;
}
.nav-links a:hover { color: var(--teal); }
.nav-links a:hover::after { width: 100%; }

.nav-lang {
  display: flex; align-items: center; gap: 5px;
  font-size: 13px; font-weight: 600;
  color: var(--teal); cursor: pointer;
  border: 1px solid rgba(42,172,172,0.3);
  padding: 5px 12px; border-radius: 20px;
  transition: all 0.2s;
}
.nav-lang:hover { background: var(--teal-bg); }

/* ══════════════════════════════════════
   HERO
══════════════════════════════════════ */
.hero {
  position: relative; z-index: 1;
  min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  padding: 100px 5% 60px;
  overflow: hidden;
}

.hero-bg-gradient {
  position: absolute; inset: 0;
  background: linear-gradient(160deg, #f0fafa 0%, #e0f2f2 40%, #ffffff 100%);
  z-index: 0;
}

/* animated teal waves */
.hero-wave {
  position: absolute; bottom: 0; left: 0; right: 0;
  height: 120px; z-index: 1;
}

/* blobs */
.blob {
  position: absolute; border-radius: 50%;
  filter: blur(70px); pointer-events: none;
  animation: blobFloat ease-in-out infinite;
}
.blob-1 { width: 420px; height: 420px; background: rgba(78,192,192,0.12); top: -60px; right: -80px; animation-duration: 9s; }
.blob-2 { width: 320px; height: 320px; background: rgba(42,172,172,0.08); bottom: -40px; left: -60px; animation-duration: 12s; animation-delay: -4s; }
.blob-3 { width: 180px; height: 180px; background: rgba(78,192,192,0.1); top: 45%; right: 15%; animation-duration: 7s; animation-delay: -2s; }

@keyframes blobFloat {
  0%, 100% { transform: translateY(0) scale(1); }
  50%       { transform: translateY(-28px) scale(1.04); }
}

/* hero canvas — خلفية متحركة خفية */
#hero-canvas {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  z-index: 1; pointer-events: none;
}

.hero-inner {
  position: relative; z-index: 2;
  text-align: center; max-width: 720px; margin: 0 auto;
}

.hero-title {
  font-size: 25px;
  font-weight: 900; color: var(--teal-dark);
  line-height: 1.2; margin-bottom: 6px;
  animation: heroFadeIn 0.8s 0.1s ease both;
}

.hero-subtitle {
  font-size: clamp(15px, 2.2vw, 20px);
  color: var(--teal); font-weight: 700;
  margin-bottom: 20px;
  animation: heroFadeIn 0.8s 0.2s ease both;
}

.hero-desc {
  font-size: 15px; line-height: 1.95;
  color: var(--text-soft);
  max-width: 600px; margin: 0 auto 44px;
  animation: heroFadeIn 0.8s 0.3s ease both;
}

.hero-btn {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--teal);
  color: #fff; font-family: 'Cairo', sans-serif;
  font-size: 15px; font-weight: 700;
  padding: 14px 36px; border-radius: 8px; border: none;
  text-decoration: none; cursor: pointer;
  box-shadow: 0 8px 24px rgba(42,172,172,0.35);
  transition: all 0.25s;
  animation: heroFadeIn 0.8s 0.4s ease both;
}
.hero-btn:hover { background: var(--teal-dark); transform: translateY(-2px); box-shadow: 0 12px 32px rgba(42,172,172,0.45); }

@keyframes heroFadeIn {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: none; }
}

/* Service cards in hero */
.hero-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px; margin-top: 56px;
  animation: heroFadeIn 0.8s 0.5s ease both;
}

.hero-card {
  background: rgba(255,255,255,0.85);
  border: 1px solid rgba(42,172,172,0.15);
  border-radius: var(--radius);
  padding: 28px 20px; text-align: center;
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-sm);
  transition: all 0.3s; cursor: default;
}
.hero-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: rgba(42,172,172,0.35);
}
.hero-card-icon {
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--teal-bg); margin: 0 auto 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 26px;
  transition: transform 0.3s;
}
.hero-card:hover .hero-card-icon { transform: scale(1.12) rotate(5deg); }
.hero-card-title { font-size: 15px; font-weight: 700; color: var(--teal-dark); margin-bottom: 6px; }
.hero-card-desc  { font-size: 13px; color: var(--text-soft); line-height: 1.7; }

/* ══════════════════════════════════════
   SECTION BASE
══════════════════════════════════════ */
section { position: relative; z-index: 1; padding: 80px 6%; }

.sec-label {
  display: block; font-size: 12px; font-weight: 700;
  letter-spacing: 3px; text-transform: uppercase;
  color: var(--teal); margin-bottom: 10px;
}

.sec-title {
  font-size: clamp(26px, 3.5vw, 40px);
  font-weight: 900; color: var(--teal-dark);
  line-height: 1.25; margin-bottom: 14px;
}

.sec-desc {
  font-size: 15px; line-height: 1.9;
  color: var(--text-soft); max-width: 620px;
}

.sec-center { text-align: center; }
.sec-center .sec-desc { margin: 0 auto; }

.reveal {
  opacity: 0; transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.on { opacity: 1; transform: none; }

/* ══════════════════════════════════════
   ABOUT — نبذة عنا
══════════════════════════════════════ */
#about { background: #fff; }

.about-grid {
  display: grid; grid-template-columns: 1.1fr 1fr;
  gap: 64px; align-items: start; margin-top: 16px;
}

.about-text-block { }

.about-vision {
  display: flex; gap: 16px; margin-bottom: 28px;
  padding: 22px; border-radius: var(--radius);
  background: var(--teal-bg);
  border: 1px solid rgba(42,172,172,0.15);
  transition: box-shadow 0.3s;
}
.about-vision:hover { box-shadow: var(--shadow-sm); }

.about-vision-icon {
  width: 48px; height: 48px; flex-shrink: 0;
  border-radius: 10px; background: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; box-shadow: var(--shadow-sm);
}
.about-vision-title { font-size: 16px; font-weight: 700; color: var(--teal-dark); margin-bottom: 8px; }
.about-vision-list { list-style: none; }
.about-vision-list li {
  font-size: 13px; color: var(--text-soft);
  padding: 3px 0; display: flex; align-items: flex-start; gap: 8px;
}
.about-vision-list li::before {
  content: '✓'; color: var(--teal); font-weight: 700;
  flex-shrink: 0; margin-top: 1px;
}

/* Values — قيمنا */
.values-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.value-card {
  background: var(--gray-light);
  border: 1px solid rgba(42,172,172,0.1);
  border-radius: var(--radius);
  padding: 20px 16px; text-align: center;
  transition: all 0.3s;
}
.value-card:hover {
  background: var(--teal-bg);
  border-color: rgba(42,172,172,0.3);
  transform: translateY(-4px);
  box-shadow: var(--shadow-sm);
}
.value-icon { font-size: 28px; margin-bottom: 10px; }
.value-title { font-size: 14px; font-weight: 700; color: var(--teal-dark); margin-bottom: 5px; }
.value-desc { font-size: 12px; color: var(--text-soft); line-height: 1.65; }

/* ══════════════════════════════════════
   SERVICES — خدماتنا
══════════════════════════════════════ */
#services { background: var(--gray-light); }

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px; margin-top: 44px;
}

.service-card {
  background: var(--white);
  border: 1px solid rgba(42,172,172,0.12);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  transition: all 0.3s; position: relative; overflow: hidden;
}
.service-card::before {
  content: ''; position: absolute;
  top: 0; right: 0; left: 0; height: 3px;
  background: linear-gradient(90deg, var(--teal-light), var(--teal-dark));
  transform: scaleX(0); transform-origin: right;
  transition: transform 0.35s;
}
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.service-card:hover::before { transform: scaleX(1); }

.service-icon {
  width: 60px; height: 60px; border-radius: 14px;
  background: var(--teal-bg);
  display: flex; align-items: center; justify-content: center;
  font-size: 28px; margin-bottom: 18px;
  transition: transform 0.3s;
}
.service-card:hover .service-icon { transform: scale(1.1) rotate(-5deg); }

.service-title { font-size: 17px; font-weight: 700; color: var(--teal-dark); margin-bottom: 10px; }
.service-desc  { font-size: 13.5px; color: var(--text-soft); line-height: 1.8; margin-bottom: 16px; }
.service-list  { list-style: none; }
.service-list li {
  font-size: 13px; color: var(--text-soft);
  padding: 4px 0; display: flex; align-items: center; gap: 8px;
  border-bottom: 1px dashed rgba(42,172,172,0.15);
}
.service-list li:last-child { border: none; }
.service-list li::before { content: '◈'; color: var(--teal); font-size: 10px; flex-shrink: 0; }

/* ══════════════════════════════════════
   WORKS — أعمالنا
══════════════════════════════════════ */
#works { background: #fff; }

.works-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px; margin-top: 44px;
}

.work-card {
  border-radius: var(--radius-lg); overflow: hidden;
  border: 1px solid rgba(42,172,172,0.12);
  box-shadow: var(--shadow-sm);
  transition: all 0.3s;
  background: #fff;
}
.work-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: rgba(42,172,172,0.35); }

.work-thumb {
  height: 180px;
  display: flex; align-items: center; justify-content: center;
  position: relative; overflow: hidden;
}
.work-thumb-rwwi {
  background: linear-gradient(135deg, #0a3d4a 0%, #0d5566 50%, #0a3d4a 100%);
}
.work-thumb-soon {
  background: linear-gradient(135deg, #e8f7f7 0%, #d0eeee 100%);
}

/* RWWI chart animation */
.rwwi-visual { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.rwwi-bars { display: flex; align-items: flex-end; gap: 6px; height: 80px; }
.rbar {
  width: 12px; border-radius: 4px 4px 0 0;
  background: linear-gradient(to top, rgba(78,192,192,0.4), #4ec0c0);
  animation: barPulse 2s ease-in-out infinite alternate;
}
.rbar:nth-child(1){height:38%;animation-delay:0s}
.rbar:nth-child(2){height:70%;animation-delay:0.1s}
.rbar:nth-child(3){height:52%;animation-delay:0.2s}
.rbar:nth-child(4){height:90%;animation-delay:0.3s}
.rbar:nth-child(5){height:44%;animation-delay:0.4s}
.rbar:nth-child(6){height:78%;animation-delay:0.5s}
.rbar:nth-child(7){height:60%;animation-delay:0.6s}
@keyframes barPulse { from{opacity:0.5} to{opacity:1} }

.rwwi-badge {
  font-size: 11px; color: #7ee8e8; font-weight: 700;
  letter-spacing: 1.5px;
  background: rgba(78,192,192,0.15);
  border: 1px solid rgba(78,192,192,0.25);
  padding: 4px 14px; border-radius: 20px;
}

.soon-icon-wrap {
  width: 64px; height: 64px; border-radius: 16px;
  background: #fff; border: 1.5px dashed rgba(42,172,172,0.35);
  display: flex; align-items: center; justify-content: center;
  font-size: 28px;
  animation: floatIcon 4s ease-in-out infinite;
}
@keyframes floatIcon { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-10px)} }

.soon-label {
  font-size: 11px; font-weight: 700; letter-spacing: 2.5px;
  color: var(--text-muted);
  background: var(--white);
  border: 1px solid var(--gray-mid);
  padding: 4px 14px; border-radius: 20px;
}

.work-info { padding: 20px 22px; }

.work-badge {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 11px; font-weight: 700; letter-spacing: 1px;
  padding: 4px 12px; border-radius: 20px; margin-bottom: 10px;
}
.badge-live { background: rgba(34,197,94,0.1); color: #16a34a; border: 1px solid rgba(34,197,94,0.2); }
.live-dot { width: 6px; height: 6px; border-radius: 50%; background: #22c55e; animation: blobFloat 1.5s ease-in-out infinite; }
.badge-coming { background: var(--teal-bg); color: var(--teal); border: 1px solid rgba(42,172,172,0.2); }

.work-title { font-size: 17px; font-weight: 700; color: var(--teal-dark); margin-bottom: 8px; }
.work-desc  { font-size: 13px; color: var(--text-soft); line-height: 1.75; margin-bottom: 14px; }
.work-tags  { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.work-tag   { font-size: 11px; padding: 3px 10px; border-radius: 20px; background: var(--teal-bg); color: var(--teal); border: 1px solid rgba(42,172,172,0.2); }
.work-link  { display: inline-flex; align-items: center; gap: 6px; color: var(--teal); font-size: 14px; font-weight: 700; text-decoration: none; transition: gap 0.2s; }
.work-link:hover { gap: 12px; }

/* ══════════════════════════════════════
   CONTACT — تواصل معنا
══════════════════════════════════════ */
#contact { background: var(--teal-dark); text-align: center; }
#contact .sec-title { color: #fff; }
#contact .sec-desc  { color: rgba(255,255,255,0.6); margin: 0 auto 48px; }
#contact .sec-label { color: var(--teal-light); }

.contact-cards {
  display: flex; justify-content: center; flex-wrap: wrap;
  gap: 20px; margin-bottom: 44px;
}
.contact-card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-lg); padding: 28px 32px;
  text-align: center; transition: all 0.3s; min-width: 170px;
}
.contact-card:hover { background: rgba(78,192,192,0.1); border-color: rgba(78,192,192,0.3); transform: translateY(-4px); }
.contact-icon { font-size: 30px; margin-bottom: 12px; }
.contact-label { font-size: 12px; color: rgba(255,255,255,0.4); margin-bottom: 6px; }
.contact-val { font-size: 15px; font-weight: 600; color: #fff; }
.contact-val a { color: #fff; text-decoration: none; }
.contact-val a:hover { color: var(--teal-light); }

.contact-btn {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--teal-light); color: var(--teal-dark);
  font-family: 'Cairo', sans-serif; font-size: 16px; font-weight: 700;
  padding: 16px 44px; border-radius: 8px; border: none;
  text-decoration: none; cursor: pointer;
  box-shadow: 0 10px 30px rgba(78,192,192,0.3);
  transition: all 0.25s;
}
.contact-btn:hover { background: #fff; transform: translateY(-3px); box-shadow: 0 16px 40px rgba(78,192,192,0.4); }

/* ══════════════════════════════════════
   FOOTER
══════════════════════════════════════ */
footer {
  background: #071f27;
  border-top: 1px solid rgba(78,192,192,0.12);
  padding: 28px 6%;
  display: flex; align-items: center;
  justify-content: space-between; flex-wrap: wrap; gap: 14px;
}
.footer-copy { font-size: 13px; color: rgba(255,255,255,0.3); }
.footer-links { display: flex; gap: 22px; }
.footer-links a { font-size: 13px; color: rgba(255,255,255,0.4); text-decoration: none; transition: color 0.2s; }
.footer-links a:hover { color: var(--teal-light); }

/* ══════════════════════════════════════
   DIVIDER
══════════════════════════════════════ */
.teal-div { height: 2px; background: linear-gradient(to left, transparent, var(--teal-light), transparent); }

/* ══════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════ */
@media(max-width: 960px) {
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .services-grid, .works-grid { grid-template-columns: 1fr 1fr; }
  .hero-cards { grid-template-columns: 1fr; max-width: 360px; margin: 48px auto 0; }
  nav .nav-links { display: none; }
}
@media(max-width: 620px) {
  section { padding: 60px 5%; }
  .services-grid, .works-grid, .values-grid { grid-template-columns: 1fr; }
  .hero { padding: 90px 5% 50px; }
  footer { flex-direction: column; text-align: center; }
  .footer-links { flex-wrap: wrap; justify-content: center; }
}

/* ══════════════════════════════════════
   PARTNERS — شركاؤنا
══════════════════════════════════════ */
.partners-section { background: var(--gray-light); }

.partners-img-wrap {
  margin-top: 44px;
  display: flex; justify-content: center;
}

.partners-img {
  max-width: 500px; width: 100%;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  transition: transform 0.4s ease;
}
.partners-img:hover { transform: scale(1.02); }

/* ══════════════════════════════════════
   CLIENTS — عملاؤنا
══════════════════════════════════════ */
.clients-section { background: #fff; }

.clients-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 24px;
  margin-top: 48px;
}

.client-card {
  background: #fff;
  border: 1px solid rgba(42,172,172,0.12);
  border-radius: var(--radius);
  padding: 20px 28px;
  display: flex; align-items: center; justify-content: center;
  width: 200px; height: 100px;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s;
  position: relative; overflow: hidden;
}
.client-card::before {
  content: '';
  position: absolute; bottom: 0; right: 0; left: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--teal-light), var(--teal-dark));
  transform: scaleX(0); transform-origin: right;
  transition: transform 0.35s;
}
.client-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: rgba(42,172,172,0.3);
}
.client-card:hover::before { transform: scaleX(1); }

.client-card img {
  max-width: 100%; max-height: 70px;
  object-fit: contain;
  filter: grayscale(30%);
  transition: filter 0.3s;
}
.client-card:hover img { filter: grayscale(0%); }

@media(max-width: 620px) {
  .client-card { width: 155px; height: 85px; padding: 14px 18px; }
  .partners-img { border-radius: var(--radius); }
}
