/* Banner Styles */
.banner {
  position: relative;
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(
    135deg,
    var(--primary-color) 0%,
    var(--secondary-color) 100%
  );
  overflow: hidden;
}

.banner::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url("../img/hero.webp") center/cover no-repeat;
  opacity: 0.3;
  z-index: 1;
}

.banner::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  /* background: linear-gradient(
    45deg,
    rgba(255, 107, 157, 0.5) 0%,
    rgba(255, 179, 217, 0.5) 100%
  ); */
  z-index: 2;
}

.banner-content {
  position: relative;
  z-index: 3;
  text-align: center;
  color: var(--white);
  max-width: 800px;
  padding: 0 var(--container-padding);
  animation: fadeInUp 1s ease-out;
}

.banner-title {
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: #ffd700; /* Золотистий колір для заголовка */
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
  line-height: 1.1;
}

.banner-subtitle {
  font-size: 1.5rem;
  font-weight: 400;
  margin-bottom: 1.5rem;
  color: var(--accent-color);
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.banner-description {
  font-size: 1.125rem;
  line-height: 1.6;
  margin-bottom: 2rem;
  color: rgba(255, 255, 255, 0.9);
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

/* Floating Elements Animation */
.banner-floating {
  position: absolute;
  z-index: 2;
  opacity: 0.1;
  animation: float 6s ease-in-out infinite;
}

.banner-floating:nth-child(1) {
  top: 20%;
  left: 10%;
  animation-delay: 0s;
  animation-duration: 8s;
}

.banner-floating:nth-child(2) {
  top: 60%;
  right: 15%;
  animation-delay: 2s;
  animation-duration: 10s;
}

.banner-floating:nth-child(3) {
  bottom: 30%;
  left: 20%;
  animation-delay: 4s;
  animation-duration: 12s;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0px) rotate(0deg);
  }
  33% {
    transform: translateY(-20px) rotate(120deg);
  }
  66% {
    transform: translateY(10px) rotate(240deg);
  }
}

/* Scroll Indicator */
.banner-scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  color: var(--white);
  text-align: center;
  animation: bounce 2s infinite;
}

.banner-scroll-indicator .scroll-text {
  font-size: 0.875rem;
  margin-bottom: 0.5rem;
  opacity: 0.8;
}

.banner-scroll-indicator .scroll-arrow {
  width: 20px;
  height: 20px;
  border: 2px solid var(--white);
  border-top: none;
  border-left: none;
  transform: rotate(45deg);
  margin: 0 auto;
  animation: scrollDown 2s infinite;
}

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

@keyframes scrollDown {
  0% {
    opacity: 1;
    transform: rotate(45deg) translateY(0);
  }
  50% {
    opacity: 0.5;
    transform: rotate(45deg) translateY(10px);
  }
  100% {
    opacity: 1;
    transform: rotate(45deg) translateY(0);
  }
}

/* Responsive Design */
@media (max-width: 768px) {
  .banner {
    min-height: 80vh;
  }

  .banner-content {
    padding: 0 1rem;
  }

  .banner-title {
    font-size: 2.5rem;
  }

  .banner-subtitle {
    font-size: 1.25rem;
  }

  .banner-description {
    font-size: 1rem;
  }

  .banner-cta {
    padding: 0.875rem 1.75rem;
    font-size: 1rem;
  }

  .banner-floating {
    display: none;
  }
}

@media (max-width: 360px) {
  .banner {
    min-height: 70vh;
  }

  .banner-content {
    padding: 0 1rem;
  }

  .banner-title {
    font-size: 2rem;
  }

  .banner-subtitle {
    font-size: 1.125rem;
  }

  .banner-description {
    font-size: 0.875rem;
    margin-bottom: 1.5rem;
  }

  .banner-cta {
    padding: 0.75rem 1.5rem;
    font-size: 0.875rem;
  }

  .banner-scroll-indicator {
    bottom: 1rem;
  }

  .banner-scroll-indicator .scroll-text {
    font-size: 0.75rem;
  }

  .banner-scroll-indicator .scroll-arrow {
    width: 16px;
    height: 16px;
  }
}

/* Banner Theme Variations */
.banner.theme-castle {
  background: linear-gradient(135deg, #2c1810 0%, #5d4037 100%);
}

.banner.theme-forest {
  background: linear-gradient(135deg, #1b5e20 0%, #388e3c 100%);
}

.banner.theme-magic {
  background: linear-gradient(135deg, #4a148c 0%, #7b1fa2 100%);
}

/* Banner Loading State */
.banner.loading {
  opacity: 0.7;
}

.banner.loading .banner-content {
  animation: none;
}

/* Banner Focus States */
.banner-cta:focus {
  outline: 3px solid var(--white);
  outline-offset: 3px;
}

/* Banner Parallax Effect */
.banner.parallax-enabled::before {
  transform: translateZ(0);
  will-change: transform;
}

/* Banner Video Background Support */
.banner.has-video-background::before {
  display: none;
}

.banner-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
  opacity: 0.3;
}

/* Banner Interactive Elements */
.banner-interactive {
  position: absolute;
  z-index: 3;
  cursor: pointer;
  transition: var(--transition-fast);
}

.banner-interactive:hover {
  transform: scale(1.1);
}

/* Banner Accessibility */
@media (prefers-reduced-motion: reduce) {
  .banner-floating {
    animation: none;
  }

  .banner-scroll-indicator {
    animation: none;
  }

  .banner-scroll-indicator .scroll-arrow {
    animation: none;
  }
}
