/* Make the top header (including breadcrumbs) sticky */
.md-header {
  position: sticky;
  top: 0;
  z-index: 10;
}

.mdx-hero-parallax__corner-image {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  width: 400px;
  height: auto;
  z-index: 3;
  opacity: 0.9;
  pointer-events: none;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

@media (max-width: 768px) {
  .mdx-hero-parallax__corner-image {
    right: auto;              /* remove right alignment */
    left: 50%;                /* center horizontally */
    top: 2rem;                /* optional: adjust vertical position */
    transform: translateX(-50%);
    width: 260px;             /* optional: slightly smaller on mobile */
  }
}

.mdx-hero-parallax__corner-image:hover {
  transform: scale(1.08);
  opacity: 1;
}

.mdx-hero-parallax {
  position: relative;
  height: 100vh;
  overflow: hidden;
  display: flex;
  align-items: center;
}

.mdx-hero-parallax__bg {
  position: absolute;
  inset: 0;
  background-image: url("../images/hero.jpg");
  background-size: cover;
  background-position: center;
  transform: scale(1.2);
}

.mdx-hero-parallax__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    120deg,
    rgba(0, 0, 0, 0.65),
    rgba(0, 0, 0, 0.3)
  );
}

.mdx-hero-parallax__content {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 2rem;
  padding-bottom: 8vh;
}

.mdx-reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.mdx-reveal.mdx-reveal--visible {
  opacity: 1;
  transform: translateY(0);
}

.mdx-hero-parallax .mdx-container,
.mdx-hero-parallax .md-content__inner,
.mdx-hero-parallax .md-grid {
  max-width: none;
  margin: 0;
}

.mdx-hero-parallax h1 {
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  line-height: 1.1;
  margin: 0 0 1rem;
}

.mdx-hero-parallax p {
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  opacity: 0.9;
  max-width: 40ch;
  margin: 0 auto 2rem;
}

.mdx-hero-parallax h1,
.mdx-hero-parallax p {
  margin-block-start: 0;
  margin-block-end: 0;
  color: var(--md-primary-bg-color);
}

/* Buttons */

.mdx-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.4rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
  transition: all 0.2s ease;
  cursor: pointer;
  gap: 0.5rem;
}

.mdx-button:hover {
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.35);
}

.mdx-button.primary {
  background: var(--md-primary-fg-color);
  color: var(--md-primary-bg-color);
  border: 1px solid var(--md-primary-fg-color);
}

.mdx-button.primary:hover {
  filter: brightness(1.1);
  transform: translateY(-1px);
}

.mdx-button.secondary {
  background: transparent;
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.6);
}

.mdx-button.secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: white;
  transform: translateY(-1px);
}

.mdx-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 2rem;
}

/* Features */

.mdx-features {
  padding: 6rem 0;
  background: var(--md-default-bg-color);
}

.mdx-features__header {
  text-align: center;
  max-width: 40rem;
  margin: 0 auto 4rem;
}

.mdx-features__header h2 {
  font-size: 2.2rem;
  margin-bottom: 1rem;
}

.mdx-features__header p {
  font-size: 1.1rem;
  opacity: 0.75;
}

.mdx-features__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
  max-width: 1100px;
  margin: 0 auto;
}

@media (max-width: 960px) {
  .mdx-features__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .mdx-features__grid {
    grid-template-columns: 1fr;
  }
}

.mdx-feature {
  padding: 1.5rem 1.25rem;
  border-radius: 0.75rem;

  border: 1px solid rgba(0, 0, 0, 0.5);

  /* slightly darker than page background */
  background: rgba(0, 0, 0, 0.3);

  transition:
    transform 0.2s ease,
    background 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.mdx-feature:hover {
  transform: translateY(-4px);

  /* slightly stronger hover background */
  background: rgba(0, 0, 0, 0.2);

  border-color: rgba(0, 0, 0, 0.15);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.mdx-feature__icon {
  margin-bottom: 0.75rem;
}

.mdx-feature h3 {
  margin: 0 0 0.5rem;
  font-size: 1.1rem;
}

.mdx-feature p {
  margin: 0;
  opacity: 0.75;
  line-height: 1.5;
  font-size: 0.95rem;
}

.mdx-goals {
  padding: 5rem 1.25rem;
}

.mdx-goals__intro {
  max-width: 1100px;
  margin: 0 auto 6rem;
}

.mdx-goals__intro h1 {
  margin: 0;

  font-size: clamp(2rem, 4vw, 3.5rem);
  line-height: 1;
  letter-spacing: -0.04em;

  font-weight: 900;
}


html {
  scroll-behavior: smooth;
}