@import url("https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap");

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scrollbar-color: #36b37e transparent;
  scrollbar-width: thin;
}

html::-webkit-scrollbar {
  width: 10px;
}

html::-webkit-scrollbar-track {
  background: transparent;
}

html::-webkit-scrollbar-thumb {
  background: #36b37e;
  border: 2px solid transparent;
  border-radius: 999px;
  background-clip: padding-box;
}

html::-webkit-scrollbar-thumb:hover {
  background: #008552;
  background-clip: padding-box;
}

body {
  color: #172b4d;
  font-family: Inter, sans-serif;
}

.primary {
  color: #172b4d;
}

.primary-text {
  font-size: 40px;
  font-weight: 700;
  text-align: center;
  color: #172b4d;
}

.secondary {
  color: #36b37e;
}

.container {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.toolbar {
  position: sticky;
  top: 16px;
  z-index: 10;
  width: min(100% - 32px, 1120px);
  margin: 16px auto 0;
  padding: 0;
  background: transparent;
  height: auto;
}

.overlay {
  width: 100%;
  border: 1px solid rgba(54, 179, 126, 0.3);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.14);
  box-shadow: 0 8px 24px rgba(23, 43, 77, 0.08);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}

.green-btn a {
  background-color: #36b37e;
  color: #fff;
  padding: 12px 12px;
  text-align: center;
  text-decoration: none;
  border-radius: 5px;
  width: 98px;
}

.down-arrow a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  text-align: center;
  text-decoration: none;
  border: 1px solid #36b37e;
  border-radius: 50%;
  background: #36b37e;
  box-shadow: 0 6px 14px rgba(54, 179, 126, 0.28);
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.down-arrow a:hover {
  background: #008552;
  transform: translateY(3px);
}

.social-icons a {
  text-decoration: none;
  padding: 2px;
}

.view-btn li {
  margin: 0 8px;
  background-color: #36b37e;
  color: #fff;
  padding: 8px;
  border-radius: 4px;
}

.nav-menu {
  display: flex !important;
  width: 100%;
  align-items: center;
  text-align: center;
  justify-content: space-between !important;
  gap: 16px;
  margin: 0;
  padding: 16px clamp(14px, 3vw, 32px);
}

.menu {
  list-style-type: none;
  display: flex;
  align-items: center;
  gap: clamp(8px, 2vw, 24px);
}

.menu li {
  margin: 0;
}

.menu li a {
  color: #172b4d;
  text-decoration: none;
  font-weight: 700;
  transition: color 0.2s ease;
}

.menu li a:hover,
.menu li a:focus-visible {
  color: #008552;
}

.logo {
  text-decoration: none;
  font-size: 1.5rem;
  font-weight: 600;
  display: block;
}

.nav-menu.active {
  display: block;
}

.logo.active {
  display: block;
}

.menu.active {
  display: block;
  text-align: left;
}

.hamburger {
  cursor: pointer;
  color: #1a1b1b;
  display: none;
}

.bar {
  display: flex;
  width: 25px;
  height: 3px;
  margin: 5px auto;
  background-color: #1a1b1b;
  transition: all 0.3s ease-in-out;
}

.hamburger.active .bar:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
  background-color: #1a1b1b;
}

.hamburger.active .bar:nth-child(2) {
  opacity: 0;
}

.hamburger.active .bar:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
  background-color: #1a1b1b;
}

.overlay.active {
  display: block;
  height: 90%;
  width: 100%;
  position: fixed;
  z-index: 1;
  background-color: #fff;
  border-radius: 5%;
  box-shadow: 0 48px 48px rgba(37, 47, 137, 0.08);
  left: 0;
  margin: auto 0;
  overflow: hidden;
  transition: 0.5s;
  color: white;
}

.section {
  align-items: center;
  margin: 24px auto;
}

.section-bg-image {
  background-image: url(../assets/images/header-bg.svg);
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  width: 100%;
}

.wrapper {
  height: 100%;
  margin: 0 260px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 160px auto;
}

.icon {
  height: 30px;
  width: 30px;
  opacity: 75%;
}

.social-icons .bi {
  display: inline-block;
  color: #000;
  font-size: 30px;
  line-height: 1;
}

.whatsapp-float {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 20;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  isolation: isolate;
  color: #fff;
  background: #25d366;
  border: 3px solid rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  box-shadow: 0 8px 20px rgba(37, 211, 102, 0.35);
  text-decoration: none;
  transition: transform 0.2s ease, background-color 0.2s ease;
}

.whatsapp-float::before {
  content: "";
  position: absolute;
  inset: -10px;
  z-index: -1;
  border-radius: 50%;
  background: rgba(37, 211, 102, 0.42);
  filter: blur(8px);
  animation: whatsapp-pulse 2.2s ease-out infinite;
}

@keyframes whatsapp-pulse {
  0% {
    opacity: 0.8;
    transform: scale(0.72);
  }

  70%,
  100% {
    opacity: 0;
    transform: scale(1.45);
  }
}

.whatsapp-float .bi {
  font-size: 30px;
  line-height: 1;
}

.whatsapp-float:hover,
.whatsapp-float:focus-visible {
  color: #fff;
  background: #128c4a;
  transform: translateY(-4px) scale(1.04);
}

@media only screen and (max-width: 768px) {
  .whatsapp-float {
    right: 16px;
    bottom: 16px;
    width: 52px;
    height: 52px;
  }
}

.title {
  text-align: center;
  line-height: 2;
  font-weight: 500;
  font-size: 1.2rem;
  margin: 24px auto;
}

.description {
  text-align: center;
  margin: 24px auto;
  font-size: 1.2rem;
}

.social-icons {
  align-items: center;
  text-align: center;
  margin: 24px auto;
}

.social-icons ul {
  list-style-type: none;
  display: flex;
}

.down-arrow {
  text-align: center;
  margin: 70px auto;
}

.down-arrow img {
  width: 18px;
  height: 18px;
  border: 0;
  padding: 0;
  filter: brightness(0) invert(1);
}

.line {
  border: 2px solid #36b37e;
  width: 60px;
  margin: 24px auto;
  display: none;
}

.projects-set {
  width: 80%;
  margin: 0 auto;
  justify-content: center;
}

.project {
  display: flex;
  flex-direction: column;
}

.grid-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.grid-item {
  border: 1px solid #d6d5da;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  border-radius: 8px;
  overflow: hidden;
  width: 369px;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  will-change: transform;
}

.grid-item:hover,
.grid-item:focus-within {
  transform: translateY(-8px);
  border-color: rgba(54, 179, 126, 0.55);
  box-shadow: 0 14px 28px rgba(23, 43, 77, 0.16);
}

.grid-item:active {
  transform: translateY(-3px) scale(0.99);
}

.item-image {
  flex: 0 0 237px;
  height: 237px;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  overflow: hidden;
  border-radius: 7px 7px 0 0;
  background: #ebf0ee;
}

.item-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform 0.35s ease;
}

.grid-item:hover .item-image img,
.grid-item:focus-within .item-image img {
  transform: scale(1.04);
}

@media (prefers-reduced-motion: reduce) {
  .grid-item,
  .item-image img,
  .whatsapp-float,
  .whatsapp-float::before {
    transition: none;
    animation: none;
  }
}

.item-description {
  border-radius: 5px;
  margin: 10px auto;
  flex: 1;
}

.item-title {
  text-align: center;
  margin: 16px;
}

.frameworks li {
  padding: 10px;
  background-color: rgba(235, 240, 238, 1);
  text-align: center;
  margin: 5px 5px;
  font-size: 0.65rem;
  border-radius: 5px;
  white-space: nowrap;
  flex: none;
  order: 2;
  flex-grow: 0;
}

.view-btn li a {
  text-decoration: none;
  color: #fff;
  display: flex;
  flex-wrap: nowrap;
  justify-content: space-between;
}

.technologies li a {
  text-decoration: none;
  color: rgba(127, 140, 255, 1);
}

.green-btn a:hover {
  background-color: rgb(29, 140, 106);
}

.green-btn a:active {
  background-color: #008552;
}

.technologies {
  display: flex;
  align-items: center;
  text-align: center;
  list-style-type: none;
  white-space: nowrap;
  justify-content: center;
}

.technologies li {
  padding: 10px;
  background-color: #ebf0ee;
  text-align: center;
  margin: 5px 5px;
  word-wrap: break-word;
  font-size: 0.75rem;
  border-radius: 5px;
  float: left;
  color: rgba(127, 140, 255, 1);
}

.green-btn {
  margin: 16px auto;
}

.about-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin: 30px auto;
  width: 55%;
  position: relative;
}

.skills-set {
  width: 80%;
  margin: 0 auto;
  justify-content: center;
}

.skill-item {
  background-image: url(../assets/images/Img-Plaholder.svg);
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  padding: 30px auto;
  border: none;
  height: 352px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.item-icon {
  background-color: #fff;
  border-radius: 50%;
  margin: 30px auto;
  justify-content: center;
  align-items: center;
}

.item-icon img {
  width: 50px;
  height: 50px;
  padding: 10px;
}

.item-langs {
  display: inline-flex;
  flex-wrap: wrap;
  list-style-type: none;
  align-items: center;
  justify-content: center;
  width: 80%;
  margin: 24px auto;
}

.item-langs li {
  padding: 10px;
  background-color: #fff;
  color: #36b37e;
  text-align: center;
  margin: 5px 5px;
  font-size: 0.75rem;
  border-radius: 5px;
  white-space: nowrap;
}

.technologies li:hover {
  background-color: #36b37f;
  color: white;
}

.technologies li a:hover {
  color: white;
}

.contacts-row {
  display: flex;
  margin: 80px auto;
  width: 80%;
  position: relative;
}

.bottom-bg-image {
  max-width: 80%;
  max-height: 80%;
  position: relative;
  z-index: -1;
  align-items: center;
  margin-top: 100px;
}

.contact-column {
  margin: 8px;
  flex: 1;
  align-items: center;
  justify-content: center;
  display: flex;
  flex-direction: column;
}

.contact-notice {
  font-size: 30px;
  font-weight: 700;
  line-height: 2;
  font-style: normal;
  text-align: center;
}

.contact-column form {
  width: 100%;
  display: flex;
  flex-direction: column;
}

.form-group {
  display: flex;
  margin: 12px;
}

.form-group input {
  height: 48px;
  width: 100%;
  border: 0.5px solid #36b37e;
  outline: none;
  box-sizing: border-box;
  border-radius: 4px;
  padding: 0 5px;
  margin: 0 5px;
}

.form-group textarea {
  width: 100%;
  border: 0.5px solid #36b37e;
  outline: none;
  box-sizing: border-box;
  border-radius: 4px;
  padding: 5px 5px;
  margin: 0 5px;
}

.form-group button {
  background-color: #36b37e;
  color: #fff;
  outline: none;
  border: none;
  border-radius: 4px;
  padding: 12px;
  width: 105px;
  transition: 0.3s;
}

.form-group button:hover {
  background-color: #36b37f;
}

.form-group button:active {
  background-color: #008552;
}

.error-message {
  display: none;
  color: #e21e04;
  background: #e6ebed;
  border-radius: 15px;
  padding: 5px;
  justify-content: center;
  align-items: center;
}

.error-message img {
  height: 30px;
}

.project-image {
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}

.project-image img {
  flex-shrink: 0;
  min-width: 100%;
  min-height: 100%;
}

.project-title {
  display: flex;
  justify-content: space-between;
  margin: 12px 0;
}

.project-title h2 {
  flex: 1;
  word-wrap: break-word;
}

.view-btn {
  list-style-type: none;
  display: flex;
  flex: 1;
  justify-content: flex-end;
}

.view-btn.view-2 {
  display: none;
}

.frameworks {
  list-style-type: none;
  display: flex;
  margin: 12px 0;
  -webkit-flex-wrap: nowrap;
  flex-wrap: nowrap;
}

.project-description {
  margin: 12px 0;
}

.project-description p {
  text-align: justify;
  line-height: 1.5;
}

.bottom-line {
  display: none;
}

.menu.active li {
  margin: 10px 0;
}

.menu.active li a {
  color: #344563;
  text-decoration: none;
  font-style: normal;
  font-weight: 600;
  line-height: 44px;
}

@media only screen and (min-width: 769px) and (max-width: 1440px) {
  .container {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .toolbar {
    background: transparent;
    display: flex;
    justify-content: center;
  }

  .overlay.active {
    display: none;
  }

  .nav-menu {
    display: flex !important;
    justify-content: space-between;
    align-items: center;
    text-align: center;
  }

  .menu {
    display: flex;
  }

  .menu.active {
    display: block;
  }

  .section {
    width: 100%;
  }

  .section-bg-image {
    background-image: url(../assets/images/header-bg.svg);
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    width: 100%;
  }

  .wrapper {
    height: 100%;
    margin: 0 260px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 160px auto;
  }

  .icon {
    height: 30px;
    width: 30px;
    opacity: 75%;
  }

  .title {
    text-align: center;
    line-height: 2;
    font-weight: 500;
    font-size: 1.2rem;
    margin: 24px auto;
  }

  .description {
    text-align: center;
    margin: 24px auto;
    font-size: 1.2rem;
  }

  .social-icons {
    align-items: center;
    text-align: center;
    margin: 24px auto;
  }

  .social-icons ul {
    list-style-type: none;
    display: flex;
  }

  .down-arrow {
    text-align: center;
    margin: 70px auto;
  }

  .down-arrow img {
    border-radius: 50%;
    padding: 8px;
    border: 1px solid rgba(235, 240, 238, 1);
  }

  .line {
    border: 2px solid #36b37e;
    width: 60px;
    margin: 24px auto;
    display: none;
  }

  .item-image {
    height: 237px;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    overflow: hidden;
    border-radius: 7px 7px 0 0;
  }

  .item-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
  }

  .item-description {
    border-radius: 5px;
    margin: 10px auto;
  }

  .item-title {
    text-align: center;
  }

  .technologies {
    display: flex;
    align-items: center;
    text-align: center;
    list-style-type: none;
    white-space: nowrap;
  }

  .technologies li {
    padding: 10px;
    background-color: #ebf0ee;
    text-align: center;
    margin: 5px 5px;
    word-wrap: break-word;
    font-size: 0.75rem;
    border-radius: 5px;
    float: left;
  }

  .green-btn {
    margin: 24px auto;
  }

  .about-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin: 30px auto;
    width: 55%;
    position: relative;
    z-index: 1;
  }

  .about-bg-imgs {
    position: absolute;
    z-index: -1;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
  }

  .about-bg-imgs img {
    max-width: 70%;
    max-height: 70%;
    object-fit: contain;
  }

  .item-icon {
    background-color: #fff;
    border-radius: 50%;
    margin: 30px auto;
    justify-content: center;
    align-items: center;
  }

  .item-icon img {
    width: 50px;
    height: 50px;
    padding: 10px;
  }

  .item-langs {
    display: inline-flex;
    flex-wrap: wrap;
    list-style-type: none;
    align-items: center;
    justify-content: center;
    width: 80%;
    margin: 24px auto;
  }

  .item-langs li {
    padding: 10px;
    background-color: #fff;
    color: #36b37e;
    text-align: center;
    margin: 5px 5px;
    font-size: 0.75rem;
    border-radius: 5px;
    white-space: nowrap;
  }

  .contacts-row {
    display: flex;
    margin: 80px auto;
    width: 80%;
    z-index: 1;
    position: relative;
  }

  .bottom-bg-imgs {
    position: absolute;
    display: flex;
    justify-content: space-between;
    width: 100%;
  }

  .bottom-bg-imgs img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
  }

  .bottom-bg-image {
    max-width: 100%;
    max-height: 100%;
    position: relative;
    align-items: center;
  }

  .contact-column {
    margin: 8px;
    flex: 1;
    align-items: center;
    justify-content: center;
    display: flex;
    flex-direction: column;
  }

  .contact-notice {
    font-size: 30px;
    font-weight: 700;
    line-height: 2;
    font-style: normal;
    text-align: center;
  }

  .contact-column form {
    width: 100%;
    display: flex;
    flex-direction: column;
  }

  .form-group {
    display: flex;
    margin: 12px;
  }

  .form-group input {
    height: 48px;
    width: 100%;
    border: 0.5px solid #36b37e;
    outline: none;
    box-sizing: border-box;
    border-radius: 4px;
    padding: 0 5px;
    margin: 0 5px;
  }

  .form-group textarea {
    width: 100%;
    border: 0.5px solid #36b37e;
    outline: none;
    box-sizing: border-box;
    border-radius: 4px;
    padding: 5px 5px;
    margin: 0 5px;
  }

  .form-group button {
    background-color: #36b37e;
    color: #fff;
    outline: none;
    border: none;
    border-radius: 4px;
    padding: 12px;
    width: 105px;
  }

  .form-group button:hover {
    background-color: green;
  }

  .project-image {
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
  }

  .project-image img {
    flex-shrink: 0;
    min-width: 100%;
    min-height: 100%;
  }

  .project-title {
    display: flex;
    justify-content: space-between;
    margin: 24px 0;
  }

  .view-btn {
    list-style-type: none;
    display: flex;
    flex: 1;
    justify-content: flex-end;
  }

  .form-group button:active {
    background-color: #008552;
  }

  .view-btn li {
    margin: 8px;
    background: #36b37e;
    color: #fff;
    border-radius: 4px;
    white-space: nowrap;
    height: auto;
  }

  .view-btn li a {
    text-decoration: none;
    color: #fff;
    display: flex;
    flex-wrap: nowrap;
    justify-content: space-between;
  }

  .view-btn li a > img {
    margin-left: 8px;
  }

  .frameworks {
    list-style-type: none;
    display: flex;
    margin: 20px 0;
    -webkit-flex-wrap: nowrap;
    flex-wrap: nowrap;
  }

  .frameworks li {
    padding: 8px;
    background: #ebecf0;
    text-align: center;
    margin: 5px 5px;
    font-size: 0.75rem;
    border-radius: 5px;
    white-space: nowrap;
  }

  .project-description {
    margin: 12px 0;
  }

  .project-description p {
    text-align: justify;
    line-height: 1.5;
  }

  .green-btn a:hover {
    background-color: #36b37f;
  }

  .green-btn a:active {
    background-color: #043120;
  }

  div > .green-btn a:hover {
    background-color: green;
  }

  .footer {
    border-top: 1px solid rgba(235, 240, 238, 1);
    width: 100%;
    align-items: center;
    justify-content: center;
    display: flex;
  }

  .footer-email {
    display: none;
  }

  .about-bg-img {
    background:
      url(../assets/images/about-me/about-me-left.svg) left no-repeat,
      url(../assets/images/about-me/aboutmedesktop-right.svg) right no-repeat;
  }

  .contact-bg-img {
    float: right;
    background:
      url(../assets/images/bottom-bg/left-img.svg) left bottom
      no-repeat,
      url(../assets/images/bottom-bg/right-img.svg) right bottom no-repeat;
  }
}

@media only screen and (max-width: 768px) {
  .primary-text {
    font-size: clamp(1.75rem, 8vw, 2rem);
    line-height: 1.15;
  }

  .toolbar {
    background: transparent;
  }

  .nav-menu {
    justify-content: space-between;
    display: flex !important;
    padding: 14px 16px;
    gap: 8px;
  }

  .hamburger {
    display: block;
  }

  .logo {
    display: block;
    font-size: clamp(1rem, 5vw, 1.3rem);
    white-space: nowrap;
  }

  .menu {
    display: none;
  }

  .wrapper {
    margin: 16px;
  }

  .titles {
    padding: 0 24px;
    line-height: 1.2;
    margin: 24px auto;
  }

  .section-bg-image {
    height: 80%;
  }

  .grid-container {
    grid-template-columns: 1fr;
    width: calc(100% - 32px);
    gap: 16px;
  }

  .grid-item {
    width: 100%;
    max-width: 369px;
    margin: 0 auto;
  }

  .projects-set,
  .skills-set {
    width: calc(100% - 32px);
  }

  .skill-item {
    height: auto;
    min-height: 0;
    padding: 18px 12px 22px;
  }

  .skill-item .item-icon {
    margin: 18px auto;
  }

  .skill-item .item-title {
    margin: 8px;
    font-size: 1rem;
  }

  .item-langs {
    width: 100%;
    margin: 16px auto;
  }

  .item-langs li {
    padding: 7px 8px;
    margin: 3px;
    font-size: 0.65rem;
  }

  .technologies {
    flex-wrap: wrap;
    width: 100%;
    padding: 0 8px;
  }

  .technologies li {
    padding: 7px 6px;
    margin: 3px;
    font-size: 0.62rem;
  }

  .technologies li {
    font-size: 0.7rem;
  }

  .item-title {
    text-align: center;
    margin: 12px;
  }

  .contacts-row {
    flex-direction: column;
    margin: 20px auto;
    width: 80%;
  }

  .bottom-bg-image {
    display: none;
  }

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

  .form-group textarea {
    margin: 0;
  }

  .project-image {
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
  }

  .project-image img {
    flex-shrink: 0;
    min-height: 100%;
    min-width: 100%;
  }

  .project-title {
    flex-direction: column;
  }

  .frameworks {
    display: flex;
    -webkit-flex-wrap: nowrap;
    flex-wrap: nowrap;
  }

  .view-btn {
    width: 100%;
    margin: 8px auto;
  }

  .view-btn li {
    flex: 1;
    display: flex;
    justify-content: space-between;
    text-align: center;
    align-items: center;
  }

  .view-btn li a {
    flex: 1;
    display: flex;
    flex-wrap: nowrap;
    justify-content: space-between;
  }

  .technologies li a {
    text-decoration: none;
    color: rgba(127, 140, 255, 1);
  }

  .technologies li:hover {
    background-color: #36b37f;
    color: white;
  }

  .technologies li a:hover {
    color: white;
  }

  .view-btn.view-2 {
    display: flex;
    bottom: 0;
    left: 0;
  }

  .view-btn.view-1 {
    display: none;
  }

  .line {
    display: block;
  }

  .footer {
    border-top: none;
  }

  .footer-email {
    display: block;
    height: 189px;
  }

  .bottom-line {
    border: 2px solid #1a1b1b;
    width: 60px;
    margin: 24px auto;
    display: block;
  }

  .about-bg-img {
    background:
      url(../assets/images/about-me/about-me-left.svg) left bottom
      no-repeat,
      url(../assets/images/about-me/aboutmedesktop-right.svg) right top
      no-repeat;
    background-size: 100px, 500px, auto;
  }

  .contact-bg-img {
    background:
      url(../assets/images/bottom-bg/left-img.svg) left bottom
      no-repeat,
      url(../assets/images/bottom-bg/right-img.svg) right bottom no-repeat;
    background-size: 0, 80px, auto;
  }
}

@media only screen and (min-width: 769px) and (max-width: 1024px) {
  .toolbar {
    width: min(100% - 24px, 900px);
  }

  .nav-menu {
    padding: 16px 20px;
  }

  .logo {
    display: block;
    font-size: 1.2rem;
  }

  .hamburger {
    display: block;
  }

  .menu {
    display: none;
  }

  .menu.active {
    display: block;
    width: 100%;
    margin-top: 16px;
    text-align: center;
  }

  .menu.active li {
    margin: 8px 0;
  }

  .menu.active li a {
    display: block;
    line-height: 36px;
  }

  .overlay.active {
    display: block;
    width: min(100% - 24px, 900px);
    height: auto;
    min-height: 0;
    left: 12px;
    margin: 0;
    overflow: visible;
  }

  .nav-menu.active {
    display: flex !important;
  }

  .wrapper {
    margin: 0 24px;
    padding: 80px 0 0;
  }

  .grid-container {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    width: calc(100% - 32px);
  }

  .grid-item {
    width: 100%;
    min-width: 0;
  }

  .projects-set,
  .skills-set {
    width: calc(100% - 32px);
  }

  .item-image {
    flex-basis: 200px;
    height: 200px;
  }
}

/* Responsive layout overrides */
@media only screen and (max-width: 480px) {
  .toolbar {
    top: 8px;
    width: calc(100% - 16px);
    margin-top: 8px;
  }

  .nav-menu {
    min-height: 52px;
    padding: 12px;
  }

  .logo {
    font-size: clamp(0.95rem, 5.5vw, 1.2rem);
  }

  .primary-text {
    font-size: clamp(1.6rem, 8vw, 2rem);
  }

  .wrapper {
    width: calc(100% - 24px);
    margin: 16px auto;
  }

  .description {
    font-size: 0.9rem;
  }

  .projects-set,
  .skills-set,
  .grid-container {
    width: calc(100% - 8px);
  }

  .grid-item {
    width: 100%;
  }

  .item-image {
    flex-basis: 180px;
    height: 180px;
  }

  .item-title h2 {
    font-size: 1.05rem;
  }

  .contact-notice {
    font-size: 1.25rem;
  }
}

@media only screen and (min-width: 481px) and (max-width: 768px) {
  .projects-set,
  .skills-set,
  .grid-container {
    width: min(92%, 620px);
  }

  .grid-item {
    width: 100%;
  }

  .item-image {
    flex-basis: 220px;
    height: 220px;
  }
}

/* Project card layout */
.projects-set .project {
  width: 100%;
  min-width: 0;
  height: 100%;
}

.projects-set .item-image {
  flex: 0 0 auto;
  height: auto;
  aspect-ratio: 16 / 10;
}

.projects-set .item-description {
  width: 100%;
  min-width: 0;
  min-height: 174px;
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: center;
  margin: 0;
  padding: 0 12px 16px;
}

.projects-set .item-title {
  width: 100%;
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 12px 0 8px;
}

.projects-set .item-title h2 {
  max-width: 100%;
  font-size: 1.15rem;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.projects-set .technologies {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  width: 100%;
  min-width: 0;
  gap: 6px;
  margin: 0 0 14px;
  padding: 0;
}

.projects-set .technologies li {
  float: none;
  margin: 0;
  padding: 6px 8px;
  font-size: 0.68rem;
  line-height: 1.2;
  white-space: normal;
}

.projects-set .green-btn {
  margin: auto 0 0;
}

.projects-set .green-btn a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 112px;
  padding: 10px 14px;
}
