@import url('https://fonts.googleapis.com/css2?family=Open+Sans:ital,wght@0,300..800;1,300..800&display=swap');

body {
  margin: 0;
  overflow-x: hidden;
  font-family: 'Open Sans';
}

.title-section {
  position: relative;
  height: 200vh;
}

.background {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 140vh;
  background: url("images/background.jpg") center center / cover no-repeat;
  transform: translateY(0);
  will-change: transform;
}

.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #882345;
  mask: url("images/mask.svg") no-repeat center / cover;
  -webkit-mask: url("images/mask.svg") no-repeat center / cover;
  transform: scale(2);
  transform-origin: center;
  transition: transform 0.3s ease;
}
.content {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translateX(-50%) translateY(-50%);
  display: flex;
  align-items: center;
  gap: 0;
  width: 80%;
  max-width: 1200px;
  justify-content: center;
  transition: gap 0.3s ease;
}
.icon {
  min-width: 100px;
  max-width: 20vw;
  filter: brightness(0) invert(1);
  transition: all 0.3s ease;
  position: relative;
}

.text {
  color: white;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-overflow: clip;
  white-space: nowrap;
  width: 0;
}

.main-text, .sub-text, .divider, .description {
  opacity: 0;
  transform: translateX(50px);
  font-weight:normal;
}

.main-text {
  font-size: 5rem;
  font-weight:900;
}
.sub-text {
  font-size: 2.5rem;
  font-weight: bold;
}
.divider {
  width: 50px;
  height: 2px;
  background-color: white;
  margin: 1rem 0;
}
.description {
  font-size: 3rem;
}

.nebel-wrapper {
  position: relative;
  height: 150vh; /* 100vh for initial view + 50vh for sticky duration */
}

.nebel-section {
  position: sticky;
  top: 0;
  height: 100vh;
  width: 100%;
}

.placeholder-section {
  position: relative;
  height: 100vh;
  background-color: #fff;
}

.nebel-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.nebel-text {
  position: absolute;
  top: 45%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  text-align: center;
  font-size: 10vw;
  font-weight: 900;
  opacity: 1;
  white-space: pre-line;
  z-index: 2;
  margin-bottom: 1rem;
}

.nebel-text-clone {
  position: absolute;
  color: white;
  text-align: center;
  font-size: 10vw;
  font-weight: bold;
  white-space: pre-line;
  pointer-events: none;
  will-change: transform;
}

.nebel-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, rgba(153,164,196,0) 0%, rgba(153,164,196,1) 90%);
  pointer-events: none;
  z-index: 1;
}

.blue-bg {
  background: #003060;
  width: fit-content;
  display: block;
  padding: 0px 30px 0px;
  font-weight: bold;
  line-height: 2.8rem;
}

.last-blue-bg {
  padding: 0px 30px 10px !important;
}

.first-blue-bg {
  padding: 10px 30px 0px !important;
}

.nebel-info-container {
  position: absolute;
  bottom: 10%;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  z-index: 4;
}

.nebel-info-box {
  color: white;
  padding: 1rem 2rem 0;
  font-size: 3rem;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.nebel-additional-text {
  background: linear-gradient(to right, rgba(255,255,255,1), rgba(255,255,255,0));
  padding: 1rem 2rem;
  font-size: 2.5rem;
  color: #003067;
  white-space: nowrap;
  margin-left: 20%;
}

.flamingos-wrapper {
  position: relative;
  height: 200vh; /* Increased height to allow further scrolling */
}
.flamingos-section {
  position: sticky;
  top: 0;
  height: 100vh;
  width: 100%;
  background: url("images/flamingos.gif") center center / cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
}
.flamingos-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.flamingos-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent -50%, #af2d64 60%);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.flamingos-content-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  position: relative;
  z-index: 2;
  padding: 2rem;
}

.flip-card {
  position: relative;
  perspective: 1000px;
  cursor: pointer;
  height: 40vw;
  padding: 20px;
  border-radius: 10px;
  background-color: white;
  opacity: 0;
  bottom: -100px;
}

.finger-icon {
  position: absolute;
  bottom: 10%;
  right: 10px; /* Moved to the right */
  width: 60px;  /* Double the size */
  height: 60px; /* Double the size */
  transform: translateY(-50%) scaleX(-1); /* Center vertically and mirror */
  background: url("images/finger.png") center center no-repeat;
  background-size: contain;
  animation: pulse 1.5s infinite;
  z-index: 10; /* Added to ensure visibility */
}

@keyframes pulse {
  0%   { transform: translateY(-50%) scaleX(-1) scale(1); }
  50%  { transform: translateY(-50%) scaleX(-1) scale(1.2); }
  100% { transform: translateY(-50%) scaleX(-1) scale(1); }
}

.flip-img {
  width: 30vw;
}

.flip-card-inner {
  position: relative;
  width: 30vw;
  transition: transform 0.6s;
  transform-style: preserve-3d;
}

.flip-card.flipped .flip-card-inner {
  transform: rotateY(180deg);
}

.flip-card-front,
.flip-card-back {
  position: absolute;
  width: 30vw;
  backface-visibility: hidden;
}

.flip-card-inner > .flip-card-front,
.flip-card-inner > .flip-card-back {
  transition: opacity 0.6s;
}

.flip-card:not(.flipped) .flip-card-back {
  opacity: 0;
  pointer-events: none;
}

.flip-card.flipped .flip-card-front {
  opacity: 0;
  pointer-events: none;
}

.flip-card-back {
  transform: rotateY(180deg);
}

.flamingos-text {
  max-width: 500px;
  color: white;
  opacity: 0; /* Added initial opacity */
}

.flamingos-text h1 {
  font-size: 8rem;
  font-weight: bold;
  margin: 0;
}

.flamingos-text h2 {
  font-size: 1.8rem;
  margin: 0.5rem 0;
}

.flamingos-text hr {
  border: none;
  border-top: 2px solid white;
  width: 50px;
  margin: 0.5rem 0;
}

.flamingos-text p {
  font-size: 1rem;
  line-height: 1.5;
}
