/* ── INTRO SPLASH SCREEN STYLE ── */
.intro-overlay {
  position: fixed;
  inset: 0;
  background: url('../images/background-camau.webp') no-repeat center center;
  background-size: cover;
  z-index: 999999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 1;
  transition: opacity 0.8s cubic-bezier(0.25, 1, 0.5, 1);
  pointer-events: auto;
}

/* Skip pre-loading if already played in session */
.intro-skipped .intro-overlay {
  display: none !important;
}

.intro-overlay.fade-out {
  opacity: 0;
  pointer-events: none;
}

.intro-container {
  position: relative;
  max-width: 680px;
  width: 90%;
  aspect-ratio: 16/9;
  border: 1.5px solid var(--gold);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.8);
  background: #000000;
  opacity: 0;
  pointer-events: none;
  transform: scale(0.95);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.intro-container.show {
  opacity: 1;
  pointer-events: auto;
  transform: scale(1);
}

/* ── POEM SECTION STYLE ── */
.intro-poem {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 8px;
  z-index: 1000001;
  pointer-events: none;
  transition: opacity 0.8s ease;
  width: 100%;
  max-width: 800px;
}

.poem-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  width: 100%;
  opacity: 1;
  transition: opacity 0.8s ease;
}

.poem-group.group-2 {
  display: none;
  opacity: 0;
}

/* ── START EXPERIENCE BUTTON STYLE ── */
.intro-start-container {
  position: absolute;
  z-index: 1000002;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.intro-start-btn {
  background: rgba(13, 26, 18, 0.6);
  border: 1.5px solid var(--gold);
  padding: 18px 36px;
  border-radius: 50px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  box-shadow: 0 0 30px rgba(201, 168, 76, 0.15);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  animation: intro-pulse 2.5s infinite ease-in-out;
}

.intro-start-btn .btn-text {
  font-family: var(--display);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.25em;
  color: var(--gold);
}

.intro-start-btn .btn-subtext {
  font-family: var(--body);
  font-size: 10px;
  letter-spacing: 0.05em;
  color: var(--ivory);
  opacity: 0.65;
}

.intro-start-btn:hover {
  background: var(--gold);
  box-shadow: 0 0 45px rgba(201, 168, 76, 0.45);
  transform: scale(1.04);
}

.intro-start-btn:hover .btn-text {
  color: var(--ink);
}

.intro-start-btn:hover .btn-subtext {
  color: var(--ink);
  opacity: 0.85;
}

@keyframes intro-pulse {
  0% {
    box-shadow: 0 0 25px rgba(201, 168, 76, 0.15);
    transform: scale(1);
  }
  50% {
    box-shadow: 0 0 45px rgba(201, 168, 76, 0.35);
    transform: scale(1.02);
  }
  100% {
    box-shadow: 0 0 25px rgba(201, 168, 76, 0.15);
    transform: scale(1);
  }
}

@media (max-width: 768px) {
  .intro-start-btn {
    padding: 14px 28px;
  }
  .intro-start-btn .btn-text {
    font-size: 12px;
    letter-spacing: 0.2em;
  }
  .intro-start-btn .btn-subtext {
    font-size: 9px;
  }
}

.poem-line {
  font-family: var(--display);
  font-size: 36px;
  font-style: italic;
  color: var(--ivory);
  opacity: 0;
  transform: translateY(15px);
  transition: opacity 1.2s ease, transform 1.2s ease;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.7);
  letter-spacing: 0.05em;
  margin: 0;
  line-height: 1.3;
}

.poem-line.visible {
  opacity: 1;
  transform: translateY(0);
}

.poem-line:nth-child(even) {
  color: var(--gold);
}

@media (max-width: 768px) {
  .intro-poem {
    gap: 6px;
  }
  .poem-line {
    font-size: 24px;
    margin: 2px 0;
  }
}

.intro-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.intro-skip-btn {
  position: absolute;
  top: 40px;
  right: 40px;
  background: rgba(13, 26, 18, 0.5);
  border: 1px solid rgba(201, 168, 76, 0.25);
  color: var(--gold);
  padding: 8px 22px;
  font-family: var(--body);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  border-radius: 50px;
  cursor: pointer;
  z-index: 1000000;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.intro-skip-btn:hover {
  background: var(--gold);
  color: var(--ink);
  border-color: var(--gold);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(201, 168, 76, 0.2);
}

/* Adjustments for mobile view */
@media (max-width: 768px) {
  .intro-skip-btn {
    top: 24px;
    right: 24px;
    padding: 6px 16px;
    font-size: 10px;
  }
}

/* ── DECORATIVE FLYING BIRDS & FIREFLIES ── */
.intro-birds-container {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 999999;
}

.intro-fireflies-container {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1000000;
}

.intro-bird-wrapper {
  position: absolute;
  width: min(60px, 8vw);
  height: auto;
  opacity: 0.12; /* Subtle dark-gold bird watermark */
  z-index: 999999;
  pointer-events: none;
  color: var(--gold);
}

.intro-bird {
  width: 100%;
  height: auto;
}

/* Wing flap animations */
.bird-wing-left {
  transform-origin: 50px 30px;
}
.bird-wing-right {
  transform-origin: 50px 30px;
}

/* Individual bird flight paths & delays */
/* Individual bird flight paths & delays */
.intro-bird-wrapper:nth-child(1) {
  top: 15%;
  animation: bird-flight-1 13s linear infinite 0s;
}
.intro-bird-wrapper:nth-child(1) .bird-wing-left { animation: wing-flap-left 0.7s ease-in-out infinite alternate; animation-delay: 0.1s; }
.intro-bird-wrapper:nth-child(1) .bird-wing-right { animation: wing-flap-right 0.7s ease-in-out infinite alternate; animation-delay: 0.1s; }

.intro-bird-wrapper:nth-child(2) {
  top: 25%;
  animation: bird-flight-2 16s linear infinite 2s;
  width: min(45px, 6vw);
}
.intro-bird-wrapper:nth-child(2) .bird-wing-left { animation: wing-flap-left 0.85s ease-in-out infinite alternate; animation-delay: 0.3s; }
.intro-bird-wrapper:nth-child(2) .bird-wing-right { animation: wing-flap-right 0.85s ease-in-out infinite alternate; animation-delay: 0.3s; }

.intro-bird-wrapper:nth-child(3) {
  top: 35%;
  animation: bird-flight-3 15s linear infinite 4.5s;
  width: min(50px, 7vw);
}
.intro-bird-wrapper:nth-child(3) .bird-wing-left { animation: wing-flap-left 0.75s ease-in-out infinite alternate; animation-delay: 0.5s; }
.intro-bird-wrapper:nth-child(3) .bird-wing-right { animation: wing-flap-right 0.75s ease-in-out infinite alternate; animation-delay: 0.5s; }

.intro-bird-wrapper:nth-child(4) {
  top: 10%;
  animation: bird-flight-4 18s linear infinite 1s;
  width: min(40px, 5vw);
}
.intro-bird-wrapper:nth-child(4) .bird-wing-left { animation: wing-flap-left 0.9s ease-in-out infinite alternate; animation-delay: 0.2s; }
.intro-bird-wrapper:nth-child(4) .bird-wing-right { animation: wing-flap-right 0.9s ease-in-out infinite alternate; animation-delay: 0.2s; }

.intro-bird-wrapper:nth-child(5) {
  top: 45%;
  animation: bird-flight-5 14s linear infinite 6.5s;
  width: min(55px, 7.5vw);
}
.intro-bird-wrapper:nth-child(5) .bird-wing-left { animation: wing-flap-left 0.65s ease-in-out infinite alternate; animation-delay: 0s; }
.intro-bird-wrapper:nth-child(5) .bird-wing-right { animation: wing-flap-right 0.65s ease-in-out infinite alternate; animation-delay: 0s; }

.intro-bird-wrapper:nth-child(6) {
  top: 20%;
  animation: bird-flight-6 17s linear infinite 3.5s;
  width: min(42px, 5.5vw);
}
.intro-bird-wrapper:nth-child(6) .bird-wing-left { animation: wing-flap-left 0.8s ease-in-out infinite alternate; animation-delay: 0.4s; }
.intro-bird-wrapper:nth-child(6) .bird-wing-right { animation: wing-flap-right 0.8s ease-in-out infinite alternate; animation-delay: 0.4s; }

.intro-bird-wrapper:nth-child(7) {
  top: 30%;
  animation: bird-flight-7 14.5s linear infinite 8s;
  width: min(52px, 6.8vw);
}
.intro-bird-wrapper:nth-child(7) .bird-wing-left { animation: wing-flap-left 0.72s ease-in-out infinite alternate; animation-delay: 0.15s; }
.intro-bird-wrapper:nth-child(7) .bird-wing-right { animation: wing-flap-right 0.72s ease-in-out infinite alternate; animation-delay: 0.15s; }

.intro-bird-wrapper:nth-child(8) {
  top: 18%;
  animation: bird-flight-8 19s linear infinite 5.5s;
  width: min(38px, 4.8vw);
}
.intro-bird-wrapper:nth-child(8) .bird-wing-left { animation: wing-flap-left 0.88s ease-in-out infinite alternate; animation-delay: 0.6s; }
.intro-bird-wrapper:nth-child(8) .bird-wing-right { animation: wing-flap-right 0.88s ease-in-out infinite alternate; animation-delay: 0.6s; }

.intro-bird-wrapper:nth-child(9) {
  top: 40%;
  animation: bird-flight-9 12.5s linear infinite 9.5s;
  width: min(58px, 7.8vw);
}
.intro-bird-wrapper:nth-child(9) .bird-wing-left { animation: wing-flap-left 0.62s ease-in-out infinite alternate; animation-delay: 0.25s; }
.intro-bird-wrapper:nth-child(9) .bird-wing-right { animation: wing-flap-right 0.62s ease-in-out infinite alternate; animation-delay: 0.25s; }

.intro-bird-wrapper:nth-child(10) {
  top: 28%;
  animation: bird-flight-10 15.5s linear infinite 11.5s;
  width: min(48px, 6.2vw);
}
.intro-bird-wrapper:nth-child(10) .bird-wing-left { animation: wing-flap-left 0.78s ease-in-out infinite alternate; animation-delay: 0.35s; }
.intro-bird-wrapper:nth-child(10) .bird-wing-right { animation: wing-flap-right 0.78s ease-in-out infinite alternate; animation-delay: 0.35s; }

@keyframes wing-flap-left {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(-25deg); }
}

@keyframes wing-flap-right {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(25deg); }
}

@keyframes bird-flight-1 {
  0% {
    left: 105%;
    transform: translateY(0) scale(1);
    opacity: 0;
  }
  10% {
    opacity: 0.15;
  }
  50% {
    transform: translateY(-20px) scale(1.05);
  }
  90% {
    opacity: 0.15;
  }
  100% {
    left: -15%;
    transform: translateY(-10px) scale(1);
    opacity: 0;
  }
}

@keyframes bird-flight-2 {
  0% {
    left: 105%;
    transform: translateY(0);
    opacity: 0;
  }
  10% {
    opacity: 0.08;
  }
  50% {
    transform: translateY(15px);
  }
  90% {
    opacity: 0.08;
  }
  100% {
    left: -15%;
    transform: translateY(0);
    opacity: 0;
  }
}

@keyframes bird-flight-3 {
  0% {
    left: 105%;
    transform: translateY(0);
    opacity: 0;
  }
  15% {
    opacity: 0.12;
  }
  60% {
    transform: translateY(-15px);
  }
  85% {
    opacity: 0.12;
  }
  100% {
    left: -15%;
    transform: translateY(-5px);
    opacity: 0;
  }
}

@keyframes bird-flight-4 {
  0% {
    left: 105%;
    transform: translateY(0);
    opacity: 0;
  }
  10% {
    opacity: 0.08;
  }
  50% {
    transform: translateY(25px);
  }
  90% {
    opacity: 0.08;
  }
  100% {
    left: -15%;
    transform: translateY(10px);
    opacity: 0;
  }
}

@keyframes bird-flight-5 {
  0% {
    left: 105%;
    transform: translateY(0);
    opacity: 0;
  }
  10% {
    opacity: 0.14;
  }
  40% {
    transform: translateY(-30px);
  }
  90% {
    opacity: 0.14;
  }
  100% {
    left: -15%;
    transform: translateY(-15px);
    opacity: 0;
  }
}

@keyframes bird-flight-6 {
  0% {
    left: 105%;
    transform: translateY(0);
    opacity: 0;
  }
  10% {
    opacity: 0.08;
  }
  50% {
    transform: translateY(10px);
  }
  90% {
    opacity: 0.08;
  }
  100% {
    left: -15%;
    transform: translateY(5px);
    opacity: 0;
  }
}

@keyframes bird-flight-7 {
  0% {
    left: 105%;
    transform: translateY(0);
    opacity: 0;
  }
  12% {
    opacity: 0.12;
  }
  50% {
    transform: translateY(-15px);
  }
  88% {
    opacity: 0.12;
  }
  100% {
    left: -15%;
    transform: translateY(-5px);
    opacity: 0;
  }
}

@keyframes bird-flight-8 {
  0% {
    left: 105%;
    transform: translateY(0);
    opacity: 0;
  }
  10% {
    opacity: 0.08;
  }
  60% {
    transform: translateY(20px);
  }
  90% {
    opacity: 0.08;
  }
  100% {
    left: -15%;
    transform: translateY(10px);
    opacity: 0;
  }
}

@keyframes bird-flight-9 {
  0% {
    left: 105%;
    transform: translateY(0);
    opacity: 0;
  }
  10% {
    opacity: 0.15;
  }
  45% {
    transform: translateY(-25px);
  }
  90% {
    opacity: 0.15;
  }
  100% {
    left: -15%;
    transform: translateY(-10px);
    opacity: 0;
  }
}

@keyframes bird-flight-10 {
  0% {
    left: 105%;
    transform: translateY(0);
    opacity: 0;
  }
  15% {
    opacity: 0.12;
  }
  55% {
    transform: translateY(15px);
  }
  85% {
    opacity: 0.12;
  }
  100% {
    left: -15%;
    transform: translateY(5px);
    opacity: 0;
  }
}

/* Firefly animation */
.intro-firefly {
  position: absolute;
  width: 4px;
  height: 4px;
  background: var(--gold);
  border-radius: 50%;
  box-shadow: 0 0 6px var(--gold), 0 0 12px var(--gold);
  opacity: 0;
  pointer-events: none;
  z-index: 1000000;
}

.intro-firefly:nth-child(1) { top: 20%; left: 30%; animation: firefly-float 8s infinite 1s; }
.intro-firefly:nth-child(2) { top: 60%; left: 15%; animation: firefly-float 10s infinite 0s; }
.intro-firefly:nth-child(3) { top: 40%; left: 80%; animation: firefly-float 7s infinite 3s; }
.intro-firefly:nth-child(4) { top: 80%; left: 70%; animation: firefly-float 9s infinite 2s; }
.intro-firefly:nth-child(5) { top: 15%; left: 75%; animation: firefly-float 11s infinite 4s; }
.intro-firefly:nth-child(6) { top: 75%; left: 40%; animation: firefly-float 8s infinite 1.5s; }
.intro-firefly:nth-child(7) { top: 50%; left: 52%; animation: firefly-float 12s infinite 0.5s; }
.intro-firefly:nth-child(8) { top: 30%; left: 12%; animation: firefly-float 9s infinite 5s; }

@keyframes firefly-float {
  0% {
    transform: translate(0, 0) scale(0.8);
    opacity: 0;
  }
  20% {
    opacity: 0.7;
  }
  50% {
    transform: translate(40px, -50px) scale(1.3);
    opacity: 0.2;
  }
  80% {
    opacity: 0.7;
  }
  100% {
    transform: translate(-10px, -90px) scale(0.8);
    opacity: 0;
  }
}
