@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600;700&family=Raleway:wght@400;700&display=swap');

.hero {
  position: relative;
  height: 100vh;
  width: 100%;
  background-image: url('../../img/gallery/hero-bg.png');
  background-size: cover;
  background-attachment: fixed;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  animation: fadeInHero 1.2s ease-out;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(248, 220, 90, 0.76),
    rgba(245, 210, 80, 0.637),
    rgba(255, 255, 255, 0.1)
  );
  z-index: 1;
}

.hero__content {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 90%;
  max-width: 1300px;
  flex-wrap: wrap;
  animation: slideUp 1.2s ease-out;
}

.hero__text {
  max-width: 600px;
  color: #ffffff;
  font-family: 'Raleway', sans-serif;
  order: 1;
}

.hero__text h1 {
  font-family: 'Poppins', sans-serif;
  font-size: 3.2rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
  animation: fadeIn 1.5s ease-in;
}

.hero__highlight {
  background: linear-gradient(
    90deg,
    rgb(242, 200, 70),
    rgb(238, 190, 50),
    rgb(255, 245, 200)
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero__text p {
  font-size: 1.15rem;
  margin-bottom: 2rem;
  line-height: 1.6;
  color: #ffffff;
  font-weight: 300;
  animation: fadeIn 1.8s ease-in;
}

.hero__buttons {
  display: flex;
  gap: 1rem;
  margin-bottom: 2rem;
  animation: fadeIn 2s ease-in;
}

.hero__btn {
  padding: 0.9rem 1.8rem;
  border-radius: 40px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  font-family: 'Poppins', sans-serif;
  letter-spacing: 0.5px;
}

/* PRIMARY BUTTON */
.hero__btn--primary {
  background: linear-gradient(
    90deg,
    rgb(242, 200, 70),
    rgb(238, 185, 50)
  );
  color: #000;
}

.hero__btn--outline {
  border: 2px solid rgb(242, 200, 70);
  color: rgb(140, 100, 30);
  background: transparent;
}

.hero__btn--primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 15px rgba(242, 200, 70, 0.5);
}

.hero__btn--outline:hover {
  background: rgba(242, 200, 70, 0.35);
  color: #000;
  transform: translateY(-3px);
  box-shadow: 0 4px 15px rgba(242, 200, 70, 0.4);
}

.hero__socials {
  display: flex;
  gap: 1rem;
  animation: fadeIn 2.2s ease-in;
}

.hero__socials a {
  width: 45px;
  height: 45px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  font-size: 1.2rem;
  transition: all 0.3s ease;
  text-decoration: none;
  line-height: 0;
}

.hero__socials a:hover {
  background: linear-gradient(
    90deg,
    rgb(242, 200, 70),
    rgb(238, 185, 50)
  );
  transform: scale(1.1);
}

/* ----------- GYROSKOP SECTION ----------- */

.hero__image {
  position: relative;
  width: 40%;
  display: flex;
  justify-content: center;
  align-items: center;
  order: 2;
  perspective: 1400px;
  animation: fadeIn 2s ease-in;
}

.gyro-container {
  position: relative;
  width: 100%;
  max-width: 500px;
  height: 450px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 
    0 8px 32px rgba(242, 200, 70, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.2),
    inset 0 -1px 0 rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: visible;
}

.gyro-container::before {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: 20px;
  background: linear-gradient(
    135deg,
    rgba(242, 200, 70, 0.25),
    rgba(238, 185, 50, 0.22),
    transparent
  );
  z-index: -1;
  opacity: 0.6;
  filter: blur(4px);
}

.gyro {
  width: 320px;
  height: 320px;
  position: relative;
  transform-style: preserve-3d;
  transform: rotateX(-10deg) rotateY(15deg);
  margin: auto;
}

.ring {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  display: grid;
  place-items: center;
  transform-style: preserve-3d;
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
}

/* OUTER RING */
.ring.outer {
  width: 100%;
  height: 100%;
  background-image: url('https://kreativstudioweide.de/assets/img/gallery/hero-gyro.png');
  animation: outerSpin 10s linear infinite;
  filter: drop-shadow(0 0 15px rgba(242, 200, 70, 0.55));
  opacity: 0.9;
}

/* INNER RING */
.ring.inner {
  width: 50%;
  height: 50%;
  background-image: url('https://kreativstudioweide.de/assets/img/gallery/hero-gyro.png');
  transform: translate(-50%, -50%) rotateZ(-20deg) rotateX(15deg);
  animation: innerSpin 3s linear infinite;
  filter: drop-shadow(0 0 12px rgba(245, 215, 100, 0.6));
  opacity: 0.8;
}

.gyro-container::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 20px;
  background: radial-gradient(
    circle at 30% 30%,
    rgba(250, 235, 180, 0.25),
    transparent 50%
  );
  pointer-events: none;
}

/* ----------- ANIMATIONEN ----------- */

@keyframes outerSpin {
  from { transform: translate(-50%, -50%) rotateY(0deg); }
  to { transform: translate(-50%, -50%) rotateY(360deg); }
}

@keyframes innerSpin {
  from { transform: translate(-50%, -50%) rotateZ(-20deg) rotateX(15deg) rotateY(0deg); }
  to { transform: translate(-50%, -50%) rotateZ(-20deg) rotateX(15deg) rotateY(360deg); }
}

/* ----------- Responsive Design ----------- */

@media (max-width: 992px) {
  .hero__content {
    flex-direction: column;
    text-align: center;
    align-items: center;
  }

  .hero__text {
    order: 1;
  }

  .hero__image {
    order: 2;
    width: 70%;
    margin-top: 2.5rem;
  }

  .gyro-container {
    max-width: 420px;
    height: 380px;
  }

  .gyro {
    width: 280px;
    height: 280px;
  }

  .hero__text h1 {
    font-size: 2.5rem;
  }

  .hero__text p {
    font-size: 1rem;
  }

  .hero__buttons {
    justify-content: center;
  }

  .hero__socials {
    justify-content: center;
  }
}

@media (max-width: 600px) {
  .hero {
    position: relative;
    height: auto;
    padding: 8rem 0 4rem 0;
    overflow: hidden;
    background: none !important;
  }

  .hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
      linear-gradient(
        to bottom,
        rgba(242, 200, 70, 0.85),
        rgba(238, 185, 50, 0.7),
        rgba(255, 255, 255, 0.1)
      ),
      url('https://kreativstudioweide.de/assets/img/gallery/hero-phone.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: -1;
  }

  .hero__text h1 {
    font-size: 2rem;
  }

  .hero__buttons {
    flex-direction: column;
    gap: 0.8rem;
  }

  .hero__image {
    width: 100%;
    margin-top: 3rem;
  }

  .gyro-container {
    max-width: 340px;
    height: 320px;
  }

  .gyro {
    width: 240px;
    height: 240px;
  }
}

/* ----------- Basis-Animationen ----------- */

@keyframes fadeInHero {
  from { opacity: 0; transform: scale(1.02); }
  to { opacity: 1; transform: scale(1); }
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes slideUp {
  from { transform: translateY(40px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}