#projects_section {
  padding-top: 80px;
  margin-bottom: 150px;
}

#projects_section h2 {
  color: #fff;
  text-align: center;
  font-size: 28px;
}

.text-border {
  border: 2px solid #fff;
  padding: 12px 18px;
  background-color: #fff;

  width: 200px;
  margin: 0 auto;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 80px;
}

.portfolio-slider {
  position: relative;
  width: 100%;
  height: 600px;
  overflow: hidden;
}

.slider-container {
  display: flex;
  /* margin-left: auto;
  margin-right: auto; */
  max-width: 100%;
  height: 100%;
  position: relative;
  /* border: solid 1px lightblue; */
}

.media-box {
  max-width: 50%;
  /* height: 220px; */
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 10px;
  aspect-ratio: 16/9;
  /* overflow: hidden; */
}

.media-box img,
.media-box video {
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: 20px;
  pointer-events: none; /* Prevents accidental clicks */
  user-select: none; /* Prevents selecting the video */
}

.info-box {
  width: 60%;
  margin-left: 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.info-box > .text-box {
  display: flex;
  flex-direction: column;
  justify-content: center;
  margin-top: 23%;
  margin-bottom: 0px;
}

h3 {
  margin-bottom: 10px;
}

/* ORIGINAL BUTTONS STYLING */

/* .buttons {
  position: absolute;
  display: flex;
  flex-direction: row;
  gap: 30px;
  bottom: 24%;
  right: 34%;
} */

.info-box .buttons {
  margin-top: 42px;
}

.prev-btn,
.next-btn {
  /* position: absolute;
  top: 50%;
  transform: translateY(-50%); */
  background: transparent;
  color: white;
  border: none;
  padding-top: 12px;
  padding-bottom: 12px;
  padding-left: 20px;
  padding-right: 20px;

  background-color: rgba(255, 255, 255, 0.05);
  /* background-color: rgb(173, 142, 19); */
  border-radius: 8px;
  cursor: pointer;
  font-size: 28px;
  transition: 0.1s;
}

.prev-btn {
  left: 0px;
}

.next-btn {
  right: 0px;
}

.prev-btn:hover,
.next-btn:hover {
  transform: translateY(-4px);
  background-color: rgba(255, 255, 255, 0.1);
}

.video-btn {
  display: none;
  padding: 10px 14px;
  background-color: transparent;
  border: 2px solid #fff;
  color: #fff;
  font-size: 18px;
  margin-top: 0 px;
}

.nav-bubbles {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 9px;
  z-index: 10;
}

/*  */

.bubble {
  width: 12px;
  height: 12px;
  background: transparent; /* Inactive bubbles have a transparent background */
  border: 1px solid rgba(255, 255, 255, 0.7); /* White border for all bubbles */

  border-radius: 50%;
  cursor: pointer;
  transition: background 0.3s ease-in-out, opacity 0.3s ease-in-out,
    transform 0.3s ease-in-out;
  opacity: 1;
}

/* Fading Out (Losing Fill Color) */
.bubble.fade-out {
  background: transparent;
  opacity: 0.5;
}

/* Active Bubble */
.bubble.active {
  background: #fff; /* White background for active bubble */
  opacity: 1;
  transform: scale(1.3); /* Slightly larger */
}

/* Fade animation */
@keyframes fadeOut {
  from {
    opacity: 1;
  }
  to {
    opacity: 0;
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.slide {
  display: none;
  flex: 1;
  width: 100%;
  height: 100%;
  flex-shrink: 0;
  align-items: center;
  justify-content: space-between;
  padding: 20px;
  opacity: 0;
  transition: opacity 0.5s ease-in-out;
  margin-left: 50px;
}

.slide.active {
  display: flex;
  opacity: 1;
}

/* .slide video {
  width: 600px;
  height: 300px;
} */

.slide.fade-out {
  animation: fadeOut 0.3s forwards;
}

.slide.fade-in {
  animation: fadeIn 0.3s forwards;
}

.info-box {
  padding-left: 50px;
}

.info-box h3,
.info-box p {
  color: #fff;
}

/* RESPOSIVE DESIGN -------------------------------------*/

/* Mobile Portrait */
@media (max-width: 480px) {
  #projects_section h2 {
    text-align: center;
    font-family: "Roboto Mono", monospace;
    font-size: 1.6rem;
    /* margin-bottom: 30px; */
  }
  .portfolio-slider {
    position: relative;
    width: 100%;
    height: 600px;
    overflow: hidden;
  }
  .slider-container {
    display: flex;
    margin-left: auto;
    margin-right: auto;
    max-width: 90%;
    height: 100%;
    position: relative;
    overflow: hidden;
  }
  .slide {
    position: relative;
    display: none;
    /* border: 2px red solid; */

    flex-direction: column;
    width: 100%;
    height: auto;

    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 0;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    /* margin-left: 50px; */
  }
  .slide.active {
    display: flex;
    opacity: 1;
  }

  .slide a {
    width: 100%;
    /* border: 2px solid lightblue; */
  }

  .media-box img,
  .media-box video {
    width: auto;
    height: 500px;
    object-fit: cover;
    border-radius: 0;
    filter: opacity(0.4);
  }
  .info-box {
    position: absolute;
    top: 30%;
    left: 0;
    width: 100%;
    margin: 0;
    padding: 0;
    /* border: 2px solid white; */
    text-align: center;
  }

  .info-box .text-box {
    margin-bottom: 40px;
    padding: 0 50px;
  }

  .text-box h3 {
    font-size: 22px;
    margin-bottom: 3px;
  }

  .info-box > .buttons {
    margin-top: 42px;
    margin-left: auto;
    margin-right: auto;

    width: 37%;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
  }

  .prev-btn,
  .next-btn {
    color: white;
    border: 2px solid #fff;
    padding-top: 12px;
    padding-bottom: 12px;
    padding-left: 20px;
    padding-right: 20px;
    /* background-color: rgba(255, 255, 255, 0.05); */
    /* background-color: rgb(173, 142, 19); */
    border-radius: 8px;
    cursor: pointer;
    font-size: 28px;
    transition: 0.1s;
    margin: 0 4px;
  }
  .prev-btn:hover,
  .next-btn:hover {
    transform: none;
    background-color: transparent;
  }

  .video-btn {
    display: inline-block;
  }
  .nav-bubbles {
    position: absolute;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
  }

  /*  */

  .bubble {
    width: 13px;
    height: 13px;
    background: transparent; /* Inactive bubbles have a transparent background */
    border: 1px solid rgba(255, 255, 255, 0.7); /* White border for all bubbles */

    border-radius: 50%;
    cursor: pointer;
    transition: background 0.3s ease-in-out, opacity 0.3s ease-in-out,
      transform 0.3s ease-in-out;
    opacity: 1;
  }

  /* Fading Out (Losing Fill Color) */
  .bubble.fade-out {
    background: transparent;
    opacity: 0.5;
  }

  /* Active Bubble */
  .bubble.active {
    background: #fff; /* White background for active bubble */
    opacity: 1;
    transform: scale(1.5); /* Slightly larger */
  }
}

@media (min-width: 481px) and (max-width: 985px) {
  #projects_section {
    margin-bottom: -170px;
    padding-top: 50px;
  }

  .portfolio-slider {
    position: relative;
    width: 100%;
    height: auto;
    overflow: hidden;
    padding-bottom: 80px;
    padding-top: 100px;
    /* border: 2px solid white; */
    /* display: flex; */
    /* justify-content: center; */
  }
  .slider-container {
    display: flex;
    top: -80px;
    left: 50.5%;
    transform: translateX(-50%);
    width: 90%;
    /* padding: 0 auto; */

    max-width: 100%;
    height: auto;
    position: relative;
  }
  .slide {
    position: relative;
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    margin-top: 30px;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    height: auto;
  }
  .slide.active {
    display: flex;
    opacity: 1;
  }
  .slide a {
    min-width: 100%;
    position: relative;
  }

  .media-box {
    max-width: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 10px;
    aspect-ratio: 16/9;
  }

  .media-box img,
  .media-box video {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 0;
    filter: none;
    border-radius: 20px;
    pointer-events: none; /* Prevents accidental clicks */
    user-select: none; /* Prevents selecting the video */
  }

  .info-box {
    width: 100%;
    margin-top: 60px;
    padding: 0;
    /* border: 2px solid white; */
    text-align: center;
  }

  .info-box .text-box {
    margin-bottom: 40px;
    margin-top: 0;
  }

  .text-box h3 {
    font-size: 22px;
  }

  .nav-bubbles {
    position: relative;
    display: none;
    gap: 10px;
    z-index: 100;
  }

  /*  */

  .bubble {
    width: 12px;
    height: 12px;
    background: transparent; /* Inactive bubbles have a transparent background */
    border: 1px solid rgba(255, 255, 255, 0.7); /* White border for all bubbles */

    border-radius: 50%;
    cursor: pointer;
    transition: background 0.3s ease-in-out, opacity 0.3s ease-in-out,
      transform 0.3s ease-in-out;
    opacity: 1;
  }

  /* Fading Out (Losing Fill Color) */
  .bubble.fade-out {
    background: transparent;
    opacity: 0.5;
  }

  /* Active Bubble */
  .bubble.active {
    background: #fff; /* White background for active bubble */
    opacity: 1;
    transform: scale(1.4); /* Slightly larger */
  }

  .media-box img,
  .media-box video {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 20px;
    pointer-events: none; /* Prevents accidental clicks */
    user-select: none; /* Prevents selecting the video */
  }
}

/* TABLET ------------------------ */
@media (min-width: 692px) and (max-width: 1023px) {
}
