/*=============== GOOGLE FONTS ===============*/
@import url("https://fonts.googleapis.com/css2?family=Love+Ya+Like+A+Sister&family=Roboto&display=swap");

/*=============== VARIABLES CSS ===============*/
:root {
  --header-height: 3.5rem;
  --curtain-color: #8B0000;

  /*========== Colors ==========*/
  /*Color mode HSL(hue, saturation, lightness)*/
  --first-color: #c5333a;
  --first-color-alt: #b94a44;
  --title-color: hsl(19, 16%, 15%);
  --text-color: hsl(19, 16%, 35%);
  --text-color-light: hsl(19, 8%, 55%);
  --body-color: hsl(19, 100%, 96%);
  --container-color: hsl(19, 100%, 97%);
  --deep-red: #c5333a;
  --gold-accent: #ffd700;
  --parchment: #f4e9d8;

  /*========== Font and typography ==========*/
  /*.5rem = 8px | 1rem = 16px ...*/
  --body-font: "Roboto", sans-serif;
  --title-font: "Love Ya Like A Sister", cursive;
  --subtitle-font: "Love Ya Like A Sister", cursive;
  --biggest-font-size: clamp(1.75rem, 10vw, 2.75rem);
  --h1-font-size: 1.5rem;
  --h2-font-size: 1.25rem;
  --h3-font-size: 1rem;
  --normal-font-size: 1rem; /* Increased from 0.938rem */
  --small-font-size: 0.875rem; /* Increased from 0.813rem */
  --smaller-font-size: 0.813rem; /* Increased from 0.75rem */

  /*========== Font weight ==========*/
  --font-medium: 500;
  --font-semi-bold: 600;

  /*========== z index ==========*/
  --z-tooltip: 10;
  --z-fixed: 100;
}

@media screen and (min-width: 1024px) {
  :root {
    --biggest-font-size: 4.5rem;
    --h1-font-size: 2.5rem;
    --h2-font-size: 1.75rem;
    --h3-font-size: 1.5rem;
    --normal-font-size: 1.25rem; /* Increased from 1.125rem */
    --small-font-size: 1rem; /* Increased from 0.938rem */
    --smaller-font-size: 0.938rem; /* Increased from 0.875rem */
  }
}

/*=============== BASE ===============*/
* {
  box-sizing: border-box;
  padding: 0;
  margin: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--body-font);
  font-size: var(--normal-font-size);
  background-color: var(--body-color);
  color: var(--text-color);
  transition: background 0.4s; /* For dark mode animation */
}

h1,
h2,
h3 {
  color: var(--title-color);
  font-weight: var(--font-medium);
}

ul {
  list-style: none;
}

a {
  text-decoration: none;
}

img {
  max-width: 100%;
  height: auto;
}

/*=============== THEME ===============*/
.nav__buttons {
  display: flex;
  align-items: center;
  column-gap: 1rem;
}

.change-theme {
  font-size: 1.25rem;
  color: var(--title-color);
  cursor: pointer;
  transition: color 0.3s;
}

/*========== Variables Dark theme ==========*/
body.dark-theme {
  /*========== Colors ==========*/
  /*Color mode HSL(hue, saturation, lightness)*/
  --first-color: #c5333a;
  --first-color-alt: #b94a44;
  --title-color: hsl(19, 24%, 90%);
  --text-color: hsl(19, 16%, 75%);
  --body-color: hsl(19, 12%, 8%);
  --container-color: hsl(19, 10%, 10%);
}

/*==========
    Color changes in some parts of
    the website, in light theme
==========*/
.dark-theme .bg-header,
.dark-theme .nav__menu,
.dark-theme .scrollup {
  box-shadow: 0 2px 8px hsla(19, 64%, 4%, 0.5);
}

.dark-theme .newsletter__content {
  background-color: var(--container-color);
}

.dark-theme .newsletter__form,
.dark-theme .newsletter__input {
  background-color: var(--body-color);
}

.dark-theme::-webkit-scrollbar {
  background-color: hsl(19, 8%, 15%);
}

.dark-theme::-webkit-scrollbar-thumb {
  background-color: hsl(19, 8%, 25%);
}

.dark-theme::-webkit-scrollbar-thumb:hover {
  background-color: hsl(19, 8%, 35%);
}

/*=============== REUSABLE CSS CLASSES ===============*/
.container {
  max-width: 1024px;
  margin-inline: 1.5rem;
}

.grid {
  display: grid;
  gap: 1.5rem;
}

.section {
  padding-block: 5rem 1rem;
}

.section__title {
  font-size: var(--h1-font-size);
  font-family: var(--title-font);
  margin-bottom: 1.5rem;
}

.section__subtitle {
  display: block;
  font-size: var(--h2-font-size);
  font-family: var(--subtitle-font);
  color: var(--first-color);
  margin-bottom: 0.5rem;
}

.section__title,
.section__subtitle {
  text-align: center;
}

.main {
  overflow: hidden;
  /* For animation ScrollReveal */
}

/*=============== HEADER & NAV ===============*/
.header {
  position: fixed;
  width: 100%;
  background-color: var(--body-color);
  top: 0;
  left: 0;
  z-index: var(--z-fixed);
  transition: box-shadow 0.3s, background 0.4s;
}

.nav {
  position: relative;
  height: var(--header-height);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav__logo,
.nav__toggle,
.nav__close {
  display: flex;
  color: var(--title-color);
}

.nav__logo {
  align-items: center;
  column-gap: 0.5rem;
  font-family: var(--title-font);
  font-size: var(--h3-font-size);
  font-weight: var(--font-semi-bold);
  transition: color 0.3s;
}

.nav__logo img {
  width: 30px;
}

.nav__logo img:last-child {
  width: 100px; /* Make the Papageno image twice its original size */
  transform: translateY(3px); /* Move the Papageno image slightly up */
}

.nav__logo:hover {
  color: var(--first-color);
}

.nav__toggle {
  font-size: 1.25rem;
  cursor: pointer;
}

@media screen and (max-width: 767px) {
  .nav__menu {
    position: fixed;
    top: -100%;
    left: 0;
    background-color: var(--body-color);
    width: 100%;
    box-shadow: 0 8px 20px hsla(19, 64%, 24%, 0.1);
    padding-block: 3.5rem;
    transition: top 0.4s;
  }

  .nav__logo img:last-child {
    width: 80px; /* Adjust size for smaller screens */
    transform: translateY(2px); /* Move the Papageno image slightly up for smaller screens */
  }
}

.nav__list {
  display: flex;
  flex-direction: column;
  text-align: center;
  row-gap: 2rem;
}

.nav__link {
  color: var(--title-color);
  font-weight: var(--font-medium);
  font-size: var(--small-font-size); /* Make nav words smaller */
  transition: color 0.4s;
}

.nav__link:hover {
  color: var(--first-color);
}

.nav__close {
  position: absolute;
  top: 1rem;
  right: 1.5rem;
  font-size: 1.5rem;
  cursor: pointer;
}

.nav__img-1,
.nav__img-2 {
  position: absolute;
  opacity: 0.2;
}

.nav__img-1 {
  width: 100px;
  top: 0.75rem;
  left: -2rem;
  transform: rotate(165deg);
}

.nav__img-2 {
  width: 50px;
  right: -1rem;
  bottom: 0;
  transform: rotate(-30deg);
}

/* Show menu */
.show-menu {
  top: 0;
}

/* Change background header */
.bg-header {
  box-shadow: 0 2px 8px hsla(19, 64%, 24%, 0.1);
}

/* Active link */
.active-link {
  color: var(--first-color);
}

/*=============== HOME ===============*/
.home {
  position: relative;
}

.home__container {
  padding-top: 9.5rem;
  height: 100vh;
}

.home__data {
  position: relative;
  z-index: var(--z-tooltip);
}

.home__subtitle {
  font-size: var(--big-font-size);
  font-family: var(--second-font);
  margin-bottom: 0.5rem;
  color: var(--deep-red);
  position: relative;
  display: inline-block;
  transform: rotate(-1deg);
  animation: titleTilt 8s ease-in-out infinite;
}

.papageno-feathers {
  position: relative;
  z-index: 1;
  text-shadow: 2px 2px 4px rgba(197, 51, 58, 0.2);
}

.papageno-feathers::after {
  content: '';
  position: absolute;
  bottom: -15px;
  left: 50%;
  width: 110%;
  height: 24px;
  background: linear-gradient(
    45deg,
    var(--deep-red) 10%,
    transparent 30%,
    var(--gold-accent) 70%,
    transparent 90%
  );
  opacity: 0.15;
  filter: blur(8px);
  transform: translateX(-50%) rotate(2deg);
  z-index: -1;
}

.watercolor-title {
  position: relative;
  display: inline-block;
  padding: 8px 20px;
  border-radius: 12px 2px 12px 2px;
}

.watercolor-title::before {
  display: none; /* Removes the soft glow effect */
}

.home__title {
  font-size: var(--biggest-font-size);
  font-family: var(--second-font);
  line-height: 100%;
  margin-bottom: 1rem;
  position: relative;
}

.home__title span {
  font-size: var(--bigger-font-size);
}

.home__title::after {
  display: none; /* Removes the milky radial background */
}

.home__button {
  --offset: 10px;
  --border-size: 2px;

  display: inline-block; /* Fix: Changed from block to inline-block */
  position: relative;
  padding: 1.5em 3em;
  appearance: none;
  border: 0;
  background: transparent;
  color: #e55743;
  text-transform: uppercase;
  letter-spacing: .25em;
  outline: none;
  cursor: pointer;
  font-weight: bold;
  border-radius: 0;
  box-shadow: inset 0 0 0 var(--border-size) currentcolor;
  transition: background .8s ease;
}


@media screen and (min-width: 1150px) and (min-height: 1000px) {
  .home__container {
    display: grid;
    height: 100vh;
    place-items: center; /* Fix: Center the home__data container */
  }
  .home__data {
    align-self: center;
    text-align: center; /* Fix: Center the text and button inside */
  }
}

.home__button:hover {
  background: rgba(100, 0, 0, .03);
}

.home__cloud-1,
.home__cloud-2 {
  position: absolute;
  width: 150px;
}

.home__cloud-1 {
  top: 6rem;
  right: 1rem;
  animation: cloud-1 8s linear infinite;
}

.home__cloud-2 {
  top: 25rem;
  left: .5rem;
  animation: cloud-2 8s linear infinite;
}

.home__images {
  overflow: hidden;
}

.home__images div {
  max-width: initial;
  width: 650px;
  height: 270px;
  background-size: 1000px 100%;
  position: absolute;
  left: 0;
  transition: background-image 0.4s;
}

.home__waves-1 {
  bottom: -1.5rem;
  animation: waves-1 8s linear infinite; /* Slightly slower */
}

.home__waves-2 {
  bottom: 1.5rem;
  animation: waves-2 10s linear infinite; /* Slightly slower */
}

.home__waves-3 {
  bottom: 3rem;
  animation: waves-1 8s linear infinite; /* Slightly slower */
}

.home__ship {
  width: 400px;
  position: absolute;
  bottom: 3rem;
  left: 0;
  right: 0;
  margin-inline: auto;
  transform-origin: center center;
  animation: ship 2s linear infinite;
  transition: src 0.4s;
}

/* Animated Clouds */
@keyframes cloud-1 {
  0% {
    margin-right: -1000px;
  }
  100% {
    margin-right: 100%;
  }
}

@keyframes cloud-2 {
  0% {
    margin-left: 100%;
  }
  100% {
    margin-left: -1000px;
  }
}

/* Animated waves */
@keyframes waves-1 {
  0% {
    background-position-x: 1000px;
  }
  100% {
    background-position-x: 0;
  }
}

@keyframes waves-2 {
  0% {
    background-position-x: 0;
  }
  100% {
    background-position-x: 1000px;
  }
}

/* Animated ship */
@keyframes ship {
  0% {
    transform: translateY(0) rotate(0);
  }
  25% {
    transform: translateY(0) rotate(-8deg);
  }
  40% {
    transform: translateY(4px) rotate(-8deg);
  }
  85% {
    transform: translateY(1px) rotate(8deg);
  }
  100% {
    transform: translateY(0) rotate(0);
  }
}

/*=============== BREAKPOINTS ===============*/
/* For small devices */
@media screen and (max-width: 300px) {
  .container {
    margin-inline: 1rem;
  }

  .home__title {
    font-size: 3rem;
  }
  .home__title span {
    font-size: 2.5rem;
  }
}

@media screen and (min-width: 350px) and (max-height: 680px) {
  .home__container {
    height: 750px;
  }
  .home__images div {
    width: 100%;
  }
}

/* For medium devices */
@media screen and (min-width: 576px) {
  .home__images div {
    width: 100%;
  }
  .home__ship {
    width: 400px;
  }
}

/* For large devices */
@media screen and (min-width: 1150px) {
  .container {
    margin-inline: auto;
  }

  .nav {
    height: calc(var(--header-height) + 2rem);
  }
  .nav__toggle,
  .nav__close {
    display: none;
  }
  .nav__list {
    flex-direction: row;
    column-gap: 4.5rem;
  }

  .home__container {
    height: 860px; /* Comment for full screen */
    padding-top: 11.5rem;
  }
  .home__title {
    margin-bottom: 3rem;
  }
  .home__button, .home__button::after {
    border-width: 4px;
  }
  .home__button::after {
    bottom: -12px;
  }
  .home__cloud-1, .home__cloud-2 {
    width: 250px;
  }
  .home__cloud-2 {
    top: 20rem;
  }
  .home__images div {
    height: 375px;
    background-size: 100vw 100%;
  }
  .home__waves-1 {
    bottom: -2.5rem;
  }
  .home__waves-2 {
    bottom: 1.5rem;
  }
  .home__waves-3 {
    bottom: 5rem;
  }
  .home__ship {
    width: 630px;
    left: 30rem;
  }

  /* Animated waves desktop */
  @keyframes waves-1 {
    0% {
      background-position-x: 100vw;
    }
    100% {
      background-position-x: 0;
    }
  }

  @keyframes waves-2 {
    0% {
      background-position-x: 0;
    }
    100% {
      background-position-x: 100vw;
    }
  }
}

@media screen and (min-width: 1150px) and (min-height: 1000px) {
  .home__container {
    display: grid;
    height: 100vh;
  }
  .home__data {
    align-self: center;
  }
}

/*=============== BUTTON ===============*/
.button {
  display: inline-flex;
  align-items: center;
  column-gap: 0.5rem;
  background-color: var(--first-color);
  padding: 1rem 1.5rem;
  border-radius: 4rem;
  color: #fff;
  font-weight: var(--font-medium);
  transition: background 0.3s;
}

.button i {
  font-size: 1.5rem;
  transition: transform 0.3s;
}

.button:hover {
  background-color: var(--first-color-alt);
}

.button:hover i {
  transform: translateX(0.25rem);
}

@-webkit-keyframes droplet {
  from {
    width: 0;
    height: 0;
    left: calc(50%);
    top: calc(50%);
    opacity: 1;
    border: 0em solid rgba(255, 255, 255, 0.7);
  }
  to {
    width: 8em;
    height: 8em;
    left: calc(50% - 4em);
    top: calc(50% - 4em);
    opacity: 0;
    border: 1em solid rgba(255, 255, 255, 0.7);
  }
}

@keyframes droplet {
  from {
    width: 0;
    height: 0;
    left: calc(50%);
    top: calc(50%);
    opacity: 1;
    border: 0em solid rgba(255, 255, 255, 0.5);
  }
  to {
    width: 8em;
    height: 8em;
    left: calc(50% - 4em);
    top: calc(50% - 4em);
    opacity: 0.2;
    border: 1em solid rgba(255, 255, 255, 0.5);
  }
}

.droplet {
  cursor: pointer;
  border: 1px solid var(--first-color);
  color: #fff;
  outline: none;
  background: transparent;
  overflow: hidden;
  z-index: 1;
  text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.2);
  box-shadow: 0px 0px 10px #ccc;
}

.droplet:hover:before {
  -webkit-animation: droplet 0.3s linear;
  animation: droplet 0.3s linear;
}

.droplet:active:after {
  background: var(--first-color-alt);
}

.droplet:after {
  content: ' ';
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background: var(--first-color);
  z-index: -2;
  box-shadow: inset 1px 1px 1px rgba(255, 255, 255, 0.5), inset -1px -1px 1px rgba(0, 0, 0, 0.1);
}

.droplet:before {
  content: ' ';
  position: absolute;
  background: var(--first-color);
  z-index: -1;
  width: 0;
  height: 0;
  left: calc(50%);
  top: calc(50%);
  opacity: 1;
  border: 0 solid rgba(255, 255, 255, 0.5);
  border-radius: 100%;
  transition: left 0.3s ease, top 0.3s ease, height 0.3s ease, width 0.3s ease, opacity 0.3s ease;
}


/* Animations */
@keyframes titleTilt {
  0%, 100% { transform: rotate(-1deg) scale(1); }
  25% { transform: rotate(1deg) scale(1.02); }
  50% { transform: rotate(-0.5deg) scale(0.98); }
  75% { transform: rotate(0.5deg) scale(1.01); }
}

@keyframes watercolorPulse {
  0% { opacity: 0.3; transform: translate(-50%, -50%) scale(1); }
  50% { opacity: 0.6; transform: translate(-50%, -50%) scale(1.1); }
  100% { opacity: 0.3; transform: translate(-50%, -50%) scale(1); }
}

/* Responsive adjustments */
@media screen and (max-width: 300px) {
  .container {
    margin-inline: 1rem;
  }

  .home__title {
    font-size: 3rem;
  }
  .home__title span {
    font-size: 2.5rem;
  }

  .watercolor-title {
    padding: 4px 10px;
  }

  .watercolor-title::before {
    filter: blur(3px);
  }

  .home__subtitle::after {
    bottom: -10px;
    height: 18px;
    filter: blur(8px);
  }
}

@media screen and (min-width: 1024px) {
  .home__title {
    margin-bottom: 3rem;
  }

  .watercolor-title {
    padding: 12px 28px;
  }

  .home__title::after {
    filter: blur(40px);
  }
}

/*=============== ABOUT ===============*/
.about {
  position: relative;
}

.about__container {
  display: grid;
  row-gap: 3rem;
  margin-inline: auto;
  padding-inline: 3.6rem;
  position: relative;
  background-color: rgba(220, 235, 245, 0.85);
  border: 2px solid rgba(255, 255, 255, 0.7);
  border-radius: 15px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2), inset 0 0 10px rgba(255, 255, 255, 0.5);
}

/* Add a subtle background gradient behind the about section */
.about__container::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(135, 206, 250, 0.12) 0%,
    rgba(135, 206, 250, 0.04) 100%
  );
  border-radius: 15px;
  pointer-events: none;
}

/* Center the about section data */
.about__data {
  text-align: center;
}

/* Add a soft text shadow for better readability */
.about__title,
.about__description {
  text-shadow:
    0 1px 2px rgb(255, 255, 255),
    0 2px 6px rgba(0, 0, 0, 0.10);
}

.about__description {
  line-height: 1.8; /* adds vertical spacing between lines */
  letter-spacing: 0.4px; /* slightly more space between letters */
  word-spacing: 1.5px; /* improves readability of sentences */
  font-size: 1.1rem; /* optional: a touch larger for comfort */
  max-width: 65ch; /* keeps paragraphs narrow for easier reading */
  margin: 0 auto; /* centers if needed */
}

/* Set a consistent image size for about title icons */
.about__title img {
  width: 30px;
}

.about__title div {
  display: flex;
  justify-content: center;
  align-items: center;
  column-gap: 0.5rem;
}

.about__leaf {
  width: 100px;
  opacity: 0.2;
  position: absolute;
  right: -1.5rem;
  bottom: 11rem;
  transform: rotate(-15deg);
}

/* REVIEWS SECTION */
.reviews {
  text-align: center;
}

.reviews .section__subtitle {
  color: #c5333a;
}

.reviews__container {
  padding: 2rem 0;
  width: 100%;
}

.review__card {
  background: #f5f5f5; /* Soft white color for a warm, inviting look */
  border-radius: 8px;
  padding: 1.5rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative; /* Ensures proper layering */
  overflow: hidden; /* Prevents border overflow */
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%; /* Ensures all cards are the same height */
}

/* Adding different watercolor borders */
.review__card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0.8; /* Adjust transparency for a subtle effect */
  z-index: -1; /* Ensures it stays behind the content */
  border-radius: 8px;
}

/* Assign different watercolor borders */
.review__card--1::before {
  background-image: url('../img/border1.png');
}

.review__card--2::before {
  background-image: url('../img/border2.png');
}

.review__card--3::before {
  background-image: url('../img/border3.png');
}

.review__card--4::before {
  background-image: url('../img/border4.png');
}

/* Adjust text color for aesthetic compatibility */
.review__text {
  font-size: 1.2rem;
  color: #333; /* Ensures readability */
  margin-bottom: 1rem;
}

.review__author {
  font-weight: bold;
  color: #333; /* Ensures readability */
  font-size: 1rem;
}

.review__location {
  font-size: 0.9rem;
  color: #c5333a; /* Adds a subtle highlight */
}





.review__card:hover {
  transform: translateY(-10px) scale(1.05);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.review__text {
  font-size: 1.2rem;
  color: #333;
  margin-bottom: 1rem;
}

.review__author {
  font-weight: bold;
  color: #333; /* Ensures readability */
  font-size: 1rem;
}

.review__location {
  font-size: 0.9rem;
  color: #c5333a;
}

/* Swiper Pagination */
.swiper-pagination-bullet {
  background: #ddd;
  width: 10px;
  height: 10px;
  margin: 0 5px;
}

.swiper-pagination-bullet-active {
  background: #c5333a;
}

/* Swiper container and slides */
.swiper-slide {
  width: auto;
  flex-shrink: 0;
}


/* Teaser Section */
.teaser {
  padding: 40px 0;
  text-align: center;
}

/* Header Section */
.teaser__header {
  margin-bottom: 50px;
}

.teaser__header .section__subtitle {
  color: #c5333a;
  font-size: 1.2rem;
  font-weight: bold;
  text-transform: uppercase;
  margin-bottom: 12px;
  display: block;
}

.teaser__header .section__title {
  font-size: 3rem;
  font-weight: bold;
  color: #333;
  line-height: 1.4;
  margin: 0 auto;
  max-width: 850px;
  transition: color 0.3s ease;
}

body.dark-theme .teaser__header .section__title {
  color: hsl(19, 24%, 85%);
}

/* Wrapper */
.wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
}

/* Teaser Blocks */
.teaser .container {
  position: relative;
  flex: 1 1 calc(33.333% - 20px);
  max-width: 30%;
  height: 280px;
  overflow: hidden;
  border-radius: 10px;
  margin-bottom: 20px;
  background: #f4f4f4;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Images */
.teaser .image {
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  transition: transform 0.4s ease-out;
}

/* Overlay */
.teaser .overlay-color {
  background: rgba(0, 0, 0, 0.5);
  position: absolute;
  inset: 0;
  mix-blend-mode: multiply;
  transition: opacity 0.4s ease-out;
}

/* Content */
.teaser .content {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: #fff;
  text-align: center;
  padding: 10px;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.4s ease-out;
}

/* Hover Effects */
.teaser .container:hover .image {
  transform: scale(1.1);
}

.teaser .container:hover .overlay-color {
  opacity: 0.8;
}

.teaser .container:hover .content {
  opacity: 1;
  transform: translateY(0);
}

/* Text Styles */
.teaser .content h2 {
  font-size: 1.6rem;
  font-weight: bold;
  margin-bottom: 12px;
  text-shadow: 0 3px 5px rgba(0, 0, 0, 0.7);
}

.teaser .content p {
  font-size: 1.1rem;
  line-height: 1.6;
  text-shadow: 0 2px 3px rgba(0, 0, 0, 0.6);
  max-width: 80%;
}

/* Button */
.teaser .button {
  padding: 10px 20px;
  border: 1px solid #fff;
  background: none;
  color: #fff;
  text-transform: uppercase;
  text-decoration: none;
  font-size: 1rem;
  border-radius: 5px;
  transition: all 0.4s ease-out;
}

.teaser .button:hover {
  background: #fff;
  color: #c5333a;
  cursor: pointer;
}

/* Responsive Adjustments */
@media screen and (max-width: 1024px) {
  .wrapper .container {
    flex: 1 1 calc(50% - 20px);
    max-width: 48%;
    height: 260px;
  }
}

@media screen and (max-width: 768px) {
  .wrapper .container {
    flex: 1 1 100%;
    max-width: 100%;
    height: 240px;
  }

  .teaser__header .section__title {
    font-size: 2.5rem;
  }

  .teaser .content h2 {
    font-size: 1.4rem;
  }

  .teaser .content p {
    font-size: 1rem;
  }

  .teaser .button {
    font-size: 0.9rem;
    padding: 8px 16px;
  }

  /* Disable hover effects on touch devices */
  .teaser .container:hover .image,
  .teaser .container:hover .content {
    transform: none;
  }

  .teaser .overlay-color {
    opacity: 0.5;
  }
}

@media screen and (max-width: 480px) {
  .wrapper .container {
    height: 200px;
  }

  .teaser__header .section__title {
    font-size: 2rem;
  }

  .teaser .content h2 {
    font-size: 1.2rem;
  }

  .teaser .content p {
    font-size: 0.95rem;
  }

  .teaser .button {
    font-size: 0.8rem;
    padding: 6px 12px;
  }
}


/* Adjust font size for nav links on small screens */
@media screen and (max-width: 768px) {
  .nav__link {
    font-size: 1.2rem; /* Increase font size */
    padding: 0.8rem 1rem; /* Add some padding for better touch area */
  }
}



/*=============== NEWSLETTER ===============*/
.newsletter__container {
  position: relative;
}

.newsletter__content {
  position: relative;
  background-color: hsl(19, 24%, 15%);
  border-radius: 2.5rem;
  padding: 5rem 1rem 3rem;
  text-align: center;
  overflow: hidden;
  margin-bottom: 2rem;
}

.newsletter__img {
  width: 250px;
  position: absolute;
  top: -4.5rem;
  left: -8rem;
}

.newsletter__data .section__title {
  color: #fff;
  margin-bottom: 2rem;
}

.newsletter__form {
  background-color: #fff;
  padding: 5px 5px 5px 16px;
  border-radius: 4rem;
  display: flex;
  column-gap: 0.5rem;
}

.newsletter__input,
.newsletter__button {
  font-family: var(--body-font);
  border: none;
  outline: none;
}

.newsletter__input {
  width: 90%;
  color: var(--text-color);
}

.newsletter__button {
  cursor: pointer;
}

.newsletter__spinach {
  width: 30px;
  position: absolute;
  right: 2rem;
  bottom: -2rem;
  transform: rotate(45deg);
}

.newsletter__container,
.newsletter__form,
.newsletter__input {
  transition: background 0.4s; /* For dark mode animation */
}

/*=============== FOOTER ===============*/
.footer {
  position: relative;
  padding-block: 3rem 2rem;
  overflow: hidden;
}

.footer__container {
  row-gap: 3rem;
}

.footer__logo {
  display: inline-flex;
  align-items: center;
  column-gap: 0.5rem;
  color: var(--title-color);
  font-family: var(--title-font);
  font-size: var(--h3-font-size);
  font-weight: var(--font-semi-bold);
  margin-bottom: 1rem;
  transition: color 0.3s;
}

.footer__logo img {
  width: 25px;
}

.footer__logo:hover {
  color: var(--first-color);
}

.footer__description,
.footer__link,
.footer__information {
  font-size: var(--small-font-size);
}

.footer__content,
.footer__link {
  display: grid;
}

.footer__content {
  grid-template-columns: repeat(2, max-content);
  gap: 2.5rem;
}

.footer__title {
  font-size: var(--h3-font-size);
  margin-bottom: 1.5rem;
}

.footer__links {
  display: grid;
  row-gap: 0.5rem;
}

.footer__link {
  color: var(--text-color);
  transition: color 0.3s;
}

.footer__link:hover {
  color: var(--first-color);
}

.footer__social {
  display: flex;
  column-gap: 1.25rem;
}

.footer__social-link {
  color: var(--first-color);
  font-size: 1.25rem;
  transition: color 0.3s, transform 0.3s;
}

.footer__social-link:hover {
  color: var(--first-color-alt);
  transform: translateY(-2px);
}

.footer_papageno {
  width: 30px;
  position: absolute;
  top: 7.5rem;
  right: 5rem;
  transform: rotate(-45deg);
}

.footer__leaf {
  width: 100px;
  opacity: 0.2;
  position: absolute;
  bottom: 6rem;
  right: -2rem;
  transform: rotate(-15deg);
}

.footer__info,
.footer__card {
  display: flex;
}

.footer__info {
  margin-top: 6.5rem;
  flex-direction: column;
  row-gap: 1.5rem;
  align-items: center;
  text-align: center;
}

.footer__card {
  column-gap: 1rem;
  justify-content: center;
}

.footer__card img {
  width: 35px;
}

.footer__copy {
  text-align: center;
  font-size: var(--smaller-font-size);
  color: var(--text-color-light);
}

/*=============== BREAKPOINTS ===============*/
@media screen and (max-width: 576px) {
  .footer__content {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    text-align: center;
  }

  .footer__info {
    flex-direction: column;
    align-items: center;
    margin-top: 3rem;
    text-align: center;
  }

  .footer_papageno, .footer__leaf {
    display: none;
  }
}

@media screen and (min-width: 767px) {
  .footer__content {
    grid-template-columns: repeat(4, max-content);
  }
}

@media screen and (min-width: 1024px) {
  .footer {
    padding-block: 8rem 3rem;
  }

  .footer__container {
    position: relative;
    grid-template-columns: repeat(2, max-content);
    justify-content: space-between;
  }

  .footer__content {
    column-gap: 4rem;
  }

  .footer__info {
    flex-direction: row;
    justify-content: space-between;
    margin-top: 8.5rem;
  }
}


/*=============== SCROLL BAR ===============*/
::-webkit-scrollbar {
  width: 0.6rem;
  border-radius: 0.5rem;
  background-color: hsl(19, 8%, 75%);
}

::-webkit-scrollbar-thumb {
  border-radius: 0.5rem;
  background-color: hsl(19, 8%, 65%);
}

::-webkit-scrollbar-thumb:hover {
  background-color: hsl(19, 8%, 55%);
}

/*=============== SCROLL UP ===============*/
.scrollup {
  position: fixed;
  right: 1rem;
  bottom: -50%;
  background-color: var(--container-color);
  box-shadow: 0 4px 12px hsla(19, 64%, 24%, 0.1);
  display: inline-flex;
  padding: 0.35rem;
  border-radius: 0.25rem;
  font-size: 1.1rem;
  color: var(--first-color);
  z-index: var(--z-tooltip);
  transition: bottom 0.3s, transform 0.3s, background 0.4s;
}

.scrollup:hover {
  transform: translateY(-0.25rem);
}

/* Show Scroll Up*/
.show-scroll {
  bottom: 3rem;
}

/*=============== BREAKPOINTS ===============*/
/* For small devices */
@media screen and (max-width: 340px) {
  .container {
    margin-inline: 1rem;
  }

  .section {
    padding-block: 4rem 1rem;
  }

  .about__leaf {
    bottom: 8rem;
  }

  .newsletter__container {
    padding: 6rem 1rem 2rem;
  }

  .newsletter__form {
    flex-direction: column;
    background: none;
    row-gap: 1rem;
  }

  .newsletter__input {
    width: initial;
    padding: 1rem;
    border-radius: 4rem;
  }

  .newsletter__button {
    justify-content: center;
  }

  .footer__content {
    gap: 1.5rem;
  }
}

/* For medium devices */
@media screen and (min-width: 576px) {
  .about__container,
  .newsletter__container {
    grid-template-columns: 0.7fr;
    justify-content: center;
  }

  .footer__content {
    grid-template-columns: repeat(3, max-content);
  }
}

@media screen and (min-width: 767px) {
  .nav {
    column-gap: 3rem;
  }

  .nav__toggle,
  .nav__close,
  .nav__img-1,
  .nav__img-2 {
    display: none;
  }

  .nav__list {
    flex-direction: row;
    column-gap: 3rem;
  }

  .nav__menu {
    margin-left: auto;
  }

  .dark-theme .nav__menu {
    box-shadow: none;
  }

  .footer__content {
    grid-template-columns: repeat(4, max-content);
  }
}

/* For large devices */
@media screen and (min-width: 1024px) {
  .section {
    padding-block: 7rem 1.5rem;
  }

  .section__subtitle {
    margin-bottom: 0.75rem;
  }

  .nav {
    height: calc(var(--header-height) + 1.5rem);
  }

  .about__container {
    grid-template-columns: 450px 360px;
    align-items: center;
    column-gap: 7rem;
    max-width: 1000px;
    margin-inline: auto;
  }

  .about__data {
    order: 1;
  }

  .about__data,
  .about .section__subtitle,
  .about .section__title {
    text-align: initial;
  }

  .about__title div {
    column-gap: 1rem;
    justify-content: initial;
  }

  .about__title img {
    width: 50px;
  }


  .newsletter__content {
    grid-template-columns: 350px 360px;
    align-items: center;
    column-gap: 6rem;
    padding: 2.5rem 0;
    border-radius: 4.5rem;
  }

  .newsletter__img {
    position: initial;
    width: 350px;
  }

  .newsletter .section__subtitle,
  .newsletter .section__title {
    text-align: initial;
  }

  .newsletter .section__title {
    margin-bottom: 2.5rem;
  }

  .newsletter__form {
    padding: 8px 8px 8px 24px;
  }

  .newsletter__button {
    font-size: var(--normal-font-size);
  }

  .newsletter__spinach {
    width: 40px;
    right: 5rem;
    bottom: -2.5rem;
  }

  .footer {
    padding-block: 8rem 3rem;
  }

  .footer__container {
    position: relative;
    grid-template-columns: repeat(2, max-content);
    justify-content: space-between;
  }

  .footer__content {
    column-gap: 4rem;
  }

  .footer__title,
  .footer__description,
  .footer__link,
  .footer__information {
    font-size: var(--normal-font-size);
  }

  .footer__social-link {
    font-size: 1.5rem;
  }

  .footer__info {
    flex-direction: row;
    justify-content: space-between;
    margin-top: 8.5rem;
  }

  .footer__copy {
    order: -1;
  }

  .footer_papageno {
    right: 1rem;
  }

  .scrollup {
    right: 3rem;
  }
}

@media screen and (min-width: 1064px) {
  .container {
    margin-inline: auto;
  }
}

@media screen and (min-width: 1280px) {
  .about__leaf {
    width: 200px;
    bottom: 3rem;
  }

  .footer__leaf {
    right: 0;
    left: 0;
    bottom: -15rem;
    margin: 0 auto;
    width: 150px;
  }
}

/* for large devices */
@media screen and (min-width: 1024px) {
  .about__container {
    grid-template-columns: 450px 360px;
    align-items: center;
    column-gap: 7rem;
    max-width: 1000px;
    margin-inline: auto;
  }
}

/* for extra large devices */
@media screen and (min-width: 1280px) {
  .about__leaf {
    width: 200px;
    bottom: 3rem;
  }

  .footer__leaf {
    right: 0;
    left: 0;
    bottom: -15rem;
    margin: 0 auto;
    width: 150px;
  }
}



/*=============== SERVICES SECTION (ADVENTURE MAP) ===============*/
.services {
    padding: 60px 20px;
    background-color: transparent;
    overflow: hidden;
}

.adventure-map-container {
  position: relative;
  max-width: 1000px;
  height: 600px;
  margin: 2rem auto;
  background-image: url('../img/vintagemap.png');
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain; /* Ensures the whole map is visible */
  border-radius: 15px;
  box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.adventure-map {
    position: relative;
    width: 100%;
    height: 100%;
}

.papageno-guide {
    position: absolute;
    width: 80px; /* A good size for our guide */
    z-index: 10;
    transition: top 0.8s ease-in-out, left 0.8s ease-in-out, transform 0.8s ease-in-out;
    transform-origin: bottom center;
}

.papageno-guide:hover {
  animation: bounce 0.5s infinite alternate;
}

@keyframes bounce {
  from {
    transform: translateY(0);
  }
  to {
    transform: translateY(-10px);
  }
}

.island {
    position: absolute;
    cursor: pointer;
    transition: transform 0.3s ease;
    text-align: center;
    width: 150px;
    height: 100px;
    background: linear-gradient(to bottom, #c4a873, #a18a5f);
    border-radius: 50% / 60%;
    box-shadow: 0 5px 10px rgba(0,0,0,0.2);
    border: 5px solid #d2b48c;
}

.island:hover {
    transform: scale(1.1);
}

/* Positioning the islands for Desktop */
#island-1 { top: 30%; left: 15%; }
#island-2 { top: 50%; left: 70%; }
#island-3 { top: 65%; left: 10%; }
#island-4 { top: 25%; left: 45%; }

/* Info Panel - The Unfurling Scroll */
.info-panel-scroll {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scaleY(0);
    transform-origin: top;
    width: 350px;
    max-width: 90%;
    background-color: #f4e9d8; /* Parchment color */
    border: 2px solid #a18a5f;
    border-radius: 10px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.3);
    z-index: 20;
    transition: transform 0.5s cubic-bezier(0.68, -0.55, 0.27, 1.55);
}

.info-panel-scroll.active {
    transform: translate(-50%, -50%) scaleY(1);
}

/* Styling for the new close button */
.info-panel-close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 35px;
    font-weight: bold;
    color: #c5333a; /* A treasure-like red */
    cursor: pointer;
    z-index: 21; /* Keeps it on top */
    transition: transform 0.3s ease;
    line-height: 1;
}

.info-panel-close:hover {
    transform: scale(1.2); /* Makes it slightly bigger on hover */
}

/* Adjust content padding to avoid overlap */
.info-panel-content {
    padding: 2rem;
    padding-top: 45px; /* Added top padding */
    text-align: center;
}

.dark-theme .info-panel-content p {
  color: #000;
}

.info-panel-content h3 {
    font-family: var(--title-font);
    font-size: var(--h2-font-size);
    color: var(--first-color);
}

.info-panel-content p {
    font-size: var(--normal-font-size);
    margin: 1rem 0;
}

.info-panel-content img {
    max-width: 150px;
    margin-top: 1rem;
}

/* Responsive adjustments for Tablets */
@media screen and (max-width: 768px) {
    .adventure-map-container {
        height: 80vw; /* Responsive height */
        max-height: 500px;
    }
    .island {
        width: 90px;
        height: 60px;
        border-width: 3px;
    }
    .papageno-guide { width: 60px; }

    /* Centralized positions for tablets */
    #island-1 { top: 25%; left: 20%; }
    #island-2 { top: 45%; left: 65%; }
    #island-3 { top: 60%; left: 25%; } /* Moved up */
    #island-4 { top: 20%; left: 50%; } /* Moved down */
}

/* Responsive adjustments for Mobile */
@media screen and (max-width: 480px) {
    .island {
        width: 70px;
        height: 48px;
    }
    .papageno-guide { width: 50px; }
    
    /* Tightly centralized positions for mobile */
    #island-1 { top: 30%; left: 20%; }
    #island-2 { top: 55%; left: 60%; }
    #island-3 { top: 55%; left: 25%; } /* Moved further up */
    #island-4 { top: 32%; left: 50%; } /* Moved slightly up */

    .info-panel-scroll {
        width: 300px;
    }
}

/*=============== KINDERGERECHTE OPER ===============*/

.kids-theatre {
  text-align: center;
  padding: 3rem 0;
}

.kids-theatre__container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); /* Default layout for small screens */
  gap: 2rem;
  padding: 2rem;
}

/* Theatre Cards */
.theatre-card {
  position: relative;
  background: white;
  padding: 2rem 2rem 2rem 2rem; /* Add more bottom padding to avoid clipping */
  border-radius: 15px;
  text-align: center;
  overflow: visible; /* Allow content to overflow outside the card */
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
  transition: transform 0.3s ease;
  cursor: pointer;
  min-height: 180px;
  border: 20px solid transparent;
  border-image-slice: 30;
  border-image-repeat: round;
  z-index: 1; /* Ensure card content is below logos */
}
.dark-theme .theatre-card h3,
.dark-theme .theatre-card p {
    color: #000;
}
/* Watercolor Borders */
.theatre-card--1 {
  border-image-source: url('../img/border_fidelio.png');
}

.theatre-card--2 {
  border-image-source: url('../img/border_derFreischütz.png');
}

.theatre-card--3 {
  border-image-source: url('../img/border_aida.png');
}

.theatre-card--4 {
  border-image-source: url('../img/border_DerfliegedeHolländer.png');
}

.theatre-card--5 {
  border-image-source: url('../img/border_HanselundGretel.png');
}

.theatre-card--6 {
  border-image-source: url('../img/border_papageno.png');
}

/* Toggle Button */
.toggle-btn {
  background: none;
  border: none;
  font-size: 1.3rem; /* Slightly reduced font size */
  cursor: pointer;
  margin-top: 10px;
  transition: transform 0.3s ease;
}

/* Content (Initially Hidden) */
.theatre-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease-in-out, opacity 0.3s ease;
  opacity: 0;
}

/* Expanded State */
.theatre-card.active .theatre-content {
  max-height: 150px;
  opacity: 1;
}

.theatre-card.active .toggle-btn {
  transform: rotate(180deg);
}

.lock-icon, .der-hat, .aida, .hollander, .hanselundgretel, .papagenobird {
  position: absolute;
  top: -30px; /* Position above the card */
  left: 50%;
  transform: translateX(-50%); /* Center the logo */
  width: 60px;
  height: auto;
  z-index: 10;
  margin-top: 0; /* Ensure no unwanted space is added */
}


/* Responsiveness for smaller screens */
@media (max-width: 768px) {
  .theatre-card {
    flex-basis: calc(50% - 2rem); /* 2 cards per row */
  }
}

@media (max-width: 480px) {
  .theatre-card {
    flex-basis: 100%; /* 1 card per row */
  }

  /* Adjust image size on smaller screens */
  .lock-icon, .der-hat, .aida, .hollander, .hanselundgretel, .papagenobird {
    width: 65px; /* Smaller size on mobile */
  }
}


/* Larger screens */
@media screen and (min-width: 1200px) {
  .kids-theatre__container {
    grid-template-columns: repeat(3, 1fr); /* Limit to 3 columns for large screens */
    max-width: 1200px; /* Optional, add a max-width to contain the layout */
    margin: 0 auto; /* Center the grid container */
  }

  .theatre-card {
    max-width: 300px; /* Set a max width for cards to avoid them being too large */
  }
}

/*=============== POP-UP STYLES ===============*/

/*=============== POP-UP ===============*/
.popup {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  z-index: 1001; /* Ensure it's above everything */
  justify-content: center;
  align-items: center;
}

.popup-content {
  position: relative; /* Needed for the close button positioning */
  background: #fff;
  padding: 20px;
  border-radius: 10px;
  max-width: 90%;
  width: 500px;
  text-align: center;
}

.popup-close {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 30px;
  font-weight: bold;
  color: #333;
  cursor: pointer;
  z-index: 1002; /* Above the content */
}

.popup-images {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
  gap: 10px;
  margin-top: 20px;
}

.popup-images img {
  width: 100%;
  height: auto;
  border-radius: 5px;
}

@media (max-width: 768px) {
  .popup-content {
    width: 90%;
  }
}


/*=============== CONTACT ===============*/
.contact {
    padding-bottom: 2rem;
}

.contact__container {
    position: relative;
    grid-template-columns: 1fr;
    gap: 3rem;
    background-color: var(--container-color);
    padding: 3rem 2rem 6rem;
    border-radius: 1rem;
    border: 3px solid var(--text-color-light);
    overflow: hidden; /* Important to keep the animation contained */
}

.contact__data {
    text-align: center;
}

.contact__description {
    margin-bottom: 2rem;
}

.contact__info {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

.contact__info-item {
    display: flex;
    justify-content: center;
    align-items: center;
    column-gap: 1rem;
}

.contact__info-item i {
    font-size: 2rem;
    color: var(--first-color);
}

.contact__info-title {
    font-size: var(--h3-font-size);
    margin-bottom: 0.25rem;
}

.contact__info-item a {
    color: var(--text-color);
    font-weight: var(--font-medium);
    transition: color .3s;
}

.contact__info-item a:hover {
    color: var(--first-color);
}

.contact__button i {
    font-size: 1.5rem;
    transition: transform .3s;
}

.contact__button:hover i {
    transform: translateX(.25rem);
}

.contact__parrot {
    width: 130px;
    position: absolute;
    bottom: -2rem;
    left: -3rem;
    transform-origin: center;
    animation: fly-across-and-point 8s ease-in-out infinite;
}

.speech-bubble {
    position: absolute;
    background: white;
    padding: .5rem 1rem;
    border-radius: .75rem;
    border: 2px solid var(--text-color-light);
    font-family: var(--title-font);
    color: var(--first-color);
    white-space: nowrap;
    opacity: 0;
    transform: scale(0);
    transform-origin: bottom left;
    z-index: 10;
    bottom: 8rem;
    left: 100px;
    animation: show-speech-bubble 8s ease-in-out infinite;
}

.speech-bubble::after { /* The little triangle for the bubble */
    content: '';
    position: absolute;
    bottom: -12px;
    left: 2rem;
    width: 0;
    height: 0;
    border: 12px solid transparent;
    border-top-color: var(--text-color-light);
    border-bottom: 0;
}

/* Parrot animation for mobile */
@keyframes fly-across-and-point {
    0% { transform: translateX(-100px) translateY(0) rotate(-15deg); opacity: 0; }
    20% { transform: translateX(120px) translateY(-40px) rotate(15deg); opacity: 1; }
    50% { transform: translateX(110px) translateY(-35px) rotate(30deg); }
    70% { transform: translateX(250px) translateY(-80px) rotate(15deg); opacity: 1; }
    100% { transform: translateX(350px) translateY(-100px) rotate(0deg); opacity: 0; }
}

/* Speech bubble animation */
@keyframes show-speech-bubble {
    0%, 20%, 65%, 100% { opacity: 0; transform: scale(0); }
    25%, 60% { opacity: 1; transform: scale(1); }
}

/* Desktop parrot animation */
@keyframes fly-across-and-point-desktop {
    0% { transform: translateX(-150px) rotate(-15deg); opacity: 0; }
    20% { transform: translateX(50px) translateY(-80px) rotate(15deg); opacity: 1; }
    50% { transform: translateX(40px) translateY(-75px) rotate(30deg); }
    70% { transform: translateX(200px) translateY(-120px) rotate(15deg); opacity: 1; }
    100% { transform: translateX(300px) translateY(-140px) rotate(0deg); opacity: 0; }
}

/* For medium devices and up (desktop view) */
@media screen and (min-width: 767px) {
    .contact__container {
        grid-template-columns: 2fr 1fr;
        align-items: center;
        padding: 4rem;
    }

    .contact__data {
        text-align: left;
    }

    .contact__image {
        display: flex;
        align-items: center;
        justify-content: center;
        position: relative; /* Positioning context for children */
        min-height: 250px; /* Ensure space for animation */
    }

    .contact__info-item {
        justify-content: flex-start;
    }

    .contact__parrot {
        position: absolute;
        width: 200px;
        left: -4rem;
        bottom: 0;
        animation-name: fly-across-and-point-desktop; /* Use desktop animation */
    }

    .speech-bubble {
        bottom: 16rem; /* MOVED UP: Was 12rem */
        left: 5rem;
    }
}

/*==================== THEATER STAGE & CURTAINS ====================*/
#stage {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #000; /* Added a black background for a cleaner fade */
  z-index: 2000;
  overflow: hidden;
  pointer-events: none; /* Allow clicks through once faded */
  transition: opacity 1s ease-in-out; /* Fade out after curtains open */
}

/* This class will be added by JS to trigger the fade-out */
#stage.hidden {
    opacity: 0;
}

.stage__logo {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  z-index: 2001; /* Above the curtains */
  opacity: 0; /* Initially hidden */
  /* Fade in before the curtains start opening */
  transition: opacity 1s ease-in-out;
}

.stage__logo img:first-child {
  width: 80px;
}
.stage__logo img:last-child {
  width: 200px;
}

/* This class will be added by JS to show the logo */
#stage.show-logo .stage__logo {
  opacity: 1;
}

/* Mobile responsive adjustment for stage logo */
@media (max-width: 767px) {
    .stage__logo {
        left: 40%;
    }
}


.curtain {
  position: absolute;
  top: 0;
  width: 50%;
  height: 100%;
  background-image:
    linear-gradient(to left, transparent, rgb(40, 0, 0, 0.5), rgba(197, 30, 30, 0.1), rgb(40, 0, 0, 0.5)),
    linear-gradient(to left, rgb(139, 0, 0), rgb(181, 41, 41), rgb(169, 29, 29));
  background-size: 67px 100%, 53px 100%;
  box-shadow: 0 0 40px rgba(0,0,0,0.6) inset;
  transition: transform 2.5s cubic-bezier(0.65, 0, 0.35, 1); /* Smoother animation */
}

#curtain-left {
  left: 0;
}

#curtain-right {
  right: 0;
}

.balance {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 15vh;
  background-image:
    linear-gradient(to left, transparent, rgb(30,0,0), rgba(121, 20, 20, 0.3), rgb(30,0,0)),
    linear-gradient(to left, rgb(121, 20, 20), rgb(148, 27, 27), rgb(121, 20, 20));
  background-size: 79px 100%, 61px 100%;
  box-shadow: 0 0 20px rgba(0,0,0,0.7) inset;
  transition: transform 2s 0.2s cubic-bezier(0.65, 0, 0.35, 1);
}

/* --- Triggering the Animation --- */
#stage.open #curtain-left {
  /* A simple, clean slide to the left */
  transform: translateX(-100%);
}

#stage.open #curtain-right {
  /* A simple, clean slide to the right */
  transform: translateX(100%);
}

#stage.open .balance {
  transform: translateY(-100%); /* Slide off-screen */
}

/* Remove the main content zoom effect for a more subtle entry */
.main {
  transform: scale(1);
  opacity: 1;
  transition: none;
}

/*=============== 3D TITLE ANIMATION STYLES ===============*/
.home__title .watercolor-title {
  /* This will ensure the 3D perspective works correctly */
  perspective: 1000px;
}

.watercolor-title span {
    display: inline-block;
    cursor: pointer;
    user-select: none;
    
    /* --- Set the 3D effect as the default, initial state --- */
    color: #02269c;
    transform: translateY(-15px) rotateX(30deg) rotateY(-20deg) scale(1.15);
    text-shadow: 1px 1px var(--gold-accent), 
                 2px 2px var(--gold-accent), 
                 3px 3px var(--deep-red), 
                 4px 4px var(--deep-red),
                 5px 5px 15px rgba(0,0,0,0.3);

    /* --- Define the bouncy transition for the new hover effect --- */
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.watercolor-title.animate span {
    /* On hover, "bump" the letter up and scale it a bit more */
    transform: translateY(-22px) rotateX(25deg) rotateY(-20deg) scale(1.25);
}

/* ∧,,,∧   ~   ┏━━━━━━━━┓
(  ̳• · • ̳)   ~ ♡  Produktionen designs all made by lovely girl sofija cvetkovic  ♡
/       づ  ~ ┗━━━━━━━━┛

*/





/*===============
    ∧＿∧
　 (｡･ω･｡)つ━☆・*。
  ⊂/　     /　   ・゜
　  しーＪ　　　     °。+ * 。　
　　　　　                      .・゜
　　　　　                      ゜｡ﾟﾟ･｡･ﾟﾟ。
　　　　                         　ﾟ。　 　｡ﾟ
                                              　ﾟ･｡･ﾟdeveloped by Guram Sikharulidze
===============*/