body.no-scroll {
  overflow: hidden;
}

main {
  display: flex;
  flex-direction: column;
  padding: 16rem 1rem 12.5rem 1rem;
  align-items: center;
  gap: 15rem;
}

.hero-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  align-self: stretch;
  gap: 4rem;
  text-align: center;
}

.hero-section .hello-section {
  display: flex;
  flex-direction: column;
  padding: 0rem 1rem;
  align-items: center;
  gap: 2.5rem;
}

.hero-section .hello-section p,
.hero-section .hello-section h1 {
  max-width: 30rem;
}

.hero-section .mission-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 3rem 0.5rem;
  gap: 1.5rem;
  width: 100%;
  border-radius: 12px;
  max-width: 29.4375rem;
  position: relative;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(45px) saturate(170%);
  -webkit-backdrop-filter: blur(45px) saturate(170%);
  border: 1px solid rgba(255, 255, 255, 0.4);
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.1);
}

.hero-section .mission-section p,
.hero-section .mission-section h2,
.hero-section .mission-section h3 {
  max-width: 20.5rem;
  position: relative;
  z-index: 2;
}

.mission-section::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, #db00ac 23.56%, #0900ff 90.38%);
  -webkit-mask-image: radial-gradient(
    circle 250px at var(--mouse-x, 50%) var(--mouse-y, 50%),
    black 0%,
    transparent 100%
  );
  mask-image: radial-gradient(
    circle 250px at var(--mouse-x, 50%) var(--mouse-y, 50%),
    black 0%,
    transparent 100%
  );
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
  z-index: 1;
}

.mission-section:hover::after {
  opacity: 0.15;
}

.skills-section {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
  align-self: stretch;
  align-items: center;
  scroll-margin-top: 14rem;
}

.skills-section .skills-group {
  display: flex;
  padding: 0rem 2rem 0rem 2rem;
  flex-direction: column;
  width: 100%;
  max-width: 29rem;
  align-items: center;
  gap: 2rem;
  position: relative;
}

.skills-section .skills-group .row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  align-self: stretch;
  flex-wrap: wrap;
}

.skills-section .skills-group .row img {
  width: 4rem;
  height: 4rem;
}

.skills-section .skills-group .hider {
  background: linear-gradient(0deg, #ffffff 50%, rgba(255, 255, 255, 0) 100%);
  width: 100%;
  height: 7rem;
  position: absolute;
  left: 0rem;
  bottom: -1.5rem;
}

.projects-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  align-self: stretch;
  gap: 2.5rem;
  scroll-margin-top: 14rem;
}

.cv-section {
  display: flex;
  flex-direction: column;
  align-self: stretch;
  align-items: center;
  gap: 2.5rem;
  scroll-margin-top: 14rem;
}

.cv-section .cv-aura {
  position: absolute;
  top: 20px;
  left: -30px;
  right: -30px;
  bottom: 130px;
  background: linear-gradient(90deg, #db00ac 23.56%, #0900ff 90.38%);
  filter: blur(80px);
  border-radius: 999px;
  opacity: 0.6;
  z-index: -1;
  transition: transform 2000ms ease-in-out;
}

.cv-section .cv-wrapper {
  position: relative;
  margin-bottom: 1.5rem;
  overflow: visible !important;
}

.cv-section img {
  border-radius: 16px;
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.1);
  max-width: 500px;
}

.cv-section .hider {
  background: linear-gradient(0deg, #ffffff 50%, rgba(255, 255, 255, 0) 100%);
  width: 100%;
  height: 8rem;
  position: absolute;
  left: 0rem;
  bottom: -2rem;
  z-index: 10;
  pointer-events: none;
}

.contacts-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  align-self: stretch;
  gap: 2.5rem;
  scroll-margin-top: 14rem;
}

.contacts-section .form-wrapper {
  position: relative;
  width: 100%;
  max-width: 35.5rem;
  margin: 0 auto;
  z-index: 1;
}

.contacts-section .form-wrapper .red-circle,
.contacts-section .form-wrapper .yellow-circle,
.contacts-section .form-wrapper .blu-circle {
  position: absolute;
  border-radius: 100%;
  filter: blur(0px);
  opacity: 1;
  z-index: -1;
}

.contacts-section .form-wrapper .red-circle {
  width: 400px;
  height: 400px;
  background-color: #eb3a3a;
  top: -3%;
  left: -20%;
}

.contacts-section .form-wrapper .yellow-circle {
  width: 200px;
  height: 200px;
  background-color: #e1ee4c;
  top: 60%;
  left: 15%;
}

.contacts-section .form-wrapper .blu-circle {
  width: 250px;
  height: 250px;
  background-color: #2d32bc;
  top: 60%;
  right: -5%;
}

.social-section {
  display: flex;
  flex-direction: column;
  padding: 1.5rem;
  align-items: center;
  align-self: stretch;
  justify-content: center;
  gap: 6rem;
}

.social-section img {
  width: 40px;
  height: 40px;
}

.social-section .row {
  display: flex;
  max-width: 29rem;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding: 0rem 2rem 0rem 2rem;
  flex-wrap: wrap;
}

.social-section .row a {
  transition: all 0.3s ease;
}

.social-section .row a:hover {
  transform: translateY(-4px) scale(1.1);
  opacity: 0.9;
}

/* MODALE SKILLS  */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.75);
  z-index: 1000;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.modal-content {
  background-color: #ffffff;
  width: 90%;
  max-width: 800px;
  max-height: 85vh;
  overflow-y: auto;
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
  transform: translateY(30px) scale(0.95);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.modal-overlay.is-open {
  opacity: 1;
  visibility: visible;
}

.modal-overlay.is-open .modal-content {
  transform: translateY(0) scale(1);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 3rem;
}

.close-btn {
  width: 48px;
  height: 48px;
  color: #212121;
  padding: 0.4rem 0.4rem;
  background: none;
  border: none;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.close-btn:hover {
  transform: scale(1.1);
}

.modal-body {
  display: flex;
  flex-direction: column;
  gap: 4rem;
}

.skill-category {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.skill-category h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: #212121;
  border-bottom: 1px solid #f0f0f0;
  padding-bottom: 0.5rem;
}

.skill-items-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
  gap: 1.5rem;
}

.skill-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.75rem;
  padding: 1rem;
  border-radius: 12px;
  transition: background-color 0.2s ease;
}

.skill-item:hover {
  background-color: #f9f9f9;
}

.skill-item img {
  width: 48px;
  height: 48px;
  object-fit: contain;
}

.skill-item span {
  font: var(--body-m-font);
  font-weight: 500;
  color: #212121;
}

@media (max-width: 600px) {
  .skill-items-grid {
    grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
    gap: 1rem;
  }
}

.projects-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2.5rem;
  width: 100%;
}

@media (min-width: 750px) {
  .social-section img {
    width: 48px;
    height: 48px;
  }
}

@media (min-width: 1080px) {
  .projects-wrapper {
    flex-direction: row;
    justify-content: center;
    align-items: stretch;
    max-width: 1140px;
    gap: 1.25rem;
  }

  .projects-wrapper .project-card {
    flex: 1;
    min-width: 0;
  }
}
