/* Enhanced Hero Section with reduced height and centered text */
.hero-section {
  position: relative;
  background-color: var(--primary-color);
  color: var(--secondary-color);
  height: 21vh; /* Reduced to 30% of the original 70vh */
  overflow: hidden;
}

.hero {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center; /* Center horizontally */
  z-index: 1;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url("../images/hero-bg.jpg");
  background-size: cover;
  background-position: center;
  opacity: 0.5;
  transition: opacity 1s ease;
}

.hero-content {
  position: relative;
  z-index: 20;
  max-width: 42rem;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 1.2s ease-in-out, transform 1.2s ease-in-out;
  padding: 0 1.5rem;
  text-align: center; /* Center text */
}

.hero-content.content-visible {
  opacity: 1;
  transform: translateY(0);
}

.hero-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  line-height: 1.2;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-description {
  font-size: 1.1rem;
  margin-bottom: 0; /* Remove bottom margin since buttons are no longer here */
  line-height: 1.6;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

/* Door Container - Adjusted to overlap hero section */
.door-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10;
}

/* Door positioning - adjusted to show only 10% on each side when open */
.door-left,
.door-right {
  position: absolute;
  top: 0;
  height: 100%;
  width: 40%; /* Each door covers 40% of the width */
  z-index: 15;
  transition: transform 1.5s ease-in-out;
}

.door-left {
  left: 0;
  transform-origin: left;
  transform: translateX(0);
}

.door-right {
  right: 0;
  transform-origin: right;
  transform: translateX(0);
}

/* When doors are open, they only show 10% on each side */
.door-left.door-open {
  transform: translateX(-75%); /* Show only 10% of the door (40% * 0.25 = 10%) */
}

.door-right.door-open {
  transform: translateX(75%); /* Show only 10% of the door (40% * 0.25 = 10%) */
}

@media (min-width: 640px) {
  .hero-title {
    font-size: 2.75rem;
  }
}

@media (min-width: 1024px) {
  .hero-title {
    font-size: 3rem;
  }

  .hero-description {
    font-size: 1.25rem;
  }
}
