.mobile-logo-block {
  display: none;
}

@media (max-width: 768px) {
  html,
  body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
  }

  body {
    background: var(--bg-and-main);
  }

  .hero-nav,
  .hero-icons,
  .hero-logo-block,
  .hero .mobile-burger {
    display: none !important;
  }

  .mobile-logo-block {
    display: flex;
    position: absolute;
    top: 18px;
    left: 24px;
    z-index: 9999;
    flex-direction: column;
    align-items: center;
  }

  .mobile-logo {
    width: 48px;
  }

  .mobile-logo-name,
  .mobile-logo-role {
    font-size: 16px;
    line-height: 1;
  }

  .mobile-logo-name {
    position: relative;
    left: 9px;
  }

  .mobile-logo-role {
    color: var(--primary);
    position: relative;
    right: 0px;
  }

  body > .mobile-burger,
  .burger-btn {
    display: flex !important;
    position: absolute;
    top: 24px;
    right: 24px;
    z-index: 9999;
    width: 30px;
    height: 24px;
    flex-direction: column;
    justify-content: space-between;
  }

  .burger-btn span {
    width: 30px;
    height: 2px;
    background: var(--secondary);
    border-radius: 4px;
  }

  .hero {
    top: 0;
    height: auto;
    min-height: 100vh;
    padding-top: 90px;
  }

  .hero-container {
    width: 100%;
    max-width: 430px;
    margin: 0 auto;
    padding: 0 20px 60px;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .hero-image {
    width: 100%;
    height: 390px;
    margin-top: 20px;
  }

  .avatar-bg,
  .avatar,
  .avatar-bg.hover-bg,
  .avatar-bg.normal-bg {
    display: none !important;
  }

  .avatar-bg-mobile-new,
  .avatar-photo-mask,
  .avatar-mobile-new {
    display: block !important;
  }

  .avatar-mobile-circle {
    width: 360px;
    height: 360px;
    margin: 0 auto;
    position: relative;
  }

  .avatar-bg-mobile-new {
    position: absolute;
    width: 380px;
    left: 50%;
    top: 0;
    transform: translateX(-50%);
    z-index: 1;
  }

  .avatar-photo-mask {
    position: absolute;
    width: 280px;
    height: 340px;
    left: 46%;
    top: -6px;
    transform: translateX(-50%);
    z-index: 3;
    overflow: visible;
  }

  .avatar-mobile-new {
    position: absolute;
    width: 310px;
    left: 52%;
    top: 22.9px;
    transform: translateX(-50%);
    z-index: 4;
  }

  .hero-text {
    margin: 20px 0 0;
    text-align: center;
  }

  .hero-text h1 {
    font-size: 40px !important;
    line-height: 1;
    margin-bottom: 10px;
  }

  .hero-text > p {
    font-size: 22px !important;
  }

  .scroll-down {
    position: static;
    transform: none;
    margin-top: 34px;
  }

  .why-me,
  .skills,
  .projects,
  .references,
  .contact {
    width: 100%;
    max-width: 430px;
    margin: 90px auto 0;
    padding: 0 22px;
  }

  .why-me h2,
  .skills h2,
  .projects h2,
  .contact h2 {
    font-size: 38px;
    text-align: center;
  }

  .why-content,
  .skills-content {
    padding-top: 34px;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 34px;
  }

  .location-box {
    justify-content: center;
    align-items: center;
    gap: 14px;
    font-size: 22px;
    white-space: nowrap;
  }

  .location-box img {
    width: 48px;
    height: 48px;
  }

  .why-text {
    width: 100%;
    font-size: 16px;
    line-height: 1.45;
  }

  .why-text .btn {
    left: 0;
    margin: 26px auto 0;
  }

  .skills-grid {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px 18px;
    justify-items: center;
  }

  .skill {
    font-size: 16px;
  }

  .skill img {
    width: 54px;
    height: 54px;
  }

  .learning-circle {
    width: 310px;
    min-width: 310px;
    min-height: 310px;
  }

  .learning-content {
    font-size: 16px;
    padding: 0 34px;
  }

  .projects {
    max-width: 100%;
    padding: 0;
  }

  .projects h2 {
    max-width: 430px;
    margin: 0 auto;
    padding: 0 22px;
  }

  .project-tabs {
    width: 100%;
    padding: 36px 0 0;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
  }

  .project-tabs button {
    min-width: 0;
    width: 100%;
    left: 0;
    height: 56px;
    font-size: 16px;
    border-radius: 22px 22px 0 0;
    white-space: nowrap;
  }

  .project-content.active {
    width: 100%;
    display: flex;
    flex-direction: column;
    padding: 28px 20px 34px;
    gap: 28px;
    border-radius: 0;
  }

  .project-preview {
    order: 1;
    width: 100%;
    align-items: center;
  }

  .project-text {
    order: 2;
    width: 100%;
  }

  .project-preview > p {
    font-size: 18px;
    font-weight: 700;
    padding-bottom: 14px;
  }

  .project-tech {
    gap: 24px;
    margin-bottom: 22px;
  }

  .project-tech img {
    width: 38px;
    height: 38px;
  }

  .project-image {
    width: 100%;
    max-width: 390px;
    border-radius: 22px;
    aspect-ratio: 16 / 9;
    object-fit: cover;
  }

  .project-buttons {
    order: 3;
    width: 100%;
    justify-content: center;
    gap: 18px;
    margin: 18px 0 0;
  }

  .project-buttons a {
    width: 120px;
    height: 44px;
    font-size: 16px;
  }

  .project-point {
    gap: 14px;
    margin-bottom: 28px;
  }

  .project-point > img {
    width: 22px;
    height: 22px;
  }

  .project-point h3 {
    font-size: 24px;
    color: var(--secondary);
  }

  .project-point p {
    font-size: 16px;
    line-height: 1.45;
    margin: 12px 0 0;
  }

  .references {
    padding: 0 20px;
  }

  .references h2 {
    font-size: 30px;
    line-height: 1.15;
  }

  .references-container {
    width: 100%;
    margin-top: 34px;
    display: flex;
    justify-content: flex-start;
    gap: 22px;
    overflow-x: auto;
    overflow-y: hidden;
    padding-bottom: 18px;
  }

  .reference-image-card {
    flex: 0 0 300px;
    width: 300px;
    min-width: 300px;
    height: 300px;
  }

  .reference-image-card > img {
    width: 300px;
    height: 300px;
  }

  .reference-content {
    padding: 36px 20px 22px;
  }

  .reference-content h3 {
    font-size: 20px;
  }

  .reference-content span {
    font-size: 16px;
    margin-bottom: 8px;
  }

  .reference-content p {
    font-size: 14px;
    line-height: 1.25;
    max-width: 235px;
  }

  .reference-content a {
    font-size: 16px;
    margin-top: 14px;
    display: block;
  }

  .contact {
    max-width: 430px;
    padding: 0 22px;
    margin-bottom: 0;
    display: flex;
    flex-direction: column;
  }

  .contact h2 {
    order: 1;
    font-size: 38px;
    margin-bottom: 34px;
  }

  .contact-content {
    order: 2;
    display: flex;
    flex-direction: column;
    padding: 0;
    gap: 26px;
  }

  .contact-details {
    order: 1;
    width: 100%;
    align-items: flex-start;
    font-size: 16px;
    gap: 14px;
    padding-left: 0;
  }

  .contact-info {
    order: 2;
    width: 100%;
    text-align: left;
    font-size: 16px;
    line-height: 1.45;
    padding: 0;
  }

  .contact-link-row a {
    word-break: break-word;
  }

  .contact-form {
    order: 3;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 18px;
    margin-top: 18px;
  }

  .input-row {
    display: flex;
    flex-direction: column;
    gap: 18px;
  }

  .contact-form input,
  .contact-form textarea {
    width: 100%;
    font-size: 16px;
    padding: 18px 24px;
    border-radius: 28px;
  }

  .contact-form textarea {
    height: 145px;
  }

  .privacy-row {
    font-size: 16px;
    line-height: 1.35;
    align-items: flex-start;
  }

  .contact-form button {
    align-self: flex-end;
    width: 96px !important;
    height: 44px !important;
  }

  .arrow-up {
    order: 3;
    position: static !important;
    width: 38px;
    margin: 58px auto 42px !important;
    display: block !important;
  }

  .footer {
    height: 220px;
    padding: 26px 22px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 18px;
  }

  .footer-left {
    order: 3;
    width: 100%;
    flex-direction: row;
    justify-content: space-between;
    font-size: 12px;
  }

  .footer-center {
    order: 1;
  }

  .footer-right {
    order: 2;
    justify-content: center;
  }

  .project-content.active {
    display: flex !important;
    flex-direction: column !important;
  }

  .project-preview {
    display: contents !important;
  }

  .project-preview > p {
    order: 1;
    align-self: flex-start;
    margin-left: 42px;
    font-size: 18px !important;
  }

  .project-tech {
    order: 2;
    justify-content: flex-start !important;
    align-self: flex-start;
    padding-left: 42px !important;
    gap: 28px;
  }

  .project-tech img {
    width: 44px;
    height: 44px;
  }

  .project-image {
    order: 3;
    align-self: center;
  }

  .project-text {
    order: 4 !important;
  }

  .project-buttons {
    order: 5 !important;
    margin-top: 10px !important;
    justify-content: center !important;
  }

  .project-point p {
    font-size: 16px !important;
  }


  .hero-nav.mobile-menu-open {
    display: flex !important;
    position: fixed;
    inset: 0;
    z-index: 9998;
    background: var(--bg-and-main);
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding-top: 120px;
  }

  .hero-nav.mobile-menu-open ul {
    margin-top: 120px;
  }

  .hero-nav.mobile-menu-open::before {
    content: "";
    position: absolute;
    width: 360px;
    height: 360px;
    top: 150px; 
    left: 50%;
    transform: translateX(-50%);
    background-image: url("./assets/images/avatar-bg.default.png");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    z-index: -1;
  }

  .hero-nav.mobile-menu-open .nav-logo {
    display: none !important;
  }

  .hero-nav.mobile-menu-open ul {
    margin-top: 210px;
  }

  .hero-nav.mobile-menu-open::before {
    top: 145px;
    width: 390px;
    height: 390px;
  }


  .hero-nav.mobile-menu-open ul {
    display: flex !important;
    flex-direction: column !important;
    align-items: center;
    gap: 20px;
    position: relative;
    top: -140px;
  }

  .hero-nav.mobile-menu-open ul li {
    width: auto;
  }

  .hero-nav.mobile-menu-open ul a {
    font-size: 22px;
    text-align: center;
  }

  .hero-nav.mobile-menu-open .language {
    margin-top: 24px;
    display: flex;
    justify-content: center;
    gap: 10px;
    position: relative;
    top: -140px;
    
    
  }

}

/* Tablet klein: 500 bis 768 */
@media (min-width: 500px) and (max-width: 768px) {
  .why-me,
  .skills,
  .references,
  .contact {
    max-width: 680px;
    padding-left: 36px;
    padding-right: 36px;
  }

  .why-content,
  .skills-content,
  .contact-content {
    width: 100%;
    max-width: 640px;
    margin: 0 auto;
  }

  .location-box {
    font-size: 26px;
  }

  .why-text {
    max-width: 640px;
    margin: 0 auto;
  }

  .why-text p {
    max-width: 640px;
    font-size: 17px;
    line-height: 1.45;
  }

  .why-text .btn {
    transform: translateX(14px);
  }

  .skills-grid {
    max-width: 660px;
    grid-template-columns: repeat(4, 1fr);
    gap: 34px 48px;
    margin: 0 auto;
  }

  .skill img {
    width: 72px;
    height: 72px;
  }

  .learning-circle {
    width: 430px;
    min-width: 430px;
    min-height: 430px;
    margin: 48px auto 0;
  }

  .learning-content {
    padding: 0 48px;
  }

  .learning-content p {
    font-size: 16px;
    line-height: 1.25;
  }

  .projects {
    padding-left: 0;
    padding-right: 0;
  }

  .project-content.active {
    width: 100%;
    padding-left: 18px;
    padding-right: 18px;
  }

  .project-preview,
  .project-text {
    width: 100%;
    max-width: none;
  }

  .project-preview > p {
    align-self: flex-start;
    margin-left: 42px;
  }

  .project-tech {
    justify-content: flex-start;
    padding-left: 42px;
    gap: 28px;
  }

  .project-tech img {
    width: 44px;
    height: 44px;
  }

  .project-image {
    width: 100%;
    max-width: none;
    height: auto;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-radius: 18px;
  }

  .project-buttons {
    order: 3;
    margin-top: 8px;
    justify-content: center;
  }

  .references h2 {
    width: 100%;
    max-width: 680px;
    margin: 0 auto;
    font-size: 34px;
    line-height: 1.18;
  }

  .references-container {
    max-width: 680px;
    gap: 32px;
    padding: 40px 24px 20px;
    scroll-snap-type: x mandatory;
  }

  .reference-image-card {
    width: 420px;
    min-width: 420px;
    height: 420px;
    flex: 0 0 420px;
    scroll-snap-align: center;
  }

  .reference-image-card > img {
    width: 420px;
    height: 420px;
  }

  .reference-content {
    padding: 70px 38px 34px;
  }

  .reference-content h3 {
    font-size: 22px;
  }

  .reference-content span,
  .reference-content p,
  .reference-content a {
    font-size: 16px;
  }

  .reference-content p {
    max-width: 315px;
    line-height: 1.28;
  }

  .reference-content a {
    margin-top: 22px;
  }

  .contact {
    max-width: 640px;
  }

  .contact-info,
  .contact-details,
  .contact-form {
    width: 100%;
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
  }

  .contact-info,
  .contact-details {
    font-size: 17px;
  }

  .contact-link-row a {
    word-break: normal;
  }
}

/* 431 bis 499 */
@media (min-width: 431px) and (max-width: 499px) {
  .why-me,
  .skills,
  .references,
  .contact {
    max-width: 100%;
    padding-left: 28px;
    padding-right: 28px;
  }

  .why-text p {
    font-size: 16px;
    line-height: 1.45;
  }

  .skills-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 30px 28px;
  }

  .skill img {
    width: 60px;
    height: 60px;
  }

  .learning-circle {
    width: 330px;
    min-width: 330px;
    min-height: 330px;
  }

  .learning-content p {
    font-size: 16px;
    line-height: 1.25;
  }

  .references h2 {
    font-size: 31px;
    line-height: 1.15;
  }

  .reference-image-card {
    flex: 0 0 320px;
    width: 320px;
    min-width: 320px;
    height: 320px;
  }

  .reference-image-card > img {
    width: 320px;
    height: 320px;
  }

  .reference-content p {
    font-size: 14px;
    max-width: 245px;
  }
}

/* 320 bis 430 */
@media (max-width: 430px) {
  .hero-container,
  .why-me,
  .skills,
  .references,
  .contact {
    max-width: 100%;
  }

  .avatar-mobile-circle {
    width: 340px;
    height: 340px;
  }

  .avatar-bg-mobile-new {
    width: 355px;
  }

  .avatar-photo-mask {
    width: 260px;
    height: 320px;
  }

  .avatar-mobile-new {
    width: 290px;
  }

  .hero-text h1 {
    font-size: 36px !important;
  }

  .hero-text > p {
    font-size: 19px !important;
  }

  .location-box {
    font-size: 20px;
  }

  .skills-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .project-tabs button {
    font-size: 13px;
  }

  .project-image {
    max-width: 100%;
  }

  .references h2 {
    font-size: 28px;
  }

  .reference-image-card {
    flex-basis: 300px;
    width: 300px;
    min-width: 300px;
    height: 300px;
  }

  .reference-image-card > img {
    width: 300px;
    height: 300px;
  }

  .reference-content p {
    font-size: 14px;
    max-width: 235px;
  }
}

@media (max-width: 360px) {
  .hero-container,
  .why-me,
  .skills,
  .contact {
    padding-left: 16px;
    padding-right: 16px;
  }

  .avatar-mobile-circle {
    width: 305px;
    height: 305px;
  }

  .avatar-bg-mobile-new {
    width: 320px;
  }

  .avatar-photo-mask {
    width: 235px;
    height: 292px;
  }

  .avatar-mobile-new {
    width: 262px;
  }

  .hero-text h1 {
    font-size: 32px !important;
  }

  .project-content.active {
    padding-left: 16px;
    padding-right: 16px;
  }

  .project-tabs button {
    font-size: 16px;
  }

  .reference-image-card {
    flex-basis: 320px;
    width: 320px;
    min-width: 320px;
    height: 320px;
  }

  .reference-image-card > img {
    width: 280px;
    height: 280px;
  }

  .reference-content p {
    font-size: 16px;
    max-width: 220px;
  }
}



@media (max-width: 390px) {
  .hero-nav.mobile-menu-open::before {
    width: 340px !important;
    height: 340px !important;
    top: 165px !important;
  }
}

@media (max-width: 350px) {
  .hero-nav.mobile-menu-open::before {
    width: 310px !important;
    height: 310px !important;
    top: 175px !important;
  }
}

/* TABLET 769px - 1024px */
@media (min-width: 769px) and (max-width: 1024px) {
  html,
  body {
    max-width: 100%;
    max-width: 100%;overflow-x: hidden;
  }

  .hero {
    height: 760px;
    min-height: 760px;
    top: -50px;
  }

  .hero-container {
    width: 100%;
    max-width: 100%;
    padding: 0 32px;
    grid-template-columns: 420px 1fr 30px;
    align-items: center;
  }

  .hero-image {
    width: 420px;
    height: 100%;
    position: relative;
  }

  .avatar-bg,
  .avatar-mobile-circle .normal-bg,
  .avatar-mobile-circle .hover-bg {
    width: 500px;
    height: auto;
    top: 280px !important;
    left: 50%;
    transform: translateX(-50%);
  }

  .avatar {
    width: 445px;
    height: auto;
    top: 280px !important;
    left: 50%;
    transform: translateX(-50%);
  }

  .hero-text {
    margin-right: 10px;
    padding-top: 0;
    transform: translateY(-40px);
  }

  .hero-logo-block {
    margin-bottom: 18px;
    right: 20px;
  }

  .hero-logo {
    width: 56px;
  }

  .hero-text h1 {
    font-size: 46px !important;
    white-space: nowrap;
    line-height: 1;
  }

  .hero-text > p {
    font-size: 22px !important;
    white-space: nowrap;
  }

  .hero-icons {
    padding-top: 250px !important;
    gap: 40px;
    right: 10px;
  }

  .scroll-down {
    bottom: 60px;
    left: 73%;
  }

  .hero-nav {
    transform: translateY(-60px);
    padding: 0 32px;
  }

  .hero-nav ul {
    gap: 28px;
  }

  .hero-nav a {
    font-size: 18px;
  }

  .why-me,
  .skills,
  .projects,
  .references,
  .contact {
    margin-top: 80px;
  }

  .why-me,
  .skills {
    padding-left: 40px;
    padding-right: 40px;
  }

  .why-me h2,
  .skills h2,
  .projects h2,
  .contact h2 {
    font-size: 54px;
  }

  .why-content,
  .skills-content {
    gap: 32px;
  }

  .location-box {
    font-size: 24px;
  }

  .why-text {
    font-size: 16px;
  }

  .why-text .btn {
    left: 0;
  }

  .skills-grid {
    gap: 28px;
  }

  .learning-circle {
    width: 320px;
    min-width: 320px;
    min-height: 320px;
  }

  .learning-content {
    font-size: 16px;
  }

  .project-tabs {
    padding-top: 48px;
    flex-wrap: wrap;
    justify-content: center;
  }

  .project-tabs button {
    min-width: 180px;
    height: 68px;
    font-size: 20px;
    left: 0;
  }

  .project-content {
    padding: 32px;
    gap: 32px;
  }

  .project-point h3 {
    font-size: 24px;
  }

  .project-point p {
    font-size: 16px;
  }

  .project-preview > p {
    font-size: 18px;
  }

  .project-image {
    max-width: 320px;
  }

  .project-buttons {
    gap: 20px;
  }

  .project-buttons a {
    width: 120px;
    font-size: 16px;
  }

  .references {
    padding: 0 32px;
  }

  .references-container {
    gap: 24px;
    flex-wrap: wrap;
    justify-content: center;
  }

  .reference-image-card {
    width: 300px;
    min-width: 300px;
    height: 300px;
  }

  .reference-image-card > img {
    width: 300px;
    height: 300px;
  }

  .reference-content {
    padding: 38px 18px 24px;
  }

  .reference-content h3 {
    font-size: 20px;
  }

  .reference-content span {
    font-size: 16px;
  }

  .reference-content p {
    font-size: 15px;
    max-width: 240px;
  }

  .contact {
    padding-left: 40px;
    padding-right: 40px;
  }

  .contact-content {
    gap: 24px;
  }

  .contact-info,
  .contact-details {
    font-size: 16px;
  }

  .input-row {
    gap: 16px;
  }

  .footer {
    padding: 0 40px;
  }

  .reference-image-card {
    width: 340px;
    min-width: 340px;
    height: 340px;
  }

  .reference-image-card > img {
    width: 340px;
    height: 340px;
  }

  .reference-content {
    padding: 48px 26px 28px;
  }

  .reference-content p {
    max-width: 270px;
    font-size: 16px;
    line-height: 1.28;
  }

  .reference-content a {
    font-size: 16px;
    margin-top: 18px;
  }

  .why-text .btn {
    position: relative;
    left: 220px;
  }
}


@media (min-width: 1025px) and (max-height: 1300px) {

  .hero-special-responsive {
    height: 760px;
    min-height: 760px;
  }

  .hero-special-responsive .avatar-bg,
  .hero-special-responsive .avatar-mobile-circle .normal-bg,
  .hero-special-responsive .avatar-mobile-circle .hover-bg {
    top: 240px !important;
  }

  .hero-special-responsive .avatar {
    top: 240px !important;
  }

  .hero-nav-special-responsive {
    transform: translateY(-60px);
  }

  .why-me {
    margin-top: 60px;
  }
}
