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

.email-mobile, 
.project-tab-mobile,
.project-mobile-name,  
.project-tech-text{
  display: none;
}


@media (max-width: 1029px) {
  html,
  body {
    width: 100%;
    max-width: 100%;
  }

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

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

  .mobile-logo-block {
    display: flex;
    position: absolute;
    top: 18px;
    left: clamp(16px, 4%, 32px);
    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);
  }

  .mobile-burger,
  .burger-btn {
    display: flex !important;
    position: absolute;
    top: 24px;
    right: clamp(24px, 5%, 40px);
    z-index: 10000;
    width: 30px;
    height: 24px;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
  }

  .burger-btn span,
  .mobile-burger span {
    width: 30px;
    height: 3px;
    background: var(--secondary);
    border-radius: 10px;
    display: block;
  }

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

  .hero-container {
    width: calc(100% - 32px);
    max-width: 620px;
    margin: 0 auto;
    padding: 0 16px 70px;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .hero-image {
    width: 100%;
    max-width: 100%;
    height: 520px;
    margin-top: 80px;
  }

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

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

  .avatar-mobile-circle {
    width: clamp(280px, 42%, 400px);
    height: clamp(320px, 48%, 460px);
    margin: 0 auto;
    position: relative;
    top: 160px;
  }

  .avatar-bg-mobile-new {
    position: absolute;
    width: clamp(305px, 48%, 460px);
    left: 50%;
    top: 18px;
    transform: translateX(-50%);
    z-index: 1;
  }

  .avatar-photo-mask {
    position: absolute;
    width: clamp(235px, 36%, 340px);
    height: clamp(300px, 44%, 440px);
    left: 47%;
    top: 8px;
    transform: translateX(-50%);
    z-index: 3;
  }

  .avatar-mobile-new {
    position: absolute;
    width: clamp(265px, 40%, 390px);
    left: 51%;
    top: 16px;
    transform: translateX(-50%);
    z-index: 4;
  }

  .hero-text {
    margin: -35px 0 0;
    text-align: center;
    position: relative;
    top: -105px;
    width: 100%;
  }

  .hero-text h1 {
    font-size: clamp(40px, 5%, 52px) !important;
    line-height: 1;
    margin-bottom: 6px;
    white-space: normal !important;
  }

  .hero-text > p {
    font-size: clamp(20px, 2.8%, 26px) !important;
    white-space: normal !important;
    left: 0;
  }

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

  .why-me,
  .skills,
  .references,
  .contact {
    width: calc(100% - 32px);
    max-width: 680px;
    margin: 90px auto 0;
    padding: 0 16px;
  }

  .projects {
    width: 100%;
    max-width: 100%;
    margin: 90px auto 0;
    padding: 0;
  }

  .why-me h2,
  .skills h2,
  .projects h2,
  .contact h2 {
    font-size: clamp(38px, 5%, 48px);
    text-align: center;
  }

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

  .location-text {
    justify-content: center;
    align-items: center;
    gap: 12px;
    font-size: clamp(18px, 3%, 26px);
    white-space: normal;
    text-align: center;
    margin-left: 0;
    font-size: 28px;
  }

  .location-box img {
    width: 64px;
    height: 64px;
    flex-shrink: 0;
  }

  .why-text {
    width: 100%;
    max-width: 640px;
    margin:26px 0 auto;
    font-size: 17px;
    line-height: 1.45;
    
  }

  .why-text .btn {
    display: none;
   
  }

  .learning-btn {
    width: 160px;
    height: 45px;
    padding: 0;
    margin: 30px auto 70px;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: var(--primary);
    color: black;
    border-radius: 30px;
  }

  .skills-grid {
    width: 100%;
    max-width: 660px;
    display: grid;
    
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 34px 32px;
    justify-items: center;
    margin: 0 auto;
  }

  .skills-grid .skill:nth-child(9) {
    grid-column: 2;
  }


  .skill {
    font-size: 0;
  }

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

  .learning-circle {
    width: min(430px, 100%);
    min-width: 0;
    min-height: auto;
    aspect-ratio: 1 / 1;
    margin: 48px auto 0;
  }

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

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

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

  .project-tabs button {
    min-width: 0 !important;
    width: 100%;
    height: 56px;
    font-size: 16px;
    border-radius: 22px 22px 0 0;
    white-space: normal !important;
    line-height: 1.1;
    text-align: center;
    padding: 0 4px;
  }

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

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

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

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

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

  .project-image {
    order: 3;
    width: 100%;
    max-width: 520px;
    align-self: flex-start;
    border-radius: 22px;
    aspect-ratio: 16 / 9;
    object-fit: cover;
  }

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

  .project-buttons {
    order: 5 !important;
    width: 100%;
    justify-content: center !important;
    gap: 18px;
    margin: 10px 0 0 !important;
    flex-wrap: wrap;
  }

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

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

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

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

  .project-point p {
    font-size: 16px !important;
    line-height: 1.45;
    margin: 12px 0 0;
    word-break: normal;
    overflow-wrap: anywhere;
  }

  .references {
    padding: 0 16px;
  }

  .references h2 {
    font-size: 34px;
    line-height: 1.18;
  }

  .references-container {
    width: 100%;
    max-width: 680px;
    margin: 34px auto 0;
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    gap: 32px;
    overflow-x: auto;
    overflow-y: hidden;
    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 p {
    max-width: 315px;
    line-height: 1.28;
    
  }

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

  .contact h2 {
    order: 1;
    font-size: clamp(38px, 5%, 48px);
    margin-bottom: 34px;
  }

  .contact-content {
    order: 2;
    display: flex;
    flex-direction: column;
    max-width: 680px;
    margin: 0 auto;
    padding: 0;
    gap: 26px;
  }

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

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

  .contact-info {
    order: 2;
    text-align: left;
    font-size: 18px;
    line-height: 1.5;
    padding: 0;
  }

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

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

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

  .contact-form input,
  .contact-form textarea {
    width: 100%;
    font-size: 17px;
    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;
  }

  .contact-details {

    display: flex !important;

    flex-direction: column !important;

  }

  .contact-phone-row {
    order: 1 !important;

  }

  .contact-email-row {
    order: 2 !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: 16px;
  }

  .footer-center {
    order: 1;
  }

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

  .hero-nav.mobile-menu-open {
    display: flex !important;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 9998;
    background: transparent;
    flex-direction: column;
    align-items: center;
    padding-top: 170px;
    height: auto;
    min-height: 560px;
  }

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

  .hero-nav.mobile-menu-open::before {
    content: "";
    position: absolute;
    width: min(400px, calc(100% - 32px));
    height: auto;
    aspect-ratio: 1 / 1;
    top: 140px !important;
    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 ul {
    margin: 0;
    display: flex !important;
    flex-direction: column !important;
    align-items: center;
    gap: 22px;
    position: relative;
    top: 10px !important;
  }

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

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

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

  .hero-nav.mobile-menu-open .language a {
    font-size: 18px !important;
  }

  .contact-form input::placeholder,
  .contact-form textarea::placeholder {
    color: rgba(248, 245, 236, 0.6);
  }

  .contact-form label {
    display: none;
  }

  .learning-image {
    display: none !important;
  }

  .location-box {
    transform: translateX(-30px);
  }

  .learning-circle {
    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    aspect-ratio: unset !important;
    background: none !important;
    margin: 55px auto 0 !important;
  }

  .mobile-learn-content {
    display: grid !important;
    grid-template-columns: minmax(360px, 460px) 150px;
    grid-template-rows: auto auto;
    justify-content: center;
    align-items: center;
    column-gap: 34px;
    row-gap: 22px;
    width: 100%;
    max-width: 650px;
    margin: 0 auto;
    padding: 0 !important;
    background: none !important;
  }

  .mobile-learn-title {
    grid-column: 1 / 3;
    grid-row: 1;
    text-align: center;
    margin: 0;
    font-size: 34px;
    line-height: 1.2;
    color: var(--primary);
  }

  .mobile-learn-text {
    grid-column: 1;
    grid-row: 2;
    width: 100%;
    margin: 0;
    text-align: left;
    font-size: 18px;
    line-height: 1.3;
    color: var(--secondary);
  }

  .mobile-learn-icons {
    grid-column: 2;
    grid-row: 2;
    width: 150px;
    height: 130px;
    border-radius: 50%;
    background: rgba(160, 220, 235, 0.12);
    display: flex !important;
    justify-content: center;
    align-items: center;
    gap: 14px;
    flex-shrink: 0;
  }

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

  .contact-details {
    order: 1 !important;
  }

  .contact-info {
    order: 2 !important;
  }

  .work-together-text {
    display: block;
    color: var(--primary);
    text-align: center;
    font-size: 16px;
    margin-top: 22px;
    line-height: 1.2;
  }

  .contact-form {
    order: 3 !important;
  }

  .references-title {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    text-align: center;
    padding: 0 12px;
    white-space: nowrap;
  }

  .references-title-blue {
    color: var(--primary);
    transform: translateX(10px) !important;
    font-size: 22px;
  }

  .references-title-white {
    color: var(--secondary);
    font-size: 16px;
    line-height: 1.2;
    white-space: nowrap;
    padding: 0 12px;
  }

}

@media (max-width: 768px) {
  .hero-container,
  .why-me,
  .skills,
  .references,
  .contact {
    width: calc(100% - 40px);
    max-width: 640px;
  }

  .hero-image {
    height: 470px;
    margin-top: 110px;
  }

  .avatar-mobile-circle {
    width: clamp(280px, 58%, 370px);
    height: clamp(320px, 64%, 420px);
    position: relative;
    top: 80px;
  }

  .avatar-bg-mobile-new {
    width: clamp(280px, 64%, 410px);
  }

  .avatar-photo-mask {
    width: clamp(235px, 48%, 310px);
    height: clamp(300px, 60%, 385px);
  }

  .avatar-mobile-new {
    width: clamp(265px, 55%, 350px);
    top: 15px !important;
  }

  .hero-text {
    top: -120px;
  }

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

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

  .skills-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 34x 32px !important;
  }

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

  .hero-nav.mobile-menu-open::before {
    width: min(400px, calc(100% - 32px));
    top: 100px !important;
  }

  .hero-nav.mobile-menu-open ul a {
    top: -45px;
  }

  .hero-nav.mobile-menu-open .language {
    top: -70px;
  }


  .learning-btn {
    width: 160px;
    height: 45px;
    padding: 0;
    margin: 30px auto 70px;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: var(--primary);
    color: black;
    border-radius: 30px;
  }

  .mobile-learn-content {
    grid-template-columns: minmax(300px, 380px) 130px;
    max-width: 540px;
    column-gap: 24px;
  }

  .mobile-learn-text {
    font-size: 17px;
  }

  .mobile-learn-icons {
    width: 130px;
    height: 112px;
  }

  .location-text {
    font-size: 18px !important;
    white-space: nowrap;;
  }

  .location-box {
    transform: translateX(-20px);
  }

  .references-title {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    text-align: center;
    padding: 0 12px;
    white-space: nowrap;
  }

  .references-title-blue {
    color: var(--primary);
    transform: translateX(-20px);
  }

  .references-title-white {
    color: var(--secondary);
    font-size: 16px;
    line-height: 1.2;
    white-space: nowrap;
    padding: 0 12px;
  }

  .references-title {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    text-align: center;
    padding: 0 12px;
    white-space: nowrap;
  }

  .references-title-blue {
    color: var(--primary);
    font-size: 20px;
    transform: translateX(-10px) !important;
  }

  .references-title-white {
    color: var(--secondary);
    font-size: 16px;
    line-height: 1.2;
    white-space: nowrap;
    padding: 0 12px;
    
  }

  .project-tab-mobile {
    font-size: 28px !important;
  }


  .project-content.active .project-preview .project-mobile-name,
  .project-content.active .project-preview .project-tech-text {
    margin-left: 10px !important;
    }


  .location-box {
    transform: translateX(-50px) !important;
  }

}

@media (max-width: 499px) {
  .hero-container,
  .why-me,
  .skills,
  .references,
  .contact {
    width: calc(100% - 32px);
  }

  .hero-container {
    max-width: 430px;
    padding: 0 16px 60px;
  }

  .hero-image {
    height: 390px;
    margin-top: 140px;
  }

  .avatar-mobile-circle {
    width: 300px;
    height: 340px;
    position: relative;
    top: 0;
  }

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

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

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

  .hero-text {
    top: -120px;
  }

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

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

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

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

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

  .learning-content {
    padding: 0 32px;
    font-size: 16px;
    line-height: 1.12;
  }

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

  .learning-icons {
    gap: 12px;
    padding: 8px 0;
  }

  .learning-icons img {
    width: 24px;
    height: 24px;
  }

  .location-text {
    font-size: 16px !important;
  }

  .references-container {
    gap: 22px;
    padding: 34px 0 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;
  }

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


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

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

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

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

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

  .project-tabs button {
    min-width: 0 !important;
    width: 100%;
    height: 54px;
    font-size: 16px !important;
    padding: 0 3px;
    white-space: normal !important;
    line-height: 1.1;
    text-align: center;
  }

  .project-content.active {
    padding: 28px 22px 34px;
  }

  .project-preview > p,
  .project-tech {
    margin-left: 0 !important;
    padding-left: 0 !important;
  }

  .project-tech {
    gap: 22px;
  }

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

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

  .hero-nav.mobile-menu-open::before {
    width: min(390px, calc(100% - 32px));
    top: 70px !important;
  }

  .hero-nav.mobile-menu-open ul a {
    top: -80px;
  }

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

  .mobile-learn-content {
    grid-template-columns: 210px 86px;
    width: 320px;
    max-width: calc(100% - 16px);
    column-gap: 10px;
    row-gap: 14px;
    justify-content: center;
    align-items: center;
  }

  .mobile-learn-title {
    grid-column: 1 / 3;
    grid-row: 1;
    font-size: 20px;
    line-height: 1.2;
    text-align: center;
  }

  .mobile-learn-text {
    grid-column: 1;
    grid-row: 2;
    max-width: 215px !important;
    width: 215px !important;
    font-size: 16px;
    line-height: 1.18;
    text-align: left !important;
    margin: 0;
  }

  .mobile-learn-icons {
    grid-column: 2;
    grid-row: 2;
    width: 120px;
    height: 100px;
    gap: 6px;
  }

  .mobile-learn-icons img {
    width: 24px;
    height: 24px;
  }

  .mobile-learn-icons span {
    font-size: 16px;
  }

  .mobile-learn-content {
    grid-template-columns: 240px 82px;
    width: 342px;
    max-width: calc(100% - 8px);
    column-gap: 10px;
    row-gap: 14px;
    justify-content: center;
    align-items: center;
    transform: translateX(-10px);
  }

  .mobile-learn-title {
    grid-column: 1 / 3;
    grid-row: 1;
    font-size: 20px !important;
    line-height: 1.2;
    text-align: center;
  }

  .mobile-learn-text {
    grid-column: 1;
    grid-row: 2;
    width: 260px;
    font-size: 16px !important;
    line-height: 1.5;
    text-align: left !important;
    transform: translateX(-5px);
   

  }

  .mobile-learn-icons {
    grid-column: 2;
    grid-row: 2;
    width: 120px;
    height: 100px;
    gap: 6px;
    transform: translateX(-10px);
   
  }

  .references-title {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    text-align: center;
    padding: 0 12px;
    white-space: nowrap;
  }

  .references-title-blue {
    color: var(--primary);
    font-size: 20px;
    transform: translateX(-10px) !important;
  }

  .references-title-white {
    color: var(--secondary);
    font-size: 16px;
    line-height: 1.2;
    white-space: nowrap;
    padding: 0 12px;
    
  }

  .project-tab-mobile {
    font-size: 20px !important;
  }

  .project-content.active .project-preview .project-mobile-name,
  .project-content.active .project-preview .project-tech-text {
    margin-left: 20px !important;
    }
  
}

@media (max-width: 430px) {
  html,
  body {
    width: 100%;
    max-width: 100%;
  }

  .mobile-logo-block {
    left: 18px;
  }

  .burger-btn.mobile-burger,
  .mobile-burger,
  .burger-btn {
    right: 26px !important;
    width: 28px !important;
  }

  .burger-btn.mobile-burger span,
  .burger-btn span,
  .mobile-burger span {
    width: 28px;
  }

  .hero-container {
    width: calc(100% - 28px);
    max-width: 100%;
    padding-left: 0;
    padding-right: 0;
  }


  .hero-image {
    width: 100%;
    height: 370px;
    margin-top: 115px !important;
  }

  .avatar-mobile-circle {
    width: min(285px, 100%);
    height: 325px;
  }

  .avatar-bg-mobile-new {
    width: min(310px, 100%);
    left: 50%;
  }

  .avatar-photo-mask {
    width: min(240px, 100%);
    height: 305px;
    left: 46%;
  }

  .avatar-mobile-new {
    width: min(268px, 100%);
    left: 51%;
  }

  .hero-text {
    top: -105px;
    width: 100%;
  }

  .hero-text h1 {
    font-size: clamp(30px, 8%, 36px) !important;
    white-space: normal !important;
  }

  .hero-text > p {
    font-size: clamp(16px, 5%, 19px) !important;
    white-space: normal !important;
    left: 0;
  }


  
  .location-box {
    font-size: 17px;
    flex-wrap: nowrap;
    white-space: nowrap;
    gap: 8px;
    transform: translateX(-20px);
   
   
  }

  .location-box img {
    width: 64px;
    height: 64px;
    flex-shrink: 0;
  }

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


  .learning-circle {
    width: min(290px, 100%);
    height: 290px;
    max-width: 100%;
    min-width: 0;
    margin-left: auto;
    margin-right: auto;
  }

  .learning-content,
  .learning-content p {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    font-size: 16px;
    line-height: 1.02;
    padding: 0 8px;
    text-align: center;
    white-space: normal;
    overflow-wrap: break-word;
    word-break: normal;
  }

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

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

  .project-tabs button {
    min-width: 0 !important;
    width: 100%;
    max-width: 100%;
    font-size: 16px !important;
    line-height: 1;
    padding: 0 2px;
    white-space: normal !important;
    overflow-wrap: break-word;
  }

  .project-content.active {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding: 28px 18px 34px;
  }

  .project-point {
    gap: 10px;
  }

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

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

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

  .project-mobile-name,
  .project-tech-text {
    margin-left: 28px;
    width: 280px;
  }

  .hero-nav.mobile-menu-open::before {
    width: min(320px, calc(100% - 32px));
    top: 100px !important;
  }

  .hero-nav.mobile-menu-open ul a {
    font-size: 20px !important;
    top: -60px;
  }

  .hero-nav.mobile-menu-open .language {
    top: -155px;
  }

  .why-text {
    width: calc(100% + 24px) !important;
    max-width: 360px !important;
    margin-left: -12px !important;
    margin-right: -12px !important;
  }

  .why-text p {
    font-size: 16px !important;
    line-height: 1.25 !important;
    max-width: 360px !important;
  }

  .contact-link-row {
    gap: 5px !important;
    flex-wrap: nowrap !important;
  }

  .contact-details {
    transform: translateX(-8px);
  }

  .contact-icon-box {
    width: 18px !important;
    min-width: 18px !important;
  }

  .contact-icon {
    width: 18px !important;
    height: 18px !important;
  }

  .contact-email-link,
  .contact-link-row a {
    font-size: 16px !important;
    white-space: nowrap !important;
    letter-spacing: -0.7px;
  }

  .references-title {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    text-align: center;
    padding: 0 12px;
    white-space: nowrap;
  }

  .references-title-blue {
    color: var(--primary);
    font-size: 20px;
    transform: translateX(-20px);
  }

  .references-title-white {
    color: var(--secondary);
    font-size: 16px;
    line-height: 1.2;
    white-space: nowrap;
    padding: 0 12px;
  }
}

@media (max-width: 360px) {
  .hero-container,
  .why-me,
  .skills,
  .references,
  .contact {
    width: calc(100% - 24px);
  }

  .mobile-logo-block {
    left: 16px;
  }

  .burger-btn.mobile-burger,
  .mobile-burger,
  .burger-btn {
    right: 24px !important;
  }

  .hero-image {
    height: 350px;
    margin-top: 95px !important;
  }

  .avatar-mobile-circle {
    width: min(265px, 100%);
    height: 305px;
    margin-top: 40px;
  }

  .avatar-bg-mobile-new {
    width: min(292px, 100%);
  }

  .avatar-photo-mask {
    width: min(225px, 100%);
    height: 285px;
  }

  .avatar-mobile-new {
    width: min(252px, 100%);
  }

  .hero-text {
    top: -55px;
  }

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

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

  .scroll-down {
    margin-top: 20px;
  }

  .projects h2 {
    font-size: 26px !important;
    line-height: 1.1 !important;
    white-space: nowrap !important;
  }

  .skills h2,
  .skills-title,
  #skills-section h2 {
    font-size: 28px !important;
    line-height: 1.05 !important;
    white-space: nowrap !important;
    text-align: center !important;
  }

  .contact-form {
    padding: 0 8px;
    transform: translateX(-30px);
  }

  .location-box {
    margin-left: 0;
    font-size: 16px;
    padding: 0 8px;
    transform: translateX(0) !important;
  }

  .project-tabs button {
    font-size: 16px !important;
    padding: 0 2px;
  }

  .project-content.active {
    padding: 26px 20px 32px;
  }

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

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

  .hero-nav.mobile-menu-open::before {
    width: min(320px, calc(100% - 32px)) !important;
    top: 125px !important;
  }

  .hero-nav.mobile-menu-open ul a {
    font-size: 20px !important;
    top: -40px;
  }

  .hero-nav.mobile-menu-open .language {
    top: -155px;
  }

  .mobile-learn-content {
    grid-template-columns: 210px 78px !important;
    width: 310px !important;
    max-width: calc(100% - 10px) !important;
    column-gap: 6px !important;
    transform: translateX(-6px);
  }

  .why-text {
    max-width: 310px;
    padding: 0 8px !important;
  }

  .why-text p {
    max-width: 310px !important;
    font-size: 16px !important;
    line-height: 1.32 !important;
    text-align: center;
  }


  .mobile-learn-text {
    width: 210px !important;
    max-width: 210px !important;
    font-size: 16px !important;
    line-height: 1.15 !important;
    padding: 0 12px !important;
  }

  .mobile-learn-icons {
    width: 100px !important;
    height: 96px !important;
    transform: translateX(-14px);
  }

  .footer-left {
   font-size: 16px !important;
   white-space: nowrap;
  
   transform: translateX(-8px);
  }

  .references-title {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    text-align: center;
    padding: 0 12px;
    white-space: nowrap;
  }

  .references-title-blue {
    color: var(--primary);
    font-size: 20px;
    transform: translateX(-5px) !important;
  }

  .references-title-white {
    color: var(--secondary);
    font-size: 16px;
    line-height: 1.2;
    white-space: nowrap;
    padding: 0 12px;
  }

  .project-tab-mobile {
    font-size: 20px !important;
  }


  .project-content.active .project-preview .project-mobile-name,
  .project-content.active .project-preview .project-tech-text {
    margin-left: 5px !important;
    }
  
}


@media (max-width: 600px) {
  .footer-right .footer-icon.normal {
    display: none !important;
  }

  .footer-right .footer-icon.hover {
    display: block !important;
  }

  .footer-right a:hover .footer-icon.normal {
    display: none !important;
  }

  .footer-right a:hover .footer-icon.hover {
    display: block !important;
  }
}

@media (min-width: 1025px)  and (max-width: 1599px) and (min-height: 900px) {
  .hero-image {
    position: relative !important;
    top: 0 !important;
    transform: translateY(440px) !important;
  }

  .avatar-bg,
  .avatar-mobile-circle .normal-bg,
  .avatar-mobile-circle .hover-bg {
    top: 20px !important;
  }

  .avatar {
    top: 100px !important;
  }

  .hero-text {
    position: relative !important;
    top: 120px !important;
  }

  .hero-icons {
    padding-top: 540px !important;
  }

  .scroll-down {
    left: 74% !important;
    bottom: 60px !important;
    transform: translateX(-50%) !important;
  }

  .skills-grid {
    width: 100%;
    max-width: 660px;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 40px;
    justify-items: center;
    margin: 0 auto;
  }

  .hero-text h1 {
    font-size: clamp(32px, 3.2vw, 56px) !important;
    line-height: 1 !important;
    white-space: nowrap !important;
    padding-bottom: clamp(8px, 1vw, 18px) !important;
  }

  .hero-text > p {
    font-size: clamp(20px, 1.7vw, 32px) !important;
    line-height: 1.1 !important;
    white-space: nowrap !important
  }

  .why-content,
  .skills-content {
    width: min(100% - 64px, 1100px);
    margin-left: auto;
    margin-right: auto;
  }

  .why-content {
    display: grid !important;
    grid-template-columns: 1fr 1fr;
    gap: 52px;
  }

  .location-box {
    margin-left: 0 !important;
    justify-self: start;
  }

  .skills-grid {
    justify-content: flex-start;
  }
}

@media (min-width: 1025px) and (max-width: 1280px) and (min-height: 800px) {
  .hero-image {
    position: relative !important;
    top: 60px !important;
     white-space: nowrap !important;
   
  }

}

 
@media (max-width: 1029px) {

  .project-mobile-name,
  .project-tech-text {
    display: none;
  }.project-mobile-name,
  .project-tech-text {
    display: none;
  }
  .project-mobile-name,
  .project-tech-text {
    display: none;
  }
  
  .project-tab-mobile {
    display: inline;
  }
  
  .project-tab-desktop {
    display: none;
  }
  
  .project-tab {
    color: var(--secondary);
  }
  
  .project-tab.active {
    color: var(--primary);
  }
  
  .project-mobile-name {
    display: block;
    color: var(--primary);
    font-size: 28px;
    line-height: 1.1;
    margin: 0 0 14px 48px;
  }
  
  .project-tech-text {
    display: block;
    color: var(--secondary);
    font-size: 16px;
    line-height: 1.3;
    margin: 0 0 24px 48px;
  }
  
  .project-desktop-tech-title,
  .project-tech {
    display: none;
  }
  
  .project-tech-text {
    margin-top: -40px;
  }
  
  .project-tab-mobile {
    font-size: 35px;
    
  }
  
  
  .project-mobile-name,
  .project-tech-text {
    margin-left: 40px !important;
    text-align: left;
  }
  
  .project-tab {
    color: var(--secondary) !important;
  
  }
  
  .project-tab.active {
    color: var(--primary) !important;
  }
  
  .project-content.active .project-preview .project-mobile-name {
    font-size: 30px !important;
    line-height: 1.1 !important;
  }
  
  .project-content.active .project-preview .project-tech-text {
    font-size: 16px !important;
    line-height: 1.3 !important;
   }  
}
