@import url('https://fonts.googleapis.com/css2?family=Tajawal:wght@200;300;400;500;700;800;900&family=Ubuntu:ital,wght@0,300;0,400;0,500;0,700;1,300;1,400;1,500;1,700&display=swap');

* {
    margin:0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body[dir="rtl"] {
  font-family: 'Tajawal';
}

body[dir="ltr"] {
  font-family: 'Ubuntu';
}

.toggle-dark-mode {
  left: 0;
}

.toggle-lang {
  right: 0;
}

.toggle-dark-mode, .toggle-lang {
  position: fixed;
  bottom: 10px;
  width: 50px;
  height: 50px;
  background: #000;
  border-radius: 50px;
  z-index: 9999 !important;
}

body.dark-mode .toggle-dark-mode {
  background: #fff;
}

body .toggle-dark-mode img {filter: invert(0);}
body.dark-mode  footer {
  background: #000 !important;
}
body.dark-mode footer .mazo-copy {
  color: #fff !important;
}

body.dark-mode .feature-sect {
  color: #000 !important;
}

body .toggle-dark-mode img {
  filter: invert(1);
}

body.dark-mode {
  background-color: #121212;
  color: #ffffff;
}

body.dark-mode header {
  background-color: #1e1e1e;
}

body.dark-mode a {
  color: #dddddd !important;
}

body.dark-mode a.dnl {
  color: #000 !important;
}

body.dark-mode .feature-sect,
body.dark-mode .testimonial-item,
body.dark-mode .cta-call {
  background-color: #222;
  color: #fff;
  border-color: #333;
}



.cp {cursor: pointer;}

ul {
  margin: 0;
  padding: 0;
}

ul li img {
  width: 35px;
}

ul li {
  list-style: none;
  font-size: 23px;
}

.bred {
    border: 2px solid red;
}

header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: #fff; /* أو أي لون مناسب */
  z-index: 9999;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  padding: 15px 0;
}

.head-main, section {
  margin-top: 100px !important; /* حسب ارتفاع الهيدر */
}

.mobile-preview video {
  position: absolute;
  top: 5px;
  left: 15px;
  width: 94%;
  height: 100%;
  object-fit: cover;
  border-radius: 50px;
  z-index: 1;
  opacity: 0;
  transition: opacity 1s ease;
  pointer-events: none;
}
.mobile-preview {
  position: relative;
  width: 280px;
  height: 560px;
  overflow: hidden;
}
.mobile-preview img {
  position: relative;
  width: 100%;
  z-index: 2;
  pointer-events: none;
}


header .logo img {
    width: 50px;
    border-radius: 10px;
}

header .navbar-hrefs a {
    position: relative;
    margin: 0 27px;
    text-decoration: none;
    color: #000;
    transition: all 0.25s ease-in-out;
}

body[dir="rtl"] header .navbar-hrefs a::after {
  right: 0;
}

body[dir="ltr"] header .navbar-hrefs a::after {
  left: 0;
}

header .navbar-hrefs a::after {
  content: "";
  position: absolute;
  bottom: -10px;
  
  background-color: #5D99BF;
  width: 0;
  height: 1px;
  transition: all 0.25s ease-in-out;
}

header .navbar-hrefs a:hover {
  color: #5D99BF;
}
header .navbar-hrefs a:hover::after {
  width: 50px;
}

header .download-app div {
    padding: 10px 30px;
    background:#FDF0D5;
    color: #000;
    border-radius: 50px;
}

.head-main {
    position: relative;
    height: 93vh;
    overflow: hidden;
    padding-top: 50px;
}

.head-main::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../assets/img/bg-hero.jpg');
    background-size: cover;
    background-repeat: repeat;
    background-position: center;
    opacity: 0.1;
    z-index: 0;
}

.head-main > * {
    position: relative;
    z-index: 1;
}

.head-main .download-btns img {
    width: 120px;
}

.container-mobiles {
    bottom: 0;
    width: 70%;
}

.container-mobiles .mobile-center {
    animation: fadeInCenter 1s ease forwards;
    animation-delay: 0.2s;
    opacity: 0;
}

.container-mobiles .mobile-left {
    left: 40%;
    transform: translateX(-50%);
    z-index: -1;
    animation: fadeInLeft 1s ease forwards;
    animation-delay: 1s;
    opacity: 0;
}

.container-mobiles .mobile-right {
    right: 40%;
    transform: translateX(50%);
    z-index: -1;
    animation: fadeInRight 1s ease forwards;
    animation-delay: 1s;
    opacity: 0;
}

.feature-subtitle {
    width: 500px;
}

.mobile-cta img {
  width: 250px;
}

.mobile-cta {
  bottom: -150px;
}

body[dir="rtl"] .mobile-cta
{
  left: 120px;
}

body[dir="ltr"] .mobile-cta
{
  right: 120px;
}

.download-appx img  {
  width: 200px;
}

/* إيقونات السبب */
.why-mazo .icon-txt {
  font-size: 25px;
  width: 60px;
  height: 60px;
  animation-name: iconAnimReverse;
  animation-iteration-count: infinite;
  animation-fill-mode: both;
  animation-timing-function: ease-in-out;
  animation-duration: 240s; /* 4 فيديوهات * 60 ثانية */
}

/* تأخير متتابع حسب مدة الفيديو */
.why-mazo .icon-txt-1 { --icon-color: #F1F8FF; animation-delay: 0s; }
.why-mazo .icon-txt-2 { --icon-color: #E0E7FE; animation-delay: 60s; }
.why-mazo .icon-txt-3 { --icon-color: #FCE8F4; animation-delay: 120s; }
.why-mazo .icon-txt-4 { --icon-color: #FFECD7; animation-delay: 180s; }

@keyframes iconAnimReverse {
  0%, 25%      { background: var(--icon-color); }
  27%, 41%     { background: #fff; }
  43%, 100%    { background: var(--icon-color); }
}

/* الكروت */
.feature-sect {
  background: #fff;
  padding: 10px;
  border-radius: 10px;
  opacity: 1;
  animation-name: featureAnim;
  animation-iteration-count: infinite;
  animation-fill-mode: both;
  animation-timing-function: ease-in-out;
  animation-duration: 240s;
}

.feature-sect-1 { animation-delay: 0s; --feature-color: #F1F8FF; }
.feature-sect-2 { animation-delay: 60s; --feature-color: #E0E7FE; }
.feature-sect-3 { animation-delay: 120s; --feature-color: #FCE8F4; }
.feature-sect-4 { animation-delay: 180s; --feature-color: #FFECD7; }

@keyframes featureAnim {
  0%, 25%    {  background: #fff; }
  27%, 41%   { background: var(--feature-color); }
  43%, 100%  { background: #fff; }
}


/* ظهور الموبايلات */
@keyframes fadeInCenter {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(0%) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) scale(1);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(0%) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateX(50%) scale(1);
    }
}

/* ستايل الفيديو والـ mockup */
.mobile-preview::before, .mobile-preview::after {
  content: "";
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: #E0E7FF;
  width: 200px;
  height: 200px;
}

.mobile-preview::before {
  right: 50px;
  z-index: -1;
}

.mobile-preview::after {
  left: 150px;
  z-index: -1;
}

.mobile-preview {
  overflow: hidden;
  position: relative;
  width: 280px;
  height: 560px;
}

.mobile-preview img {
  position: relative;
  width: 100%;
  z-index: 2;
  pointer-events: none;
}


.hover-zoom {
  transition: transform 0.4s ease, box-shadow 0.3s ease;
}

.hover-zoom:hover {
  transform: scale(1.05);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.app-screenshots .screenshot-card {
  border-radius: 15px;
}

body[dir="ltr"] .app-screenshots .screenshot-card-1 {
  transform: scale(0.8) translateX(300px);
  animation-name: leftScreen;
}

body[dir="rtl"] .app-screenshots .screenshot-card-1 {
  transform: scale(0.8) translateX(-300px);
  animation-name: leftScreenArb;
}

body[dir="ltr"] .app-screenshots .screenshot-card-3 {
  transform: scale(0.8) translateX(-300px);
  animation-name: rightScreen;
}

body[dir="rtl"] .app-screenshots .screenshot-card-3 {
  transform: scale(0.8) translateX(300px);
  animation-name: rightScreenArb;
}

.app-screenshots .screenshot-card-1 {
  animation-iteration-count: forwards;
  animation-timing-function: ease-in-out;
  animation-duration: 1s;
}

body[dir="ltr"] .app-screenshots .screenshot-card-1:hover {
  transform: translateX(60px);
}

body[dir="rtl"] .app-screenshots .screenshot-card-1:hover {
  transform: translateX(-60px);
}

body[dir="ltr"] .app-screenshots .screenshot-card-3:hover {
  transform: translateX(-60px);
}

body[dir="rtl"] .app-screenshots .screenshot-card-3:hover {
  transform: translateX(60px);
}

.app-screenshots .screenshot-card-3 {
  animation-iteration-count: forwards;
  animation-timing-function: ease-in-out;
  animation-duration: 1s;
}

@keyframes leftScreen {
  from {
    opacity: 0;
    transform: scale(0.8) translateX(500px);
  }
  to {
    opacity: 1;
    transform: scale(0.8) translateX(300px);
  }
}

@keyframes leftScreenArb {
  from {
    opacity: 0;
    transform: scale(0.8) translateX(-500px);
  }
  to {
    opacity: 1;
    transform: scale(0.8) translateX(-300px);
  }
}

@keyframes rightScreen {
  from {
    opacity: 0;
    transform: scale(0.8) translateX(-500px);
  }
  to {
    opacity: 1;
    transform: scale(0.8) translateX(-300px);
  }
}

@keyframes rightScreenArb {
  from {
    opacity: 0;
    transform: scale(0.8) translateX(500px);
  }
  to {
    opacity: 1;
    transform: scale(0.8) translateX(300px);
  }
}


.video-preview {
  width: 100%;
  height: 100%;
  background: #FDF0D5;
  border-radius: 20px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.video-show img {
  width: 50px;
}

.video-thumb {
  position: absolute;
  border-radius: 20px;
}

.video-show .play-btn {
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100px;
  height: 100px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 0 0 rgba(255, 255, 255, 0.7);
  animation: pulse 2s infinite;
  display: flex;
  justify-content: center;
  align-items: center;
}

.testimonial-item {
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  border-radius: 10px;
}

.testimonial-item .user-avatar {
  top: -40px;
  left: 50%;
  transform: translateX(-50%);
  width: 70px;
  height: 70px;
  background-size: cover;
  background-position: center;
}

.cta-call {
  background: #FDF0D5;
  width: 100%;
  height: 400px;
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.7);
  }
  70% {
    box-shadow: 0 0 0 30px rgba(255, 255, 255, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(255, 255, 255, 0);
  }
}

