@import url("variables.css");


.section1 {
  position: relative;
  height: 100vh;
  width: 100%;
}

.section2 {
  position: relative;
  min-height: 100vh;
  width: 100%;
  background: rgb(68,35,19);
}
.hero-text-container {
  text-align: center;
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 10;
  transform: translate(-50%, -50%);
  width: 100%;
  padding: 0 1rem;
}

.hero-subtitle-top {
  font-family: var(--luxury-font);
  font-size: clamp(0.9rem, 2vw, 1.2rem);
  color: var(--white-color);
  text-transform: uppercase;
  letter-spacing: 12px;
  font-weight: 400;
  margin-bottom: 0.5rem;
  opacity: 0;
  text-shadow: 0 5px 15px rgba(var(--shadow-rgb),0.5);
  animation: subtitleFadeIn 1.5s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
  animation-delay: 1.4s;
}

.hero-title-main {
  font-family: var(--luxury-font);
  font-size: clamp(2.5rem, 12vw, 8.5rem); /* Fluid scaling based on viewport width */
  font-weight: 700;
  line-height: 1.1;
  margin: 0;
  letter-spacing: 2px;
  text-transform: uppercase;

  /* Glass text effect. */
  color: rgba(var(--white-rgb), 0.05);
  background: linear-gradient(180deg, 
      var(--first-color-light) 0%, 
      hsla(var(--hue-color), 70%, 80%, 0.3) 45%, 
      transparent 50%, 
      hsla(var(--hue-color), 70%, 80%, 0.3) 55%, 
      var(--first-color-light) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;

  /* Glass rim stroke. */
  -webkit-text-stroke: 1px var(--first-color-light);

  /* Depth and glow. */
  text-shadow: 0 5px 15px rgba(var(--shadow-rgb),0.3);
  filter: drop-shadow(0 0 8px var(--first-color));

  transform: scale(1, 1.1);
  display: inline-block;
}

.hero-title-accent {
  -webkit-text-fill-color: transparent;
  font-style: normal;
  font-weight: 700;
}

.hero-subtitle-bottom {
  font-family: var(--luxury-font);
  font-size: clamp(1rem, 2vw, 1.3rem);
  color: var(--first-color-light);
  margin-top: 1.5rem;
  font-weight: 400;
  letter-spacing: 4px;
  text-shadow: 0 5px 15px rgba(var(--shadow-rgb),0.5);
  opacity: 0;
  font-style: italic;
  animation: subtitleFadeIn 1.5s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
  animation-delay: 1.8s;
}

.section1, .section2 {
  width: 100%;
  height: 100vh; /* Each section fills one full screen */
  position: relative;
}

/* Foreground ballerina layer (hidden). */
.section1::after {
  display: none !important;
}

/* Text layer. */
.section1 .text {
  position: absolute;
  top: 35%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 20;
  opacity: 0;
  animation: textEntrance 1.2s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
  animation-delay: 0.8s;
}


/* Video parallax container. */
.video-parallax-container {
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    background-color: var(--black-pure); /* Fallback color */
    transform: translateZ(0); /* Force composite layer to avoid backdrop-filter bugs */
    pointer-events: none;
}

.video-parallax-container video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
}


@keyframes textEntrance {
  from {
    opacity: 0;
    transform: translate(-50%, -30%);
  }
  to {
    opacity: 1;
    transform: translate(-50%, -50%);
  }
}

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

/* ======= Header link buttons ======= */
.header-links {
    position: absolute;
    bottom: 12%; /* Moved up to prevent overlapping with the scroll arrow */
    left: 50%;
    transform: translateX(-50%); 
    
    display: flex;
    flex-direction: row; /* Buttons nebeneinander */
    gap: 2.5rem; /* Mehr Platz zwischen den Buttons */
    z-index: 100; /* Sicherstellen, dass sie über dem Video liegen */
    width: max-content; /* Verhindert ungewollte Zeilenumbrüche */
    
    opacity: 0;
    animation: luxuryFadeIn 1.2s ease-out forwards 1.8s;
}

.link-box {
    background: rgba(var(--white-rgb), 0.1);
    -webkit-backdrop-filter: blur(15px);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(var(--white-rgb), 0.2);

    /* Adjust button size here. */
    padding: 1.5rem 3rem;
    border-radius: 1.5rem;

    color: white;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 1.2rem;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);

    /* Button typography. */
    font-family: var(--luxury-font);
    text-transform: uppercase;
    letter-spacing: 3px;
    font-size: 1.1rem;
    font-weight: 600;
}

.link-box i {
    font-size: 1.4rem;
    transition: transform 0.4s ease;
}

/* Button hover state. */
.link-box:hover {
    background: var(--first-color);
    border-color: var(--first-color);
    transform: translateY(-8px) scale(1.05);
    box-shadow: 0 15px 30px rgba(var(--accent-rgb), 0.4);
}

.link-box:hover i {
    transform: scale(1.2);
}

@keyframes luxuryFadeIn {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

/* ======= Mobile layout (stacked) ======= */
@media screen and (max-width: 767px) {
    .section1 .text {
        top: 25%;
    }

    .hero-title-main {
        font-size: clamp(2rem, 10vw, 3.5rem);
        letter-spacing: 1px;
    }

    .hero-subtitle-top {
        font-size: 0.8rem;
        letter-spacing: 6px;
    }

    .header-links {
        flex-direction: column;
        gap: 0.8rem;
        width: 85%;
        bottom: 8%;
    }

    .link-box {
        width: 100%;
        padding: 1.2rem;
        font-size: 0.95rem;
        letter-spacing: 2px;
        justify-content: center;
    }

    .hero-quote-inline {
        bottom: 35%;
        width: 95%;
        padding: 1rem;
    }

    .hero-quote-title {
        font-size: 1rem;
    }

    .hero-quote-text {
        font-size: 0.9rem;
        min-height: auto;
    }
}

/* ======= Stop scaling at 1024px ======= */
@media screen and (min-width: 1024px) {

  .section1::after {
    background-size: 800px auto !important;
    transform: scale(0.6) !important;
  }

  .section1 .text {
    transform: translate(-50%, -50%) !important;
  }
}

/* ======= Header quote inline ======= */
.hero-quote-inline {
    position: absolute;
    bottom: 22%;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 800px;
    text-align: center;
    color: white;
    text-decoration: none;
    z-index: 100;
    opacity: 0;
    transition: transform 0.4s cubic-bezier(0.23, 1, 0.32, 1);

    /* Glassy background. */
    background: rgba(var(--shadow-rgb), 0.15);
    border: 1px solid rgba(var(--white-rgb), 0.1);
    border-radius: 1rem;
    padding: 1.2rem 1.5rem;

    animation:
      luxuryFadeIn 1.2s ease-out forwards 1.6s,
      pinkAmbientBlur 4s ease-in-out infinite 2.8s;
}

@keyframes pinkAmbientBlur {
    0%, 100% {
        box-shadow: 0 4px 15px rgba(var(--shadow-rgb), 0.15), 0 0 10px rgba(var(--accent-rgb), 0.1);
        border-color: rgba(var(--white-rgb), 0.1);
    }
    50% {
        box-shadow: 0 4px 15px rgba(var(--shadow-rgb), 0.15), 0 0 35px rgba(var(--accent-rgb), 0.4);
        border-color: rgba(var(--accent-rgb), 0.4);
    }
}

/* Quote hover state. */
.hero-quote-inline:hover {
    background: rgba(var(--shadow-rgb), 0.3);
    transform: translateX(-50%) scale(1.02);
    box-shadow: 0 4px 15px rgba(var(--shadow-rgb), 0.2), 0 0 50px rgba(var(--accent-rgb), 0.6) !important;
    border-color: rgba(var(--accent-rgb), 0.8) !important;
}

.hero-quote-title {
    font-size: clamp(1rem, 2.5vw, 1.4rem);
    color: var(--first-color-light);
    margin-bottom: 0.5rem;
    font-family: var(--luxury-font);
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 0 2px 5px rgba(var(--shadow-rgb),0.4);
}

.hero-quote-text {
    font-size: clamp(0.9rem, 1.8vw, 1.1rem);
    line-height: 1.6;
    font-style: italic;
    color: rgba(var(--white-rgb), 0.9) !important;
    text-shadow: 0 2px 5px rgba(var(--shadow-rgb),0.5);
    margin: 0;
    min-height: 3.2rem; /* Reserves space during typing */
}

/* Typing cursor animation */
.typewriter-cursor {
    display: inline-block;
    width: 2px;
    height: 1.1em;
    background-color: var(--first-color-light);
    vertical-align: middle;
    margin-left: 2px;
    animation: blink 0.8s step-end infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

/* Styling for dynamically injected Read More text */
.read-more-link {
    display: inline-block;
    color: var(--first-color-light);
    font-size: 0.95rem;
    font-weight: 600;
    font-style: normal;
    font-family: var(--luxury-font);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-left: 10px;
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.5s ease;
    white-space: nowrap;
}

.read-more-link.visible {
    opacity: 1;
    transform: translateX(0);
}

.read-more-link i {
    vertical-align: middle;
    margin-left: 2px;
    font-size: 1.1rem;
    transition: transform 0.3s ease;
}

.hero-quote-inline:hover .read-more-link i {
    transform: translateX(4px);
}

/* ======= Scroll-down arrow ======= */
.hero-scroll-down {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(var(--white-rgb), 0.7);
    font-size: 2.5rem;
    z-index: 100;
    text-decoration: none;
    opacity: 0;
    animation: luxuryFadeIn 1.2s ease-out forwards 2s, scrollArrowBounce 2s ease-in-out infinite 3.2s;
    transition: color 0.3s ease;
}

.hero-scroll-down:hover {
    color: var(--first-color-light);
}

@keyframes scrollArrowBounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0) translateX(-50%);
    }
    40% {
        transform: translateY(-10px) translateX(-50%);
    }
    60% {
        transform: translateY(-5px) translateX(-50%);
    }
}