/* READ NOW 2 */

/* IFRAME */
.iframe-container {
  margin-top: 5svh;
  left: 50%;
  transform: translateX(-50%);
  position: relative;
  width: 70%;
  height: 70%;
  max-width: 1500px;
  padding-top: 35%;
  z-index: 10;
  overflow: hidden;
}

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

/* SPHERE */

.decor2-container {
  position: absolute;
  right: 50%;
  transform: translate(-50%, -50%);
  width: 100vw;
  height: 100vh;
  z-index: 1;
  rotate: 180deg;
}

.decor2-sphere {
  position: absolute;
  top: 70%;
  left: 50%;
  width: 250vmin;
  height: auto;
  transform: translate(-50%, -50%);
  z-index: 1;
}

/* ASSETS */
.readnow2-assets {
  position: absolute;
  bottom: 5%;
  animation: floatNearOrigin 6s infinite ease-in-out;
  opacity: 0.85;
  will-change: transform;
}

#boat {
  width: 30vw;
  left: -0.5%;
  top: 0%;
  z-index: 2;
}

#footprint {
  width: 30vw;
  right: -10%;
  top: 0%;
  z-index: 3;
  animation-duration: 7s;
}

/* CONTENT WRAPPER */
.readnow-content-wrapper {
  position: absolute;
  bottom: 4%;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
}

/* TEXT BLOCK */
.readnow2-title {
  width: auto;
  max-width: 900px;
  opacity: 0;
  transition: all 1.5s ease;
  transform: scale(0.9);

  /* Text styles */
  font-family: "Poppins", sans-serif;
  font-style: normal;
  font-weight: 600;
  font-size: 22px;
  line-height: 33px;
  text-align: center;
  color: #f3f3f3;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}

.noise-rectangle-readnow {
  position: absolute;
  top: 48%;
  transform: translate(-50%, -50%);
  left: 48%;
  width: 150%;
  max-width: fit-content;
  padding: 0 10px;
  box-sizing: content-box;
  z-index: -1;
  height: auto;
  opacity: 0;
  animation: noiseFadeIn 0.5s ease-out 0.8s forwards;
}

.readnow2-title.visible {
  opacity: 1;
  transform: scale(1);
}

.readnow2-title-text {
  font-style: normal;
}

.embark-logo-inline {
  height: 22px;
  width: auto;
  vertical-align: middle;
  display: inline-block;
  margin: 0 2px;
}

.readnow2-link {
  text-decoration: none;
}

.readnow2-text {
  background: #f69b6c;
  border: none;
  text-decoration: none;
  cursor: pointer;
  border-radius: 100px;
  box-shadow: 0px 10px 15px rgba(0, 0, 0, 0.25);

  /* Button sizing */
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  width: 260px;
  height: 53px;
  padding: 0px;
  gap: 7px;

  /* Text styles */
  font-family: "Poppins", sans-serif;
  font-style: normal;
  font-weight: 500;
  font-size: 20px;
  line-height: 30px;
  text-align: center;
  color: #110349;

  opacity: 0;
  transition: all 1.5s ease, background 0.3s ease;
  transform: scale(0.9);
}

.readnow2-text:hover {
  background: #f3f3f3;
}

.readnow2-text.visible {
  opacity: 1;
  transform: scale(1);
}

/* FLOATING ANIMATION */
@keyframes floatNearOrigin {
  0% {
    transform: translateY(0) translateX(0);
    opacity: 0.85;
  }
  25% {
    transform: translateY(-5px) translateX(2px);
    opacity: 0.9;
  }
  50% {
    transform: translateY(-12px) translateX(-4px);
    opacity: 0.95;
  }
  75% {
    transform: translateY(-5px) translateX(4px);
    opacity: 0.9;
  }
  100% {
    transform: translateY(0) translateX(0);
    opacity: 0.85;
  }
}

/* MEDIA QUERIES RESPONSIVE  */

/* Large Desktops (1920px+) */
@media (min-width: 1920px) {
  .iframe-container {
    width: 65%;
    height: 65%;
    margin-top: 3vh;
  }

  .decor2-sphere {
    width: 220vmin;
  }

  #boat,
  #footprint {
    width: 25vw;
  }

  .readnow2-title {
    font-size: 26px;
    line-height: 39px;
  }

  .embark-logo-inline {
    height: 26px;
    margin-bottom: 10px;
  }

  .readnow2-text {
    font-size: 22px;
    width: 280px;
    height: 56px;
  }
}

/* Standard Desktops (1440px - 1919px) */
@media (min-width: 1440px) and (max-width: 1919px) {
  .iframe-container {
    width: 68%;
    height: 68%;
    margin-top: 4vh;
  }

  .decor2-sphere {
    width: 240vmin;
  }

  .readnow2-title {
    font-size: 24px;
    line-height: 36px;
  }

  .embark-logo-inline {
    height: 24px;
    margin-bottom: 8px;
  }

  .readnow2-text {
    font-size: 21px;
    width: 270px;
    height: 54px;
  }
}

/* Laptops (1280px - 1439px) */
@media (min-width: 1280px) and (max-width: 1439px) {
  .iframe-container {
    width: 70%;
    height: 70%;
    margin-top: 5vh;
  }

  .decor2-sphere {
    width: 250vmin;
  }

  .readnow2-title {
    font-size: 22px;
    line-height: 33px;
  }

  .embark-logo-inline {
    height: 22px;
  }
}

/* Tablets & Large Phones (769px - 1279px) */
@media (min-width: 769px) and (max-width: 1279px) {
  .iframe-container {
    margin-top: 6vh;
    width: 80%;
    padding-top: 42%;
  }

  .readnow-content-wrapper {
    bottom: 8%;
    gap: 12px;
  }

  .readnow2-title {
    font-size: 20px;
    line-height: 30px;
    max-width: 85%;
    padding: 0 20px;
  }

  .embark-logo-inline {
    height: 20px;
  }

  .readnow2-text {
    font-size: 18px;
    width: 240px;
    height: 50px;
  }
}

/* Tablets Portrait (600px - 768px) */
@media (min-width: 600px) and (max-width: 768px) {
  .iframe-container {
    margin-top: 7vh;
    width: 84%;
    padding-top: 44%;
  }

  .decor2-sphere {
    width: 350vmin;
    top: 77%;
  }

  #boat,
  #footprint {
    width: 42vw;
  }

  #boat {
    left: -8%;
    top: 56%;
    rotate: -2.5deg;
  }

  #footprint {
    right: -7%;
    top: 68%;
    rotate: 2.5deg;
  }

  .readnow-content-wrapper {
    bottom: 6%;
    gap: 10px;
  }

  .readnow2-title {
    max-width: 90%;
    font-size: 17px;
    line-height: 25px;
    padding: 0 18px;
    gap: 5px;
  }

  .embark-logo-inline {
    height: 17px;
    margin-bottom: 5px;
  }

  .readnow2-text {
    font-size: 15px;
    width: 215px;
    height: 46px;
  }
}

/* Medium Mobile (480px - 599px) */
@media (min-width: 480px) and (max-width: 599px) {
  .iframe-container {
    margin-top: 8vh;
    width: 88%;
    padding-top: 45%;
  }

  .decor2-sphere {
    width: 400vmin;
    top: 80%;
  }

  #boat,
  #footprint {
    width: 50vw;
  }

  #boat {
    left: -12%;
    top: 58%;
    rotate: -3deg;
  }

  #footprint {
    right: -10%;
    top: 66%;
    rotate: 3deg;
  }

  .readnow-content-wrapper {
    bottom: 5%;
    gap: 8px;
  }

  .readnow2-title {
    max-width: 92%;
    font-size: 15px;
    line-height: 22px;
    padding: 0 16px;
    gap: 4px;
  }

  .embark-logo-inline {
    height: 15px;
  }

  .readnow2-text {
    font-size: 14px;
    width: 200px;
    height: 44px;
  }
}

/* Small Mobile (375px - 479px) - iPhone SE, etc */
@media (min-width: 375px) and (max-width: 479px) {
  .iframe-container {
    margin-top: 9vh;
    width: 90%;
    padding-top: 48%;
  }

  .decor2-sphere {
    width: 450vmin;
    top: 82%;
  }

  #boat,
  #footprint {
    width: 55vw;
  }

  #boat {
    left: -15%;
    top: 55%;
    rotate: -4deg;
  }

  #footprint {
    right: -12%;
    top: 64%;
    rotate: 4deg;
  }

  .readnow-content-wrapper {
    bottom: 4%;
    gap: 8px;
  }

  .readnow2-title {
    max-width: 94%;
    font-size: 14px;
    line-height: 21px;
    padding: 0 12px;
    gap: 4px;
  }

  .embark-logo-inline {
    height: 14px;
    margin-bottom: 5px;
  }

  .readnow2-text {
    font-size: 13px;
    width: 190px;
    height: 42px;
  }
}

/* Extra Small Mobile (320px - 374px) */
@media (min-width: 320px) and (max-width: 374px) {
  .iframe-container {
    margin-top: 10vh;
    width: 92%;
    padding-top: 50%;
  }

  .decor2-sphere {
    width: 500vmin;
    top: 85%;
  }

  #boat,
  #footprint {
    width: 60vw;
  }

  #boat {
    left: -18%;
    top: 52%;
    rotate: -5deg;
  }

  #footprint {
    right: -15%;
    top: 62%;
    rotate: 5deg;
  }

  .readnow-content-wrapper {
    bottom: 3%;
    gap: 6px;
  }

  .readnow2-title {
    max-width: 95%;
    font-size: 13px;
    line-height: 19px;
    padding: 0 10px;
    gap: 3px;
  }

  .embark-logo-inline {
    height: 13px;
  }

  .readnow2-text {
    font-size: 12px;
    width: 180px;
    height: 40px;
  }
}

/* Very Small Mobile (<320px) */
@media (max-width: 319px) {
  .iframe-container {
    margin-top: 12vh;
    width: 94%;
    padding-top: 52%;
  }

  .decor2-sphere {
    width: 550vmin;
    top: 88%;
  }

  #boat,
  #footprint {
    width: 65vw;
  }

  #boat {
    left: -20%;
    top: 50%;
    rotate: -6deg;
  }

  #footprint {
    right: -18%;
    top: 60%;
    rotate: 6deg;
  }

  .readnow-content-wrapper {
    bottom: 2%;
    gap: 6px;
  }

  .readnow2-title {
    max-width: 96%;
    font-size: 12px;
    line-height: 18px;
    padding: 0 8px;
    gap: 2px;
  }

  .embark-logo-inline {
    height: 12px;
  }

  .readnow2-text {
    font-size: 11px;
    width: 170px;
    height: 38px;
  }
}

/* iPad Mini, iPad Air (768px - 834px) */
@media (min-width: 768px) and (max-width: 834px) {
  .readnow2-title {
    font-size: 19px;
    line-height: 28px;
  }

  .embark-logo-inline {
    height: 19px;
  }

  .readnow2-text {
    font-size: 17px;
    width: 230px;
    height: 48px;
  }
}

/* iPad Pro (1024px - 1366px) */
@media (min-width: 1024px) and (max-width: 1366px) {
  .readnow2-title {
    font-size: 21px;
    line-height: 31px;
  }

  .embark-logo-inline {
    height: 21px;
    margin-bottom: 5px;
  }

  .readnow2-text {
    font-size: 19px;
    width: 250px;
    height: 52px;
  }
}

/* Surface Pro 7 (912px) */
@media (min-width: 912px) and (max-width: 1024px) {
  .readnow2-title {
    font-size: 20px;
    line-height: 30px;
  }

  .embark-logo-inline {
    height: 20px;
  }

  .readnow2-text {
    font-size: 18px;
    width: 240px;
    height: 50px;
  }
}

/* Galaxy Fold (280px) - Closed */
@media (max-width: 280px) {
  .readnow2-title {
    font-size: 11px;
    line-height: 16px;
    padding: 0 6px;
  }

  .embark-logo-inline {
    height: 11px;
  }

  .readnow2-text {
    font-size: 10px;
    width: 160px;
    height: 36px;
  }
}

/* Landscape Orientation Adjustments */
@media (max-height: 600px) and (orientation: landscape) {
  .iframe-container {
    margin-top: clamp(4vh, 5vh, 6vh);
    width: 68%;
    padding-top: 28%;
  }

  .readnow-content-wrapper {
    bottom: 6%;
    gap: 8px;
  }

  .readnow2-title {
    font-size: 15px;
    line-height: 22px;
    padding: 0 20px;
  }

  .embark-logo-inline {
    height: 15px;
  }

  .readnow2-text {
    font-size: 14px;
    width: 200px;
    height: 40px;
  }

  #boat,
  #footprint {
    width: 25vw;
    top: 48%;
  }

  #boat {
    left: 2%;
  }

  #footprint {
    right: 2%;
  }
}

/* Tablet Landscape (768px - 1024px) */
@media (min-width: 768px) and (max-width: 1024px) and (orientation: landscape) {
  .iframe-container {
    margin-top: clamp(3vh, 4vh, 5vh);
    width: 70%;
    padding-top: 32%;
  }

  .decor2-sphere {
    width: 280vmin;
    top: 72%;
  }

  #boat,
  #footprint {
    width: 30vw;
  }

  #boat {
    left: 0%;
    top: 0%;
  }

  #footprint {
    right: 0%;
    top: 65%;
  }

  .readnow-content-wrapper {
    bottom: 8%;
    gap: 10px;
  }

  .readnow2-title {
    font-size: 16px;
    line-height: 24px;
  }

  .embark-logo-inline {
    height: 16px;
  }

  .readnow2-text {
    font-size: 15px;
    width: 210px;
    height: 44px;
  }
}

/* Mobile Landscape */
@media (max-width: 767px) and (orientation: landscape) and (max-height: 500px) {
  .iframe-container {
    margin-top: clamp(6vh, 8vh, 10vh);
    width: 72%;
    padding-top: 34%;
  }

  .readnow-content-wrapper {
    bottom: 5%;
    gap: 8px;
  }

  .readnow2-title {
    font-size: 14px;
    line-height: 21px;
    max-width: 85%;
  }

  .embark-logo-inline {
    height: 14px;
  }

  .readnow2-text {
    font-size: 13px;
    width: 190px;
    height: 40px;
  }

  #boat,
  #footprint {
    width: 28vw;
    top: 45%;
  }
}

/* ACCESSIBILITY & REDUCED MOTION */
@media (prefers-reduced-motion: reduce) {
  .readnow2-assets {
    animation: none !important;
  }

  .noise-rectangle-readnow {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}

/* ANIMATIONS */
@keyframes noiseFadeIn {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  .noise-rectangle {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
  }
}
