* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Tajawal", sans-serif;
  color: #222;
  background: #fff;
}

button {
  border: 0;
  cursor: pointer;
  font-family: inherit;
}

img {
  max-width: 100%;
  display: block;
}


.top-bar {
  position: relative;
  height: 50px;
  background: #9b27b0;
  color: #fff;
}

.top-slider {
  width: 100%;
  height: 50px;
}

.top-slider .swiper-slide {
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.close-top-bar {
  position: absolute;
  top: 50%;
  left: 20px;
  z-index: 10;

  width: 25px;
  height: 25px;

  display: flex;
  align-items: center;
  justify-content: center;

  border: 0;
  color: #fff;
  background: transparent;
  font-size: 25px;
  line-height: 1;
  transform: translateY(-50%);
  cursor: pointer;
}

.close-top-bar:hover {
  color: #ddd;
}


nav {
  position: sticky;
  top: 0;
  right: 0;
  z-index: 1000;

  width: 100%;
  height: 100px;
  padding: 0 8%;

  display: flex;
  align-items: center;
  justify-content: space-between;

  background: #fff;
  box-shadow: 0 2px 5px #0002;
}

nav img {
  width: 45px;
  height: 45px;
  object-fit: contain;
}

.nav-icons {
  width: 160px;
  display: flex;
  justify-content: space-between;
  gap: 18px;
}

.nav-icons button,
.menu-button {
  color: #999;
  background: transparent;
  font-size: 20px;
  transition: color 0.3s ease;
}
.menu-button{
  display: none;
}

.nav-icons button:hover,
.menu-button:hover {
  color: #9b27b0;
}


.categories {
  padding: 80px 20px;
  text-align: center;
}

.categories p,
.testimonials > p {
  margin: 10px 0;
  color: #777;
}

.line {
  width: 50px;
  height: 3px;
  margin: 20px auto;
  background: #9b27b0;
}

.category-images {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.category-images img {
  width: 140px;
  height: 170px;
}


.special-offer {
  padding: 60px 20px;
  color: #fff;
  text-align: center;
  background: #9b27b0;
}

.special-offer p {
  margin: 15px 0;
}

.special-offer button,
.hero-slider button {
  padding: 10px 22px;
  border-radius: 25px;
  color: #9b27b0;
  background: #fff;
}

.hero-section {
  margin: 40px 0;
}

.hero-slider {
  height: 400px;
  color: #fff;
  background: linear-gradient(120deg, #93659e, #4f1b66);
}

.hero-slider .swiper-slide {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 15px;
  text-align: center;
}

.hero-slider p {
  color: #f5eafa;
}
.hero-slider .swiper-button-next,
.hero-slider .swiper-button-prev{
  color: #fff;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.hero-slider:hover .swiper-button-next,
.hero-slider:hover .swiper-button-prev {
opacity: 1;
}

.services {
  width: 100%;
  padding: 40px 8%;
  display: flex;
  justify-content:center;
  gap: 30px;
  text-align: center;
  border-bottom: 1px solid #ddd;
    text-align: center;
}
.services div{
  width: 100%;
}
.services i {
  margin-bottom: 10px;
  color: #9b27b0;
  font-size: 30px;
}

.services p {
  color: #777;
}


.testimonials {
  padding: 70px 5%;
  text-align: center;
  background: #fafafa;
}

.testimonials-slider {
  padding: 30px 10px 60px;
}

.review-card {
  min-height: 250px;
  padding: 30px;
  border-radius: 20px;
  color: #222;
  background: #fff;

  text-align: right;
}

.quote {
  height: 35px;
  font-size: 60px;
  font-weight: bold;
  line-height: 30px;
}

.review-card p {
  margin: 15px 0;
  color: #777;
  line-height: 1.8;
}

.stars {
  margin: 15px 0 8px;
  color: #f5b301;
  font-size: 20px;
  letter-spacing: 3px;
}

.review-card span {
  color: #999;
  font-size: 14px;
}

.swiper-pagination-bullet-active {
  background: #a52ac1;
}
.trusted-brands {
  padding: 70px 5%;
  text-align: center;
  background-color: #fff;
}

.trusted-brands > p {
  margin: 10px 0 30px;
  color: #777;
}

.brands-slider {
  padding: 15px 10px 55px;
}

.brand-card {
  height: 130px;
  padding: 25px;

  display: flex;
  align-items: center;
  justify-content: center;

  border: 1px solid #eee;
  border-radius: 15px;
  background-color: #fff;
  transition: 0.3s ease;
}

.brand-card:hover {
  transform: translateY(-6px);
}

.brand-card img {
  width: 120px;
  height: 70px;
  object-fit: contain;
  filter: grayscale(100%);
  opacity: 0.7;
  transition: 0.3s ease;
}

.brand-card:hover img {
  filter: grayscale(0);
  opacity: 1;
}

.brands-slider .swiper-button-next,
.brands-slider .swiper-button-prev {
  color: #9b27b0;
}

.brands-slider .swiper-pagination-bullet-active {
  background-color: #9b27b0;
}
.blog-section,
.best-blog {
  padding: 70px 5%;
  text-align: center;
  background: #fff;
}


.blog-placeholder {
  width: min(90%, 420px);
  min-height: 230px;
  margin: 25px auto;

  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 15px;

  border: 1px dashed #ccc;
  border-radius: 18px;
  background: #fafafa;
}

.blog-placeholder img {
  width: 110px;
  height: 110px;
  object-fit: contain;
  opacity: 0.55;
}

.blog-placeholder span {
  color: #999;
}

.all-blog{
  display: flex;
  gap: 20px;
}


.newsletter {
  padding: 70px 20px;
  color: #fff;
  text-align: center;
  background-color: #8021a3;
}

.newsletter-content {
  width: min(100%, 650px);
  margin: auto;
}

.newsletter p {
  margin: 12px 0 25px;
  color: #f0e5f2;
}

.newsletter-form {
  display: flex;
  max-width: 550px;
  margin: auto;
  gap: 10px;
}

.newsletter-form input {
  flex: 1;
  min-width: 0;
  padding: 14px 18px;
background-color: #a34eba;
  border: 0;
  outline: 0;
  border-radius: 50px;
  font-family: inherit;
  direction: rtl;
  border:1px solid #cda4db ;
}

.newsletter-form input::placeholder {
color: #cda4db;
}


.newsletter-form button {
  padding: 0 25px;
  border-radius: 50px;
  color: #9b27b0;
  background: #fff;
  font-weight: 700;
}
.newsletter-form .inp{
  background-color: #303042;
  border: 1px solid #5a5a69;
}
.newsletter-form .inp::placeholder{
color: #83838f;
;
}


footer {
  color: #fff;
  background: #24152b;
}

.footer-content {
  padding: 55px 8%;

  display: grid;
  grid-template-columns: 1fr 1fr 1.5fr;
  gap: 50px;
}

.footer-about img {
  width: 55px;
  margin-bottom: 18px;
  filter: brightness(0) invert(1);
}

.footer-about p,
.footer-newsletter p {
  max-width: 330px;
  color: #cfc5d2;
  line-height: 1.8;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links h3,
.footer-newsletter h3 {
  margin-bottom: 12px;
  color: #fff;
}

.footer-links a {
  color: #cfc5d2;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: #d875e6;
}

.footer-newsletter .newsletter-form {
  margin: 20px 0 0;
}

.footer-bottom {
  padding: 18px;
  text-align: center;
  border-top: 1px solid #ffffff22;
}

.footer-bottom p {
  color: #cfc5d2;
  font-size: 14px;
}


@media (max-width: 768px) {
   nav {
    height: 80px;
    padding: 0 5%;
  }

  nav img {
    width: 40px;
    height: 40px;
  }

  .nav-icons {
    gap: 10px;
  }
  .menu-button{
    display: block;
  }

  .services {
    align-items: flex-start;
    flex-direction: column;
    padding: 35px 15%;
  }

  .hero-slider {
    height: 320px;
  }
  .newsletter-form {
    flex-direction: column;
  }

  .newsletter-form input {
    width: 100%;
    min-height: 48px;
  }

  .newsletter-form button {
    min-height: 48px;
  }

  .footer-content {
    grid-template-columns: 1fr;
    gap: 35px;
    text-align: center;
  }

  .footer-about p,
  .footer-newsletter p {
    margin: auto;
  }

  .footer-links {
    align-items: center;
  }
}
