﻿@media (max-width: 650px) {

  .references-container h3,
  .references-subtitle {
    font-size: 26px;
  }

  .project-tab {
    width: 136px;
    height: 50px;
    font-size: 22px;
  }

  .my-skills-right {
    gap: 0;
  }

  .skills-ellipse-bg {
    left: 60%;
  }

  .my-skills-right img {
    width: 100px;
  }

  .skills-ellipse-content {
    width: 60%;
    padding: 0 38px 0 0;
  }

  .arrow-up-container {
    display: none;
  }

  .arrow-up-1 {
    display: none;
  }

  .contact-header {
    justify-content: center;
  }

  .arrow-up-mobile-container {
    display: flex;
    justify-content: center;
    margin-bottom: 80px;
  }

  .contact-form {
    z-index: 9999;
  }

  .contact {
    padding: 0px 20px 80px;
  }

  .contact-intro {
    font-size: 16px;
  }

  .skills-motivation {
    font-size: 17px;
  }

  .skills-ellipse-bg {
    left: 59%;
  }

  .why-me-text {
    width: 100%;
    padding: 0 20px;
  }

  .navbar {
    padding: 0px 20px;
  }

  .legal-notice,
  .privacy-policy {
    padding: 80px 20px;
  }
}

@media (max-width: 600px) {
  .hero-photo {
    width: 400px;
    height: 476px;
  }

  .ellipse-div {
    width: 460px;
    height: 547px;
  }

  .skills-ellipse-bg {
    left: 70%;
  }

  .skills-ellipse-content {
    width: 70%;
    padding: 0 40px 0 0;
  }

  .contact-intro-wrapper {
    width: 60%;
  }

  .form-group {
    padding-bottom: 46px;
  }

  .field-error {
    height: 36px;
  }

}

@media (max-width: 570px) {
  .project-panels {
    height: auto;
    border-radius: 0 0 30px 30px;
  }

  .project-tab {
    flex: 1;
  }
}

@media (max-width: 550px) {
  .skills-motivation {
    font-size: 16px;
  }

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

  .my-skills-left img {
    height: 50px;
  }

  .my-skills-left {
    gap: 10px;
  }

  h3 {
    font-size: 32px;
  }

  .contact h3 {
    font-size: 32px;
  }

  .hero-photo {
    width: 300px;
    height: 357px;
  }

  .ellipse-div {
    width: 360px;
    height: 428px;
  }

  .hero-name {
    font-size: 58px;
    gap: 1px;
  }

  .hero-title {
    font-size: 26px;
  }

  .location {
    height: 36px;
  }

  .location-text span {
    font-size: 18px;
  }

  .location-text {
    height: 100%;
    display: flex;
    align-items: center;
  }

  .project-tab {
    width: 90px;
    height: 43px;
    font-size: 18px;
  }

  .panel-header-mobile h3 {
    font-size: 24px;
  }

  .panel-header-mobile {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    margin-left: 80px;
    width: calc(100% - 80px);
  }

  .projects-container h3 {
    width: auto;
  }

  .panel-tech-text,
  .panel-duration-text {
    display: block;
    order: 1;
    width: calc(100% - 80px);
    margin-left: 80px;
    font-family: 'JosefinSans', sans-serif;
    font-size: 16px;
    color: var(--white);
  }

  .panel-duration-text {
    margin-top: -12px;
  }

  .panel-tech {
    display: none;
  }

  .references-container h3 {
    font-family: 'Anta', sans-serif;
    font-size: 32px;
  }

  .references-subtitle {
    display: block;
    font-family: 'JosefinSans', sans-serif;
    font-size: 18px;
    color: var(--white);
    text-align: center;
  }

  .references-container {
    align-items: flex-start;
  }

  .references-cards {
    margin-top: 40px;
  }

  .arrow-up-container {
    height: 91%;
  }

  .teamplayer-header {
    width: 100%;
    gap: 10px;
  }

  .contact-top {
    gap: 20px;
    justify-content: space-between;
  }

  .my-skills-left {
    width: min(350px, 100vw);
  }

  .planned-padding {
    padding-bottom: 20px;
  }

  .contact {
    padding: 0px 20px 80px;
  }

  .hero-content {
    padding: 96px 24px 60px;
  }
}

@media (max-width: 525px) {

  .hero-content {
    gap: 20px;
  }

  .hero-logo {
    gap: 20px;
  }

  .why-me-container {
    margin-top: 10px;
    gap: 20px;
  }

  .why-me-info {
    gap: 20px;
  }

  .my-skills {
    margin: 0;
  }

  .my-skills-container {
    gap: 20px;
    margin-bottom: 60px;
  }

  .my-skills-left-right {
    gap: 20px;
  }

  .projects-container {
    margin-top: 0px;
  }

  .project-block {

    padding-right: 0;
    padding-bottom: 0;
  }

  .references {
    padding: 60px 20px 60px;
  }

  .references-cards {
    margin-top: 30px;
  }

  .project-tab {
    padding: 0 10px;
  }

  [data-lang="en"] .teamplayer-header {
    align-items: flex-start;
  }

  .contact-container {
    gap: 20px;
  }

  .contact-top {
    gap: 20px;
    justify-content: space-between;
    align-items: flex-start;
    flex-direction: column-reverse;
  }

  .contact-intro {
    width: 100%;
    text-align: start;
  }

  .contact-info {
    display: flex;
    flex-direction: column-reverse;
    gap: 10px;
  }

  .panel-left {
    gap: 20px;
  }

  .contact-work-together {
    display: block;
    font-family: 'JosefinSans', sans-serif;
    font-size: 20px;
    color: var(--blue);
    text-align: center;
    margin: 20px 0;
  }

  .contact-intro-wrapper {
    width: 100%;
  }

  .arrow-up-container {
    height: 100%;
  }
}

@media (max-width: 500px) {
  .my-skills-right {
    flex-direction: column;
    align-items: center;
    gap: 15px;
  }

  .skills-ellipse-content {
    display: contents;
  }

  .skills-motivation {
    display: none;
  }

  .skills-motivation-p1 {
    height: 85px;
    display: flex;
    align-items: flex-end;
    order: 1;
    padding: 0 20px;
  }

  .my-skills-right img {
    order: 2;
  }

  .skills-ellipse-bg {
    inset: auto;
    width: 140px;
    height: 140px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
  }

  .my-skills-right:hover .skills-ellipse-bg,
  .my-skills-right:has(img:hover) .skills-ellipse-bg {
    transform: translate(-50%, -50%);
    opacity: 0.07;
  }

  .skills-motivation-p2 {
    display: block;
    order: 3;
    padding: 0 20px;
    height: 85px;
  }

  .my-skills-left-right {
    gap: 0;
  }

  .my-skills-left {
    margin-bottom: 20px;
    padding: 0 10px;
  }

  .panel-screenshot {
    width: min(340px, 100vw);
    min-height: 204px;
  }

  .footer-container {
    flex-direction: column;
    gap: 20px;
  }

  .footer-center {
    order: 1;
  }

  .footer-right {
    order: 2;
  }

  .footer-left {
    order: 3;
    flex-direction: row;
    gap: 40px;
  }

  .footer-legal {
    font-size: 16px;
  }

  .footer-copy {
    font-size: 16px;
  }

  .footer-name {
    color: var(--white);
  }

  .footer-role {
    color: var(--nav-text);
  }

  .hero-content {
    padding: 96px 10px 90px;
  }

  .project-tab {
    border-radius: 20px 20px 0 0;
  }
}

@media (max-width: 450px) {
  .why-me-text {
    padding: 0 10px;
  }

  .skills-motivation-p1,
  .skills-motivation-p2 {
    padding: 0 10px;
  }

  .panel-left {
    padding: 20px 60px 0 60px;
  }

  .panel-header-mobile {
    margin-left: 0;
    padding-left: 30px;
    width: 100%;
  }

  .panel-header-mobile h3 {
    margin: 0;
  }

  .panel-tech-text,
  .panel-duration-text {
    margin-left: 0;
    padding-left: 30px;
    width: 100%;
  }

  .project-block {
    padding-right: 0;
    padding-bottom: 0;
  }

  .panel-left {
    padding: 0;
    padding-left: 30px;
    padding-right: 30px;
  }

  .contact {
    padding: 0px 10px 100px;
  }

  .form-row {
    gap: 0;
    flex-direction: column;
  }

  .arrow-up-container {
    height: 122%;
  }

  .form-footer {
    gap: 30px;
    flex-direction: column;
  }

  .contact-top {
    align-items: flex-start;
  }

  .contact-intro {
    text-align: left;
  }

  .navbar {
    padding: 0px 10px;
  }

  .legal-notice,
  .privacy-policy {
    padding: 80px 10px;
  }

  .contact-form {
    gap: 0;
  }

  .form-checkbox label {
    margin-top: 0;
  }

}

@media (max-width: 400px) {
  .ellipse-div {
    width: 350px;
    max-width: 100%;
    height: 416px;
  }

  .project-tab {
    width: 90px;
    height: 42px;
    font-size: 16px;
  }

  .project-tab {
    border-radius: 15px 15px 0 0;
  }

  .hero-content {
    padding: 60px 10px 0px;
  }

  .mobile-menu {
    margin-top: 40px;
  }
}

@media (max-width: 360px) {
  .ellipse-div {
    width: 300px;
    max-width: 100%;
    height: 357px;
    gap: 10px;
  }

  .mobile-nav-links {
    gap: 20px;
  }

  .mobile-nav-links a {
    font-size: 20px;
  }

  .hero-photo {
    width: 250px;
    height: 298px;
  }

  .hero-name {
    font-size: 54px;
  }

  .hero-title {
    font-size: 24px;
  }

  .panel-screenshot {
    width: min(300px, 100vw);
    min-height: 180px;
  }

  .panel-buttons {
    gap: 10px;
  }

  .references {
    padding: 60px 10px 40px;
  }

  .references-subtitle {
    font-size: 17px;
  }

  .privacy-heading {
    font-size: clamp(26px, 6vw, 54px);
  }
}

@media (max-width: 350px) {
  .contact {
    padding: 0px 10px 120px;
  }

  .tab-short {
    display: flex;
    flex-direction: column;
    align-items: center;
    line-height: 110%;
  }

  .project-tab {
    height: auto;
    padding: 8px 10px;
  }
}