:root {
  --bg: #0b1220;
  --card: #111827;
  --text: #e5e7eb;
  --muted: #9ca3af;
  --primary: #38bdf8;
  --light-info: #a5f3fc;
}

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

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: Poppins, sans-serif;
}

body.ar {
  direction: rtl;
  font-family: Cairo, sans-serif;
  text-align: center;
}

header {
  min-height: 100vh;
  background:
    linear-gradient(rgba(0, 0, 0, 0.45), rgba(0, 0, 0, 0.45)),
    url('assets/car.jpg') center/cover no-repeat;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
}

header .header-content {
  text-align: center;
}

.fade-in {
  opacity: 0;
  animation: fadeIn 1.5s forwards;
  animation-delay: 0.3s;
}

@keyframes fadeIn {
  to {
    opacity: 1;
  }
}

.top-controls {
  position: absolute;
  top: 20px;
}
body.ar .top-controls {
  left: 20px;
}
body:not(.ar) .top-controls {
  right: 20px;
}

.lang-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--text);
  padding: 7px 14px;
  border-radius: 20px;
  cursor: pointer;
  font-weight: 600;
}

h1 {
  font-size: 3rem;
  color: var(--primary);
}
p {
  margin: 20px 0;
  font-size: 1.1rem;
  color: var(--muted);
}

.btn {
  background: var(--primary);
  color: #020617;
  padding: 14px 36px;
  border-radius: 30px;
  text-decoration: none;
  font-weight: 700;
  display: inline-block;
  transition:
    transform 0.3s,
    background-color 0.3s,
    box-shadow 0.3s;
}
.btn:hover {
  transform: translateY(-3px);
  background-color: #22d3ee;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

section {
  padding: 80px 10%;
  text-align: center;
}

.services {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 30px;
  justify-items: center;
}

.card {
  background: var(--card);
  padding: 30px;
  border-radius: 20px;
  transition:
    transform 0.3s,
    box-shadow 0.3s;
}
.card:hover {
  transform: translateY(-5px) scale(1.03);
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.5);
}
.card h3 {
  color: var(--primary);
  margin-bottom: 10px;
}

.map-btn {
  display: inline-block;
  margin-top: 15px;
  padding: 10px 22px;
  border: 1px solid var(--primary);
  border-radius: 25px;
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s;
}
.map-btn:hover {
  background-color: #22d3ee;
  color: #020617;
  transform: translateY(-3px);
}

/* phone & email مودرن */
.contact-info {
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 1.05rem;
  transition: color 0.3s;
}
.contact-info:hover {
  color: #81e6d9;
}

/* Flip phone icon horizontally */
.contact-info .fa-phone-alt {
  transform: scaleX(-1);
}

/* force LTR for phone/email even in Arabic */
.contact-info.ltr {
  direction: ltr;
  unicode-bidi: embed;
}

/* Social Media Icons - Font Awesome */
.socials {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-bottom: 15px;
}
.socials .social-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--card);
  color: var(--primary);
  font-size: 18px;
  transition:
    transform 0.3s,
    background-color 0.3s,
    color 0.3s;
}
.socials .social-btn:hover {
  transform: scale(1.2);
}
.socials .facebook:hover {
  color: #1877f2;
}
.socials .instagram:hover {
  color: #e1306c;
}
.socials .tiktok:hover {
  color: #69c9d0;
}

/* Scroll to top button */
#scrollTopBtn {
  position: fixed;
  bottom: 25px;
  right: 25px;
  display: none;
  background: var(--primary);
  color: #020617;
  border: none;
  padding: 12px 15px;
  border-radius: 50%;
  font-size: 18px;
  cursor: pointer;
  z-index: 999;
  transition: all 0.3s;
}
#scrollTopBtn:hover {
  transform: scale(1.2);
  background-color: #22d3ee;
}

footer {
  background: #020617;
  text-align: center;
  padding: 25px;
  font-size: 14px;
  color: var(--muted);
  direction: ltr;
}

/* ===== Responsive ===== */
@media (max-width: 600px) {
  header h1 {
    font-size: 2rem;
  }
  header p {
    font-size: 1rem;
  }
  .btn {
    padding: 12px 28px;
    font-size: 0.9rem;
  }
  section {
    padding: 60px 5%;
  }
  .services {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}
@media (max-width: 900px) {
  header h1 {
    font-size: 2.5rem;
  }
  header p {
    font-size: 1.05rem;
  }
  .services {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  }
  .card {
    padding: 25px;
  }
}
