
/* Telegram Blue Themed CSS + Cairo Font */
@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@400;600;700&display=swap');

html {
  direction: rtl;
}

body {
  font-family: 'Cairo', sans-serif;
  margin: 0;
  background-color: #f4f7fa;
  color: #1f2d3d;
  line-height: 1.6;
  transition: background-color 0.3s, color 0.3s;
}
body.dark-mode {
  background-color: #121212;
  color: #e0e0e0;
}

#loader {
  position: fixed;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  z-index: 9999;
  background: white;
  display: flex;
  align-items: center;
  justify-content: center;
}
.spinner {
  border: 6px solid #f3f3f3;
  border-top: 6px solid #0088cc;
  border-radius: 50%;
  width: 60px;
  height: 60px;
  animation: spin 1s linear infinite;
}
@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

header {
  background: #0088cc;
  color: white;
  padding: 2rem 1rem 1rem;
  text-align: center;
}
header h1 {
  margin: 0;
  font-size: 2rem;
}
nav {
  margin-top: 1rem;
}
nav a {
  color: white;
  text-decoration: none;
  margin: 0 0.5rem;
  font-weight: 600;
  display: inline-block;
}

.hero {
  background: linear-gradient(120deg, #0088cc, #0ba7e2);
  color: white;
  margin: 2rem auto;
  padding: 2rem;
  width: 90%;
  max-width: 700px;
  border-radius: 16px;
  text-align: center;
  box-shadow: 0 10px 20px rgba(0,0,0,0.1);
  animation: fadeInUp 1s ease-out;
}

section, .feature {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
section.visible, .feature.visible {
  opacity: 1;
  transform: translateY(0);
}

.feature {
  background: white;
  padding: 1.5rem;
  border-radius: 12px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.05);
  max-width: 280px;
  text-align: center;
  margin-bottom: 1rem;
  transition: transform 0.3s ease;
}
.feature:hover {
  transform: translateY(-5px);
}

.top-btn {
  position: fixed;
  bottom: 20px;
  left: 20px;
  padding: 10px 15px;
  background: #0088cc;
  color: white;
  border: none;
  border-radius: 50%;
  font-size: 20px;
  cursor: pointer;
  display: none;
}
.toggle-mode {
  position: fixed;
  bottom: 20px;
  right: 20px;
  padding: 10px 15px;
  background: #0ba7e2;
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
}

.customer-logos {
  background-color: #f5faff;
  padding: 2rem 1rem;
  margin: 2rem 0;
  border-top: 1px solid #eee;
  border-bottom: 1px solid #eee;
}
.customer-logos h3 {
  text-align: center;
  margin-bottom: 0.5rem;
  font-size: 1.5rem;
  color: #0088cc;
}
.trusted-caption {
  text-align: center;
  color: #555;
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
}
.logo-carousel-container {
  position: relative;
  max-width: 1000px;
  margin: auto;
  overflow: hidden;
}
.logo-carousel {
  display: flex;
  gap: 2rem;
  overflow-x: auto;
  scroll-behavior: smooth;
  padding: 1rem 2rem;
  justify-content: center;
}
.logo-carousel::-webkit-scrollbar {
  display: none;
}
.logo-carousel img {
  max-height: 150px;
  min-width: 210px;
  max-width: 240px;
  object-fit: contain;
  filter: grayscale(100%);
  opacity: 0.9;
  transition: all 0.3s ease;
}
.logo-carousel img:hover {
  filter: grayscale(0);
  opacity: 1;
}
.logo-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: #0088cc;
  color: white;
  border: none;
  padding: 8px 12px;
  border-radius: 50%;
  font-size: 18px;
  cursor: pointer;
  z-index: 10;
}
.logo-arrow.left { right: calc(100% + 10px); }
.logo-arrow.right { left: calc(100% + 10px); }

.testimonials {
  margin-top: 2rem;
  display: grid;
  gap: 1.5rem;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}
.testimonial {
  background: #f0f9ff;
  border: 1px solid #cceeff;
  border-radius: 12px;
  padding: 1.25rem 1.5rem;
  font-size: 0.95rem;
  line-height: 1.7;
  color: #333;
}
.testimonial strong {
  display: block;
  margin-top: 0.5rem;
  color: #0088cc;
  font-weight: bold;
  font-size: 0.9rem;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  max-width: 1000px;
  margin: auto;
}
.pricing-card {
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  padding: 2rem;
  text-align: right;
  border-top: 4px solid #0088cc;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.pricing-card .card-header {
  font-size: 1.2rem;
  font-weight: bold;
  margin-bottom: 1rem;
  color: #0088cc;
}
.pricing-card .price {
  font-size: 1.4rem;
  color: #0088cc;
  margin-bottom: 1rem;
}
.features-list {
  list-style: none;
  padding: 0;
  margin-bottom: 1.5rem;
}
.features-list li {
  margin-bottom: 0.5rem;
  color: #444;
  font-size: 0.95rem;
}
.pricing-btn {
  display: block;
  background: #0088cc;
  color: white;
  text-align: center;
  padding: 0.75rem;
  border-radius: 8px;
  font-weight: bold;
  text-decoration: none;
  margin-top: auto;
}
.pricing-btn:hover {
  background: #0073b1;
}

.accordion-item {
  border-bottom: 1px solid #ddd;
  padding: 1rem 0;
  position: relative;
}
.accordion-item button {
  background: none;
  border: none;
  width: 100%;
  text-align: right;
  font-size: 1.1rem;
  color: #0088cc;
  cursor: pointer;
  font-weight: bold;
  padding-right: 1.5rem;
  position: relative;
}
.accordion-item button::before {
  content: '+';
  position: absolute;
  right: 0;
  top: 0;
  font-size: 1.2rem;
  color: #0088cc;
}
.accordion-item.open button::before {
  content: '-';
}
.accordion-content {
  display: none;
  padding-top: 0.5rem;
  color: #555;
  transition: all 0.3s ease;
}

@media (max-width: 768px) {
  nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    padding: 0 0.5rem;
    gap: 0.5rem;
  }

  nav a {
    font-size: 0.9rem;
    padding: 0.3rem 0.5rem;
    white-space: nowrap;
  }

  .hero {
    width: 95%;
    padding: 1.5rem 1rem;
    margin: 1rem auto;
  }

  .hero h2 {
    font-size: 1.1rem;
  }

  .hero p {
    font-size: 0.95rem;
  }

  .hero a {
    font-size: 0.95rem;
    padding: 0.7rem;
    display: block;
    width: 100%;
    margin-top: 1rem;
  }

  .feature {
    width: 100% !important;
    max-width: 100%;
    box-sizing: border-box;
    margin-bottom: 1rem;
  }

  .testimonial {
    font-size: 0.9rem;
    line-height: 1.6;
  }

  .logo-carousel {
    flex-wrap: wrap;
    justify-content: center;
  }

  .logo-carousel img {
    min-width: 120px;
    max-width: 45%;
    margin-bottom: 1rem;
  }

  .logo-arrow {
    display: none;
  }

  .pricing-grid {
    grid-template-columns: 1fr;
    padding: 0 1rem;
  }

  .pricing-card {
    padding: 1.25rem;
    font-size: 0.95rem;
  }

  .accordion-item button {
    font-size: 1rem;
  }

  .accordion-content {
    font-size: 0.9rem;
  }
}
