/* Theme Name: DV_theme Author: Data Valley Version: 2.2 */
/* ====================== ROOT VARIABLES ====================== */
:root {
  --black: #000;
  --white: #fff;
  --primary: #4a2999;
  --secondary: #d5caad;
  --accent: #989bcd;
  --gray: #777;
}

/* ====================== RESET ====================== */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html, body {
  max-width: 100%;
  overflow-x: hidden;
}
body {
  font-family: 'Cairo', sans-serif;
  background: var(--white);
  color: var(--black);
  line-height: 1.8;
}
a {
  text-decoration: none;
  color: inherit;
}

/* ====================== CONTAINER ====================== */
.container {
  max-width: 1100px;
  margin: auto;
  padding: 0 20px;
}

/* ====================== HEADER ====================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 9999;
  background: #fff;
  border-bottom: 1px solid #eee;
}
.header-container {
  max-width: 1100px;
  margin: auto;
  padding: 22px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.site-logo {
  width: 150px;
}
.main-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}
.main-nav a {
  font-size: 15px;
  font-weight: 500;
}
.main-nav a:hover {
  opacity: .7;
}
.nav-btn {
  padding: 8px 22px;
  border-radius: 30px;
  border: 1px solid rgba(0,0,0,.15);
  font-size: 14px;
  transition: .3s;
}
.nav-btn:hover {
  background: rgba(0,0,0,.04);
}

/* ====================== SERVICES ====================== */
.services {
  padding: 80px 0;
}
.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}
.service-card {
  position: relative;
  background: #fff;
  border-radius: 22px;
  min-height: 360px;
  padding: 32px 24px;
  box-shadow: 0 12px 30px rgba(0,0,0,.08);
  overflow: hidden;
  transition: .35s;
  cursor: pointer;
}
/* عنوان البطاقة أعلى */
.service-title {
  position: absolute;
  top: 26px;
  left: 0;
  width: 100%;
  text-align: center;
  padding: 0 20px;
  font-size: 17px;
  font-weight: 700;
  z-index: 5;
  pointer-events: none;
}
.service-details {
  position: absolute;
  inset: 0;
  padding: 40px 26px;
  border-radius: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  backdrop-filter: blur(8px);
  transform: translateY(100%);
  opacity: 0;
  transition: .45s;
}
.service-details p {
  font-size: 14px;
  line-height: 1.7;
}
/* ألوان البطاقات */
.card-purple .service-details {
  background: rgba(74,41,153,.32);
  color: #fff;
}
.card-beige .service-details {
  background: rgba(213,202,173,.32);
  color: #000;
}
.card-dark .service-details {
  background: rgba(152,155,205,.32);
  color: #fff;
}
.card-gray .service-details {
  background: #E5E4E5;
  color: #000;
}
/* سهم */
.service-card::after {
  content: "⌄";
  position: absolute;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 18px;
  opacity: .5;
}

/* Hover للكمبيوتر */
@media (hover:hover) {
  .service-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 45px rgba(0,0,0,.12);
  }
  .service-card:hover .service-details {
    transform: translateY(0);
    opacity: 1;
  }
}

/* ====================== WORK SHOWCASE ====================== */
.work-showcase {
  padding: 90px 0;
  background: #fafafa;
}
.section-title {
  text-align: center;
  font-size: 26px;
  margin-bottom: 40px;
}
.slider-wrapper {
  position: relative;
}
.slider-track {
  display: flex;
  gap: 26px;
  overflow-x: auto;
  scroll-behavior: smooth;
  padding: 10px 50px;
}
.slider-track::-webkit-scrollbar {
  display: none;
}
.slider-track img {
  width: 280px;
  height: 170px;
  object-fit: contain;
  background: #fff;
  padding: 10px;
  border-radius: 18px;
  box-shadow: 0 10px 22px rgba(0,0,0,.08);
  transition: .35s;
}
.slider-track img:hover {
  transform: scale(1.05);
}
.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid #ddd;
  font-size: 22px;
  cursor: pointer;
}
.slider-btn.prev { left: 10px; }
.slider-btn.next { right: 10px; }

/* ====================== FOOTER ====================== */
.site-footer {
  background: rgba(74,41,153,0.15);
  border-top: 1px solid #eee;
  padding: 32px 0 20px;
  font-size: 13px;
  transition: background .4s ease;
}
.site-footer.scrolled {
  background: linear-gradient(
    135deg,
    rgba(74,41,153,0.95),
    rgba(152,155,205,0.95)
  );
  color: #fff;
}
.site-footer.scrolled a,
.site-footer.scrolled span,
.site-footer.scrolled strong {
  color: #fff;
}

.footer-container {
  max-width: 1100px;
  margin: auto;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.footer-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  text-align: right;
  gap: 10px;
}
.footer-contact span, .footer-contact a {
  font-size: 13px;
  display: block;
}
.footer-copy {
  text-align: center;
  font-size: 12px;
  opacity: .8;
  margin-top: 10px;
}

/* ====================== شعار وزارة التجارة ====================== */
.site-footer svg, .site-footer img {
  width: 90px !important;
  height: auto !important;
  max-width: 90px !important;
  display: block;
  transition: .3s;
}
.site-footer.scrolled img {
  filter: brightness(0) invert(1);
}

/* ====================== RESPONSIVE ====================== */
@media (max-width: 768px) {
  .header-container {
    flex-direction: column;
    gap: 16px;
  }

  /* هنا الحل النهائي للبطاقات بالجوال */
  .service-card.is-visible .service-details {
    transform: translateY(0);
    opacity: 1;
  }

  .slider-track img {
    width: 220px;
    height: 140px;
  }
  .footer-right {
    align-items: center;
    text-align: center;
  }
}

/* ====================== DESKTOP GRID ====================== */
@media (min-width: 992px) {
  .services-grid {
    grid-template-columns: repeat(3, 1fr);
    margin-top: 60px;
  }
}

/* ====================== WHY DATA VALLEY - TIMELINE ====================== */
.why-timeline {
  padding: 90px 0;
  background: #fafafa;
}
.why-timeline h2 {
  text-align: center;
  font-size: 26px;
  margin-bottom: 60px;
}
.timeline {
  position: relative;
  max-width: 700px;
  margin: auto;
  padding-right: 30px;
}
.timeline::before {
  content: "";
  position: absolute;
  right: 10px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: rgba(74,41,153,.25);
}
.timeline-item {
  position: relative;
  padding: 0 40px 40px 0;
}
.timeline-item .dot {
  position: absolute;
  right: 2px;
  top: 6px;
  width: 16px;
  height: 16px;
  background: var(--primary);
  border-radius: 50%;
}
.timeline-content {
  background: #fff;
  border-radius: 16px;
  padding: 18px 22px;
  box-shadow: 0 10px 25px rgba(0,0,0,.08);
}

/* ====================== زر ابدأ رحلتك معنا ====================== */
.hero-btn-alt {
  background: rgba(213, 202, 173, 0.5);
  color: #fff;
  border: 1px solid rgba(213, 202, 173, 0.55);
  padding: 7px 20px;
  border-radius: 24px;
  font-size: 13.5px;
  font-weight: 500;
  display: inline-block;
  margin-top: 18px;
  transition: .25s ease;
}
.hero-btn-alt:hover {
  background: rgba(213, 202, 173, 0.4);
}
