@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Sans+Arabic:wght@100;200;300;400;500;600;700&display=swap');

:root {
  --primary-color: #0ea5e9;
  --primary-color-dark: #0284c7;
  --text-light: #252525;
  --error-color: #ef4444;
  --success-color: #10b981;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: "IBM Plex Sans Arabic", sans-serif;
}

.main {
  width: 100%;
  min-height: 100vh;
  background-color: white;
  position: relative;
  padding: 0 5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

nav {
  width: 100%;
  position: absolute;
  top: 0;
  left: 0;
  padding: 2rem 5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 1000;
}

nav .logo {
  color: var(--text-light);
  font-size: 1.2rem;
  font-weight: 500;
}

nav ul {
  display: flex;
  gap: 3rem;
  list-style: none;
}

nav ul li a {
  text-decoration: none;
  color: #25252588;
  font-size: 1rem;
  font-weight: 400;
  transition: 0.3s;
}

nav ul li a:hover {
  color: #252525;
}

nav ul li a.disabled {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}

nav ul li a.active {
  padding: 0.5rem 1.5rem;
  border-radius: 2rem;
  border: 1.5px solid #252525;
  color: #252525;
}

nav ul li a.login {
  padding: 0.5rem 1.5rem;
  border-radius: 2rem;
  border: 2px solid #252525;
  color: #f3f4f6;
  background-color: #252525;
  transition: all 0.3s ease;
}

nav ul li a.login:hover {
  border-color: #000;
  background-color: #000;
}

.content {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  align-items: center;
  justify-content: center;
  color: var(--text-light);
}

.content-text {
  display: flex;
  gap: 2rem;
  align-items: center;
  justify-content: center;
}

.content h1 {
  font-size: 4rem;
  flex-shrink: 0;
  padding-right: 2rem;
}

.divider {
  width: 3px;
  height: 100%;
  min-height: 80px;
  background: var(--text-light);
}

.content p {
  font-size: 1.5rem;
  flex: 1;
  text-align: right;
}

.content .promo {
  position: absolute;
  bottom: 3rem;
  left: 50%;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 2.5rem;
  border-radius: 2rem;
  font-size: 1rem;
  border: 1.5px solid #252525;
  color: #252525;
  transition: 0.3s;
  cursor: pointer;
  text-decoration: none;
  z-index: 999;
}

.content .promo:hover {
  background-color: #252525;
  color: #f3f4f6;
  transition: 0.5s;
}

/* زر القائمة */
.menu-toggle {
  display: none;
  font-size: 2rem;
  color: var(--text-light);
  cursor: pointer;
}

/* --- Services UI --- */
.services-section {
  min-height: 100vh;
  padding: 8rem 5rem 5rem;
  background-color: #ffffff;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3rem;
}

.services-slider-container {
  width: 100vw;
  max-width: 100%;
  overflow-x: auto;
  padding: 0 5rem;
  padding-bottom: 2rem;
  scrollbar-width: none;
}

.services-slider-container::-webkit-scrollbar {
  display: none;
}

.services-slider {
  display: flex;
  gap: 1.5rem;
  width: max-content;
  margin: 0 auto;
}

.service-card {
  border-radius: 1.5rem;
  padding: 3rem;
  position: relative;
  overflow: hidden;
  display: flex;
  justify-content: center;
  transition: transform 0.3s;
}

.main-card {
  background-color: #bbf7d0;
  width: 750px;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
}

.main-card .card-content {
  flex: 1;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.5rem;
  text-align: right;
}

.pill-badge {
  display: inline-flex;
  align-items: center;
  background-color: rgba(22, 163, 74, 0.15);
  color: #166534;
  padding: 0.4rem 1rem 0.4rem 0.4rem;
  border-radius: 2rem;
  font-size: 0.95rem;
  font-weight: 500;
  gap: 0.8rem;
}

.pill-badge .pill-tag {
  background-color: #16a34a;
  color: white;
  padding: 0.2rem 0.8rem;
  border-radius: 2rem;
  font-weight: 600;
  font-size: 0.85rem;
}

.main-title {
  font-size: 2.5rem;
  font-weight: 600;
  color: #1f2937;
  line-height: 1.2;
}

.starts-from {
  font-size: 1.1rem;
  color: #4b5563;
  line-height: 1.4;
}

.starts-from strong {
  font-size: 1.8rem;
  color: #1f2937;
}

.btn-primary {
  background-color: #1e293b;
  color: white;
  padding: 1rem 2.5rem;
  border-radius: 2rem;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.1rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: none;
  cursor: pointer;
}

.btn-primary:hover {
  background-color: #0f172a;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(30, 41, 59, 0.2);
}

.main-image {
  width: 300px;
  height: auto;
  object-fit: contain;
  margin-bottom: -10rem;
  z-index: 1;
}

.small-cards-column {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  width: 400px;
}

.small-card {
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  padding: 2.5rem;
  height: 100%;
}

.orange-bg {
  background-color: #fed7aa;
}

.blue-bg {
  background-color: #bfdbfe;
}

.small-card .card-text {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  z-index: 2;
}

.small-card h3 {
  font-size: 1.3rem;
  font-weight: 500;
  color: #1f2937;
}

.view-more {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: #4b5563;
  text-decoration: none;
  font-size: 0.9rem;
  transition: 0.3s;
  font-weight: 400;
}

.view-more:hover {
  color: #1f2937;
}

.small-image {
  width: 140px;
  height: 140px;
  object-fit: contain;
}

/* Infinite Marquee Wrapper */
.marquee-wrapper {
  width: 100vw;
  max-width: 100%;
  overflow: hidden;
  position: relative;
  margin-top: 2rem;
  padding: 1rem 0;
  cursor: grab;
  -webkit-mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
  mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
}

.marquee-wrapper:active {
  cursor: grabbing;
}

.services-categories {
  display: flex;
  gap: 1.5rem;
  width: max-content;
  flex-wrap: nowrap;
  animation: scrollRTL 20s linear infinite;
  padding: 0 0.5rem;
}

.marquee-wrapper:hover .services-categories {
  animation-play-state: paused;
}

@keyframes scrollRTL {
  0% { transform: translateX(0); }
  100% { transform: translateX(calc(50% + 0.75rem)); }
}

@keyframes scrollRTLReverse {
  0% { transform: translateX(calc(50% + 0.75rem)); }
  100% { transform: translateX(0); }
}

.bottom-row {
  display: none;
}

.category-pill {
  flex-shrink: 0;
  white-space: nowrap;
  background-color: #f9fafb;
  color: #6b7280;
  padding: 0.8rem 1.8rem;
  border-radius: 0.8rem;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: 0.3s;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
}

.category-pill:hover {
  background-color: #f3f4f6;
  color: #1f2937;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

@media (max-width: 1200px) {
  .services-slider-container {
    padding: 0 2rem;
  }

  .main-card {
    width: 600px;
    flex-direction: column;
    text-align: center;
    align-items: center;
    padding: 3rem 2rem;
  }

  .main-card .card-content {
    align-items: center;
    text-align: center;
  }

  .main-image {
    display: none;
  }

  .small-cards-column {
    width: 350px;
  }

  .services-section {
    padding: 6rem 0rem 3rem;
  }
}

@media (max-width: 768px) {
  .services-slider {
    flex-direction: column;
    width: 100%;
  }

  .services-slider-container {
    overflow-x: hidden;
    padding: 0 1.5rem;
  }

  .main-card,
  .small-cards-column {
    width: 100%;
  }

  .main-title {
    font-size: 2rem;
  }

  .small-card {
    flex-direction: row;
    text-align: right;
    padding: 1.5rem;
    gap: 1rem;
    align-items: center;
  }

  .small-card h3 {
    font-size: 1.2rem;
  }

  .small-image {
    width: 90px;
    height: 90px;
  }

  .marquee-wrapper {
    -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    width: 100vw;
    margin-top: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 0;
  }

  .services-categories {
    flex-wrap: nowrap;
    justify-content: flex-start;
    width: max-content;
    padding: 0 0.5rem;
  }

  .top-row {
    animation: scrollRTL 20s linear infinite;
  }

  .bottom-row {
    display: flex;
    animation: scrollRTLReverse 20s linear infinite;
  }

  .content-text {
    flex-direction: column;
    text-align: center;
  }

  .content h1 {
    border-right: none;
    padding-right: 0;
  }

  .divider {
    display: none;
  }

  .content p {
    text-align: center;
  }

  nav {
    padding: 1.5rem 2rem;
    z-index: 1000;
  }

  nav ul {
    position: fixed;
    inset: 0;
    width: 100%;
    background: rgba(253, 253, 253, 0.6);
    backdrop-filter: blur(8px);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 3rem;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
  }

  nav ul.active {
    opacity: 1;
    visibility: visible;
  }

  nav ul li a {
    font-size: 1.6rem;
  }

  .menu-toggle {
    display: flex;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    z-index: 1001;
  }

  .menu-toggle span {
    width: 28px;
    height: 3px;
    background: #252525;
    transition: 0.4s ease;
  }

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

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

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

/* --- Footer Section --- */
footer {
  background-color: #252525;
  color: #f3f4f6;
  padding: 3rem 2rem;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.footer-bottom p {
  font-size: 1rem;
  font-weight: 300;
  opacity: 0.7;
  letter-spacing: 0.5px;
  text-align: center;
}