:root {
  --color-background: #0f1115;
  --color-silver: #c0c0c0;
  --color-blue: #3fa9f5;
  --color-blue-dark: #247ccc;
  --color-panel: #151820;
  --font-base: 'Poppins', 'Segoe UI', Roboto, sans-serif;
  --font-base-rtl: 'Cairo', 'Tajawal', 'Segoe UI', sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: var(--font-base);
  background: var(--color-background);
  color: var(--color-silver);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

body[dir='rtl'] {
  font-family: var(--font-base-rtl);
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover,
a:focus {
  color: var(--color-blue);
}

img {
  max-width: 100%;
  border-radius: 10px;
  display: block;
}

.container {
  width: min(1100px, 92%);
  margin: 0 auto;
}

.site-header {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  padding: 24px 0;
  z-index: 40;
  background: linear-gradient(180deg, rgba(15, 17, 21, 0.85) 0%, rgba(15, 17, 21, 0) 100%);
  backdrop-filter: blur(8px);
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo {
  font-size: clamp(1.2rem, 2vw + 0.5rem, 1.8rem);
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid rgba(63, 169, 245, 0.6);
  box-shadow: 0 12px 28px rgba(63, 169, 245, 0.25);
  background: rgba(15, 17, 21, 0.65);
}

.logo span {
  color: var(--color-blue);
}

.brand-inline {
  direction: ltr;
  unicode-bidi: bidi-override;
  display: inline-block;
  white-space: nowrap;
}

.ltr-text {
  direction: ltr;
  unicode-bidi: bidi-override;
  display: inline-block;
  white-space: nowrap;
}

.language-switcher {
  padding: 0;
}

.switcher-content {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 12px;
  font-size: 0.85rem;
  color: rgba(192, 192, 192, 0.75);
}

.language-switcher a {
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: all 0.25s ease;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.85);
}

.language-switcher a[aria-current='page'] {
  border-color: rgba(63, 169, 245, 0.85);
  background: rgba(63, 169, 245, 0.2);
  color: #ffffff;
  box-shadow: 0 6px 18px rgba(63, 169, 245, 0.25);
}

.language-switcher .divider {
  color: rgba(192, 192, 192, 0.4);
}

body[dir='rtl'] .header-content {
  flex-direction: row;
}

body[dir='rtl'] .switcher-content {
  justify-content: flex-end;
}

body[dir='rtl'] .logo {
  direction: ltr;
  unicode-bidi: bidi-override;
}

.section {
  padding: 80px 0;
}

.section h2 {
  font-size: clamp(2rem, 2.6vw + 1rem, 3rem);
  margin-bottom: 16px;
  color: #ffffff;
}

.section-intro {
  margin-bottom: 48px;
  max-width: 640px;
  color: rgba(192, 192, 192, 0.8);
}

.section.accent {
  background: var(--color-panel);
  border-top: 1px solid rgba(192, 192, 192, 0.08);
  border-bottom: 1px solid rgba(192, 192, 192, 0.08);
}

.hero {
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #ffffff;
  background: linear-gradient(rgba(15, 17, 21, 0.7), rgba(15, 17, 21, 0.7)),
    url('https://images.unsplash.com/photo-1503736334956-4c8f8e92946d?auto=format&fit=crop&w=1600&fm=webp') center/cover no-repeat;
  padding-top: 120px;
}

.hero .overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(63, 169, 245, 0.35), rgba(15, 17, 21, 0.85));
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 720px;
  padding: 40px 24px;
}

.tagline {
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.8rem;
  color: var(--color-blue);
  margin-bottom: 12px;
}

body[dir='rtl'] .tagline {
  text-transform: none;
  letter-spacing: 0.03em;
  font-size: 1.35rem;
  font-weight: 600;
}

.hero h1 {
  font-size: clamp(2.8rem, 4vw + 1rem, 4.2rem);
  margin-bottom: 16px;
}

.hero-subtext {
  font-size: 1.05rem;
  margin-bottom: 32px;
  color: rgba(255, 255, 255, 0.85);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
}

.btn {
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 600;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn.primary {
  background: linear-gradient(135deg, var(--color-blue), var(--color-blue-dark));
  color: #0f1115;
  box-shadow: 0 12px 24px rgba(63, 169, 245, 0.3);
}

.btn.secondary {
  border: 1px solid rgba(63, 169, 245, 0.6);
  color: #ffffff;
  background: rgba(15, 17, 21, 0.6);
  backdrop-filter: blur(6px);
}

.btn:hover,
.btn:focus {
  transform: translateY(-2px);
  box-shadow: 0 16px 30px rgba(63, 169, 245, 0.35);
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}

.service-card {
  background: rgba(21, 24, 32, 0.8);
  border: 1px solid rgba(192, 192, 192, 0.08);
  padding: 28px;
  border-radius: 18px;
  backdrop-filter: blur(6px);
  transition: border-color 0.25s ease, transform 0.25s ease;
}

.service-card:hover {
  border-color: rgba(63, 169, 245, 0.8);
  transform: translateY(-4px);
}

.service-card h3 {
  margin-bottom: 12px;
  font-size: 1.2rem;
  color: #ffffff;
}

.two-column {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 48px;
  align-items: center;
}

.about-highlights {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 16px;
}

.about-highlights li {
  padding: 16px 20px;
  border-radius: 14px;
  background: rgba(15, 17, 21, 0.65);
  border: 1px solid rgba(63, 169, 245, 0.2);
}

.carousel {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 12px;
  align-items: center;
  direction: ltr;
}

body[dir='rtl'] .carousel {
  direction: ltr;
}

.carousel-window {
  overflow: hidden;
  border-radius: 18px;
  border: 1px solid rgba(192, 192, 192, 0.12);
  height: clamp(220px, 36vw, 360px);
  background: rgba(15, 17, 21, 0.4);
}

.carousel-track {
  display: flex;
  transition: transform 0.6s ease;
  height: 100%;
  direction: ltr;
}

body[dir='rtl'] .carousel-track {
  direction: ltr;
}

.carousel-item {
  min-width: 100%;
  height: 100%;
}

.carousel-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.carousel-control {
  background: rgba(15, 17, 21, 0.8);
  color: #ffffff;
  border: 1px solid rgba(63, 169, 245, 0.6);
  border-radius: 50%;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: background 0.25s ease;
}

.carousel-control:hover,
.carousel-control:focus {
  background: rgba(63, 169, 245, 0.7);
}

.contact-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 12px;
}

.contact-list strong {
  color: #ffffff;
}

.map-placeholder {
  background: rgba(21, 24, 32, 0.8);
  border: 1px dashed rgba(63, 169, 245, 0.4);
  border-radius: 18px;
  padding: 32px;
  text-align: center;
  color: rgba(192, 192, 192, 0.75);
}

.footer {
  padding: 40px 0;
  background: #0c0d11;
  text-align: center;
}

.footer p {
  margin: 6px 0;
  color: rgba(192, 192, 192, 0.75);
}

.contact-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  gap: 12px;
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  background: rgba(15, 17, 21, 0.9);
  backdrop-filter: blur(12px);
  z-index: 30;
}

.contact-bar__btn {
  flex: 1;
  text-align: center;
  border-radius: 999px;
  padding: 14px 16px;
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.contact-bar__btn--call {
  background: linear-gradient(135deg, var(--color-blue), var(--color-blue-dark));
  color: #0f1115;
  box-shadow: 0 12px 26px rgba(63, 169, 245, 0.3);
}

.contact-bar__btn--whatsapp {
  background: linear-gradient(135deg, #4ac959, #128c7e);
  color: #ffffff;
  box-shadow: 0 12px 26px rgba(18, 140, 126, 0.35);
}

.contact-bar__btn:hover,
.contact-bar__btn:focus {
  transform: translateY(-2px);
  box-shadow: 0 16px 32px rgba(63, 169, 245, 0.3);
}

body[dir='rtl'] .contact-bar {
  direction: rtl;
}

@media (min-width: 768px) {
  .contact-bar {
    width: auto;
    left: auto;
    right: 32px;
    bottom: 32px;
    padding: 12px 16px;
    border-radius: 999px;
    gap: 8px;
  }

  .contact-bar__btn {
    flex: none;
    padding: 12px 20px;
  }
}

@media (max-width: 768px) {
  .site-header {
    padding: 16px 0;
  }

  .logo {
    padding: 8px 14px;
    letter-spacing: 0.12em;
  }

  .switcher-content {
    font-size: 0.78rem;
  }

  .section {
    padding: 64px 0;
  }

  .hero {
    min-height: 80vh;
    padding-top: 140px;
  }

}

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .carousel-track {
    transition-duration: 0.01ms !important;
  }
}
