*,
*::after,
*::before {
  box-sizing: border-box;
}

:root {
  font-size: 16px;
  --color-text: #503717;
  --color-bg: rgb(234 234 234);
  --color-link: #014e2a;
  --color-link-hover: #014e2a;
  --color-title: #000;
  --page-padding: 2rem;
  --gradient-1: #fff;
  --gradient-2: #ffffff2b;
  --ease-out-power1: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-out-power2: cubic-bezier(0.215, 0.61, 0.355, 1);
  --ease-out-swift: cubic-bezier(0.55, 0, 0.1, 1);
}

body {
  margin: 0;
  color: var(--color-text);
  background-color: var(--color-bg);
  font-family: "capitana", sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  width: 100vw;
  overflow-x: hidden;
  background-image: url(../img/noise.png), radial-gradient(ellipse at top, var(--gradient-1), transparent), radial-gradient(ellipse at bottom, var(--gradient-2), transparent);
  background-size: 180px, 100%, 200%;
  background-attachment: fixed;
}

/* For arabic font */
@font-face {
  font-family: 'salma';
  src: url('../fonts/salma.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}

[lang="ar"] body, [lang="ar"] body * {
  font-family: 'salma', sans-serif !important;
}
/* For arabic end */

/* Lang switcher */
.language-switcher {
  position: fixed;
  top: 20px;
  left: 20px;
  z-index: 10000;
  display: flex;
  gap: 0.5rem;
  background: rgba(0, 0, 0, 0.1);
  padding: 0.25rem;
  border-radius: 2rem;
  backdrop-filter: blur(10px);
}
.lang-btn {
  background: transparent;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 1.5rem;
  font-family: "capitana", sans-serif;
  font-size: 0.875rem;
  cursor: pointer;
  transition: all 0.3s ease;
  color: var(--color-text);
  white-space: nowrap;
}
.lang-btn.active {
  background: var(--color-link);
  color: #fff;
}
body[data-lang="ar"] .language-switcher {
  left: 20px;
}

/* Lang switcher end */

.font-alt {
 font-family: -apple-system, "system-ui", Inter, "Helvetica Neue", sans-serif;
    font-weight: 300;
}

.outro__title,
.credits {
  font-size: clamp(1rem, 5vw, 3rem);
  text-transform: uppercase;
  text-align: center;
  margin: 50vh auto 0;
  padding-bottom: 10vh;
}

.js .loading:before,
.js .loading:after {
  content: "";
  position: fixed;
  z-index: 10000
}

.js .loading:before {
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--color-bg)
}

.js .loading:after {
  top: 50%;
  left: 50%;
  width: 100px;
  height: 1px;
  margin: 0 0 0 -50px;
  background: var(--color-link);
  animation: loaderAnim 1.5s ease-in-out infinite alternate forwards
}

@keyframes loaderAnim {
  0% {
    transform: scaleX(0);
    transform-origin: 0% 50%
  }

  50% {
    transform: scaleX(1);
    transform-origin: 0% 50%
  }

  50.1% {
    transform: scaleX(1);
    transform-origin: 100% 50%
  }

  to {
    transform: scaleX(0);
    transform-origin: 100% 50%
  }
}

a {
  text-decoration: none;
  color: var(--color-link);
  outline: none;
  cursor: pointer;
}

a:hover {
  color: var(--color-link-hover);
  outline: none;
}

/* Better focus styles from https://developer.mozilla.org/en-US/docs/Web/CSS/:focus-visible */
a:focus {
  /* Provide a fallback style for browsers
   that don't support :focus-visible */
  outline: none;
  background: lightgrey;
}

a:focus:not(:focus-visible) {
  /* Remove the focus indicator on mouse-focus for browsers
   that do support :focus-visible */
  background: transparent;
}

a:focus-visible {
  /* Draw a very noticeable focus style for
   keyboard-focus on browsers that do support
   :focus-visible */
  outline: 2px solid red;
  background: transparent;
}

main {
  position: relative;
  overflow: hidden;
  width: 100vw;
}

.unbutton {
  background: none;
  border: 0;
  padding: 0;
  margin: 0;
  font: inherit;
  cursor: pointer;
}

.unbutton:focus {
  outline: none;
}

.frame {
  position: fixed;
  margin: 10px;
  top: 0;
  left: 0;
  right: 0;
  display: grid;
  z-index: 6000;
  grid-template-columns: 100%;
  grid-template-areas: 'title' 'wrap' 'sponsor';
  justify-items: start;
  align-items: start;
}

.font-cap {
  text-transform: uppercase;
  font-size: 10px;
}

.frame__title {
  grid-area: title;
  font-size: inherit;
  margin: 0;
  font-weight: inherit;
  padding: 5px 0;
}

.frame-wrap {
  max-width: 22rem;
  grid-area: wrap;
  justify-self: start;
  display: flex;
  flex-wrap: wrap;
  column-gap: 1rem;
  padding: 5px 13px;
  border-radius: 2rem;
  background: #000;
}

.frame #cdawrap {
  opacity: 1;
  padding: 5px 0;
  transition: opacity 0.3s 1s linear;
  max-width: 300px;
}

.frame #cdawrap a {
  color: var(--color-text) !important;
}

.loading .frame #cdawrap {
  opacity: 0;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-self: start;
}

.content {
  display: grid;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100vh;
  grid-template-columns: 1fr;
  grid-template-rows: auto;
  grid-template-areas: 'content';
  position: relative;
  z-index: 90;
}

.content--blend {
  mix-blend-mode: overlay;
}

.content--center {
  height: 100vh;
  text-align: center;
  justify-items: center;
  display: grid;
  gap: 1.5rem;
  align-content: center;
  position: relative;
}

.content--column {
  grid-template-columns: repeat(5, 1fr);
  grid-template-areas: unset;
  gap: 2rem;
  max-width: 1400px;
  margin: 0 auto 20vh;
  z-index: 80;
  justify-items: center;
}

.content--grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: minmax(150px, auto);
  grid-auto-flow: row dense;
  gap: 1rem;
  width: 100%;
  max-width: 1400px;
  padding: 2rem;
  margin: 0 auto;
  height: auto;
  min-height: 100vh;
}

.content--grid .content__img {
  width: 100%;
  height: 100%;
  min-height: 200px;
  object-fit: cover;
  transition: transform 0.3s ease;
  background-size: cover !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
}

/* Masonry item variations */
.content--grid .content__img:nth-child(4n+1) {
  grid-row: span 2;
  min-height: 400px;
}

.content--grid .content__img:nth-child(4n+2) {
  grid-row: span 1;
  min-height: 200px;
}

.content--grid .content__img:nth-child(4n+3) {
  grid-row: span 3;
  min-height: 600px;
}

.content--grid .content__img:nth-child(4n+4) {
  grid-row: span 2;
  min-height: 400px;
}

/* Special case for data-step element - hidden in gallery */
.content--grid .content__img[data-step] {
  display: none;
}

/* Hover effect */
.content--grid .content__img:hover {
  transform: scale(0.98);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.content__title {
  grid-area: content;
  margin: 0;
  line-height: .9;
  margin: 0;
  text-transform: uppercase;
  font-size: clamp(3rem, 19vw, 8rem);
  max-width: 1000px;
  color: var(--color-title);
}

.content__title span {
  display: inline-block;
}

.content__title--medium {
  line-height: 1.5;
  max-width: none;
  font-size: clamp(2rem, 12vw, 6rem);
}
/* new code */
.customstatic--main {
  /*customstatic--main*/
}
/* new code end*/
.content__text {
  grid-area: content;
  padding: var(--page-padding);
  margin: 0 auto;
  font-size: 1.1rem;
  font-weight: 400;
  position: relative;
  max-width: 500px;
}

.content__text--large {
  font-size: clamp(1rem, 4vw, 1.1rem);
  max-width: none;
}

.one {
  width: 100%;
  height: 100%;
  position: relative;
  z-index: 0;
  background-size: cover;
  background-position: 50% 50%;
   will-change: transform, filter, opacity, scale;
}

.content__img {
  background-size: cover;
  background-position: 50% 50%;
  will-change: transform, filter, opacity;
}

.content--sides {
  display: grid;
  grid-template-columns: 1fr;
  grid-template-areas: 'img' 'content';
}

.content--sides .content__img {
  grid-area: img;
  height: 60vh;
  transform: translate(50px, -13%);

}
@media screen and (max-width: 900px) {
    
    
    
  .content--sides .content__img {
    transform: translate(0px, -13%);
  }

  .content--sides .content__text {
    max-width: 100%;
  }

  .content--center-tall {
    padding-top: 120vh;
  }

  .gallery-filters {
    margin-top: 50vh !important;
  }

  .pdf--container {
    margin-bottom: 40vh;
  }

  [lang="ar"] .content--center-tall {
    padding-top: 1vh;
    height: 80vh;
  }

  [lang="ar"] .gallery-filters {
    margin-top: 0vh !important;
  }

  [lang="ar"] .content--center-tall {
    margin-bottom: 0vh;
  }
}
/* new code end */
.content--center .content__img {
  height: 38vh;
  width: auto;
  aspect-ratio: 0.8;
  grid-area: 1 / 1 / -1 / -1;
}

.content--center-tall {
  padding-top: 20vh;
  margin-bottom: 30vh;
}

.content--center-tall .content__img {
  height: 58vh;
  width: auto;
  aspect-ratio: 1;
}

.content--column .content__img {
  height: auto;
  width: 100%;
  max-width: 150px;
  aspect-ratio: 1;
  background-size: cover;
  background-position: 50% 50%;
}

.content--lines {
  display: flex;
  flex-direction: column;
}

.content--lines .content__title {
  display: flex;
  flex-wrap: wrap;
  align-self: center;
  gap: 10px;
}

.content--lines .content__img {
  height: 0.725em;
  width: auto;
  aspect-ratio: 16/9;
  background-size: cover;
  align-self: center;
  flex: none;
}

.outro {
  display: grid;
  place-items: center;
  margin: 40vh 0;
  padding: 0 10vw;
}

.outro__title {
  font-weight: 300;
  margin-bottom: 3rem;
}

.card-wrap {
  width: 100%;
  display: grid;
  grid-gap: 2rem;
  grid-auto-flow: row;
  grid-auto-columns: 1fr;
  justify-items: center;
  justify-content: center;
}

.card {
  width: 100%;
  max-width: 255px;
  min-width: 150px;
  gap: 1rem;
  display: flex;
  flex-direction: column;
  position: relative;
}

.card__img {
  background-size: cover;
  background-position: 50% 50%;
  aspect-ratio: 1;
  max-width: 100%;
}

.card__title a {
  color: var(--color-text);
}

/* Gallery Filter Styles */
.gallery-filters {
  display: flex;
  justify-content: center;
  gap: 0.8rem;
  padding: 2rem 1rem;
  flex-wrap: wrap;
  opacity: 0;
  transform: translateY(-20px);
  max-width: 1200px;
  margin: 0 auto;
}

.filter-btn {
  background: rgb(1 78 42 / 19%);
  border: none;
  padding: 0.6rem 1.2rem;
  border-radius: 2rem;
  font-family: "capitana", sans-serif;
  font-size: 0.8rem;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
  color: var(--color-text);
}

.filter-btn:hover {
  background: rgba(0, 0, 0, 0.2);
  transform: translateY(-2px);
}

.filter-btn.active {
  background: var(--color-link);
  color: #fff;
}

/* Gallery Item Hover Effects */
.gallery-item {
  cursor: pointer;
  transition: transform 0.3s ease, filter 0.3s ease;
  position: relative;
  overflow: hidden;
}

.gallery-item:hover {
  transform: scale(0.95);
  filter: brightness(1.1);
}

/* Filter Animation Classes */
.content__img.gallery-item.filtered-out {
  display: none !important;
  opacity: 1;
  visibility: hidden;
}

.content__img.gallery-item.filtered-in {
  display: block !important;
  opacity: 1;
  visibility: visible;
  transform: scale(1);
  pointer-events: auto;
}

/* Modal Styles */
.modal {
  display: none;
  position: fixed;
  z-index: 10000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.95);
  backdrop-filter: blur(10px);
}

.modal.active {
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-content {
  position: relative;
  max-width: 90%;
  max-height: 90%;
  display: flex;
  flex-direction: column;
  align-items: center;
  transform: scale(0.8) rotate(-5deg);
  opacity: 0;

}

.modal-image {
  max-width: 100%;
  max-height: 80vh;
  object-fit: contain;
  border-radius: 4px;
}

.modal-close {
  position: absolute;
  top: -40px;
  right: 0;
  color: #fff;
  font-size: 2rem;
  font-weight: bold;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0.5rem;
  transition: transform 0.3s ease;
}

.modal-close:hover {
  transform: scale(1.1);
}

.modal-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  font-size: 3rem;
  border: none;
  cursor: pointer;
  padding: 1rem 1.5rem;
  backdrop-filter: blur(10px);
  transition: background 0.3s ease;
  z-index: 2;
}

.modal-nav:hover {
  background: rgba(255, 255, 255, 0.2);
}

.modal-prev {
  left: 20px;
}

.modal-next {
  right: 20px;
}

.modal-info {
  text-align: center;
  margin-top: 2rem;
  color: #fff;
}

.modal-title {
  font-size: 1.5rem;
  margin: 0 0 0.5rem;
  font-family: "harpagan", sans-serif;
  font-weight: 500;
  text-transform: uppercase;
}

.modal-category {
  font-size: 0.875rem;
  opacity: 0.8;
  text-transform: uppercase;
  margin: 0;
}
/* Hero Section Styles */
.hero {
  height: 100vh;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero__content {
  position: relative;
  z-index: 10;
  text-align: center;
  width: 100%;
  height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: fixed;
  top: 0;
  left: 0;
}

.hero__title {
  font-family: -apple-system, BlinkMacSystemFont, "Inter", "Helvetica Neue", sans-serif;
  font-size: clamp(2.5rem, 6vw, 5rem);
  font-weight: 400;
  line-height: 1;
  margin: 0;
  color: var(--color-title);
  position: relative;
}

.hero__line {
  display: block;
  position: relative;
}

.hero__line--first {
  opacity: 0;
  transform: translateY(40px);
  

  position: relative;
  /* Keep relative positioning to avoid layout jumps */
}

.hero__line--first.fade-out {
  animation: heroFirstLineOut 0.3s ease-out forwards;
}

.hero__line--split {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  overflow: hidden; 
      min-height: 100px;

}

.hero__line-inner {
  display: inline-flex;
  align-items: center;
  will-change: transform, opacity;
  white-space: nowrap;
  transform: translateX(0);
  backface-visibility: hidden;
  /* Prevent flickering */
  -webkit-font-smoothing: antialiased;
  /* Smooth text rendering */
}

.hero__image {
  display: inline-block;
  width: 0;
  height: 0;
  background-image: url('../img/main.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 1;
  will-change: width, height, transform, scale;
  margin: 0;
  overflow: hidden;
  vertical-align: middle;
  transition: none;
  /* No CSS transitions, GSAP handles all */
  transform-origin: center center;
  backface-visibility: hidden;
  /* Prevent flickering */
  /* Aspect ratio will be set dynamically via JavaScript */
}

/* Keyframe animations for hero first line */
@keyframes heroFirstLineIn {
  from {
    opacity: 0;
    transform: translateY(40px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes heroFirstLineOut {
  from {
    opacity: 1;
    transform: translateY(0);
  }

  to {
    opacity: 0;
    transform: translateY(-40px);
  }
}

.custom--textbig b {
  font-size: 20px;
  /* For text big */
}

/* Update the content--initial section to add spacing */
.content--initial {
  background: var(--color-bg);
  margin-top: 0;
  opacity: 0;
  /* Start invisible */
  will-change: opacity;
  /* Optimize for animation */
}

/* Pdf css */
.interactive-container {
  position: relative;
  width: 65vw;
  height: 65vh;
  margin-bottom: 20vh;
}

.interactive-view {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  
  /* Default state: HIDDEN */
  opacity: 0;
  z-index: 1; /* Default layer */
  transition: opacity 0.5s ease; /* Adjusted for smooth transition */

  /* This is a key part of the fix. It hints to the browser to use the GPU, */
  /* which can prevent rendering glitches with iframes. */
  transform: translateZ(0);
}

/* Active State: VISIBLE */
.interactive-view.active {
  opacity: 1;
  z-index: 2; /* CRITICAL: The active view is now explicitly brought to the front */
}

/* --- Unchanged Content Styles --- */

.main-image {
  max-width: 100%;
  max-height: 80%;
  height: auto;
}

.pdf-button {
  margin-top: 25px;
  padding: 12px 24px;
  font-size: 16px;
  font-weight: bold;
  color: #ffffff;
  background-color: #333333;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.pdf-button:hover {
  background-color: #555555;
}

.crossfade-iframe {
  width: 100%;
  height: 100%;
}
/* Pdf css end */
.content__text.content__text--large {
    width: 85vw;
    line-height: 1.7;
}
/* Footer Start */
footer.custom--footer .wrapper {
  max-width: 1400px;
  margin: 0 auto;
}

footer.custom--footer .wrapper .row {
  display: flex;
}

footer.custom--footer .wrapper .row .column {
  width: 50%;
}

.footer-text ul {
  padding: 0;
  list-style: none;
  display: flex;
  gap: 10px;
}

.custom-conater {
  background: #f2f2eb;
  padding: 1.5rem 15px;
  margin-top: 2rem;
}

.custom--footer .rt-text ul {
  justify-content: flex-end;
}

.rt-text {
  text-align: right;
}

.footer-text span {
  color: #4d4c4c;
  font-weight: 600;
}
#imageView .content__img {
  opacity: 1 !important;
}
.custom--footer .rt-text ul li {
  padding-left: 20px;
  padding-right: 20px;
  font-size: 15px;
  font-weight: 400;
  color: #4d4c4c;
  position: relative;
}

.custom--footer .rt-text ul li a {
  font-size: 13px;
  font-weight: 400;
  color: #4d4c4c;
  position: relative;
}

.custom--footer .rt-text ul li:before {
  content: "";
  background: #4d4c4c;
  height: 17px;
  position: absolute;
  width: 1px;
  left: 0;
  top: 6px;
}

.custom--footer .rt-text ul li:last-child {
  padding-right: 0;
}

footer.custom--footer .left-col {
  width: max-content !important;
}

footer.custom--footer .wrapper .ryt-col {
  width: 100% !important;
}


.copy-ryt-section {
  background: #eaeae2;
  text-align: center;
  font-size: 13px;
  font-weight: 400;
  color: #4d4c4c;
  padding: 16px 15px;
}

span.custom-copyt {
  font-size: 11px;
  color: #cacac5;
  text-align: right;
  position: absolute;
  right: 21px;
  text-transform: capitalize;
}

span.custom-copyt a {
  color: #cacac5;
}

.footer-text ul svg,
.footer-text ul svg * {
  color: #014e2a;
  fill: #014e2a;
}
.copy-ryt-section {
  position: relative;
}
/* Footer end */

@media screen and (max-width: 1200px) {
  .content__title--medium {
    font-size: clamp(2rem, 7vw, 6rem);
  }
}

@media screen and (max-width: 900px) {
  .content--sides .content__img {
    transform: translate(0px, -13%);
  }

 
}

@media screen and (max-width: 768px) {
/* For background Image  new code */
  .floating-image{visibility: visible !important}

  .one .hero__image {
    background-image: url(img/main.jpg) !important;
  }

  /* For background Image new code end*/

  .modal-nav {
    font-size: 2rem;
    padding: 0.5rem 1rem;
  }

  .modal-prev {
    left: 10px;
  }

  .modal-next {
    right: 10px;
  }

  .filter-btn {
    font-size: 0.75rem;
    padding: 0.5rem 1rem;
  }

  /* Masonry grid responsive */
  .content--grid {
    grid-template-columns: repeat(2, 1fr);
    padding: 1rem;
  }

  .content--grid .content__img[data-step] {
    /* display: none; */
  }

  footer.custom--footer .wrapper .row {
    flex-direction: column;
    text-align: center;
  }

  footer.custom--footer .wrapper .row .column {
    width: 100% !important;
  }

  .footer-text ul,
  .custom--footer .rt-text ul {
    justify-content: center;
  }

  .rt-text {
    text-align: center;
  }

  .footer-text ul,
  .custom--footer .rt-text ul {
    flex-wrap: wrap;
  }

  span.custom-copyt {
    opacity: 0;
  }
  .content--center-tall {
    padding-top: 1vh;
}
.pdf--container iframe.crossfade-iframe {
  width: 67vw;
  height: 31vh;
}
.gallery-filters {
  margin-top: 0vh !important;
}

  /* RTL CSS  new code */
  .content--sides .content__text {
    max-width: 100%;
  }

  [lang="ar"] .content--center-tall {
    padding-top: 1vh;
    height: 80vh;
  }

  [lang="ar"] .gallery-filters {
    margin-top: 0vh !important;
  }

  [lang="ar"] .pdf--container {
    margin-bottom: 0vh;
  }

  [lang="ar"] .content--center-tall {
    margin-bottom: 0vh;
  }

  .translated-ltr .hero__title {
    font-size: clamp(1.9rem, 6vw, 5rem);
  }

  .translated-ltr .hero__line--split {
    gap: 5px;
    overflow: hidden;
  }

  /* RTL CSS end  */
  .customstatic--main {
    display: block;
  }

  .hide--main {
    height: 45vh;
  }

  .content--sides .content__text,
  .hide--main {
    transform: none !important;
  }

  /* new code end */
  
  /* ===== NEW CODE TO STOP TEXT TRANSITION ON MOBILE ===== */
  .reveal-text-on-scroll,
  .reveal-text-on-scroll > * {
    opacity: 1 !important; /* Makes sure the text is fully visible */
    transform: none !important; /* Resets any movement (like translateY) */
    transition: none !important; /* Removes any transition effect */
    animation: none !important; /* Disables keyframe animations */
  }
  /* ===== END NEW CODE ===== */
}

@media screen and (min-width: 53em) {
  .frame {
    grid-template-columns: 25% 50% 25%;
    grid-template-areas: 'title wrap sponsor';
  }

  .frame-wrap {
    justify-self: center;
  }

  .frame #cdawrap {
    max-width: 300px;
    text-align: right;
    justify-self: end;
  }

  .card-wrap {
    grid-auto-flow: column;
  }

  .content--sides {
    grid-template-columns: 40% 1fr;
    grid-template-areas: 'img content';
  }

  .content--lines .content__title {
    white-space: nowrap;
    flex-wrap: nowrap;
  }
}

/* Floating Images Container */
.floating-images {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 5;
  /* Create safe zones to prevent overlap with title */
  --title-safe-zone: 35%; /* Percentage of viewport height for title area */
}

/* Base Floating Image Styles - Polaroid Style */
.floating-image {
  opacity: 0;
  position: absolute;
  background-color: #fff;
  padding: 10px;
  padding-bottom: 50px; /* Extra space at bottom for polaroid effect */
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15), 0 2px 4px rgba(0, 0, 0, 0.1);
  will-change: transform, opacity;
  backface-visibility: hidden;
  transform: translateY(50px) scale(0.8) rotate(0deg);
  transition: none; /* Transitions will be added via JS */
  background-size: 100%;
  background-position: center;
  background-repeat: no-repeat;
  background-origin: content-box; /* Image stays within padding */
}
/* --- ALTERNATIVE FLOATING IMAGES --- */

/* Floating image revealed state (Your original code is perfect) */
.floating-image.revealed {
  opacity: 1;
  transform: translateY(0) scale(1) rotate(var(--rotation, 0deg));
}


/* //position and size of images on responsive as well as in desktop changed */

/*
  Individual Floating Image Positions
  Style: Enhanced Polaroid Scatter
*/

.floating-image:nth-child(1) {
  top: 8%; left: 7%;
  width: 180px; height: 180px;
  --rotation: -15deg;
}

.floating-image:nth-child(2) {
  top: 70%; left: 6%;
  width: 110px; height: 110px;
  --rotation: 10deg;
}

.floating-image:nth-child(3) {
  top: 45%; left: 0%;
  width: 130px; height: 130px;
  --rotation: 0deg;
}

.floating-image:nth-child(4) {
  bottom: 3%; left: 16%;
  width: 220px; height: 220px;
  --rotation: 0deg;
  background-size: 100%;
}

.floating-image:nth-child(5) {
  bottom: 15%; left: 38%;
  width: 160px; height: 160px;
  --rotation: -20deg;
}

.floating-image:nth-child(6) {
  bottom: 75%; left: 32%;
  width: 200px; height: 200px;
  --rotation: 7deg;
}

.floating-image:nth-child(7) {
  top: 8%; right: 5%;
  width: 115px; height: 115px;
  --rotation: 15deg;
}

.floating-image:nth-child(8) {
  top: 13%; right: 28%;
  width: 165px; height: 165px;
  --rotation: -9deg;
}

.floating-image:nth-child(9) {
  top: 37%; right: 10%;
  width: 180px; height: 180px;
  --rotation: 0deg;
}

.floating-image:nth-child(10) {
  bottom: 15%; right: 2%;
  width: 155px; height: 155px;
  --rotation: -12deg;
   background-size: 125px;
  background-position: center -6px;
}

.floating-image:nth-child(11) {
  bottom: 5%; right: 25%;
  width: 165px; height: 165px;
  --rotation: 0deg;
}

.floating-image:nth-child(12) {
  bottom: 3%; right: 48%;
  width: 135px; height: 135px;
  --rotation: -5deg;
}

/* Mobile Responsive - Adjusted positions to avoid title */
@media (max-width: 768px) {
  .floating-image:nth-child(n+7) {
    display: none;
  }
  
  /* Mobile positions - increased by 50% with varied rotations */
  .floating-image:nth-child(1) {
    top: 5%; left: 46%; width: 105px; height: 105px;
    --rotation: -15deg;
  }
  
  .floating-image:nth-child(2) {
    top: 20%; left: 2%; width: 118px; height: 118px;
    --rotation: 0deg;
  }
  
  .floating-image:nth-child(3) {
    top: 65%; left: 67%; width: 122px; height: 122px;
    --rotation: -10deg;
  }
  
  .floating-image:nth-child(4) {
    top: 65%; right: 2%; width: 108px; height: 108px;
    --rotation: 18deg;
  }
  
  .floating-image:nth-child(5) {
    bottom: 5%; left: 35%; width: 108px; height: 108px;
    --rotation: -20deg;
  }
  
  .floating-image:nth-child(6) {
    bottom: 60%; left: 57%; width: 105px; height: 105px;
    --rotation: 8deg;
  }
}
@media screen and (max-width: 900px) {

  /*
    THE FIX: The following two rules were causing the image in the PDF viewer
    section to disappear on mobile. They were too general and targeted any
    '.content__img' inside a '.content--center-tall' container. By commenting
    them out, the image remains visible as intended.
  */
  /*
   .content--center-tall .content__img {
     opacity: 0;
     width: 0px;
     height: 0;
     position: absolute;
     top: -58vh;
   }

   .content--grid .content__img[data-step] {
     opacity: 0;
     width: 0px;
     height: 0;
   }
  */

  .content--sides .content__text,
  .hide--main {
    transform: translate3d(0px, 0%, 0px) !important;
    margin-top: -20px;
    padding-top: 0px;
    padding-bottom: 20px;
  }

  section.content.content--sides {
    height: auto
  }

  .pdf--container iframe.crossfade-iframe {
    width: 100vw;
    height: 450px;
  }

  section.content.content--center.content--center-tall {
    height: auto;
    margin-bottom: 0px;
  }
}


@media screen and (max-width: 600px) {
.hero__image {
    background-image: url(../img/main-responsive.jpg);
}

.one{
    background-image: url(../img/main-responsive.jpg) !important;

}}