* {
  font-family: "IBM Plex Sans Arabic", sans-serif;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  overflow-x: hidden;
  line-height: 1.6;
  scroll-behavior: smooth;
}

/* Scroll Animation Classes */
@media (max-width: 768px) {
    .scroll-animate {
        opacity: 1 !important;
        transform: none !important;
    }
}
.scroll-animate {
  opacity: 0;
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.scroll-animate.fade-in {
  opacity: 0;
}

.scroll-animate.fade-in.animated {
  opacity: 1;
}

.scroll-animate.slide-up {
  opacity: 0;
  transform: translateY(50px);
}

.scroll-animate.slide-up.animated {
  opacity: 1;
  transform: translateY(0);
}

.scroll-animate.slide-left {
  opacity: 0;
  transform: translateX(50px);
}

.scroll-animate.slide-left.animated {
  opacity: 1;
  transform: translateX(0);
}

.scroll-animate.slide-right {
  opacity: 0;
  transform: translateX(-50px);
}

.scroll-animate.slide-right.animated {
  opacity: 1;
  transform: translateX(0);
}

.scroll-animate.scale-in {
  opacity: 0;
  transform: scale(0.8);
}

.scroll-animate.scale-in.animated {
  opacity: 1;
  transform: scale(1);
}

.scroll-animate.delay-100 {
  transition-delay: 0.1s;
}

.scroll-animate.delay-200 {
  transition-delay: 0.2s;
}

.scroll-animate.delay-300 {
  transition-delay: 0.3s;
}

.scroll-animate.delay-400 {
  transition-delay: 0.4s;
}
.header-wrapper {
  background: linear-gradient(347.19deg, #f1fdff 21.44%, #b1f4ff 57.2%);
  position: relative;
  height: 750px;
}
nav .container {
  max-width: 1200px;
}

/* Drawer Styles */
.drawer-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  z-index: 9998;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.drawer-overlay.active {
  opacity: 1;
  visibility: visible;
}

.drawer {
  position: fixed;
  top: 0;
  right: -100%;
  width: 100%;
  max-width: 400px;
  height: 100%;
  background: white;
  z-index: 9999;
  transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: -4px 0 20px rgba(0, 0, 0, 0.15);
  display: flex;
  flex-direction: column;
}

.drawer.active {
  right: 0;
}

.drawer-header {
  background: #b2f5ff;
  padding: 1.75rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.drawer-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: #1f2937;
  font-weight: 700;
  font-size: 1.5rem;
}

.drawer-close {
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 1.25rem;
  cursor: pointer;
  color: #1f2937;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.drawer-menu {
  padding: 10px 20px;
  list-style: none;
  flex: 1;
  overflow-y: auto;
}

.drawer-menu a {
  text-decoration: none;
  color: #1f2937;
  font-size: 18px;
  font-weight: 500;
  display: block;
  padding: 10px 0;
  transition: all 0.3s ease;
}
.drawer-footer {
  padding: 1.5rem;
  border-top: 1px solid #bfbfbf;
}

.drawer-copyright {
  text-align: center;
  color: #000;
  font-size: 15px;
  margin-bottom: 1.25rem;
}

.drawer-app-buttons {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
}

.drawer-app-button {
  flex: 1;
  background: #1f2937;
  color: white;
  padding: 0.875rem;
  border-radius: 0.625rem;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  transition: all 0.3s ease;
}

.drawer-app-button:hover {
  background: #374151;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* Custom colors */
.bg-primary {
  background: linear-gradient(135deg, #add8e6 0%, #87ceeb 100%);
}

.text-primary {
  color: #1e40af;
}

.text-light-blue {
  color: #87ceeb;
}

.bg-light-blue {
  background: linear-gradient(135deg, #e0f2fe 0%, #bae6fd 100%);
}

/* Hero Section */
#home {
  position: relative;
  overflow: hidden;
}

.hero-badge {
  background: white;
  border: 2px solid #23b1c8;
  color: #23b1c8 !important;
  border-radius: 2rem;
  padding: 5px 20px;
  display: inline-block;
  margin-bottom: 1.75rem;
  box-shadow: 0 4px 12px rgba(135, 206, 235, 0.2);
  transition: all 0.3s ease;
}

.hero-badge:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(135, 206, 235, 0.3);
}

.hero-badge p {
  font-weight: 700;
  font-size: 0.9375rem;
  margin: 0;
  letter-spacing: 0.025em;
}

#home h1 {
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  line-height: 1.2;
}

#home .bg-gray-900 {
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
}

#home .bg-gray-900:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.4);
}

/* Hero section phone images */
.phone-container {
  position: relative;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.phone-img {
  position: absolute;
  bottom: 0;
  max-width: none;
  width: 22% !important;
  z-index: 1;
  max-height: none;
  margin: 0 auto;
  height: 400px !important;
  /* animation: float 6s ease-in-out infinite; */
}
.float-img-left {
  position: absolute;
  left: 25%;
  bottom: 40px;
  z-index: 5;
  height: 300px;
  filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.15));
  animation: floatLeft 8s ease-in-out infinite;
  z-index: 2;
}
.float-img-right {
  position: absolute;
  right: 25%;
  bottom: 40px;
  z-index: 99;
  animation: floatRight 8s ease-in-out infinite;
  height: 350px !important;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-20px);
  }
}

/*  */

@keyframes floatLeft {
  0%,
  100% {
    transform: rotate(-8deg) translateY(0px);
  }
  50% {
    transform: rotate(-6deg) translateY(-15px);
  }
}

@keyframes floatRight {
  0%,
  100% {
    transform: rotate(8deg) translateY(0px);
  }
  50% {
    transform: rotate(10deg) translateY(-15px);
  }
}

/* Trust Section */
.trust-section {
  background-color: #fff;
  padding: 5rem 1.5rem;
  position: relative;
}

.trust-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(
    circle at center,
    rgba(52, 199, 216, 0.05) 0%,
    transparent 70%
  );
  pointer-events: none;
}

.trust-badge {
  background: #f8f8f8;
  padding: 0px 20px;
  display: flex;
  align-items: center;
  width: fit-content;
  margin: 0 auto;
  margin-bottom: 20px;
  gap: 5px;
}

.trust-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #0ea5e9;
  font-size: 2rem;
  flex-shrink: 0;
}

.trust-badge p {
  font-size: 16px;
  color: #1f2937;
  margin: 0;
  letter-spacing: -0.01em;
  span {
    font-weight: 700;
  }
}

.register-button {
  background: linear-gradient(135deg, #34c7d8 0%, #2ab3c2 100%);
  color: white;
  padding: 1.5rem 3rem;
  border-radius: 1.25rem;
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  font-weight: 700;
  font-size: 1.25rem;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 8px 20px rgba(52, 199, 216, 0.4);
  position: relative;
  overflow: hidden;
}

.register-button::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
  transition: left 0.5s;
}

.sign-up-section {
  background-color: #f4feff;
  border-top: 2px solid #d2d6ff;
  border-bottom: 2px solid #d2d6ff;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 50px 0;
}
@keyframes flicker {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.9;
    transform: scale(1.05);
  }
}

/* Features Section */

.feature-card {
  background: white;
  padding: 2rem;
  border-radius: 1.5rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  border: 2px solid #e0f2fe;
  transition: all 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
  border-color: #87ceeb;
}

.feature-icon {
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #2563eb;
  font-size: 1.5rem;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.2);
}

.feature-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: #1f2937;
  margin-bottom: 0.75rem;
  line-height: 1.4;
}

.feature-card p {
  color: #4b5563;
  line-height: 1.75;
  font-size: 1rem;
}

.feature-phone {
  border-radius: 1.5rem;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
  transition: all 0.3s ease;
}

.feature-phone:hover {
  transform: scale(1.02);
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.2);
}

/* How It Works Section */
#how-it-works {
  position: relative;
  padding: 5rem 1.5rem;
}

#how-it-works h2 {
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  margin-bottom: 3rem;
}

.video-container {
  position: relative;
  border-radius: 1.75rem;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
  opacity: 0;
  visibility: hidden;
  max-height: 0;
  margin: 0;
  padding: 0;
  background: transparent;
  transition: opacity 0.3s ease, visibility 0.3s ease, max-height 0.3s ease,
    transform 0.3s ease, margin 0.3s ease;
}

.video-container.active {
  opacity: 1;
  visibility: visible;
  max-height: 1000px;
  margin-top: 1rem;
}

.video-container:hover {
  transform: translateY(-5px);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.6);
}

.video-container .relative {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  background: linear-gradient(135deg, #1f2937 0%, #111827 100%);
}

.video-container .relative > * {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.video-controls {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  z-index: 10;
}

.video-control-btn {
  width: 60px;
  height: 60px;
  background: rgba(0, 0, 0, 0.7);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  border: 2px solid rgba(255, 255, 255, 0.4);
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: 700;
  font-size: 0.9375rem;
  backdrop-filter: blur(10px);
}

.video-control-btn:hover {
  background: rgba(0, 0, 0, 0.9);
  transform: scale(1.15);
  border-color: rgba(255, 255, 255, 0.6);
}

.video-control-btn.play-btn {
  width: 90px;
  height: 90px;
  background: rgba(255, 255, 255, 0.98);
  color: #000;
  border: none;
  font-size: 1.75rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.video-control-btn.play-btn:hover {
  background: white;
  transform: scale(1.1);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4);
}

.video-views {
  position: absolute;
  top: 1.25rem;
  left: 1.25rem;
  background: rgba(0, 0, 0, 0.7);
  color: white;
  padding: 0.625rem 1.25rem;
  border-radius: 0.75rem;
  font-size: 0.9375rem;
  font-weight: 600;
  backdrop-filter: blur(10px);
  z-index: 15;
}

.video-title {
  background: #1f2937;
  padding: 1.25rem;
  color: white;
}

.video-title p {
  font-size: 0.9375rem;
  font-weight: 500;
  margin: 0;
}
.how-it-works {
  background: linear-gradient(347.19deg, #f1fdff 21.44%, #b1f4ff 57.2%);
}
.how-it-works-card {
  background: white;
  padding: 1rem;
  border-radius: 1.5rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  margin-bottom: 1.25rem;
}

.how-it-works-card:hover {
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.how-it-works-card.active {
  background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
}

.how-it-works-card .arrow-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #0ea5e9;
  font-size: 1.25rem;
  flex-shrink: 0;
  border: 1px solid #0ea5e9;
  transition: transform 0.3s ease;
}

.how-it-works-card.active .arrow-icon {
  transform: rotate(180deg);
}

.how-it-works-card h3 {
  font-size: 1.1875rem;
  font-weight: 700;
  line-height: 1.5;
  color: #1f2937;
}

.how-it-works-card .card-description {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease;
  opacity: 0;
}

.how-it-works-card.active .card-description {
  max-height: 500px;
  opacity: 1;
}

.how-it-works-card p {
  font-size: 0.9375rem;
  line-height: 1.8;
  margin-top: 0.875rem;
  color: #4b5563;
}

/* Testimonials Section */
.testimonials-section {
  background: #fff;
  padding: 5rem 1.5rem;
  position: relative;
}

.testimonials-section h2 {
  text-shadow: 0 2px 8px rgba(255, 255, 255, 0.1);
  margin-bottom: 3.5rem;
}

.testimonial-card {
  background-color: #fff;
  padding: 3rem 2.5rem;
  border-radius: 1rem;
  margin: 1rem;
  text-align: center;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.testimonial-card.centered {
  background-color: #f6fdff !important;
}

.testimonial-card .profile-img {
  display: block;
  margin: 0 auto;
  margin-bottom: 20px;
  width: 60px !important;
  height: 60px !important;
  object-fit: cover;
  border-radius: 50%;
  border: 1px solid #0ea5e9;
}

.testimonial-card h4 {
  font-size: 1.1875rem;
  font-weight: 700;
  color: #1f2937;
  margin-bottom: 0.75rem;
  letter-spacing: -0.01em;
}

.star-rating {
  display: flex;
  justify-content: center;
  gap: 0.375rem;
}

.star-rating .fas {
  color: #fbbf24;
  font-size: 1.25rem;
}

.star-rating .far {
  color: #d1d5db;
  font-size: 1.25rem;
}

.testimonial-card p {
  color: #000;
  font-size: 24px;
  font-weight: 600;
  margin: 20px 0;
}

/* Footer Styles */
footer {
  background: transparent;
  padding: 0;
  margin-top: 0;
}

.footer-top {
  padding: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-radius: 20px 20px 0 0;
  background: linear-gradient(330.95deg, #f1fdff 17.14%, #b1f4ff 86.34%);
}

.footer-logo-section {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.footer-logo-section p {
  color: #4b5563;
  font-size: 0.9375rem;
  line-height: 1.6;
}

.footer-social {
  display: flex;
  gap: 1rem;
}

.footer-social a {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #3e3d3d;
  transition: all 0.3s ease;
  border: 1px solid #00000030;
  font-size: 1.125rem;
}

.footer-bottom {
  margin-top: 2px;
  display: flex;

  justify-content: space-between;
  align-items: center;
  padding-top: 1.75rem;
  flex-wrap: wrap;
  gap: 1rem;
  background: #bbf6ff !important;
  border-radius: 0 0 20px 20px;
  padding: 1.5rem;
}

.footer-links {
  display: flex;
  gap: 2rem;
}

.footer-links a {
  color: #1f2937;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9375rem;
  transition: all 0.3s ease;
  position: relative;
}

.footer-links a::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: #0ea5e9;
  transition: width 0.3s ease;
}

.footer-links a:hover {
  color: #0ea5e9;
}

.footer-links a:hover::after {
  width: 100%;
}

.footer-copyright {
  color: #1f2937;
  font-size: 0.9375rem;
  font-weight: 500;
}

/* Smooth scroll */
html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

/* Features Section - Equal Height */
#features .grid.items-stretch > .phone,
#features .grid.items-stretch > .content {
  height: 100%;
  min-height: 100%;
}

#features .grid.items-stretch > .content {
  display: flex;
  flex-direction: column;
}

/* Section Titles */
section h2 {
  font-weight: 800;
  letter-spacing: -0.02em;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .phone-container {
    min-height: 450px;
  }

  .float-img-left,
  .float-img-right {
    max-width: 150px;
  }
}

@media (max-width: 768px) {
  .hero-wrapper {
    height: 850px !important;
  }
  .phone-img {
    max-width: 100% !important;
    width: 80% !important;
    z-index: 1;
  }
  .float-img-left {
    top: 0;
    left: 15px;
    width: 200px;
    height: 200px !important;
    z-index: 15 !important;
  }
  .float-img-right {
    right: 0px;
    bottom: 0px;
    max-width: none !important;
    width: 200px !important;
    height: 200px !important;
    z-index: 10;
  }
  .trust-section,
  .testimonials-section,
  #features,
  #how-it-works {
    padding: 3rem 1rem;
  }

  .trust-icon {
    width: 56px;
    height: 56px;
    font-size: 1.5rem;
  }

  .trust-badge p {
    font-size: 1rem;
  }

  .register-button {
    padding: 1.25rem 2rem;
    font-size: 1.0625rem;
  }

  .footer-top {
    flex-direction: column;
    padding: 20px 10px;
    gap: 2.5rem;
    .footer-social a {
      width: 30px;
      height: 30px;
      font-size: 16px;
      svg {
        width: 18px;
        height: 18px;
      }
    }
  }
  .footer-logo-section {
    width: 80% !important;
    p {
      text-align: right;
    }
  }
  .footer-bottom {
    flex-direction: column;
    flex-direction: row-reverse;
    align-items: center;
    justify-content: center;
    text-align: center;
    .footer-copyright {
      text-align: right !important;
    }
  }

  .footer-links {
    flex-direction: row;
    gap: 1rem;
    width: 100%;
    align-items: center;
    justify-content: center;
  }

  .phone-container {
    min-height: 400px;
    margin-top: 2rem;
  }

  .float-img-left,
  .float-img-right {
    display: none;
  }

  .phone-img {
    max-width: 250px;
  }

  .testimonial-card {
    padding: 2rem 1.5rem;
  }

  .how-it-works-card {
    h3 {
      font-size: 14px;
      margin-bottom: 0;
    }
    p {
      font-size: 12px;
      margin-bottom: 0;
    }
  }
  .video-control-btn {
    width: 50px;
    height: 50px;
    font-size: 0.8125rem;
  }

  .video-control-btn.play-btn {
    width: 75px;
    height: 75px;
    font-size: 1.5rem;
  }
  .testimonial-card p {
    color: #000;
    font-size: 16px;
    font-weight: 600;
    margin: 20px 0;
  }
  .how-it-works-card .arrow-icon {
    width: 32px !important;
    height: 32px !important;
    border-radius: 50% !important;
    font-size: 16px !important;
  }
}

@media (max-width: 480px) {
  .hero-badge {
    padding: 0.75rem 1.25rem;
  }

  .hero-badge p {
    font-size: 0.8125rem;
  }

  #home h1 {
    font-size: 2rem;
  }

  .register-button {
    padding: 1rem 1.75rem;
    font-size: 1rem;
  }

  .footer-container {
    padding: 2.5rem 1.5rem 2rem;
  }
}
#download {
  @media (min-width: 768px) {
    background-image: url("../assets/imgs/download/download-bg.png");
    background-size: 70% 100%;
    background-position: left;
    background-repeat: no-repeat;
  }
}
/* Modal Styles */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(8px);
  z-index: 10000;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

#success-overlay {
  align-items: center;
  justify-content: center;
}

/* Registration Modal - Mobile: Slides up from bottom, Desktop: Centered with fade */
.registration-modal {
  background: white;
  width: 100%;
  max-width: 500px;
  border-radius: 24px 24px 0 0;
  padding: 2rem 1.5rem;
  position: relative;
  transform: translateY(100%);
  opacity: 0;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease;
  max-height: 90vh;
  overflow-y: auto;
  overflow-x: hidden;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
  display: flex;
  flex-direction: column;
}

.modal-overlay.active .registration-modal {
  transform: translateY(0);
  opacity: 1;
}

/* Desktop: Centered with fade effect */
@media (min-width: 768px) {
  #registration-overlay {
    align-items: center;
    justify-content: center;
  }

  .registration-modal {
    border-radius: 24px;
    transform: translateY(0) scale(0.9);
    opacity: 0;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
    padding: 1.5rem 2rem;
    max-height: none;
    overflow-y: visible;
  }

  .modal-overlay.active .registration-modal {
    transform: translateY(0) scale(1);
    opacity: 1;
  }

  .modal-illustration {
    height: 120px;
  }

  .modal-title {
    margin-bottom: 0.5rem;
    font-size: 1.375rem;
  }

  .modal-description {
    margin-bottom: 1.5rem;
    font-size: 0.875rem;
  }

  .modal-form {
    gap: 1.25rem;
  }
}

.modal-close {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: transparent;
  border: none;
  font-size: 1.5rem;
  color: #000;
  cursor: pointer;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background 0.2s ease;
  z-index: 10;
}

.modal-close:hover {
  background: rgba(0, 0, 0, 0.05);
}

.modal-illustration {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 150px;
  height: auto;
  flex-shrink: 0;
  overflow: visible;
}

.modal-illustration svg,
.modal-illustration img {
  max-width: 100%;
  height: auto;
  width: auto;
  display: block;
  object-fit: contain;
}

.modal-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #000;
  text-align: center;
  margin-bottom: 0.75rem;
}

.modal-description {
  font-size: 20px;
  color: #4b5563;
  text-align: center;
  line-height: 1.6;
  margin-bottom: 2rem;
}

.modal-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-group label {
  font-size: 0.875rem;
  font-weight: 600;
  color: #1f2937;
  text-align: right;
}

.phone-input-wrapper {
  display: flex;
  align-items: center;
  background: white;
  border: 1px solid #d1d5db;
  border-radius: 12px;
  overflow: hidden;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  direction: ltr;
}

.phone-input-wrapper:focus-within {
  border-color: #23b1c8;
  box-shadow: 0 0 0 3px rgba(35, 177, 200, 0.1);
}

.country-code {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  color: #1f2937;
  white-space: nowrap;
  order: 1;
  padding: 0.875rem 1rem !important;
}

.saudi-flag {
  font-size: 1.25rem;
}

.phone-input-wrapper input {
  flex: 1;
  border: none;
  outline: none;
  padding: 0.875rem 1rem;
  font-size: 1rem;
  color: #1f2937;
  background: white;
  direction: ltr;
  text-align: right;
  order: 2;
  min-width: 0;
  width: 100%;
}

.phone-input-wrapper input::placeholder {
  color: #9ca3af;
}

.form-group select {
  width: 100%;
  padding: 0.875rem 1rem;
  border: 1px solid #d1d5db;
  border-radius: 12px;
  font-size: 1rem;
  color: #1f2937;
  background: white;
  cursor: pointer;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23374151' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: left 1rem center;
  padding-right: 1rem;
  padding-left: 3rem;
}

.form-group select:focus {
  outline: none;
  border-color: #23b1c8;
  box-shadow: 0 0 0 3px rgba(35, 177, 200, 0.1);
}

.error-message {
  font-size: 0.75rem;
  color: #ef4444;
  text-align: right;
  min-height: 1.25rem;
  display: block;
}

.submit-btn {
  background: #23b1c8;
  color: white;
  border: none;
  padding: 1rem 2rem;
  border-radius: 50px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.1s ease;
  margin-top: 0.5rem;
  width: 40%;
  margin-right: auto;
  margin-left: 0;
}

.submit-btn:hover {
  background: #1fa0b0;
}

.submit-btn:active {
  transform: scale(0.98);
}

/* Success Modal - Centered */
.success-modal {
  background: white;
  width: 90%;
  max-width: 400px;
  border-radius: 24px;
  padding: 2.5rem 1.5rem;
  position: relative;
  transform: scale(0.8) translateY(-20px);
  opacity: 0;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
  text-align: center;
}

.modal-overlay.active .success-modal {
  transform: scale(1) translateY(0);
  opacity: 1;
}

.success-illustration {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0 auto 1.5rem;
  height: 150px;
}

.success-title {
  font-size: 1.75rem;
  font-weight: 700;
  color: #000;
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.confetti {
  font-size: 1.5rem;
  animation: bounce 0.6s ease infinite;
}

@keyframes bounce {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

.success-message {
  font-size: 1.125rem;
  color: #1f2937;
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.success-description {
  font-size: 20px;
  color: #414651;
  margin-top: 10px;
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .registration-modal {
    border-radius: 20px 20px 0 0;
    padding: 1rem 1rem;
    max-height: 100vh;
    overflow-y: visible;
    display: flex;
    flex-direction: column;
  }

  .modal-illustration {
    min-height: 80px;
    height: auto;
    flex-shrink: 0;
    overflow: visible;
  }

  .modal-illustration svg,
  .modal-illustration img {
    max-width: 100%;
    height: auto;
    width: auto;
    object-fit: contain;
  }

  .modal-title {
    font-size: 20px;

    margin-bottom: 10px;
    flex-shrink: 0;
  }

  .modal-description {
    font-size: 20px;
    color: #414651;
    margin-bottom: 10px;
    flex-shrink: 0;
  }

  .modal-form {
    gap: 0.875rem;
    flex: 1;
    min-height: 0;
  }

  .form-group {
    gap: 0.375rem;
    flex-shrink: 0;
  }

  .form-group label {
    font-size: 0.8125rem;
  }

  .phone-input-wrapper,
  .phone-input-wrapper input,
  .form-group select {
    padding: 0.625rem 0.75rem;
    font-size: 0.9375rem;
  }

  .submit-btn {
    padding: 0.75rem 1.5rem;
    font-size: 0.9375rem;
    margin-top: 0;
    flex-shrink: 0;
  }

  .success-modal {
    width: 95%;
    padding: 2rem 1.5rem;
  }

  .success-title {
    font-size: 1.5rem;
  }
}

/* Owl Carousel Customization */
.owl-carousel {
  direction: rtl;
  background-color: #fff !important;
}
.owl-carousel .owl-nav {
  margin-top: 2rem;
}

.owl-carousel .owl-nav button {
  width: 50px;
  height: 50px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  color: white;
  font-size: 1.5rem;
  transition: all 0.3s ease;
  margin: 0 0.5rem;
}

.owl-carousel .owl-nav button:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: scale(1.1);
}

.owl-carousel .owl-dots {
  margin-top: 1.5rem;
}

.owl-carousel .owl-dots button.owl-dot {
  width: 12px;
  height: 12px;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  margin: 0 0.25rem;
  transition: all 0.3s ease;
}

.owl-carousel .owl-dots button.owl-dot.active {
  background: white;
  transform: scale(1.3);
}

/* Video Animation Styles for FAQ Section */
/* Exit animations */
@keyframes videoSlideOut {
  0% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
  50% {
    opacity: 0.5;
    transform: translateY(-15px) scale(0.98);
  }
  100% {
    opacity: 0;
    transform: translateY(-30px) scale(0.95);
  }
}

@keyframes desktopVideoSlideOut {
  0% {
    opacity: 1;
    transform: translateX(0) scale(1);
  }
  50% {
    opacity: 0.6;
    transform: translateX(-25px) scale(0.98);
  }
  100% {
    opacity: 0;
    transform: translateX(-50px) scale(0.95);
  }
}

/* Animation classes */
.video-container.exiting {
  animation: videoSlideOut 0.5s ease-out forwards;
}

#main-video-container.exiting .video-wrapper {
  animation: desktopVideoSlideOut 0.5s ease-out forwards;
}

/* Loading state */
#main-video-container.loading .video-wrapper {
  filter: blur(2px);
  opacity: 0.7;
}

/* Video container styles */
.how-it-works-card {
  cursor: pointer;
  transition: all 0.3s ease;
}

.how-it-works-card:hover {
  transform: translateY(-2px);
}

.how-it-works-card.active {
  border-color: #23b1c8;
  background-color: rgba(35, 177, 200, 0.05);
}

/* Mobile video containers */
.mobile-video-container {
  opacity: 0;
  visibility: hidden;
  max-height: 0;
  overflow: hidden;
  transition: all 0.5s ease;
  display: block; /* Show by default */
}

@media (min-width: 768px) {
  .mobile-video-container {
    display: none; /* Hide on desktop */
  }
}

.mobile-video-container.active {
  opacity: 1;
  visibility: visible;
  max-height: 1000px;
}

.mobile-video-container .video-wrapper {
  transition: all 0.3s ease;
}

.mobile-video-container.exiting {
  animation: videoSlideOut 0.5s ease-out forwards;
}

.mobile-video-container.loading .video-wrapper {
  filter: blur(2px);
  opacity: 0.7;
}

.mobile-video-container video {
  width: 100%;
  height: 256px; /* h-64 */
  object-fit: cover;
  border-radius: 1rem;
}

/* Exit animations for mobile */
@keyframes mobileVideoSlideOut {
  0% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
  50% {
    opacity: 0.5;
    transform: translateY(-10px) scale(0.98);
  }
  100% {
    opacity: 0;
    transform: translateY(-20px) scale(0.95);
  }
}

.mobile-video-container.exiting {
  animation: mobileVideoSlideOut 0.4s ease-out forwards;
}

.mobile-video-container.loading .video-wrapper {
  filter: blur(2px);
  opacity: 0.7;
}

.how-it-works-card .video-container {
  margin-top: 1rem;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.how-it-works-card .video-container video {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

/* Desktop video container */
#main-video-container {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
  opacity: 0 !important;
  visibility: hidden !important;
  max-height: 0 !important;
  transition: opacity 0.5s ease, visibility 0.5s ease, max-height 0.5s ease;
}

@media (max-width: 767px) {
  #main-video-container {
    display: none; /* Hide on mobile */
  }
}

#main-video-container.active {
  opacity: 1 !important;
  visibility: visible !important;
  max-height: 1000px !important;
}

#main-video-container .video-wrapper {
  transition: all 0.3s ease;
}

#main-video-container video {
  width: 100%;
  object-fit: cover;
}

/* Arrow icon rotation */
.how-it-works-card.active .arrow-icon {
  transform: rotate(-90deg);
}

.how-it-works-card .arrow-icon {
  transition: transform 0.3s ease;
}
