* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  text-decoration: none;
  list-style: none;
  scroll-behavior: smooth;
  font-family: "Lato", sans-serif;
}

body {
  direction: rtl;
}

.container {
  max-width: 1120px;
  margin-inline: 1.5rem;
}

.grid {
  display: grid;
  gap: 1.5rem;
}

.section {
  padding-block: 5rem 1rem;
}

.section__title,
.section__subtitle {
  text-align: center;
}

.section__title {
  font-size: var(--h1-font-size);
  font-weight: var(--font-bold);
  margin-bottom: 1.5rem;
}

.section__subtitle {
  display: block;
  font-size: var(--normal-font-size);
  font-weight: var(--font-semi-bold);
  color: var(--second-color);
  margin-bottom: 0.5rem;
}

.main {
  overflow: hidden;
}

a {
  text-decoration: none;
  color: inherit;
}

a.btn {
  display: block;
  text-align: center;
  justify-content: center;
  padding: 12px 20px;
  background-color: #303ef2;
  color: #fff;
  text-decoration: none;
  border-radius: 5px;
  transition: background-color 0.3s ease;
  width: 200px;
  margin: 20px auto;
}

a.btn:hover {
  background-color: #1c2af8;
  color: #fff;
}
/* Navbar Styles */
#navbar {
  background: #f9f9f9;
  padding: 10px 0;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.navbar-brand-wrapper {
  display: flex;
  align-items: center;
}

.navbar-title {
  padding-top: .3125rem;
  /* padding-bottom: .3125rem; */
  margin-right: 1rem;
  font-size: 1.25rem;
  text-decoration: none;
  white-space: nowrap;
}

.logo-img {
  width: 60px;
  height: 60px;
  object-fit: contain;
  margin-left: 10px;
}

.brand-text {
  font-size: 24px;
  font-weight: 700;
  color: #303ef7;
}

.navbar-toggler {
  border: none;
  padding: 0;
}

.navbar-toggler span {
  color: #303ef2;
  font-size: 24px;
}

.navbar-nav {
  margin-right: 20px;
}

.nav-item .nav-link {
  font-size: 16px;
  font-weight: 600;
  color: #333;
  padding: 8px 15px;
  border-radius: 4px;
  transition: all 0.3s ease;
}

.nav-item .nav-link:hover,
.nav-item .nav-link.active {
  background: #303ef2;
  color: white;
}

/* Responsive adjustments */
@media (max-width: 991px) {
  .navbar-brand-wrapper {
    margin-bottom: 10px;
  }

  .navbar-nav {
    margin-right: 0;
    margin-bottom: 10px;
  }

  .btn-primary {
    width: 100%;
  }
}

/* Responsive adjustments */
@media (max-width: 991px) {
  .navbar-brand-wrapper {
    margin-bottom: 10px;
  }

  .navbar-nav {
    margin-right: 0;
    margin-bottom: 10px;
  }

  .btn-primary {
    width: 100%;
  }
}

/* Home Section Start */
.home {
  width: 100%;
  height: 90vh;
  background-image: linear-gradient(rgba(0, 0, 0, 0.16), rgba(0, 0, 0, 0.12)),
    url(../images/project-9.jpg);
  background-repeat: no-repeat;
  background-size: cover;
}

.home .content {
  text-align: center;
  padding-top: 200px;
}

.home .content h5 {
  color: white;
  font-size: 38px;
  font-weight: 550;
  text-shadow: 0px 1px 1px black;
}

.home .content h1 {
  color: white;
  font-size: 70px;
  font-weight: 550;
  text-shadow: 0px 1px 1px black;
  margin-top: 5px;
}

.changecontent::after {
  content: " ";
  color: #303ef2;
  text-shadow: 0px 1px 1px black;
  animation: changetext 10s infinite linear;
}

@keyframes changetext {
  0% {
    content: "المنازل";
  }
  10% {
    content: "الحدائق";
  }
  20% {
    content: "القصور";
  }
  30% {
    content: "الفلل";
  }
  40% {
    content: "الزجاج";
  }
  50% {
    content: "الابار";
  }
  60% {
    content: "المزارع";
  }
  70% {
    content: "المنازل";
  }
  80% {
    content: "الحدائق";
  }
  90% {
    content: "القصور";
  }
  100% {
    content: "الفلل";
  }
}

.home .content p {
  color: white;
  font-size: 15px;
  font-weight: 600;
  text-shadow: 0px 1px 1px black;
  margin-bottom: 30px;
  margin-top: 5px;
}

.home .content a {
  padding: 10px;
  background: white;
  color: black;
  letter-spacing: 2px;
  font-weight: 550;
  border-radius: 5px;
  text-decoration: none;
  transition: 0.5s;
}

.home .content a:hover {
  background: #303ef7;
  color: white;
}

@media (max-width: 850px) {
  .home {
    background-position: 50%;
  }
}

@media (max-width: 450px) {
  .home .content h5 {
    font-size: 25px;
  }
  .home .content h1 {
    font-size: 38px;
  }
  .home .content p {
    font-size: 13px;
  }
}
/* Home Section End */

/* About Us Section Start */
.about-us {
  padding: 50px 0;
  direction: rtl;
}

.about-us .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.about-us .content {
  flex: 1;
  max-width: 600px;
}

.about-us .content h4 {
  font-size: 20px;
  color: #303ef2;
  margin-bottom: 10px;
}

.about-us h2 {
  font-size: 36px;
  margin-bottom: 15px;
  color: #333;
}

.about-us p {
  font-size: 18px;
  line-height: 1.8;
  margin-bottom: 20px;
  color: #666;
}

.about__list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 0;
  list-style: none;
}

.about__list-item {
  flex: 0 0 calc(50% - 10px);
  display: flex;
  align-items: center;
  font-size: 18px;
  color: #333;
  background-color: #f5f5f5;
  padding: 10px 15px;
  margin-bottom: 10px;
  border-radius: 5px;
}

.about__list-item i {
  font-size: 24px;
  color: #303ef7;
  margin-left: 10px;
}

.about__list-item span {
  flex-grow: 1;
}

.about-us .btn {
  display: inline-block;
  padding: 12px 20px;
  background-color: #303ef2;
  color: #fff;
  text-decoration: none;
  border-radius: 5px;
  transition: background-color 0.3s ease;
}

.about-us .btn:hover {
  background-color: #1c2af8;
  color: #fff;
}

.about-us .image-section {
  position: relative;
  flex: 1;
  width: 100%;
  height: 400px;
}

.about-us .image {
  position: absolute;
  border-radius: 8px;
  overflow: hidden;
}

.about-us .image-1 {
  width: 60%;
  height: 80%;
  top: 0;
  left: 10%;
  z-index: 2;
}

.about-us .image-2 {
  width: 80%;
  height: 80%;
  bottom: 0;
  right: 0;
  z-index: 1;
}

.about-us .image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
}

@media screen and (max-width: 768px) {
  .about-us .container {
    flex-direction: column;
    text-align: center;
  }

  .about-us .image-section {
    position: relative;
    height: 300px;
    margin-top: 20px;
  }

  .about-us .image-1,
  .about-us .image-2 {
    position: static;
    width: 100%;
    height: 200px;
    margin-bottom: 20px;
  }

  .about__list {
    flex-direction: column;
    align-items: center;
  }

  .about__list-item {
    width: 70%;
  }
}
/* About Us Section End */

/* Services Section Start */
.services {
  background: #f9f9f9;
  padding: 50px 0;
}

.services .title h2 {
  font-size: 2.5rem;
  font-weight: bold;
  color: #303ef7;
  margin-bottom: 20px;
}

.services .card {
  box-shadow: rgba(0, 0, 0, 0.1) 0px 4px 12px;
  border: none;
  overflow: hidden;
  transition: all 0.3s ease-in-out;
}

.services .card:hover {
  transform: translateY(-5px);
  box-shadow: rgba(0, 0, 0, 0.2) 0px 8px 16px;
}

.services .container-img {
  overflow: hidden;
  width: 100%;
  height: 250px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.services .container-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.services .card-body {
  text-align: center;
  padding: 20px;
}

.services .card-body h3 {
  font-weight: 600;
  font-size: 1.25rem;
  color: #333;
  margin-top: 15px;
}

@media (max-width: 768px) {
  .services .container-img {
    height: 200px;
  }
}

@media (max-width: 576px) {
  .services .container-img {
    height: 150px;
  }

  .services .title h2 {
    font-size: 2rem;
  }
}
/* Services Section End */


/* Projects Section Start */
.project {
  margin-top: 50px;
}

.project .card {
  border-radius: 10px;
  box-shadow: rgba(0, 0, 0, 0.1) 0px 4px 12px;
}

.project .lnk-card {
  text-decoration: none;
}

.project .card img {
  border-radius: 10px;
  transition: 0.5s;
}

.project .card h3 {
  color: #000;
  text-align: center;
  padding: 15px;
  font-size: xx-large;
}

@media (min-width: 769px) {
  .project .card img:hover {
    transform: scale(1.1);
  }
}

@media (max-width: 768px) {
  .project .card img:hover {
    transform: none;
  }
}
/* Projects Section End */

/* Blog Section Start */
.Blog-section {
  width: 85%;
  margin: 20px auto;
}

.title {
  width: 60%;
  text-align: center;
  margin: auto;
}

.title h2 {
  text-align: center;
  font-size: 40px;
  color: #303ef7;
  text-transform: uppercase;
  margin-top: 50px;
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-gap: 50px;
  margin: 25px auto;
}

.cards .card {
  width: 100%;
  position: relative;
  border: 1px solid #ddd;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.cards .card:hover {
  transform: translateY(-10px);
}

.image-section img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  border-radius: 8px 8px 0 0;
}

.content {
  padding: 15px 20px;
}

.content h4 {
  font-size: 24px;
  color: #222;
  font-weight: 500;
}

.content p {
  font-size: 16px;
  line-height: 1.6;
  color: #555;
}

.content a {
  text-decoration: none;
  color: #fff;
  margin-top: 12px;
  display: inline-block;
  background-color: #303ef7;
  padding: 8px 15px;
  border-radius: 4px;
  transition: background-color 0.3s ease;
}

.content a:hover {
  background-color: #1c2af8;
  color: #fff;
}

.card .posted-date {
  position: absolute;
  top: 0;
  right: 0;
  color: #fff;
  background: #303ef4;
  padding: 5px 15px;
}

.posted-date p {
  margin: 0;
}

a.btn-blog {
  display: block;
  text-align: center;
  padding: 12px 20px;
  background-color: #303ef2;
  color: #fff;
  text-decoration: none;
  border-radius: 5px;
  transition: background-color 0.3s ease;
  width: 200px;
  margin: 20px auto;
}

a.btn-blog:hover {
  background-color: #1c2af8;
  color: #fff;
}

@media screen and (max-width: 992px) {
  .cards {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media screen and (max-width: 768px) {
  .cards {
    grid-template-columns: repeat(1, 1fr);
  }
  .Blog-section .title h2 {
    font-size: 30px;
  }
}
/* Blog Section End */

/* Contact Section Start */
/* Contact Section Styles */
#contact {
  padding: 80px 0;
}

#contact .text-center {
  text-align: center;
  margin-bottom: 40px;
}

#contact .contact-form {
  background-color: #f9f9f9;
  padding: 30px;
  border-radius: 10px;
}

#contact .form-label {
  font-weight: 600;
}

#contact .btn-primary {
  background-color: #303ef2;
  border-color: #303ef2;
}

#contact .btn-primary:hover {
  background-color: #1c2af8;
  border-color: #1c2af8;
}
.social-btn {
  display: flex;
  justify-content: flex-start;
  align-items: center;
}

.social-btn a {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
  border: 2px solid #303ef2;
  border-radius: 50%;
  color: #303ef2;
  font-size: 18px;
  text-decoration: none;
  color: #fff;
  transition: all 0.3s ease;
  margin-left: 10px;
}

.social-btn a:hover {
  background-color: #2a38fa;
  color: #fff;
}

.social-btn a:first-child {
  margin-left: 0;
}

.social-btn i {
  line-height: 1;
}

/* Responsive styles */
@media (max-width: 576px) {
  .social-btn {
    justify-content: center;
  }

  .social-btn a {
    width: 36px;
    height: 36px;
    font-size: 16px;
  }
}
/* Contact Section End */

/* Footer Start */
.footer {
  background-color: #f8f9fa;
  padding: 20px 0;
  text-align: center;
  width: 100%;
}

.footer p {
  color: #303ef2;
  margin: 0;
  font-size: 16px;
}

@media (max-width: 576px) {
  .footer p {
    font-size: 14px;
  }
}
/* Footer End */

/* Scroll Bar */
::-webkit-scrollbar {
  width: 0.6rem;
  background-color: hsl(255, 5%, 75%);
}

::-webkit-scrollbar-thumb {
  background-color: hsl(255, 5%, 65%);
}

::-webkit-scrollbar-thumb:hover {
  background-color: hsl(255, 5%, 55%);
}

/* Scroll Up */
.scrollup {
  position: fixed;
  right: 1rem;
  bottom: -50%;
  background-color: #303ef7;
  box-shadow: 0 4px 16px hsla(255, 90%, 8%, 0.15);
  color: white;
  display: inline-flex;
  padding: 6px;
  font-size: 1.7rem;
  text-decoration: none;
  z-index: 10;
  transition: bottom 0.4s, transform 0.4s;
}

.scrollup:hover {
  color: white;
  background-color: #303ef2;
}

.scrollup {
  transform: translateY(-0.5rem);
}

.show-scroll {
  bottom: 3rem;
}
@media (max-width: 768px) {
  .project .card img,
  .Blog-section .image-section img {
    height: auto;
    max-height: 300px;
    object-fit: cover;
  }

  .about-us .image img {
    height: auto;
    max-height: 300px;
    object-fit: cover;
  }
}

.main-nav {
  padding-right: 20px;
  margin-left: auto;
}

#container {
  display: flex;
  width: 100%;
  height: 300px;
  border: 1px solid #ddd;
  position: relative;
  overflow: hidden;
}

.container-img {
  display: flex;
  width: 100%;
  height: 250px;
  position: relative;
  overflow: hidden;
  direction: ltr;
}

.container-img img {
  width: 100%;
  height: 100%;
}

.arrows-container {
  border: 2px solid black;
  padding: 10px 10px;
  border-radius: 50%;
  gap: 5px;
}

.compare-container {
  display: flex;
  position: absolute;
  z-index: 1;
  width: 100%;
  height: 100%;

  justify-content: space-between;
  align-items: start;
  padding: 10px 10px;
  color: white;
}
.compare-container p {
  background: rgba(5, 100, 189, 0.681);
  padding: 5px 10px;
  border-radius: 50%;
  display: none;
}

.row {
  padding: 0 !important;
  margin: 0 !important;
  margin-top: 20px !important;
}

.works {
  padding-bottom: 40px;
}
.compare-container:hover p {
  display: block;
}

.compare-container:hover {
  background: rgba(0, 0, 0, 0.262);
}

