html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  font-family: sans-serif;
  background: #fff;
}

.prototype{
  border: 1px solid rgba(0, 0, 0, 0.1);
  width: 800px;
  height: 450px;
  z-index: 4;
}

.layer-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.blob-layer {
  position: absolute;
  right: -100px;
  top: 0px;
  width: 600px;
  height: 600px;
  z-index: 0;
  opacity: 3;
}

.content-layer {
  z-index: 4;
}

.blob-container {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.blob {

  top: -100px;
  left: -100px;
  width: 500px;
  height: 500px;
  z-index: -1;
  opacity: 1;
  color: #232838;
}

.responsive-iframe {
  width: 100%;
  padding-top: 56.25%; /* 16:9 aspect ratio */
  position: relative;
}

.responsive-iframe iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.iframe-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
}


.sat-floating-description {
  max-width: 40rem;
  margin-left: 50vw;
  margin-top: -36vh;
  background: #1A1E2E;
  padding: 2rem;
  border-radius: 15px;
  font-size: clamp(0.9rem, 2vw, 1.1rem);
  line-height: 1.4;
  opacity: 1;
  transform: translateY(40px);
  z-index: 3;

  flex: 1 1 auto;
  align-self: flex-start;
  box-sizing: border-box;
  overflow: auto; /* optional: adds scroll if overflow occurs */
}
  
  .sat-floating-description, strong {
    text-align: left;
    font-family:'Space Mono';
    font-size: 1.5rem;
  }
  .sat-floating-description, p {
    text-align: left;
    font-size: 1.15rem;
    font-family:'poppins';
  }

  .content-floating-description {
    max-width: 40rem;
    background: #dcdde3;
    padding: 2rem;
    border-radius: 0px;
    font-size: clamp(0.9rem, 2vw, 1.1rem);
    line-height: 1.4;
    opacity: 1;
    transform: translateY(0px);
    z-index: 1;
  
    flex: 1 1 auto;
    align-self: auto;
    box-sizing: border-box;
    overflow: auto; /* optional: adds scroll if overflow occurs */
  }
    
    .content-floating-description, strong {
      text-align: left;
      font-family:'Space Mono';
      font-size: 1.5rem;
    }
    .content-floating-description, p {
      text-align: left;
      font-size: 1.15rem;
      font-family:'poppins';
    }

.carousel {
  width: 80%;
  max-width: 60vw;
  height: min(33.75vw, 90vh);
  background: #ffffff;
  border-radius: 8px;
  overflow: hidden;
  position: relative;
  margin-bottom: 2rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  vertical-align: center;
  justify-content: center;
}

.carousel img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 2;
}

.carousel-track {
  display: flex;
  transition: transform 0.5s ease;
  width: 100%;
  height: 100%;
}

.carousel-slide {
  flex: 0 0 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  width: auto;
  height: max-content;
  background: #ddd;
}

.carousel-slide iframe {
  border: 1px solid rgba(0, 0, 0, 0.1);
  width: 60vw;
  height: min(33.75vw, 90vh);
  z-index: 4;
}

.carousel-controls {
  position: absolute;
  top: 50%;
  width: 98%;
  display: flex;
  justify-content: space-between;
  transform: translateY(-50%);
  padding: 20rem;
  margin: 3rem;
  z-index: 2;
}

.satellite .carousel-controls {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none; /* allows iframe clicks through */
  transform: translateY(0);
  width: auto;
  margin: auto;
}

.satellite .carousel-controls button {
  pointer-events: auto; /* but these are still clickable */
  transform: translateY(-50%);
  top: 50%;
  position: absolute;
  background: #4D4DFF;
  color: rgb(255, 255, 255);
  border: none;
  padding: 0.6rem 0.6rem;
  cursor: pointer;
  font-size: 1.25rem;
  border-radius: 20px;
  

  display: flex;
  align-items: center;     /* center vertically */
  justify-content: center; /* center horizontally */
  display: flex;
  z-index: 3;
}

.satellite .carousel-controls button svg {
  width: 24px; /* or whatever size you want */
  height: 24px;
  display: block; /* block removes inline weirdness */
}

.satellite .carousel-controls .first svg {
  transform: translateX(-6%);
}

.satellite .carousel-controls .second svg {
  transform: translateX(6%);
}

.content .carousel-controls {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none; /* allows iframe clicks through */
  transform: translateY(0);
  width: auto;
  margin: auto;
  z-index: 6;
}

.content .carousel-controls button {
  background: #5d5d6c;
  color: rgb(255, 255, 255);
  border: none;
  padding: .75rem 1.25rem;
  cursor: pointer;
  font-size: 1.25rem;
  border-radius: 5px;
  align-items: center;
  display: flex;

  pointer-events: auto; /* but these are still clickable */
  transform: translateY(-50%);
  top: 50%;
  position: absolute;
  align-items: center;     /* center vertically */
  justify-content: center; /* center horizontally */
  z-index: 6;
}


.carousel-controls .first {
  left: 1rem;
}

.carousel-controls .second {
  right: clamp(0.5rem, 2vw, 1rem);
}

.carousel-title {
  position: absolute;
  bottom: 1rem;
  right: 1rem;
  background: rgba(0, 0, 0, 0.7);
  color: white;
  padding: 1rem 1.5rem;
  border-radius: 12px;
  font-size: 1.25rem;
  font-family: monospace;
  z-index: 1;
}

.scroll-container {
  scroll-snap-type: y mandatory;
  height: 100vh;
  overflow-y: scroll;
}

.section {
  height: 100vh;
  scroll-snap-align: start;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  box-sizing: border-box;
  text-align: center;
  flex-wrap: wrap;
}

/* Backgrounds */
.header {
  background: #2d3436;
  color: white;
}

.satellite {
  background-image: url('data:image/svg+xml,<svg width="1440" height="900" viewBox="0 0 1440 900" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M144.5 544.5C86.5 458.9 22.5 450.5 0 450.5V900H881C881 900 848 764.5 391.5 764.5C153.5 764.5 217 651.5 144.5 544.5Z" fill="%23232838"/><path d="M1319 306C1300 420 1329.5 588.5 1440 619.5L1440 6.1035e-05L407.497 9.28413e-05C407.497 9.28413e-05 377.497 119.5 775.997 119.5C1072 119.5 1370.41 -2.45118 1319 306Z" fill="%23232838"/></svg>');
  background-color: #0D0E16;
  background-repeat: no-repeat;
  background-size: cover;
    color: white;
    
}

.content {
  background-image: url('Assets/Images/Camo3.svg');
  background-repeat: no-repeat;
  background-size: cover;
  background-color: #ffffff;
  color: #2d3436;
  justify-content: space-evenly;
  flex-direction: row;
  align-content: center;
}

.modeling {
  background: #ffeaa7;
  color: #2d3436;
}

.freelance {
  background: #a29bfe;
  color: #2d3436;
}

.about {
  background: #00cec9;
  color: #2d3436;
}

.title {
  font-size: 3rem;
  font-weight: bold;
}


.carousel-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 2rem;
}


/* Stack carousel + description on small screens */
@media (max-width: 1000px) {
  .carousel-wrapper {
    flex-direction: column;
    align-items: center;
  }

  .carousel {
    width: 100%;
    max-width: 90vw;
    height: min(50.625vw, 90vh);
    background: #ffffff;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    margin-bottom: 2rem;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    vertical-align: center;
    justify-content: center;
  }
  
  .carousel-slide iframe {
    border: 1px solid rgba(0, 0, 0, 0.1);
    width: 90vw;
    height: min(50.625vw, 90vh);
    z-index: 4;
  }

  .sat-floating-description {
    max-width: 90%;
    height: max-content;
    text-align: center;
    margin-top: 1rem;
    margin-left: 0;
    transform: translateY(0);
  }
  .scroll-container {
    height: 100vh;
    overflow-y: scroll;
    scroll-snap-type: y mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch; /* important for iOS */
  }
}

@media (max-width: 768px) {
  .scroll-container {
    scroll-snap-type: y mandatory;
  }

  .section {
    height: auto;
    min-height: 100vh;
  }

  .carousel-controls .first {
    left: 1rem;
  }

}
