/* Hero section styling carried over from the legacy design */
.hero {
  min-height: 0;
  display: block;
  align-items: normal;
  justify-content: normal;
  text-align: center;
  padding: 30px 0 96px;
  position: static;
  background: transparent;
  background-color: transparent;
  background-image: none;
}

/* Container - EXACT MATCH */
.hero .container {
  width: auto;
  max-width: none;
  margin: 0 49.6016px;
  display: block;
  flex-direction: row;
  justify-content: normal;
  align-items: normal;
  min-height: 0;
}

.hero h1 {
  font-size: var(--font-size-h1);
  margin-bottom: 32px;
  line-height: var(--line-height-heading);
  font-weight: 300;
  letter-spacing: -0.5px;
  color: var(--text);
}

.name-wrapper {
  display: inline;
}

.hero > .container > p {
  font-size: var(--font-size-base);
  max-width: 500px;
  margin: 0 auto 72px auto;
  color: var(--text-secondary);
  letter-spacing: 2px;
  text-transform: uppercase;
  font-weight: 300;
}

/* Accent text style - EXACT MATCH */
.accent-text {
  color: rgb(142, 173, 207);
  display: inline-block;
  position: relative;
}

.accent-text::after {
  content: '';
  position: absolute;
  width: 100%;
  height: 1px;
  bottom: -3px;
  left: 0;
  background-color: #8EADCF;
  opacity: 0.3;
}

/* Hero content - EXACT MATCH */
.hero-content {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0 auto 80px auto;
  max-width: 1000px;
  gap: 48px;
}

.profile-image {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  border: 1px solid rgba(142, 173, 207, 0.3);
  padding: 5px;
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
}

.profile-image img {
  width: 168px;
  height: 168px;
  object-fit: cover;
  border-radius: 50%;
  display: block;
}

.hero-text {
  text-align: left;
  max-width: 600px;
  display: flex;
  align-items: center;
  padding-top: 0;
}

.quote-text {
  font-style: italic;
  font-size: var(--font-size-base);
  line-height: var(--line-height-base);
  color: var(--text);
  letter-spacing: 0.5px;
}

/* Hero buttons - EXACT MATCH */
.hero-cta {
  text-align: center;
  margin-top: 3rem;
}

.hero-buttons {
  display: block;
  justify-content: normal;
  align-items: normal;
  gap: normal;
  text-align: center;
  margin: 48px 0;
}

.hero .btn {
  background-color: var(--accent);
  color: var(--dark-bg);
  border: 0 none;
  padding: 12px 32px;
  font-size: var(--font-size-small);
  font-weight: 400;
  border-radius: 0;
  text-decoration: none;
  transition: var(--transition);
  display: inline-block;
}

.hero .btn:hover {
  background-color: #7798bc;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(142, 173, 207, 0.3);
}

/* Touch button specific style */
.hero .btn-outline {
  background-color: transparent;
  color: #8EADCF;
  border: 2px solid #8EADCF;
}

.hero .btn-outline:hover {
  background-color: #8EADCF;
  color: #0F1620;
}

/* Reduce padding on smaller screens */
@media (max-width: 767.98px) {
  .hero {
    min-height: 100vh;
    padding: 2rem 0;
  }

  .hero-buttons {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 2rem 0;
  }

  .hero > .container > p {
    margin-bottom: 2.5rem;
  }
}

/* Tablet specific styles */
@media (min-width: 768px) and (max-width: 1024px) {
  /* Portrait mode */
  @media (orientation: portrait) {
    .accent-text {
      display: inline-block;
    }
  }

  /* Landscape mode */
  @media (orientation: landscape) {
    .hero {
      min-height: 100vh;
      padding: 2rem 0;
    }

    .hero-content {
      margin-bottom: 2rem;
    }

    .hero h1 {
      margin-bottom: 1.5rem;
    }

    .hero > .container > p {
      margin-bottom: 2rem;
    }
  }
}

/* Responsive styles for hero section */
@media (max-width: 1024px) {
  .hero-content {
    flex-direction: column;
    text-align: center;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 3rem;
  }

  .profile-image {
    margin-bottom: 0.5rem;
  }

  .hero-text {
    text-align: center;
    justify-content: center;
    padding-top: 0;
  }
}

@media (max-width: 640px) {
  .profile-image {
    width: 140px;
    height: 140px;
    margin-bottom: 1rem;
  }

  .quote-text {
    padding: 0 1rem;
  }

  .hero h1 {
    white-space: normal;
    padding: 0 1rem;
  }

  /* Prevent awkward breaks in hero text */
  .name-wrapper {
    display: inline;
    white-space: nowrap;
  }

  /* Style for the name in mobile view */
  .accent-text {
    display: inline;
    position: relative;
  }

  /* Keep the underline for the name */
  .accent-text::after {
    bottom: -2px;
    width: 100%;
  }

  .hero > .container > p {
    margin-bottom: 2rem;
    padding: 0 1rem;
  }

  .hero-content {
    margin-bottom: 2rem;
    padding: 0 1rem;
  }

  /* Better button touch targets on mobile */
  .hero-buttons a,
  .hero-buttons button {
    min-height: 48px;
    padding: 0.875rem 2rem;
  }
}
