/* Font imports */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

/* Careem font */
@font-face {
  font-family: 'Careem';
  src: url('fonts/Careem-Bold.woff2') format('woff2'),
       url('fonts/Careem-Bold.woff') format('woff');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Careem';
  src: url('fonts/Careem-Regular.woff2') format('woff2'),
       url('fonts/Careem-Regular.woff') format('woff');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* Reset and base styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --color-dark: #0D1B34;
  --color-primary: #265BA2;
  --color-secondary: #8696BB;
  --color-light: #F8FAFC;
  --color-white: #FFFFFF;
  --color-blue-light: #E6F0FF;
  --color-green-light: #E6FFF0;
  --color-purple-light: #F0E6FF;
  --color-amber-light: #FFF6E6;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Careem', sans-serif;
  color: var(--color-dark);
  background-color: var(--color-white);
  line-height: 1.6;
  direction: rtl;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 0.5em;
}

h1 {
  font-size: 2.5rem;
}

h2 {
  font-size: 2rem;
}

h3 {
  font-size: 1.5rem;
}

p {
  margin-bottom: 1rem;
}

a {
  color: var(--color-dark);
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: var(--color-primary);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
  font-family: 'Careem', sans-serif;
}

.btn i {
  margin-left: 0.5rem;
}

.btn-primary {
  background-color: var(--color-primary);
  color: var(--color-white);
}

.btn-primary:hover {
  background-color: #1a4580;
  color: var(--color-white);
}

.btn-outline {
  background-color: transparent;
  border: 1px solid var(--color-primary);
  color: var(--color-primary);
}

.btn-outline:hover {
  background-color: var(--color-primary);
  color: var(--color-white);
}

.btn-language {
  background-color: transparent;
  border: 1px solid var(--color-secondary);
  color: var(--color-dark);
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
}

.btn-block {
  display: block;
  width: 100%;
  margin-bottom: 1rem;
}

/* Header */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(134, 150, 187, 0.1);
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
}

.logo a {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-dark);
}

.main-nav {
  display: none;
}

.main-nav ul {
  display: flex;
  list-style: none;
}

.main-nav li {
  margin-left: 2rem;
}

.main-nav a {
  font-size: 0.9rem;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.menu-toggle {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 24px;
  height: 18px;
  background: transparent;
  border: none;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background-color: var(--color-dark);
  transition: all 0.3s ease;
}

.menu-toggle.active span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

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

.menu-toggle.active span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* Mobile Menu */
.mobile-menu {
  display: none;
  background-color: var(--color-white);
  border-top: 1px solid rgba(134, 150, 187, 0.1);
  padding: 1rem 0;
}

.mobile-menu.active {
  display: block;
}

.mobile-menu ul {
  list-style: none;
}

.mobile-menu li {
  padding: 0.75rem 0;
}

.mobile-menu a {
  display: block;
  font-size: 1rem;
}

.mobile-cta {
  margin-top: 1rem;
  width: 100%;
}

/* Hero Section */
.hero {
  padding: 4rem 0 6rem;
  background: linear-gradient(to bottom, var(--color-white), #f8fafc);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 20%;
  right: 5%;
  width: 300px;
  height: 300px;
  background-color: rgba(134, 150, 187, 0.1);
  border-radius: 50%;
  filter: blur(60px);
  z-index: 0;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: 10%;
  left: 5%;
  width: 350px;
  height: 350px;
  background-color: rgba(38, 91, 162, 0.1);
  border-radius: 50%;
  filter: blur(60px);
  z-index: 0;
}

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-text {
  text-align: center;
  margin-bottom: 3rem;
}

.hero-text h1 {
  margin-bottom: 1rem;
  font-size: 2.5rem;
}

.hero-text p {
  color: var(--color-secondary);
  font-size: 1.125rem;
  margin-bottom: 2rem;
}

.hero-buttons {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.hero-image {
  position: relative;
}

.phone-mockup {
  position: relative;
  width: 280px;
  height: 560px;
  background-color: var(--color-dark);
  border-radius: 36px;
  padding: 12px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.phone-screen {
  width: 100%;
  height: 100%;
  background-color: var(--color-white);
  border-radius: 28px;
  overflow: hidden;
}

.app-preview {
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, rgba(38, 91, 162, 0.2), rgba(134, 150, 187, 0.2));
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.app-logo {
  width: 80px;
  height: 80px;
  background-color: var(--color-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

.app-logo span {
  color: var(--color-white);
  font-size: 2rem;
  font-weight: 700;
}

.phone-notch {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 120px;
  height: 24px;
  background-color: var(--color-dark);
  border-bottom-left-radius: 12px;
  border-bottom-right-radius: 12px;
}

.app-badges {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 2rem;
}

.app-badge {
  display: flex;
  align-items: center;
  background-color: #000;
  color: #fff;
  padding: 0.5rem 1rem;
  border-radius: 0.75rem;
}

.badge-icon {
  margin-left: 0.5rem;
}

.badge-text {
  display: flex;
  flex-direction: column;
}

.badge-small {
  font-size: 0.625rem;
}

.badge-large {
  font-size: 0.875rem;
  font-weight: 600;
}

/* Section Header */
.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-header h2 {
  color: var(--color-dark);
  margin-bottom: 0.5rem;
}

.section-header p {
  color: var(--color-secondary);
  max-width: 600px;
  margin: 0 auto;
}

/* Features Section */
.features {
  padding: 5rem 0;
  background-color: var(--color-white);
}

.features-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

.feature-card {
  background-color: var(--color-white);
  border: 1px solid rgba(134, 150, 187, 0.1);
  border-radius: 0.75rem;
  padding: 2rem;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.feature-icon {
  width: 3rem;
  height: 3rem;
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.feature-icon i {
  font-size: 1.5rem;
}

.blue {
  background-color: #e6f0ff;
  color: #2563eb;
}

.green {
  background-color: #e6fff0;
  color: #16a34a;
}

.purple {
  background-color: #f0e6ff;
  color: #9333ea;
}

.amber {
  background-color: #fff6e6;
  color: #d97706;
}

.feature-card h3 {
  margin-bottom: 0.75rem;
}

.feature-card p {
  color: var(--color-secondary);
  margin-bottom: 0;
}

/* How It Works Section */
.how-it-works {
  padding: 5rem 0;
  background-color: var(--color-light);
}

.steps-container {
  position: relative;
}

.connecting-line {
  display: none;
}

.steps-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
}

.step-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.step-icon-wrapper {
  position: relative;
  margin-bottom: 1.5rem;
}

.step-icon {
  width: 4rem;
  height: 4rem;
  background-color: var(--color-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-white);
  position: relative;
  z-index: 2;
}

.step-icon::after {
  content: '';
  position: absolute;
  top: 0.25rem;
  left: 0.25rem;
  width: 100%;
  height: 100%;
  background-color: rgba(134, 150, 187, 0.2);
  border-radius: 50%;
  z-index: -1;
}

.step-icon i {
  font-size: 1.5rem;
}

.step-number {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 2rem;
  height: 2rem;
  background-color: var(--color-white);
  border: 4px solid rgba(134, 150, 187, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  z-index: 3;
}

.step-card h3 {
  margin-bottom: 0.5rem;
}

.step-card p {
  color: var(--color-secondary);
  margin-bottom: 0;
}

/* Testimonials Section */
.testimonials {
  padding: 5rem 0;
  background-color: var(--color-white);
}

.testimonials-slider {
  position: relative;
  overflow: hidden;
}

.testimonial-cards {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  gap: 1.5rem;
  padding-bottom: 1.5rem;
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.testimonial-cards::-webkit-scrollbar {
  display: none;
}

.testimonial-card {
  flex: 0 0 calc(100% - 2rem);
  scroll-snap-align: start;
  background-color: var(--color-white);
  border: 1px solid rgba(134, 150, 187, 0.1);
  border-radius: 0.75rem;
  padding: 1.5rem;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.testimonial-rating {
  margin-bottom: 1rem;
  color: #f59e0b;
}

.testimonial-text {
  color: var(--color-dark);
  margin-bottom: 1.5rem;
}

.testimonial-author {
  display: flex;
  align-items: center;
}

.author-avatar {
  width: 2.5rem;
  height: 2.5rem;
  background-color: var(--color-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-white);
  font-weight: 700;
  margin-left: 0.75rem;
}

.author-info h4 {
  font-size: 1rem;
  margin-bottom: 0.25rem;
}

.author-info p {
  font-size: 0.875rem;
  color: var(--color-secondary);
  margin-bottom: 0;
}

.slider-controls {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 2rem;
}

.slider-prev,
.slider-next {
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background-color: var(--color-white);
  border: 1px solid rgba(134, 150, 187, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
}

.slider-prev:hover,
.slider-next:hover {
  background-color: var(--color-primary);
  color: var(--color-white);
}

/* FAQ Section */
.faq {
  padding: 5rem 0;
  background-color: var(--color-light);
}

.faq-container {
  max-width: 800px;
  margin: 0 auto;
}

.accordion-item {
  background-color: var(--color-white);
  border: 1px solid rgba(134, 150, 187, 0.1);
  border-radius: 0.75rem;
  margin-bottom: 1rem;
  overflow: hidden;
}

.accordion-button {
  width: 100%;
  text-align: right;
  padding: 1.25rem;
  background-color: var(--color-white);
  border: none;
  font-family: 'Careem', sans-serif;
  font-weight: 600;
  font-size: 1rem;
  color: var(--color-dark);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.accordion-button i {
  transition: transform 0.3s ease;
}

.accordion-button.active i {
  transform: rotate(180deg);
}

.accordion-content {
  padding: 0;
  max-height: 0;
  overflow: hidden;
  transition: all 0.3s ease;
}

.accordion-content.active {
  padding: 0 1.25rem 1.25rem;
  max-height: 1000px;
}

.accordion-content p {
  color: var(--color-secondary);
  margin-bottom: 0;
}

/* Footer */
.footer {
  background-color: var(--color-dark);
  color: var(--color-white);
  padding: 4rem 0 2rem;
}

.footer-content {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
}

.footer-column h3,
.footer-column h4 {
  color: var(--color-white);
  margin-bottom: 1.5rem;
}

.footer-column p {
  color: var(--color-secondary);
  margin-bottom: 1.5rem;
}

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

.social-links a {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-white);
  transition: all 0.3s ease;
}

.social-links a:hover {
  background-color: var(--color-primary);
}

.footer-column ul {
  list-style: none;
}

.footer-column ul li {
  margin-bottom: 0.75rem;
}

.footer-column ul li a {
  color: var(--color-secondary);
  transition: color 0.3s ease;
}

.footer-column ul li a:hover {
  color: var(--color-white);
}

.app-store-badges {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-bottom {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(134, 150, 187, 0.2);
  text-align: center;
}

.footer-bottom p {
  color: var(--color-secondary);
  margin-bottom: 0;
}

/* Media Queries */
@media (min-width: 640px) {
  h1 {
    font-size: 3rem;
  }

  .hero-buttons {
    flex-direction: row;
  }

  .testimonial-card {
    flex: 0 0 calc(50% - 1.5rem);
  }
}

@media (min-width: 768px) {
  .main-nav {
    display: block;
  }

  .menu-toggle {
    display: none;
  }

  .hero-content {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }

  .hero-text {
    text-align: right;
    flex: 1;
    margin-bottom: 0;
    margin-left: 2rem;
  }

  .hero-image {
    flex: 1;
  }

  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .steps-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-content {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  h1 {
    font-size: 3.5rem;
  }

  .features-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .steps-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .connecting-line {
    display: block;
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 2px;
    background-color: rgba(134, 150, 187, 0.2);
    transform: translateY(-50%);
    z-index: 0;
  }

  .testimonial-card {
    flex: 0 0 calc(33.333% - 1rem);
  }

  .footer-content {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* Language specific styles */
html[lang="en"] {
  direction: ltr;
}

html[lang="en"] body {
  font-family: 'Poppins', sans-serif;
  text-align: left;
}

html[lang="en"] .main-nav li {
  margin-right: 2rem;
  margin-left: 0;
}

html[lang="en"] .btn i {
  margin-right: 0.5rem;
  margin-left: 0;
}

html[lang="en"] .hero-text {
  text-align: left;
}

html[lang="en"] .accordion-button {
  text-align: left;
}

html[lang="en"] .testimonial-author .author-avatar {
  margin-right: 0.75rem;
  margin-left: 0;
}