
/* اعمالنا */
.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;
    color: black;
    /* display: flex; */
    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%;
    }
}


@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: 100%;
    height: 100%;
    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: 200px;
    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: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 {
  width: 100%;
  height: 100%;
  object-fit: contain; 
  border-radius: 12px;
}



@media (max-width: 320px) {
  .mini-slider {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: auto;
    padding: 15px 0;
    font-family: Arial, sans-serif;
  }

  .carousel__list {
    display: flex;
    list-style: none;
    position: relative;
    width: 100%;
    height: 220px;
    justify-content: center;
    perspective: 600px;
    margin: 0;
    padding: 0;
  }

  .carousel__item {
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 110px;
    height: 180px;
    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: 100%;
    object-fit: cover;
    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: 100%;
    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: 150px;
    height: 250px;
    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: 100%;
  object-fit: contain; 
  border-radius: 12px;
}

}

@media (max-width: 320px) {
  .mini-slider {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: auto;
    padding: 15px 0;
    font-family: Arial, sans-serif;
  }

  .carousel__list {
    display: flex;
    list-style: none;
    position: relative;
    width: 100%;
    height: 220px;
    justify-content: center;
    perspective: 600px;
    margin: 0;
    padding: 0;
  }

  .carousel__item {
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 110px;
    height: 180px;
    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: 100%;
    object-fit: cover;
    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; }
}
/*  */
