*,
*::before,
*::after{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
      display: flex;
      justify-content: center;
      align-items: center;
      min-height: 100vh;
      color: #fff;
      overflow: hidden;
      /* Transição para que a mudança de cor do fundo seja suave */
      transition: background 0.7s ease-in-out; 
    }

.swiper{
    width: 100%;
    padding: 70px 0;

}

.swiper-slide{
    position: relative;
    width: 320px;
    aspect-ratio: 3/4;
    border-radius: 14px;
    border: 1px solid rgba(177, 177, 177, 0.4);
}


.swiper-slide img{
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: inherit;
    user-select: none;
}

 .project-title {
        position: absolute;
        bottom: 80px;
        text-align: center;
        width: 100%;
        padding: 0 10px;
        font-size: 1.2rem;
        font-weight: 700;
        z-index: 10;
        text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
    }

.title{
    position: absolute;
    bottom: 5px;
    left: 50%;
    transform: translate(-50%, -20%);
    -ms-transform: translate(-50%, -20%);
    width: max-content;
    text-align: center;
    padding: 10px 18px;
    background: rgba(46, 39, 39, 0.3);
    border-radius: 8px;
    border: 2px solid rgba(177, 177, 177, 0.4);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: all 0.5s linear;

    position: absolute;
    background: linear-gradient(to top, #14385a, transparent, transparent);
    background-repeat: no-repeat;
    background-size: cover;
    border-radius: 10px;
}

.title span{
    font-size: 1.2rem;
    font-weight: 600;
}

.swiper-slide-active .title{
    bottom: -10px;
    box-shadow: 0 20px 30px 2px rgba(25, 43, 206, 0.6);
}

.swiper-pagination{
    --swiper-pagination-bottom: -6px;
}

.swiper-pagination-bullet{
    width: 14px;
    height: 14px;
    background-color: #fff;
    border-radius: 50%;
    transition: all 0.3s ease-in-out;
}

.swiper-pagination-bullet-active {
    width: 32px;
    background-color: rgba(25, 43, 206, 1);
    border-radius: 14px;
}

.swiper-button-prev{
    background: rgb(75, 101, 175);
    border-radius: 30%;
    opacity: .5;
    color: rgb(255, 255, 255);
    top: 47%;
    left: 30px;
    width: 60px;
    height: 60px;
    transform: .5s;
}

.swiper-button-prev:hover{ 
    transform: translateX(-30px) rotate (45deg);
    opacity: 1;
}


.swiper-button-next{
    background: rgb(75, 101, 175);
    border-radius: 30%;
    opacity: .5;
    color: rgb(255, 255, 255);
    top: 47%;
    right: 30px;
    width: 60px;
    height: 60px;
    transform: .5s;
}

.swiper-button-next:hover{ 
    transform: translateX(-30px) rotate (45deg);
    opacity: 1;
}



@media (max-width: 1100px) {
    .swiper-slide{
        width: 300px;
    }
}

@media (max-width: 900px) {
    .swiper-slide{
        width: 250px;
    }
}

@media (max-width: 700px) {
    .swiper-slide{
        width: 230px;
    }
}

@media (max-width: 610px) {
    .swiper-slide{
        width: 200px;
    }

}

 .modal {
      display: none;
      position: fixed;
      z-index: 1000;
      left: 0;
      top: 0;
      width: 100%;
      height: 100%;
      overflow: auto;
      background-color: rgba(0, 0, 0, 0.9);
      animation: fadeIn 0.5s;
    }

    @keyframes fadeIn {
      from {opacity: 0;}
      to {opacity: 1;}
    }

    .modal-content {
      background-color: #fefefe;
      margin: 15% auto;
      padding: 20px;
      border: 1px solid #888;
      width: 80%;
      max-width: 600px;
      border-radius: 10px;
      position: relative;
      text-align: center;
    }

    .modal-image {
      max-width: 100%;
      height: auto;
      border-radius: 8px;
      margin-bottom: 20px;
    }

    .modal-text h2, .modal-text p {
      color: #333;
    }

    .close-btn {
      color: #aaa;
      float: right;
      font-size: 28px;
      font-weight: bold;
      position: absolute;
      top: 10px;
      right: 20px;
    }

    .close-btn:hover,
    .close-btn:focus {
      color: black;
      text-decoration: none;
      cursor: pointer;
    }
