/* 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: relative;
    width: 100%;
}
.logo {
    display: flex;
    justify-content: center;
    align-items: center;
}

.site-logo {
    max-width: 120px; /* عدليه إذا تبينه أصغر */
    height: auto;
    display: block;
    margin: 0 auto;
}
body {
    padding-top: 0;
}
.header-container {
    width: 85%;
    margin: 20px auto;

    border-radius: 25px;

    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);

    border: 1px solid rgba(255, 255, 255, 0.12);

    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.10);

    padding: 12px 30px;
}




.floating-nav {
  transition: all 0.4s ease;
}

.floating-nav.scrolled {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: 85%;
  z-index: 999;

  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);

  border-radius: 25px;
  border: 1px solid rgba(255, 255, 255, 0.18);

  box-shadow: 0 10px 35px rgba(0, 0, 0, 0.15);
}


/* ====================== SERVICES ====================== */
.service-card {
  position: relative;
  background: #ffffff;
  border-radius: 20px;
  height: 300px;
  padding: 30px 24px;
  box-shadow: 0 15px 40px rgba(20,20,40,.05);
  overflow: hidden;
  transition: .4s ease;
  cursor: pointer;
  border-top: 4px solid #4a2999;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

/* العنوان ثابت */
.service-title {
  position: relative;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.6;
  color: #2e1a66;
  margin-bottom: 15px;
  z-index: 2;
}

/* التفاصيل تحت العنوان */
.service-details {
  position: relative;
  padding: 0;
  background: transparent;
  backdrop-filter: none;
  transform: translateY(40px);
  opacity: 0;
  transition: .4s ease;
}

.service-details p {
  font-size: 14px;
  line-height: 1.8;
  color: #555;
}

/* Hover */
@media (hover:hover) {
  .service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 60px rgba(74,41,153,.12);
  }

  .service-card:hover .service-details {
    transform: translateY(0);
    opacity: 1;
  }
}

/* للجوال */
@media (max-width: 768px) {
  .service-card.is-visible .service-details {
    transform: translateY(0);
    opacity: 1;
  }
}
/* ====================== WORK SHOWCASE ====================== */
.work-showcase {
  margin-top: 80px;
}

.work-slider-wrapper {
  position: relative;
}

.work-slider {
  display: flex;
  gap: 22px;
  margin-top: 40px;
  overflow-x: auto;
  scroll-behavior: smooth;
  padding: 20px 60px;
  align-items: stretch;
}

.work-slider::-webkit-scrollbar {
  display: none;
}

.work-card {
  flex: 0 0 220px;
  background: #fff;
  border-radius: 14px;
  padding: 20px 16px;
  box-shadow: 0 6px 16px rgba(0,0,0,.06);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 10px;
  transition: .25s ease;
}

.work-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(74,41,153,.15);
}

.work-card img {
  width: 100%;
  height: 120px;
  object-fit: contain;
}

.work-card h4 {
  font-size: 14px;
  font-weight: 700;
}

.work-card span {
  font-size: 11.5px;
  color: var(--gray);
}

.work-btn {
  position: absolute;
  top: 55%;
  transform: translateY(-50%);
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: none;
  background: #d5caad;
  color: #4a2999;
  font-size: 20px;
  cursor: pointer;
  z-index: 5;
  transition: .3s;
}

.work-btn:hover {
  background: #fff;
}

.work-btn.prev {
  left: 0;
}

.work-btn.next {
  right: 0;
}


.work-card {
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  position: relative;
}

.work-card:hover {
  transform: translateY(-10px) scale(1.05);
  box-shadow: 0 20px 40px rgba(0,0,0,0.25);
  z-index: 5;
}


/* ====================== CTA ====================== */
.cta {
  margin: 120px 0;
  text-align: center;
}
.cta h2 {
  font-size: 28px;
  font-weight: 800;
  margin-bottom: 12px;
}
.cta .btn {
  padding: 12px 36px;
  border-radius: 30px;
  background: rgba(213,202,173,.85);
  color: #000;
  font-size: 14px;
  transition: .3s;
}
.cta .btn:hover {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff;
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(74,41,153,.3);
}

/* ====================== 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-contact {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 10px;
}
.footer-contact a {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  opacity: .9;
}

.site-footer .footer-logo {
  width: 90px !important;
  height: auto !important;
  max-width: 90px !important;
  display: block;
  transition: .3s;
}

/* ====================== RESPONSIVE ====================== */
@media (max-width: 768px) {

  .header-container {
    flex-direction: column;
    gap: 16px;
  }

  .nav-btn {
    padding: 5px 14px;
    font-size: 12px;
  }

  .work-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  .work-card {
    min-height: 220px;
    padding: 14px;
  }

  .work-card img {
    width: 100%;
    height: 130px;
    object-fit: contain;
    margin-bottom: 8px;
  }

  .work-card h4 {
    font-size: 13px;
    line-height: 1.4;
  }

  .work-card span {
    display: block;
    font-size: 11.5px;
  }
}

/* ====================== DESKTOP GRID ====================== */
@media (min-width: 992px) {
  .services-grid {
    grid-template-columns: repeat(3, 1fr);
    margin-top: 60px;
  }
}



/* ====================== WHY DATA VALLEY - SPECIAL SECTION ====================== */

/* العنوان */
.why-title {
    text-align: center;
    margin-bottom: 80px;
    font-size: 38px;
    font-weight: 800;
    color: #fff;
}

/* الحاوية */
.why-wrapper {
    display: flex;
    flex-direction: column;
    gap: 80px;
    position: relative;
}

/* البطاقة */
.why-card {
    position: relative;
    width: 60%;
    padding: 40px;
    border-radius: 25px;

    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);

    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #fff;

    transition: 0.4s ease;
}

/* توزيع يمين يسار */
.why-card:nth-child(odd) {
    align-self: flex-start;
}

.why-card:nth-child(even) {
    align-self: flex-end;
}

/* الرقم الكبير */
.why-number {
    position: absolute;
    top: -30px;
    right: 30px;
    font-size: 100px;
    font-weight: 800;
    color: rgba(213, 202, 173, 0.15); /* بيج شفاف */
    z-index: 0;
}

/* النص فوق الرقم */
.why-card h3,
.why-card p {
    position: relative;
    z-index: 2;
}

/* حركة احترافية */
.why-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 45px rgba(0,0,0,0.25);
    background: rgba(255, 255, 255, 0.12);
}

/* للجوال */
@media (max-width: 768px) {

    .why-card {
        width: 100%;
        align-self: center !important;
    }

    .why-number {
        font-size: 70px;
        top: -20px;
    }

}

.why-us {
    padding: 120px 0;
    background: radial-gradient(circle at top left, #5b33b0, #1e133f);
}



.why-us h2 {
    text-align: center;
    margin-top: -40px;
    margin-bottom: 60px;
    font-size: 38px;
    font-weight: 800;
    color: #fff;
    position: relative;
}

.why-us h2::after {
    content: "";
    width: 80px;
    height: 4px;
    background: #d5caad; /* لونك البيج */
    display: block;
    margin: 15px auto 0;
    border-radius: 5px;
}




/* ====================== INTRO OVERLAY ====================== */

.intro-overlay {
  position: fixed;
  inset: 0;
  background: linear-gradient(
    135deg,
    #4a2999,
    #3b217a
  );
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 28px;
  font-weight: 800;
  text-align: center;
  letter-spacing: .5px;
  transition: opacity .8s ease;
}

.intro-overlay.hidden {
  opacity: 0;
  pointer-events: none;
}


/* ====================== SERVICES STRIP ====================== */

.services-strip {
  background: #fff;
  border-top: 1px solid #eee;
  border-bottom: 1px solid #eee;
  padding: 18px 0;
  overflow: hidden;
}

.strip-track {
  display: flex;
  gap: 40px;
  white-space: nowrap;
  animation: stripMove 20s linear infinite;
}

.strip-track a {
  font-size: 14px;
  font-weight: 600;
  color: #000;
  opacity: .85;
  transition: .2s;
}

.strip-track a:hover {
  opacity: 1;
  text-decoration: underline;
}

@keyframes stripMove {
  from { transform: translateX(0); }
  to   { transform: translateX(300%); }
}








.services-strip {
  background: #fff;
  border-top: 1px solid #eee;
  border-bottom: 1px solid #eee;
  padding: 18px 0;
  overflow: hidden;
  cursor: grab; /* توضيح إمكانية السحب */
}

.strip-track {
  display: flex;
  gap: 40px;
  white-space: nowrap;
  animation: stripMove 20s linear infinite;
}

.strip-track a {
  font-size: 14px;
  font-weight: 600;
  color: #000;
  opacity: .85;
  transition: .2s;
}

.strip-track a:hover {
  opacity: 1;
  text-decoration: underline;
}

@keyframes stripMove {
  from { transform: translateX(0); }
  to   { transform: translateX(300%); } /* يتحرك نصف المحتوى لأن العناصر مكررة */
}










/* ================= FLOATING NAV ================= */

.logo-wrapper {
  text-align: center;
  padding-top: 30px;
}

.floating-nav {
  width: 85%;
  margin: 30px auto 0;
  padding: 12px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-radius: 22px;
  backdrop-filter: blur(14px);
  background: rgba(255,255,255,.6);
  box-shadow: 0 8px 30px rgba(0,0,0,.08);
  position: sticky;
  top: 20px;
  z-index: 999;
  transition: .3s ease;
}

/* Scroll effect */
.floating-nav.scrolled {
  box-shadow: 0 12px 40px rgba(74,41,153,.2);
  background: rgba(255,255,255,.75);
}

/* Start Button */
.start-btn {
  padding: 8px 22px;
  border-radius: 30px;
  border: 1px solid rgba(0,0,0,.15);
  background: rgba(255,255,255,.4);
  backdrop-filter: blur(8px);
  cursor: pointer;
  transition: .3s;
}

.start-btn:hover {
  background: linear-gradient(135deg,#4a2999,#989bcd);
  color: #fff;
}

/* Menu Icon */
.menu-toggle {
  width: 26px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.menu-toggle span {
  height: 2px;
  background: #000;
  border-radius: 2px;
  transition: .3s;
}

/* ================= FULLSCREEN MENU ================= */

.fullscreen-menu {
  position: fixed;
  inset: 0;
  background: linear-gradient(135deg,#4a2999,#3b217a);
  display: flex;
  align-items: center;
  justify-content: center;
  transform: translateY(-100%);
  transition: .5s ease;
  z-index: 9999;
}

.fullscreen-menu.active {
  transform: translateY(0);
}

.fullscreen-menu nav {
  display: flex;
  flex-direction: column;
  gap: 30px;
  text-align: center;
}

.fullscreen-menu a {
  font-size: 28px;
  color: #fff;
  font-weight: 700;
}




























