.hero-section {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  padding: 2rem 2rem 0rem 1rem;
  gap: 2rem;
  padding-top: 6.5rem;
}

.hero-section:nth-of-type(n+2) {
  padding-top: 2.5rem;
}

.hero-content {
  flex: 1 1 300px;
  margin: auto;
  margin-left: 5vw;
}

.hero-title {
  font-size: 2em;
  margin-bottom: 2rem;
  font-weight: 100;
}

.hero-image {
  flex: 1 1 300px;
  text-align: center;
}

.hero-image img {
  max-width: 50%;
  height: auto;
  filter: grayscale(100%);
}

.cta-button {
  display: inline-block;
  padding: 15px 30px;
  font-size: 16px;
  background-color: var(--button-color);
  border: none;
  border-radius: 6px;
  color: var(--text-color);
  cursor: pointer;
  text-decoration: none;
  transition: background-color 0.3s ease;
}

.cta-button:hover {
  background-color: #e56a00;
}

.half-page-hr {
  width: 50%;
  height: 8px;
  background-color: var(--button-color);
  border: none;
  border-radius: 8px;
}

.hr-right {
  margin-left: auto;
}

.hr-left {
  margin-right: auto;
}

.grid-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 35px;
  width: 85%;
  margin: auto;
  margin-top: 60px;
  margin-bottom: 60px;
}
.icon-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.icon-box img {
  width: 150px;
  height: 100px;
  margin-bottom: 10px;
}
.label {
  font-size: 16px;
}

.contact{
    padding: 20px;
    padding-top: 60px;
    display: flex;
    justify-content: center;
    align-items: center;
}
.form-wrapper{
    width: 90%;
    max-width: 600px;
    border-radius: 12px;
}

.title{
    font-size: 28px;
    text-align: center;
    color: #fff;
    margin-bottom: 10px;
}
.subtitle{
    text-align: center;
    color: #fff;
    font-size: 16px;
    margin-bottom: 30px;
}
.contact-form{
    width: 100%;
}

.form-row{
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 20px;
}
.form-column{
    flex: 1;
    min-width: 250px;
}
.form-label{
    display: block;
    color: #fff;
    font-size: 14px;
    margin-bottom: 5px;
}
.form-input,
.form-textarea{
    width: 100%;
    padding: 12px;
    border-radius: 8px;
    border: 1px solid #ddd;
    transition: border-color 0.3s, transform 0.3s;
}
.form-input:focus,
.form-textarea:focus{
    border-color: #6f6df4;
    outline: none;
    transform: scale(1.02);
}
.form-textarea{
    resize: none;
}
.submit-button{
    display: block;
    width: 40%;
    padding: 12px;
    background: var(--text-color);
    color: var(--bg-color);
    border: none;
    border-radius: 8px;
    font-size: 16px;
    margin: 0 auto;
    cursor: pointer;
    transition: background 0.3s, transform 0.3s;
}
.submit-button:hover{
    transform: scale(1.05);
}

.fade-out-up {
    animation: fadeOutUp 1s forwards;
}


/* Responsive Adjustments */
@media (max-width: 768px) {
  .hero-section {
    flex-direction: column;
  }

  .hero-image img {
    max-width: 100%;
  }

  .hero-content:nth-child(1) {
      flex: 1 1 100px;
  }

  #application, #application p {
        flex: 1 1 60px;
    }

  .grid-container {
        width: 85%;
    }

  .icon-box img {
      width: 50px;
      height: 50px;
      margin-bottom: 10px;
    }

    #page_3_img {
    max-width: 50% !important;
}
}

@media (min-height: 721px) and (orientation: landscape) {
  .hero-section:not(#application) {
    height: 80vh;
  }

  #application {
    padding-top: 10vh;
  }

  .hero-image img {
    max-width: 60%;
  }
}