.hero_section,
.hero_height {
  min-height: calc(100dvh - var(--nav_height));
  display: flex;
  flex-direction: column;
  position: relative;
}

.hero_layout {
  min-height: calc(100dvh - var(--nav_height));
  display: grid;
  grid-template-columns: 1.18fr 1fr;
  align-items: center;
  gap: 0;
  color: var(--secondary);
  position: relative;
}

.hero_media_col {
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  position: relative;
  overflow: visible;
}


.hero_bg_shape {
  position: absolute;
  z-index: 1;
  width: 102%;
  max-width: 760px;
  height: auto;
  left: 53%;
  bottom: 0;
  transform: translateX(-50%);
  transition: transform 180ms ease-in-out;
}

.hero_image_shape:hover .hero_bg_shape {
  transform: translateX(-50%) rotate(-10deg);
}


.hero_logo_block {
  display: flex;
  flex-direction: column;
  align-items: center;
  color: var(--secondary);
  font-size: 16px;
  margin-bottom: 14px;
}

.hero_title {
  font-size: clamp(62px, 5vw, 88px);
  margin: 0;
  white-space: nowrap;
}

.hero_subtitle {
  font-size: clamp(24px, 1.9vw, 36px);
  font-weight: 400;
  margin: 0;
}

.hero_scroll_btn {
  margin-top: 34px;
  display: inline-flex;
}

.hero_scroll_btn svg .ignore_fill {
  fill: var(--primary);
}

.hero_scroll_btn:hover svg .ignore_fill {
  fill: var(--btn_hover);
}

.hero_social_column {
  position: absolute;
  top: 137px;
  right: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  z-index: 5;
}

.hero_social_btn {
  width: 32px;
  height: 32px;
  display: block;
  border: none;
  background-color: transparent;
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  cursor: pointer;
  transition: transform 125ms ease-in-out, background-image 125ms ease-in-out;
}

.hero_social_btn[data_icon="email"] {
  background-image: url("../assets/icons/email_blue.svg");
}

.hero_social_btn[data_icon="git"] {
  background-image: url("../assets/icons/git_blue.svg");
}

.hero_social_btn[data_icon="linkedin"] {
  background-image: url("../assets/icons/linkedin_blue.svg");
}

.hero_social_btn:hover {
  transform: scale(1.08);
}

.hero_social_btn[data_icon="email"]:hover {
  background-image: url("../assets/icons/email_blue_hover.svg");
}

.hero_social_btn[data_icon="git"]:hover {
  background-image: url("../assets/icons/git_blue_hover.svg");
}

.hero_social_btn[data_icon="linkedin"]:hover {
  background-image: url("../assets/icons/linkedin_blue_hover.svg");
}

.nav_brand,
.hero_logo_mobile {
  display: flex;
  flex-direction: column;
  align-items: center;
  color: var(--secondary);
  font-size: 16px;
}

.hero_logo_block svg,
.hero_logo_mobile svg,
.nav_brand svg {
  overflow: visible;
}

.hero_logo_block svg path:last-of-type,
.hero_logo_mobile svg path:last-of-type,
.nav_brand svg path:last-of-type {
  transition: transform 180ms ease-in-out;
  transform-origin: center;
  transform-box: fill-box;
}

.hero_logo_block:hover svg path:last-of-type,
.hero_logo_mobile:hover svg path:last-of-type,
.nav_brand:hover svg path:last-of-type {
  transform: scaleX(1.12);
}

/* MOBILE HERO TOP */

.hero_mobile_top {
  display: none;
  justify-content: space-between;
  align-items: center;
  min-height: 104px;
  width: 100%;
}

.hero_mobile_logo_link {
  text-decoration: none;
}

.burger_menu {
  width: 44px;
  height: 44px;
  display: flex;
  justify-content: center;
  align-items: center;
  border: none;
  background: transparent;
  padding: 0;
  cursor: pointer;
}

.burger_icon {
  width: 28px;
  height: 28px;
  object-fit: contain;
  display: block;
  transition: transform 220ms ease;
}

.burger_menu.is_open .burger_icon {
  transform: rotate(90deg);
}

.flip_card {
  display: none;
  width: min(88vw, 340px);
  aspect-ratio: 1 / 1;
  perspective: 1000px;
}

.flip_card_inner {
  position: relative;
  width: 100%;
  height: 100%;
  transition: transform 0.6s ease;
  transform-style: preserve-3d;
}

.flip_card.show_menu .flip_card_inner {
  transform: rotateY(180deg);
}

.hero_image_shape_container_front,
.hero_image_shape_container_back {
  position: absolute;
  inset: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  backface-visibility: hidden;
}

.hero_image_shape_container_back {
  transform: rotateY(180deg);
}

.mobile_shape_bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  z-index: 0;
  pointer-events: none;
}

.mobile_shape_bg_back {
  transform: scaleX(-1);
}

.mobile_hero_image {
  position: relative;
  z-index: 1;
  width: 78%;
  height: auto;
  object-fit: contain;
  display: block;
}

.mobile_link_section {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  text-align: center;
}

.mobile_link_section a {
  color: var(--bg_and_main);
  text-decoration: none;
  font-size: 1.45rem;
  font-weight: 500;
}

.mobile_language {
  display: flex;
  gap: 12px;
  margin-top: 10px;
}

.language_mobile_tab {
  width: 40px;
  height: 32px;
  font-size: 16px;
  color: var(--bg_and_main);
  border: none;
  background: transparent;
  cursor: pointer;
}

.language_mobile_tab.active {
  color: var(--secondary);
}

.desktop_hero_image {
  display: flex;
}

@media (max-width: 960px) {
  .hero_mobile_top {
    display: flex;
  }

  .desktop_only {
    display: none !important;
  }

  .desktop_hero_image {
    display: none !important;
  }

  .hero_layout {
    min-height: auto;
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 0;
  }

  .hero_media_col {
    width: 100%;
    justify-content: center;
    align-items: center;
  }

  .flip_card {
    display: block;
  }

  .hero_height,
  .hero_section {
    min-height: auto;
    padding-bottom: 20px;
  }
}

@media (max-width: 700px) {
  .hero_mobile_top {
    min-height: 88px;
  }

  .flip_card {
    width: min(90vw, 320px);
  }

  .mobile_link_section a {
    font-size: 1.25rem;
  }
}

.hero_image_shape {
  position: relative;
  width: clamp(450px, 44vw, 720px);
  height: clamp(500px, 54vw, 800px);
  display: flex;
  justify-content: center;
  align-items: flex-end;
  overflow: visible;
}

.hero_image {
    position: absolute;
    z-index: 2;
    width: 107%;
    max-width: 662px;
    height: auto;
    object-fit: contain;
    left: 49%;
    bottom: -22px;
    transform: translateX(-50%);
}

.hero_content_col {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 16px;
  text-align: center;
  transform: translateX(-22px) translateY(-30px);
}
.mobile_language.language_switch_icon {
  position: relative;
  width: 88px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 10px;
}

.language_switch_egg {
  position: absolute;
  top: 50%;
  left: 68px;
  width: 42px;
  height: 30px;
  object-fit: contain;
  transform: translate(-50%, -50%);
  transition: left 180ms ease-in-out;
  z-index: 2;
  pointer-events: none;
  opacity: 1;
}

.mobile_language.language_switch_icon[data-active="de"] .language_switch_egg {
  left: 20px;
}

.mobile_language.language_switch_icon[data-active="en"] .language_switch_egg {
  left: 68px;
}

.language_mobile_tab {
  position: relative;
  z-index: 1;
  width: 34px;
  height: 24px;
  font-size: 16px;
  color: var(--bg_and_main);
  border: none;
  background: transparent;
  cursor: pointer;
}

.language_mobile_tab.active {
  color: var(--secondary);
}

.nav_language.language_switch_icon {
  position: relative;
  width: 88px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-left: auto;
}

.nav_language .language_switch_egg {
  position: absolute;
  top: 50%;
  left: 68px;
  width: 34px;
  height: 24px;
  object-fit: contain;
  transform: translate(-50%, -50%);
  transition: left 180ms ease-in-out;
  z-index: 0;
  pointer-events: none;
}

.nav_language.language_switch_icon[data-active="de"] .language_switch_egg {
  left: 20px;
}

.nav_language.language_switch_icon[data-active="en"] .language_switch_egg {
  left: 68px;
}

.language_nav_tab {
  position: relative;
  z-index: 1;
  width: 34px;
  height: 24px;
  border: none;
  background: transparent;
  color: var(--bg_and_main);
  font-size: 16px;
  cursor: pointer;
  padding: 0;
}

.language_nav_tab.active {
  color: var(--secondary);
}

.btn_standard {
  border-radius: 30px;
  width: 135px;
  height: 48px;

  display: flex;
  justify-content: center;
  align-items: center;

  font-size: 18px;

  border: 1px solid var(--primary);
  color: var(--primary);

  transition: all 180ms ease-in-out;
}

.nav_brand .brand_role.color_dark {
  color: #272f35 !important;
}