/* Custom Hero Section - Theme Colors */
.custom-hero {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  width: 100%;
  min-height: 600px; /* Default minimum height */
}

/* Background */
.custom-hero__background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  min-height: inherit; /* Inherit min-height from parent */
  z-index: 1;
}

.custom-hero__video,
.custom-hero__image {
  width: 100%;
  height: 100%;
  min-height: inherit; /* Ensure video/image covers full height */
  object-fit: cover;
  object-position: center;
}

/* Dark overlay for better text contrast */
.custom-hero__overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  min-height: inherit; /* Ensure overlay covers full height */
  background: rgba(0, 0, 0, 0.3);
  z-index: 2;
}

/* Content Container */
.custom-hero__content {
  position: relative;
  z-index: 1;
  text-align: center;
  width: 100%;
  max-width: 800px;
  padding: 0 2rem;
}

/* Messages Container */
.custom-hero__messages {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 250px; /* Desktop minimum height for consistent spacing */
}

/* Individual Message */
.custom-hero__message {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  opacity: 0;
  transition: opacity 0.8s ease-in-out;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
}

.custom-hero__message.no-button {
  gap: 1rem;
}

.custom-hero__message.active {
  opacity: 1;
}

/* Text Lines */
.custom-hero__text-line {
  color: rgb(var(--color-foreground));
  font-size: 2.5rem;
  font-weight: 300;
  line-height: 1.2;
  margin: 0.5rem 0;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
  letter-spacing: 0.5px;
}

/* Button Styling */
.custom-hero__button {
  display: inline-block;
  padding: 1rem 2rem;
  background: transparent;
  color: rgb(var(--color-foreground));
  text-decoration: none;
  border: 1px solid rgb(var(--color-foreground));
  border-radius: var(--buttons-radius);
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.06rem;
  text-transform: uppercase;
  transition: all 0.15s ease-in-out;
  margin-top: 1.5rem;
  min-width: 12rem;
  text-align: center;
}

.custom-hero__button:hover {
  background: rgb(var(--color-foreground));
  color: rgb(var(--color-background));
  transform: none;
  box-shadow: none;
}

.custom-hero__button:active {
  transform: translateY(0);
}

/* Carousel Dots */
.custom-hero__dots {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 4rem;
}

.custom-hero__dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  border: 1px solid rgba(var(--color-foreground), 0.5);
  background: transparent;
  cursor: pointer;
  transition: all 0.3s ease;
  padding: 0;
  position: relative;
  z-index: 1;
  outline: none;
}

.custom-hero__dot:hover {
  border-color: rgba(var(--color-foreground), 0.8);
  transform: scale(1.2);
  background: rgba(var(--color-foreground), 0.2);
}

.custom-hero__dot.active {
  background: rgb(var(--color-foreground));
  border-color: rgb(var(--color-foreground));
  transform: scale(1.1);
}

.custom-hero__dot:active {
  transform: scale(0.9);
}

/* Mobile Responsive */
@media screen and (min-width: 769px) {
  .custom-hero__messages {
    min-height: 300px; /* Larger height on desktop for better button spacing */
  }
  
  .custom-hero__message {
    gap: 2.5rem; /* Slightly more gap on desktop */
  }
  
  .custom-hero__message.no-button {
    gap: 1.5rem; /* Adjusted for desktop proportions */
  }
  
  .custom-hero__dot {
    width: 6px;
    height: 6px;
  }
}

@media screen and (max-width: 768px) {
  .custom-hero__content {
    padding: 0 1.5rem;
  }
  
  .custom-hero__text-line {
    font-size: 2rem;
  }
  
  .custom-hero__button {
    padding: 0.8rem 1.5rem;
    font-size: 0.9rem;
    min-width: 10rem;
  }
  
  .custom-hero__messages {
    min-height: 180px;
  }
  
  .custom-hero__dots {
    margin-top: 3rem;
    gap: 0.8rem;
  }
}

@media screen and (max-width: 480px) {
  .custom-hero__content {
    padding: 0 1rem;
  }
  
  .custom-hero__text-line {
    font-size: 1.6rem;
  }
  
  .custom-hero__button {
    padding: 0.7rem 1.2rem;
    font-size: 0.85rem;
    min-width: 9rem;
  }
  
  .custom-hero__messages {
    min-height: 160px;
  }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
  .custom-hero__message {
    transition: none;
  }
  
  .custom-hero__dot {
    transition: none;
  }
  
  .custom-hero__button {
    transition: none;
  }
}
