/* Basic styling for the section */
.hero-section {
  text-align: center;
  padding: 50px 20px;
  background-color: #000000; /* Light background for contrast */
  font-family: Arial, sans-serif;
}

.hero-section h2 {
  margin-bottom: 30px;
  color: #ffffff;
  font-size: 2.5em;
}

/* Button container */
.buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

/* Base button styles */
.btn {
  position: relative;
  padding: 15px 30px;
  font-size: 1.2em;
  font-weight: bold;
  text-transform: uppercase;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  overflow: hidden;
  transition: all 0.3s ease;
  color: #fff;
  background-color: #007bff; /* Blue background */
}

/* Water filling animation using ::before pseudo-element */
.btn::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 0;
  background-color: #0056b3; /* Darker blue for "water" */
  transition: height 0.5s ease;
  z-index: -1;
}

/* Hover effect: Fill with water */
.btn:hover::before {
  height: 100%;
}

/* Specific styles for each button */
.register-btn {
  background-color: #28a745; /* Green for Register */
}

.register-btn::before {
  background-color: #1e7e34; /* Darker green for water */
}

.trailer-btn {
  background-color: #dc3545; /* Red for Trailer */
}

.trailer-btn::before {
  background-color: #bd2130; /* Darker red for water */
}

