.carousel-button {
  background-color: rgba(0, 0, 0, 0.4);
  border: none;
  color: white;
  font-size: 30px;
  padding: 10px 15px;
  border-radius: 50%;
  cursor: pointer;
  z-index: 10;
  transition: background 0.3s;
}

.carousel-button:hover {
  background-color: rgba(0, 0, 0, 0.7);
}
.features-list {
  list-style: inside disc;
  margin-bottom: 40px;
  /* font-size: 1.1rem; */
  color: #444;
  padding-right: 10px;
}

.features-list li {
}

.features-list li{
  margin-bottom: 12px;
 /* font-weight: 800; */
 color: #444;
 line-height: 2;
}

.prev-btn {
  position: absolute;
  left:0%;
  top: 50%;
  transform: translateY(-50%);
}

.next-btn {
  position: absolute;
  right: 0%;
  top: 50%;
  transform: translateY(-50%);
}

.btn {
  display: block;
  background-color: #556B2F;
  color: #fff;
  padding: 16px 60px;
  font-size: 1.2rem;
  font-weight: bold;
  border-radius: 50px;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.3s ease;
margin: 20px auto 0% auto;
width: 30%;
text-align: center;
}

.btn:hover {
  background-color: #2E49FF;
}

@media (max-width: 760px) {

  .btn{

    display: block;
  background-color: #556B2F;
  color: #fff;
  padding: 16px 60px;
  font-size: 1.2rem;
  font-weight: bold;
  border-radius: 50px;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.3s ease;
margin: 20px auto 0% auto;
width: 90%;
text-align: center;

  }
}
 



.container {
  width: 100%;
  max-width: 1200px;
  margin: auto;
  padding: 20px;
}

.row1 {
  display: flex;
  justify-content: space-between;
  margin-bottom: 20px;
  align-items: flex-start;
  flex-wrap: nowrap; 
}

.left-box {
  width: 100%;
  background-color: #ffffff;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  font-size: 18px;
  line-height: 1.8;
  color: #333;
}

.left-box ul{
    /* list-style: none; */
    padding: 0;
 
}
.left-box ul li {
  margin-bottom: 8px;
  font-size: 20px;
}

.left-box  ul li:hover {
  color: #3B857B;
  /* text-shadow: 0px 8px 15px gray; */
}

.left-box p{
  /* font-size: larger;
  font-weight: bolder; */
  margin-bottom:30px ;
}

.cityDiv {
  width: 50%;
}
.cityDiv .left-box{
 
  height: 485px;
  align-content: center;
}
.compoundDiv{
  width: 50%;
}

.priceDiv{
  width: 50%;
}
.priceDiv .left-box{
  height: 780px;
  align-content: center;
}
@media (max-width: 768px) {

  .cityDiv {
    width: 90%;
    margin: auto;
  }
  .cityDiv .left-box{
    height: fit-content;
    height: 520px;
    align-content: center;
  }
  .compoundDiv{
    margin: auto;
    width: 90%;
  }

  .priceDiv{
    margin: auto;
    width: 90%;
  }

  .priceDiv .left-box{
    height: fit-content;
   
    align-content: center;
  }
  
}

/* الصورة الافتراضية في السلايدر */
.carousel__item img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
  transition: transform 0.3s ease;
}

/* حجم الصورة في الشاشات من 0 إلى 320px */
@media (max-width: 320px) {
  .carousel__item img {
    height: 200px !important;
  }
}

/* حجم الصورة في الشاشات من 321 إلى 700px */
@media (min-width: 321px) and (max-width: 700px) {
  .carousel__item img {
    height: 200px !important;
  }
}

/* حجم الصورة في الشاشات من 701 إلى 768px */
@media (min-width: 701px) and (max-width: 768px) {
  .carousel__item img {
    height: 200px !important;
  }
}



.right-box {
  /* height: 870px; */
  align-content: center;
  width: 100%;
  background-color: #556B2F;
  color: white;
  padding: 20px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.right-box p {
  margin: 0;
  font-size: 22px;
}



/* اعمالنا */
.portfolio {
    text-align: center;
    padding: 50px 20px;
    background: #f8f8f8;
}
.portfolio h2 {
    font-size: 32px;
    margin-bottom: 20px;
    color: #333;
}

.portfolio-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}
.project {
    position: relative;
    width: 300px;
    overflow: hidden;
    border-radius: 10px;
    cursor: pointer;
    transition: transform 0.3s ease;
}
.project:hover {
    transform: scale(1.05);
}
.project img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 10px;
}
.project h3 {
    position: absolute;
    bottom: 7px;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.6);
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;
    
    color: white;
    padding: 10px;
    font-size: 18px;
}

.modal {
    display: none; 
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    justify-content: center;
    align-items: center;
    z-index: 200;
}


.modal-content {
    background: white;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    max-width: 500px;
    position: relative;
}
.modal img {
    width: 50%;
    border-radius: 10px;
}
.modal h2 {
    margin: 10px 0;
    color: #333;
}
.modal p {
    color: #666;
}
.modal a {
    display: inline-block;
    margin-top: 10px;
    padding: 5px 10px;
    background: #007BFF;
    color: white;
    text-decoration: none;
    border-radius: 5px;
}
.modal .close {
    position: absolute;
    top: -10px; 
    right: 0px;
    width: 30px;
    height: 30px;
    font-size: 20px;
    font-weight: bold;
    border: 2px solid #000;
    border-radius: 50%;
    background: white;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    transition: 0.3s;
}
/* اعمالنا */


/* media */
@media (max-width: 768px) {
    .counter-container {
        gap: 15px; 
    }
    .counter-box {
        width: 160px; 
        padding: 15px;
    }
    .service-box {
        width: 100%;
    }

    .row1 {
      flex-direction: column;
    }
  
    .left-box, .right-box {
      width: 100%;
    }
  
    .right-box{
      height: fit-content;
      align-items: center;
    }
  
    .cover-section {
      height: 250px;
    }
  
    .cover-overlay h1 {
      font-size: 24px;
    }
    
}


@media (max-width: 480px) {
    .counter-container {
        flex-direction: column; 
        align-items: center; 
        gap: 10px;
    }
    .counter-box {
        width: 80%; 
    }
    .service-box p {
        font-size: 18px;
    }
}



/*  */
.main-container {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100%;
  padding: 40px 20px;
  box-sizing: border-box;
}

.carousel-wrapper {
  perspective: 1000px;
  width: 300px;
  height: 400px;
}

.carousel {
  width: 100%;
  height: 100%;
  position: relative;
  transform-style: preserve-3d;
  transition: transform 0.5s ease;
}

.card {
  position: absolute;
  width: 300px;
  height: 200px;
  background-size: cover;
  background-position: center;
  border-radius: 15px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
  cursor: pointer;
  top: 100px;
  left: 0;
  z-index: 1;
}

.card::before {
  content: "";
  position: absolute;
  top: -10px;
  left: -10px;
  right: -10px;
  bottom: -10px;
  background: radial-gradient(
    circle at center,
    rgba(255, 255, 255, 0.4) 10%,
    transparent 110%
  );
  border-radius: 20px;
  z-index: -1;
  animation: pulseGlow 3s infinite ease-in-out;
  filter: blur(20px);
  opacity: 0.6;
}

@keyframes pulseGlow {
  0%, 100% {
    transform: scale(1);
    opacity: 0.6;
  }
  50% {
    transform: scale(1.1);
    opacity: 1;
  }
}

.lightbox-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.lightbox-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.lightbox-img {
  max-width: 90%;
  max-height: 80%;
  border-radius: 10px;
  box-shadow: 0 0 30px rgba(255, 255, 255, 0.2);
  position: relative;
}

.close-btn2 {
  position: absolute;
  top: 20px;
  right: 30px;
  font-size: 30px;
  color: #fff;
  cursor: pointer;
  z-index: 10000;
}

@media (max-width: 768px) {
  .carousel-wrapper {
    width: 200px;
    height: 280px;
  }

  .card {
    width: 180px;
    height: 110px;
    top: 40px; 
  }
}

@media (max-width: 600px) {
  .main-container {
    display: none;
  }
}

.card .caption,
.card img {
  pointer-events: none;
}
/*  */
  .mini-slider {
    display: flex;
    width: 70%;
    margin: 5% auto 5% auto ;
    height: 300px;
    align-items: center;
    font-family: Arial;
    position: relative;
  }
  .carousel__list {
    display: flex;
    margin: auto;
    list-style: none;
    position: relative;
    width: 40%;
    height: 100%;
    justify-content: center;
    perspective: 300px;
  }

  .carousel__item {
    margin: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 20px;
    width: 100%;
    height: 100%;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(50, 50, 50, 0.5);
    position: absolute;
    transition: all 0.3s ease-in;
    cursor: pointer;
  }

  .carousel__item:nth-child(1) { background: linear-gradient(45deg, #2D35EB 0%, #904ED4 100%); }
  .carousel__item:nth-child(2) { background: linear-gradient(45deg, #2D35EB 0%, #fdbb2d 100%); }
  .carousel__item:nth-child(3) { background: linear-gradient(45deg, #2D35EB 0%, #22c1c3 100%); }
  .carousel__item:nth-child(4) { background: linear-gradient(45deg, #fdbb2d 0%, #904ED4 100%); }
  .carousel__item:nth-child(5) { background: linear-gradient(45deg, #22c1c3 0%, #904ED4 100%); }
  .carousel__item:nth-child(7) { background: linear-gradient(45deg, #2D35EB 0%, #22c1c3 100%); }
  .carousel__item:nth-child(6) { background: linear-gradient(45deg, #fdbb2d 0%, #904ED4 100%); }


  .carousel__item[data-pos="0"] { z-index: 5; }
  .carousel__item[data-pos="-1"],
  .carousel__item[data-pos="1"] {
    opacity: 0.7;
    filter: blur(1px) grayscale(10%);
  }

  .carousel__item[data-pos="-1"] {
    transform: translateX(-40%) scale(0.9);
    z-index: 4;
  }

  .carousel__item[data-pos="1"] {
    transform: translateX(40%) scale(0.9);
    z-index: 4;
  }

  .carousel__item[data-pos="-2"],
  .carousel__item[data-pos="2"] {
    opacity: 0.4;
    filter: blur(3px) grayscale(20%);
  }

  .carousel__item[data-pos="-2"] {
    transform: translateX(-70%) scale(0.8);
    z-index: 3;
  }

  .carousel__item[data-pos="2"] {
    transform: translateX(70%) scale(0.8);
    z-index: 3;
  }
  .carousel__item img {
    height: 200px;
    width: 95%;
    object-fit: cover;
    border-radius: 8px;
    transition: transform 0.3s ease;
  }
  
  .carousel__item img:hover {
    transform: scale(1.05);
  }


@media (max-width:500px) {
  .mini-slider {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 900px;
    padding: 15px 0;
    font-family: Arial, sans-serif;
  }

  .carousel__list {

    display: flex;
    list-style: none;
    position: relative;
    width: 100%;
    height:100%;
    justify-content: center;
    perspective: 600px;
    margin: 0;
    padding: 0;
  }

  .carousel__item {
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease-in-out;
    cursor: pointer;
  }

  /* .carousel__item img {
    width: 90%;
    height: 500px;
    object-fit: contain;
    border-radius: 10px;
  } */

  .carousel__item[data-pos="0"] {
    z-index: 5;
    transform: scale(1);
    opacity: 1;
    filter: none;
  }

  .carousel__item[data-pos="-1"],
  .carousel__item[data-pos="1"] {
    z-index: 4;
    transform: translateX(calc(var(--dir) * 35%)) scale(0.88);
    opacity: 0.65;
    filter: blur(1px) grayscale(15%);
  }

  .carousel__item[data-pos="-2"],
  .carousel__item[data-pos="2"] {
    z-index: 3;
    transform: translateX(calc(var(--dir) * 60%)) scale(0.75);
    opacity: 0.35;
    filter: blur(3px) grayscale(25%);
  }

  .carousel__item[data-pos="-1"] { --dir: -1; }
  .carousel__item[data-pos="1"]  { --dir: 1; }
  .carousel__item[data-pos="-2"] { --dir: -1; }
  .carousel__item[data-pos="2"]  { --dir: 1; }
}


/*  */


/* .mini-slider {
  display: none;
} */

/* نعرضه فقط في الشاشات الصغيرة */
@media (max-width: 700px) {
  .mini-slider {
    display: flex;
    width: 100%;
    height: 300px;
    align-items: center;
    font-family: Arial;
    position: relative;
  }
  .carousel__list {
    display: flex;
    list-style: none;
    position: relative;
    width: 100%;
    height: 300px;
    justify-content: center;
    perspective: 300px;
  }

  .carousel__item {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 20px;
    width: 40%;
    /* height: 300px; */
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(50, 50, 50, 0.5);
    position: absolute;
    transition: all 0.3s ease-in;
    cursor: pointer;
  }

  .carousel__item:nth-child(1) { background: linear-gradient(45deg, #2D35EB 0%, #904ED4 100%); }
  .carousel__item:nth-child(2) { background: linear-gradient(45deg, #2D35EB 0%, #fdbb2d 100%); }
  .carousel__item:nth-child(3) { background: linear-gradient(45deg, #2D35EB 0%, #22c1c3 100%); }
  .carousel__item:nth-child(4) { background: linear-gradient(45deg, #fdbb2d 0%, #904ED4 100%); }
  .carousel__item:nth-child(5) { background: linear-gradient(45deg, #22c1c3 0%, #904ED4 100%); }

  .carousel__item[data-pos="0"] { z-index: 5; }
  .carousel__item[data-pos="-1"],
  .carousel__item[data-pos="1"] {
    opacity: 0.7;
    filter: blur(1px) grayscale(10%);
  }

  .carousel__item[data-pos="-1"] {
    transform: translateX(-40%) scale(0.9);
    z-index: 4;
  }

  .carousel__item[data-pos="1"] {
    transform: translateX(40%) scale(0.9);
    z-index: 4;
  }

  .carousel__item[data-pos="-2"],
  .carousel__item[data-pos="2"] {
    opacity: 0.4;
    filter: blur(3px) grayscale(20%);
  }

  .carousel__item[data-pos="-2"] {
    transform: translateX(-70%) scale(0.8);
    z-index: 3;
  }

  .carousel__item[data-pos="2"] {
    transform: translateX(70%) scale(0.8);
    z-index: 3;
  }
  /* .carousel__item img {
  width: 100%;
  height:500px;
  object-fit: contain; 
  border-radius: 12px;
} */

}

@media (max-width: 320px) {
  .mini-slider {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 300px;
    padding: 15px 0;
    font-family: Arial, sans-serif;
  }

  .carousel__list {
    display: flex;
    list-style: none;
    position: relative;
    width: 100%;
    height: 300px;
    justify-content: center;
    perspective: 600px;
    margin: 0;
    padding: 0;
  }

  .carousel__item {
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 300px;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease-in-out;
    cursor: pointer;
  }

  /* .carousel__item img {
    width: 100%;
    height: 300px;
    object-fit: contain;
    border-radius: 10px;
  } */

  .carousel__item[data-pos="0"] {
    z-index: 5;
    transform: scale(1);
    opacity: 1;
    filter: none;
  }

  .carousel__item[data-pos="-1"],
  .carousel__item[data-pos="1"] {
    z-index: 4;
    transform: translateX(calc(var(--dir) * 35%)) scale(0.88);
    opacity: 0.65;
    filter: blur(1px) grayscale(15%);
  }

  .carousel__item[data-pos="-2"],
  .carousel__item[data-pos="2"] {
    z-index: 3;
    transform: translateX(calc(var(--dir) * 60%)) scale(0.75);
    opacity: 0.35;
    filter: blur(3px) grayscale(25%);
  }

  .carousel__item[data-pos="-1"] { --dir: -1; }
  .carousel__item[data-pos="1"]  { --dir: 1; }
  .carousel__item[data-pos="-2"] { --dir: -1; }
  .carousel__item[data-pos="2"]  { --dir: 1; }
}
/*  */
