@import url('https://fonts.googleapis.com/css2?family=Tajawal:wght@400;500;700;900&display=swap');

* {
  font-family: 'Tajawal', sans-serif;
  scroll-behavior: smooth;
}

.hero-pattern {
  background-image: linear-gradient(rgba(248, 250, 252, 0.92), rgba(248, 250, 252, 0.92)), url('assets/favicon.png');
  background-size: 460px;
  background-position: center;
}

.float-card {
  animation: float 5s ease-in-out infinite;
}

.card {
  border: 1px solid rgba(15, 23, 42, 0.09);
  background: rgba(255, 255, 255, 0.88);
  border-radius: 28px;
  padding: 30px;
  transition: 0.35s;
  box-shadow: 0 18px 55px rgba(15, 23, 42, 0.07);
}

.card:hover,
.car:hover {
  transform: translateY(-10px);
  border-color: rgba(37, 99, 235, 0.35);
  box-shadow: 0 25px 70px rgba(37, 99, 235, 0.14);
}

.card span {
  font-size: 42px;
}

.card h3 {
  margin-top: 18px;
  font-size: 24px;
  font-weight: 900;
}

.card p {
  margin-top: 12px;
  color: #475569;
  line-height: 2;
}

.brand {
  display: flex;
  min-height: 150px;
  align-items: center;
  justify-content: center;
  border-radius: 28px;
  border: 1px solid rgba(15, 23, 42, 0.09);
  background: linear-gradient(135deg, #eff6ff, #fff);
  font-size: 28px;
  font-weight: 900;
  letter-spacing: 1px;
  transition: 0.35s;
  color: #1e3a8a;
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.06);
}

.brand:hover {
  transform: scale(1.04);
  background: linear-gradient(135deg, #dbeafe, #fff);
}

.car {
  overflow: hidden;
  border-radius: 28px;
  border: 1px solid rgba(15, 23, 42, 0.09);
  background: #fff;
  transition: 0.35s;
  box-shadow: 0 18px 50px rgba(15, 23, 42, 0.07);
}

.car img {
  height: 250px;
  width: 100%;
  object-fit: cover;
  transition: 0.6s;
}

.car:hover img {
  transform: scale(1.08);
}

.car h3 {
  padding: 20px;
  font-size: 24px;
  font-weight: 900;
  color: #0f172a;
}

.contact-panel {
  position: relative;
  overflow: hidden;
  border-radius: 36px;
  border: 1px solid rgba(37, 99, 235, 0.14);
  background: linear-gradient(135deg, #eff6ff 0%, #fff 58%, #dbeafe 100%);
  padding: 34px;
  box-shadow: 0 28px 80px rgba(15, 23, 42, 0.10);
}

.contact-panel:before {
  content: "";
  position: absolute;
  inset: auto -80px -120px auto;
  width: 300px;
  height: 300px;
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.12);
  filter: blur(12px);
}

.contact-box {
  display: flex;
  align-items: center;
  gap: 16px;
  border-radius: 24px;
  border: 1px solid rgba(37, 99, 235, 0.16);
  background: rgba(255, 255, 255, 0.9);
  padding: 20px;
  font-weight: 800;
  transition: 0.3s;
  color: #1e3a8a;
  box-shadow: 0 15px 40px rgba(15, 23, 42, 0.06);
  backdrop-filter: blur(10px);
}

.contact-box span {
  display: grid;
  height: 48px;
  width: 48px;
  place-items: center;
  border-radius: 16px;
  background: #eff6ff;
  font-size: 24px;
}

.contact-box strong {
  display: block;
  font-size: 18px;
  color: #0f172a;
}

.contact-box small {
  display: block;
  margin-top: 5px;
  color: #475569;
  font-size: 15px;
  line-height: 1.7;
}

.contact-box:hover {
  background: #fff;
  transform: translateY(-4px);
  box-shadow: 0 22px 55px rgba(37, 99, 235, 0.14);
}

.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: 1s;
}

.reveal.show {
  opacity: 1;
  transform: translateY(0);
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-18px); }
}

@media (max-width: 767px) {
  #menu.open {
    display: flex;
    position: absolute;
    top: 76px;
    left: 16px;
    right: 16px;
    flex-direction: column;
    border: 1px solid rgba(15, 23, 42, 0.12);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.98);
    padding: 22px;
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.12);
  }

  .car img {
    height: 210px;
  }
}
