* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Cairo', sans-serif;
}

body {
  background: #f5fafd;
  overflow-x: hidden;
}

/* Hero Section */
.hero {
  width: 100%;
  min-height: 700px;
  background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('../images/background.webp');
  background-size: cover;
  background-position: center;
  position: relative;
  padding: 2rem 5%;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  opacity: 0.1;
  pointer-events: none;
}

.top-banner {
  background: linear-gradient(90deg, #2d3748, #1a202c);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  color: white;
  padding: 1rem;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  position: relative;
  overflow: hidden;
  font-size: 18px;
}

.top-banner::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(45deg, transparent 45%, rgba(255, 255, 255, 0.1) 50%, transparent 55%);
  animation: shine 3s infinite;
}

@keyframes shine {
  0% {
    transform: translateX(-100%);
  }

  100% {
    transform: translateX(100%);
  }
}

.top-banner a {
  color: white;
  text-decoration: underline;
  font-weight: 500;
  transition: color 0.3s ease;
}

.top-banner a:hover {
  color: #4299e1;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 4rem;
}

.logo {
  color: white;
  font-size: 2rem;
  font-weight: 700;
  font-family: 'Cairo', sans-serif;
  text-wrap: nowrap;
  position: relative;
  padding: 0.5rem 0rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  margin-top: 2rem;
}

/* Enhanced Post Ad Button Styles */
.post-ad-btn {
  background: linear-gradient(135deg, #3182ce, #2c5282);
  color: white;
  padding: 0.5rem 2rem;
  border-radius: 8px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  font-weight: 600;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 6px rgba(49, 130, 206, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.1);
  margin-top: 2rem;
}

.post-ad-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(49, 130, 206, 0.2);
}

.post-ad-btn:active {
  transform: translateY(0);
}

.post-ad-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.1) 50%, rgba(255, 255, 255, 0) 100%);
  transform: translateX(-100%);
  transition: transform 0.6s ease;
}

.post-ad-btn:hover::before {
  transform: translateX(100%);
}

.post-ad-btn i {
  font-size: 1.2rem;
}

/* Responsive styles for the button */
@media (max-width: 768px) {
  .post-ad-btn {
    padding: 0.4rem 1.5rem;
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  .post-ad-btn {
    padding: 0.4rem 1.2rem;
    font-size: 0.95rem;
  }
}

.hero-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 4rem;
  color: white;
}

.hero-text {
  flex: 1;
}

.hero-text h1 {
  font-size: 3.5rem;
  margin-bottom: 1.5rem;
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: 0;
}

.hero-text p {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  line-height: 1.6;
  font-weight: 400;
  letter-spacing: 0;
}

.search-btn {
  background: linear-gradient(135deg, #3182ce, #2c5282);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1), 0 1px 3px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: white;
  padding: 0.5rem 2rem;
  border-radius: 6px;
  text-decoration: none;
  display: inline-block;
  transition: all 0.3s ease;
  font-family: 'Cairo', sans-serif;
  position: relative;
  overflow: hidden;
}

.search-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.1) 50%, rgba(255, 255, 255, 0) 100%);
  transform: translateX(-100%);
  transition: transform 0.6s ease;
}

.search-btn:hover::before {
  transform: translateX(100%);
}

.search-btn:hover {
  background: linear-gradient(135deg, #2c5282, #1e3a5f);
  transform: translateY(-2px);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2), 0 2px 4px rgba(0, 0, 0, 0.1);
}

.features-card {
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 252, 0.95));
  padding: 2rem;
  border-radius: 10px;
  flex: 1;
  max-width: 400px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1), 0 1px 3px rgba(0, 0, 0, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(10px);
  font-family: 'Cairo', sans-serif;
  font-weight: 600;
  letter-spacing: -0.3px;
  animation: float 6s ease-in-out infinite;
  position: relative;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-10px);
  }
}

.features-card h3 {
  color: #2d3748;
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  font-weight: 600;
  letter-spacing: 0;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  color: #2d3748;
  margin-bottom: 1rem;
  padding: 0.5rem;
  border-radius: 6px;
  transition: all 0.3s ease;
  font-family: 'Cairo', sans-serif;
  font-weight: 500;
  position: relative;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.5);
}

.feature-item i {
  background: linear-gradient(135deg, #3182ce, #2c5282);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-size: 1.2rem;
}

.feature-item:hover {
  background: rgba(49, 130, 206, 0.05);
  transform: translateX(-5px);
}

/* Services Section */
.services {
  padding: 5rem 5%;
  position: relative;
  overflow: hidden;
  background: linear-gradient(45deg, #f7fafc 0%, #ffffff 25%, #f7fafc 50%, #ffffff 75%, #f7fafc 100%);
}

.services::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(45deg, transparent, rgba(49, 130, 206, 0.03) 25%, transparent 50%, rgba(49, 151, 149, 0.03) 75%, transparent);
  pointer-events: none;
}

.services h2 {
  font-size: 2.5rem;
  color: #2d3748;
  margin-bottom: 3rem;
  font-weight: 600;
  letter-spacing: 0;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  position: relative;
  z-index: 1;
}

.service-card {
  background: white;
  padding: 2.5rem;
  border-radius: 10px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05), 0 1px 3px rgba(0, 0, 0, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.6);
  border: 1px solid rgba(226, 232, 240, 0.8);
  position: relative;
  backdrop-filter: blur(10px);
  background: rgba(255, 255, 255, 0.95);
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #3182ce, #2c5282);
}

.service-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 100% 100%, rgba(255, 255, 255, 0.1) 0%, transparent 50%), radial-gradient(circle at 0% 0%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
  pointer-events: none;
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 12px rgba(0, 0, 0, 0.1), 0 3px 6px rgba(0, 0, 0, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.service-card h3 {
  color: #2d3748;
  font-size: 1.5rem;
  margin: 1rem 0;
  font-weight: 600;
  letter-spacing: 0;
}

.service-card p {
  color: #4a5568;
  line-height: 1.6;
  margin-bottom: 1.5rem;
  font-family: 'Cairo', sans-serif;
  font-weight: 400;
  letter-spacing: -0.2px;
}

.service-link {
  color: #3182ce;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem;
  border-radius: 6px;
  transition: all 0.3s ease;
  font-family: 'Cairo', sans-serif;
  font-weight: 500;
  position: relative;
  overflow: hidden;
}

.service-link::before {
  content: '';
  position: absolute;
  right: 0;
  left: auto;
  bottom: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(-90deg, #3182ce, transparent);
  transform: translateX(100%);
  transition: transform 0.3s ease;
}

.service-link:hover::before {
  transform: translateX(0);
}

.service-link:hover {
  background: rgba(49, 130, 206, 0.05);
  transform: translateX(-5px);
}

@media (max-width: 768px) {
  .hero-content {
    flex-direction: column;
  }

  .hero-text {
    width: 100%;
    margin-bottom: 2rem;
  }

  .hero-text h1 {
    font-size: 2.5rem;
  }

  .hero-text p {
    max-width: 500px;
  }

  .features-card {
    width: 100%;
    max-width: none;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .service-card {
    text-align: right;
  }

  .service-link {
    justify-content: flex-start;
  }
}

/* Additional mobile adjustments */
@media (max-width: 480px) {
  .hero {
    padding: 1.5rem 1rem;
  }

  .hero-text h1 {
    font-size: 2rem;
  }

  .hero-text p {
    font-size: 1.1rem;
  }

  .service-card {
    text-align: right;
  }

  .service-link i.fas {
    margin-right: 0.5rem;
    margin-left: 0;
  }
}

/* Add styles for the star icons */
.star-icon {
  width: 52px;
  height: 32px;
}

@media (max-width: 480px) {
  .star-icon {
    width: 38px;
    height: 28px;
  }
}

/* Update service icons style */
.service-card i.fa-2x {
  color: #3182ce;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, #3182ce, #2c5282);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-size: 2.5rem;
}

/* Add matching icon colors */
.service-card:nth-child(1) i.fa-2x {
  background: linear-gradient(135deg, #3182ce, #2c5282);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.service-card:nth-child(2) i.fa-2x {
  background: linear-gradient(135deg, #319795, #2c7a7b);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.service-card:nth-child(3) i.fa-2x {
  background: linear-gradient(135deg, #805ad5, #553c9a);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Update individual card gradients */
.service-card:nth-child(1) {
  background: linear-gradient(165deg, #ffffff 0%, rgba(49, 130, 206, 0.03) 100%);
}

.service-card:nth-child(2) {
  background: linear-gradient(165deg, #ffffff 0%, rgba(49, 151, 149, 0.03) 100%);
}

.service-card:nth-child(3) {
  background: linear-gradient(165deg, #ffffff 0%, rgba(128, 90, 213, 0.03) 100%);
}

footer {
  direction: rtl;
  width: 100%;
  height: 300px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  flex-wrap: wrap;
  z-index: 99;
  background-color: #f4f5f8;
}

.footer-logo-container {
  width: 300px;
  height: auto;
  margin-right: 5%;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  flex-wrap: wrap;
  text-decoration: none;
}

.footer-logo-container > p {
  color: #23364c;
  font-size: 16px;
  padding-right: 10px;
}

.footer-logo {
  height: 35px;
}

.footer-rights {
  width: 100%;
  font-size: 14px;
  color: #23364c;
  margin-top: 10px;
  align-items: center;
  display: flex;
  align-items: center;
  justify-content: center;
  bottom: 10px;
}

.footer-rights > img {
  width: 18px;
}

.footer-contact-links {
  width: 200px;
  margin-left: 5%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-contact-icon {
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.footer-contact-icon > img {
  height: 35px;
}

@media (max-width: 700px) {
  footer {
    height: 340px;
    flex-wrap: wrap;
    position: relative;
    align-items: flex-start;
  }

  .footer-logo-container {
    width: 92%;
    height: 70px;
    margin-right: 4%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
  }

  .footer-contact-links {
    width: 60%;
    height: 50px;
    margin-right: 20%;
    margin-left: 0;
  }

  .footer-contact-icon > img {
    height: 40px;
  }
}

/* Add explicit font declarations for all text elements */
.top-banner,
.logo,
.post-ad-btn,
.hero-text h1,
.hero-text p,
.features-card h3,
.feature-item,
.services h2,
.service-card h3,
.service-card p,
.service-link,
.footer-contact,
footer p {
  font-family: 'Cairo', sans-serif;
}
