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

header {
  background: linear-gradient(to right, #3a51d6, #2b35b4, #273bd9);
  color: white;
}

nav {
  background-color: #2a35b7;
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 99;
}

.nav-btn {
  height: 40px;
  width: 175px;
  border-radius: 6px;
  background-color: #00fe6e;
  border: none;
  color: #2328c0;
}
.header-title h1 {
  width: 35%;
  font-size: 40px;
  font-weight: 900;
  margin-left: 12rem;
}
.header-title p {
  color: #00fe6e;
  margin-left: 10rem;
  padding-block: 0.5rem;
}
.header-sec1 p {
  top: 40%;
  color: #00fe6e;
}
.header-sec2 p {
  right: 40%;
  color: #00fe6e;
}

.header-sec3 p {
  top: 35%;
  right: 3%;
  color: #00fe6e;
}

.hidden-p1 {
  width: 100px;
}
.hidden-p2 {
  width: 100px;
}

.hidden-p3 {
  width: 100px;
}

.hover-wrapper:hover .hidden-text {
  opacity: 1;
  transform: translateY(0);
}

.hidden-text.show {
  display: block;
  /* opacity: 1; */
  color: white;
  position: absolute;
  font-size: 12px;
  padding-block: 2rem;
  transition: all 0.5s ease;
}
.toggle-btn {
  cursor: pointer;
  z-index: 2;
  position: relative;
  color: white;
}

.hidden-text {
  transition: all 0.5s ease-in-out;
  color: #f1e9e9;
  font-size: 12px;
  margin-top: 0.5rem;
  position: relative;
  z-index: 1;
  display: none;
}

.hover-img {
  transition: transform 0.3s ease;
  max-width: 100%;
}

.hover-img:hover {
  transform: scale(1.08);
}
/*.active {
  color: #00fe6e !important;
  border-bottom: 1px solid !important;
}*/
/* hamburger icon */
.hamburger {
  width: 30px;
  height: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  cursor: pointer;
  z-index: 1001;
}

.hamburger span {
  height: 3px;
  width: 100%;
  background-color: white;
  border-radius: 2px;
  transition: 0.3s ease;
}

/* القائمة الجانبية للموبايل */
.mobile-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 250px;
  height: 100%;
  background-color: #2328c0;
  padding: 100px 20px 20px;
  transition: right 0.3s ease;
  display: flex;
  flex-direction: column;
  gap: 20px;
  z-index: 1000;
}

.mobile-menu li a {
  color: white;
  text-decoration: none;
  font-size: 18px;
}

/* القائمة المفتوحة */
.mobile-menu.open {
  right: 0;
}
.mobile-nav {
  display: none;
}

/* الحاوية الرئيسية المخفية في البداية */
.scroll-animation {
  display: none;
  opacity: 0;
  transition: opacity 0.3s ease;
  align-items: center;
  gap: 10px;
  position: relative;
}

.scroll-animation.visible {
  display: flex !important;
  opacity: 1 !important;
}

.scroll-wrapper {
  width: 200px;
  height: 40px;
  overflow: hidden;
  position: relative;
}

.scroll-text {
  position: absolute;
  white-space: nowrap;
  color: white;
  font-weight: bold;
  left: 100%;
  top: 0;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.scroll-text.start {
  opacity: 1;
  animation: scrollText 10s linear infinite;
  animation-delay: 0.3s;
}

@keyframes scrollText {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-150%);
  }
}

.scroll-img {
  width: 40px;
  height: 40px;
  position: relative;
  z-index: 2;
}

/* التغليف مع overflow لإخفاء النص خارج الصورة */
.scroll-wrapper {
  overflow: hidden;
  height: 40px;
  width: 200px;
  position: relative;
  z-index: 1;
  margin-left: -40px; /* عشان الصورة تغطي بداية النص */
  pointer-events: none;
}

/* إخفاء الصورة عند عدم التواجد في السيكشن الثاني */
.scroll-animation:not(.visible) .scroll-img {
  opacity: 0;
}

/* nav ul إخفاء تدريجي */
nav ul.hide-nav-links li {
  opacity: 0;
  transition: opacity 0.4s ease-in-out;
}

/* start section2 */
.sec2-parent {
  height: 500px;
  overflow: auto;
}

.sec2-parent::-webkit-scrollbar {
  display: none;
}
.section2 .title h2 {
  font-size: 48px;
  font-weight: 900;
  color: #3579ff;
}

.section2 h3 {
  font-size: 36px;
  font-weight: 900;
  color: #3579ff;
}

.section2 p {
  font-size: 18px;
  font-weight: 600;
  color: #251e7d;
}

.sec2_img1 {
  margin-top: -4rem;
}

.sec2_img2 {
  margin-bottom: -8rem;
}

.sec2-parent {
  height: 500px;
  overflow: auto;
}

.sec2-parent::-webkit-scrollbar {
  display: none;
}

.device {
  width: 60%;
  height: 500px;
  perspective: 1000px;
}

.device-inner {
  width: 100%;
  height: 100%;
  position: relative;
  transform-style: preserve-3d;
  transition: transform 1s ease;
}

.device-front,
.device-back {
  position: absolute;
  height: 100%;
  backface-visibility: hidden;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  margin-left: 0;
}

.device-front .image,
.device-back .image {
  width: 120%;
  height: 120%;
  object-fit: contain;
  position: relative;
  animation: moveLeftRight 4s ease-in-out infinite;
  margin-left: -10%;
}

.device-back {
  transform: rotateY(180deg);
}

/* لما يحصل scroll */
/*.device.animate .device-inner {
  transform: rotateY(180deg);
}*/
.custom-img {
  width: 120px;
  height: auto; /* يحافظ على نسبة الأبعاد */
  display: block;
  margin-left: 20px;
}

.hide-nav-links {
  display: none !important;
}
.sec2-hidden {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.4s ease-in-out;
  pointer-events: none; /* عشان ما تتفاعل وهي مخفية */
}

.sec2-hidden.show {
  opacity: 1;
  transform: translateY(0); /* ترجع مكانها */
  pointer-events: auto;
}

.device .btn2 {
  height: 40px;
  width: 175px;
  border-radius: 6px;
  background-color: #00fe6e;
  border: none;
  color: #2328c0;
}

/* end section 2 */

/* start section 3 */
.section3 {
  background-color: #2a35b7;
}
.section3 .title h2 {
  font-size: 48px;
  font-weight: 900;
  color: white;
}
.section3 .title p {
  color: #00fe6e;
  font-size: 20px;
  width: 45%;
  padding-inline: 7rem;
}

.sec3-card {
  height: 380px;
  width: 230px;
  background-color: white;
  border-radius: 16px;
  color: #251e7d;
  padding: 10px;
}
.sec3-card .star-icon {
  position: absolute;
  bottom: 0px;
  left: 0;
}
.sec3-card {
  height: 380px;
  width: 230px;
  background-color: white;
  border-radius: 16px;
  color: #251e7d;
  padding: 10px;
  text-align: center;
  flex-shrink: 0;
  display: flex;
  align-items: flex-start; /* Vertically align content */
  gap: 15px; /* Space between image and text */
}

.sec3-card .hover-text {
  display: none;
  font-size: 0.9rem;
  right: 0;
  color: #00fe6e;
}
.sec3-card .hover-img {
    display: none;
    position: absolute;
    bottom: 0;
    right: 0;
    width: 70%;
    height: 75%;
    transform: none;
    margin-left: auto;
    float: left;
    margin-right: 1rem;
    transition: transform 0.3s ease;
    border-bottom-right-radius: 16px;
}

.sec3-card .hover-greenicon {
  display: none;
}
.sec3-card:hover {
  width: 350px;
  background-color: #3579ff;
}
.sec3-card:hover .hover-text,
.sec3-card:hover .card-content h3,
.sec3-card:hover .hover-img {
  display: block;
}
.sec3-card:hover .hover-text,
.sec3-card:hover .card-content h3 {
  height: auto;
  left: 0;
  width: 50%;
}
.sec3-card:hover .card-content h3 {
  color: white;
}
.sec3-card:hover .blue-icon {
  display: none;
}
.sec3-card:hover .hover-greenicon {
  display: block;
}
.sec3-card:hover .hover-img {
  position: absolute;
  bottom: 0px;
  right: 0;
  margin: 0;
  padding: 0;
}

.sec3-wrapper {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  justify-content: center;
}
.sec3-card {
  transition: all 1s ease;
  /* transform: translateX(0); */
}

.sec3-card:hover {
  transform: translateX(1px);
}

/* end section 3 */
/* start seection 4 */

.section4 {
  text-align: center;
}
.section4 .title {
  display: flex;
  justify-content: center;
  margin-top: 5rem;
  margin-bottom: 3rem;
}
.section4 h2 {
  width: 30%;
  color: #3579ff;
  font-weight: 900;
  font-size: 48px;
  line-height: 60px;
}
.sec4_img1 {
  margin-top: -4rem;
  transform: rotate(275deg);
}
.sec4_img2 {
  margin-bottom: -8rem;
  transform: rotate(115deg);
}
/* end section 4 */

/* start section 5 */

.section5 {
  background-color: #2a35b7;
}
.section5 .title h2 {
  font-size: 48px;
  font-weight: 900;
  color: white;
}
.section5 .title p {
  color: #00fe6e;
  font-size: 20px;
  width: 45%;
  padding-inline: 7rem;
}
.section5 {
  color: white;
}

.marquee-wrapper {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.marquee {
  overflow: hidden;
  white-space: nowrap;
}

.marquee-content {
  width: max-content;
  animation: marquee-left 12s linear infinite;
}

.marquee-content.reverse {
  animation: marquee-right 12s ease-in-out infinite;
}

/* Animations */
@keyframes marquee-left {
  0% {
    transform: translateX(0);
  }
  50% {
    transform: translateX(-50%);
  }
  100% {
    transform: translateX(0);
  }
}

@keyframes marquee-right {
  0% {
    transform: translateX(0);
  }
  50% {
    transform: translateX(50%);
  }
  100% {
    transform: translateX(0);
  }
}

/* end section 5 */
/* start section6 */
.section6 .title {
  display: flex;
  justify-content: center;
  margin-top: 5rem;
  margin-bottom: 3rem;
}
.section6 h2 {
  width: 30%;
  color: #3579ff;
  font-weight: 900;
  font-size: 48px;
  line-height: 60px;
}
.sec6_img1 {
  margin-top: -4rem;
}
.sec6_img2 {
  margin-bottom: -8rem;
}
.section6_card {
  width: 360px;
  height: 440px;
  background: linear-gradient(to bottom left, #1e3c72, #2a35b7, #0759c5);
  border-radius: 16px;
  color: white;
  padding: 3rem;
}

.section6_card p {
  width: 45%;
}
/* end section 6 */

/* start section 7 */

.section7 {
  background-color: #2a35b7;
  text-align: center;
  color: white;
  padding: 6rem 0;
}
.section7 .title h2 {
  font-size: 48px;
  font-weight: 900;
}
.form-wrapper {
  max-width: 1000px;
  margin: 0 auto;
  padding: 4rem;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 30px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}
.form-control {
  background-color: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #fff;
  border-radius: 12px;
  padding: 15px 20px;
  font-size: 16px;
  transition: all 0.3s ease;
  margin-bottom: 1.5rem;
}

.form-control:hover {
  border-color: rgba(255, 255, 255, 0.5);
  background-color: rgba(255, 255, 255, 0.15);
}

.form-control:focus {
  background-color: rgba(255, 255, 255, 0.2);
  border-color: #00fe6e;
  box-shadow: 0 0 0 4px rgba(0, 254, 110, 0.2);
  outline: none;
}

.form-control::placeholder {
  color: rgba(255, 255, 255, 0.6);
}

textarea.form-control {
  min-height: 180px;
  resize: vertical;
}

/* Responsive Form */
@media (max-width: 768px) {
  .form-wrapper {
    padding: 2rem;
    margin: 0 1rem;
  }

  .section7 .title h2 {
    font-size: 36px;
  }

  .form-control {
    padding: 12px 15px;
  }
  .h2title{
    font-size: 18px !important;
    padding: 0px;
  }
  .position-relative
  {
    margin: 15px !important ;
  }
}

/* footer style */
footer {
  background-color: white;
  color: #251e7d;
}
hr {
  margin-inline: 5rem;
}
footer p {
  font-size: 20px;
  font-weight: 600;
}
.footer-active {
  background-color: #3579ff;
  color: white;
  text-align: center;
}

@media (max-width: 768px) {
  .header-title h1 {
    width: 85%;
    font-size: 25px;
    font-weight: 700;
    margin: auto;
    text-align: center;
  }
  .header-title p {
    color: #00fe6e;
    margin: 2rem;
    padding-block: 0.5rem;
    text-align: center;
  }

  .header-cards {
    flex-direction: column;
    gap: 20px;
  }
  .sec3-card {
    width: 75%;
    margin: auto;
  }
  .section3 h2 {
    width: 100% !important;
  }
  .section4 .text {
    width: 80%;
  }
  .section4 .image img {
    width: 100%;
  }
  .section2 .text {
    text-align: center;
  }
  .section2 .image {
    height: auto;
  }
  .section3 .title p,
  h2 {
    width: 100% !important;
    padding: 2rem;
  }
  .section5 .title p {
    color: #00fe6e;
    font-size: 20px;
    width: 100%;
    padding-inline: 2rem;
  }
  .section5 div {
    justify-content: space-evenly !important;
    width: 100% !important;
  }

  .form-wrapper {
    padding: 2rem;
  }
  .footer {
    flex-direction: column;
    align-items: center;
    gap: 3rem;
  }
  .footer-logo,
  .social,
  .patterens,
  .lang {
    width: 100% !important;
  }
  .footer-logo {
    margin: auto;
    justify-content: center;
    display: flex;
  }

  #device1,
  #device2,
  #device3 {
    gap: 0px !important;
  }
  .header-sec1 p {
    top: 45% !important;
    position: absolute;
  }
  h2 {
    font-size: 25px !important;
    font-weight: 700;
  }
  h3 {
    font-size: 20px;
  }
  .links-container {
    width: 100% !important;
    padding-inline: 3rem;
  }
  .section6-cards-container {
    flex-direction: column;
    align-items: center;
  }

  .section6_card {
    width: 100%;
    max-width: 90%;
  }
  .section6 h2 {
    text-align: center;
  }
  .sec6_img1,
  .sec6_img2 {
    display: none;
  }
  .section4 .title {
    margin-bottom: 0 !important;
  }
  .sec6-cards {
    flex-direction: column;
    align-items: center;
  }
  .device-front .image,
  .device-back .image {
    width: 140%;
    height: auto;
    margin-left: -20%;
  }
  .device-front,
  .device-back {
    left: 50%;
    transform: translateX(-50%);
  }
  #device2 h3 {
    font-size: 34px;
  }
  .device {
    width: 100%;
    height: 400px;
    margin: 0 auto;
  }
  .device-inner {
    width: 100%;
    height: 100%;
  }
  .device-front .img1 {
    top: 37% !important;
    right: -5% !important;
  }
  .device-front .img2 {
    top: 53% !important;
    right: -5% !important;
  }
  .device-front .img3 {
top: 61% !important;
        right: 17% !important;
  }
  .sec2-1 {
    top: 44% !important;
  }
  .sec2-2 {
    top: 59% !important;
    right: -20% !important;
  }
  .sec2-3 {
    top: 68% !important;
    right: 5% !important;
  }
  .title h2 {
    font-size: 24px;
  }
  .mobile-menu {
    width: 75%;
  }

  .large-nav {
    display: none;
  }
  .mobile-nav {
    display: flex !important;
  }

  /******************************* */

  /* *************** */
}

/* Smooth Scrolling */
html {
  scroll-behavior: smooth;
}

/* Active Navigation Link */
/*.nav a.active {
    color: #00fe6e !important;
}

/* Mobile Menu Active Link */
.mobile-menu a.active {
  color: #00fe6e !important;
}
*/

/* Run with Omni buttons */
.run-with-omni {
  cursor: pointer;
  transition: all 0.3s ease;
}

.run-with-omni:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Form Improvements */
.form-group {
  position: relative;
  margin-bottom: 1rem;
}

.form-control {
  border: 2px solid transparent;
  transition: all 0.3s ease;
  padding: 0.75rem 1rem;
}

.form-control:focus {
  border-color: #00fe6e;
  box-shadow: 0 0 0 0.2rem rgba(0, 254, 110, 0.25);
}

.form-control.is-invalid {
  border-color: #dc3545;
}

.form-control.is-valid {
  border-color: #28a745;
}

/* Button Improvements */
.run-with-omni {
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.run-with-omni:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0, 254, 110, 0.2);
}

.run-with-omni:active {
  transform: translateY(0);
}

.run-with-omni img {
  transition: transform 0.3s ease;
}

.run-with-omni:hover img {
  transform: translateX(5px);
}

/* Navigation Improvements */
.nav a {
  position: relative;
  transition: color 0.3s ease;
}

/*.nav a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -2px;
    left: 0;
    background-color: #00fe6e;
    transition: width 0.3s ease;
}*/

.nav a:hover::after {
  width: 100%;
}

/* Mobile Menu Improvements */
.hamburger {
  transition: all 0.3s ease;
}

.hamburger span {
  transition: all 0.3s ease;
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -6px);
}

/* Loading State */
.loading {
  position: relative;
  pointer-events: none;
}

.loading::after {
  content: "";
  position: absolute;
  width: 20px;
  height: 20px;
  top: 50%;
  left: 50%;
  margin: -10px 0 0 -10px;
  border: 2px solid #00fe6e;
  border-top-color: transparent;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Smooth Scrolling */
html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px; /* Adjust based on your header height */
}

/* Active Navigation Link */
/*.nav a.active {
    color: #00fe6e !important;
}*/

/* Mobile Menu Active Link */
/*.mobile-menu a.active {
    color: #00fe6e !important;
}*/

/* Animation for device images */
@keyframes moveLeftRight {
  0% {
    transform: translateX(0);
  }
  50% {
    transform: translateX(-10px);
  }
  100% {
    transform: translateX(0);
  }
}

.logo {
  outline: none;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
  -webkit-user-select: none;
}

.logo:focus {
  outline: none;
  box-shadow: none;
}

.logo:active {
  outline: none;
  box-shadow: none;
}

/* Navigation Link Effects */
.nav a[href="#solutions"],
.nav a[href="#business-types"],
.nav a[href="#resources"],
.nav a[href="#"][aria-label="Switch to English"],
.nav a[href="#"][aria-label="Switch to Arabic"] {
  position: relative;
  transition: color 0.3s ease;
}

.nav a[href="#solutions"]:hover,
.nav a[href="#business-types"]:hover,
.nav a[href="#resources"]:hover,
.nav a[href="#"][aria-label="Switch to English"]:hover,
.nav a[href="#"][aria-label="Switch to Arabic"]:hover {
  color: #00fe6e !important;
}

.nav a[href="#solutions"]:active,
.nav a[href="#business-types"]:active,
.nav a[href="#resources"]:active,
.nav a[href="#"][aria-label="Switch to English"]:active,
.nav a[href="#"][aria-label="Switch to Arabic"]:active {
  color: #00fe6e !important;
  transform: scale(0.95);
}

/* Reset styles when at top of page */
body.at-top .nav a[href="#solutions"],
body.at-top .nav a[href="#business-types"],
body.at-top .nav a[href="#resources"],
body.at-top .nav a[href="#"][aria-label="Switch to English"],
body.at-top .nav a[href="#"][aria-label="Switch to Arabic"] {
  color: white;
  transform: none;
}
