@font-face {
  font-family: 'Fredoka';
  font-style: normal;
  font-weight: 300 700;
  font-stretch: 100%;
  font-display: swap;
  src: url(https://fonts.gstatic.com/s/fredoka/v16/X7n64b87HvSqjb_WIi2yDCRwoQ_k7367_DWu89XgHPyh.woff2) format('woff2');
}

@font-face {
  font-family: 'Nunito';
  font-style: italic;
  font-weight: 200 1000;
  font-display: swap;
  src: url(https://fonts.gstatic.com/s/nunito/v26/XRXX3I6Li01BKofIMNaDRs7nczIH.woff2) format('woff2');
}

@font-face {
  font-family: 'Nunito';
  font-style: normal;
  font-weight: 200 1000;
  font-display: swap;
  src: url(https://fonts.gstatic.com/s/nunito/v26/XRXV3I6Li01BKofINeaBTMnFcQ.woff2) format('woff2');
}

:root {
  --global-color-light: #F8CEE2;
  --global-color-x-light: #FFF2F8;
  --global-color-dark: #383C8F;
  --global-color-x-dark: #E1E2FA;

  --global-borderRadius: 24px;
  --global-borderWidth: 2px;

}

html {
  background-color: #FFFFFF;
  color: var(--global-color-dark);
  font-family: 'Nunito', sans-serif;
  font-size: 16px;
  line-height: 1.5;
  box-sizing: border-box;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-padding-top: 75px;
  scroll-behavior: smooth;
}

@media screen and (min-width: 768px) {
  html {
    font-size: 18px;
    line-height: 1.33;
    scroll-padding-top: 91px;
  } 
}

*,
*:before,
*:after {
    box-sizing: inherit;
}

h1 {
  font-family: 'Fredoka', sans-serif;
  font-size: 2.375rem;
  font-weight: 600;
  line-height: 1.2;
}

h2 {
  font-family: 'Fredoka', sans-serif;
  font-size: 1.75rem;
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: 1.25rem;
}

h3 {
  font-family: 'Nunito', sans-serif;
  font-style: italic;
  font-size: 1.375rem;
  font-weight: 300;
  line-height: 1.2;
  margin-bottom: 2.5rem;
}

@media screen and (min-width: 768px) {
  h1 {
    font-size: 3.44rem;
  } 

  h2 {
    font-size: 2.66rem;
    margin-bottom: 2.22rem;
  }

  h3 {
    font-size: 1.77rem;
    margin-bottom: 3.33rem;
  }
}

span {
  font-size: 1.125rem;
}

.button {
  display: block;
  text-decoration: none;
  background-color: var(--global-color-light);
  color: var(--global-color-dark);
  font-family: 'Nunito', sans-serif;
  text-transform: uppercase;
  font-weight: 700;
  font-size: 0.875rem;
  text-align: center;
  padding: 0.625rem 0.625rem;
  border-radius: var(--global-borderRadius);
  border: var(--global-borderWidth) solid var(--global-color-dark);
  margin-top: 1.25rem;
}
.button:hover {
  background-color: var(--global-color-dark);
  color: var(--global-color-light);
}

.container {
  padding-left: 2rem;
  padding-right: 2rem;
}

@media screen and (min-width: 768px) {
  .button {
    font-size: 1rem;
    width: fit-content;
    min-width: 11.33rem;
    padding: 0.44rem 1.33rem;
  }

  .container {
    max-width: 69rem;
    padding: 0 4rem;
    margin-left: auto;
    margin-right: auto;
  }
}



nav {
  display: flex;
  flex-direction: column;
}

nav a {
  color: var(--global-color-light);
  font-family: 'Fredoka', sans-serif;
  text-decoration: none;
  text-transform: uppercase;
  font-weight: 600;
}

nav a:hover {
  text-decoration: underline;
  text-decoration-color: var(--global-color-light);
  text-decoration-thickness: 2px;
}

footer {
  background-color: var(--global-color-dark);
  color: var(--global-color-light);
  width: 100vw;
  padding: 3.75rem 0;
}

footer picture,
footer img {
  max-height: 120px;
  width: 80px;
}

footer nav {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2.5rem;
}

footer nav div {
  gap: 0.5rem;
  text-align: center;
  display: inline-flex;
  flex-direction: column;
}

@media screen and (min-width: 768px) {
  footer {
    padding: 3.33rem 7.5rem;
  }

  footer nav {
    flex-direction: row;
    justify-content: space-between;
  }

  footer nav div {
    gap: 0.44rem;
    text-align: right;
  }
}

header {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 10;
}

.navbar-mobile {
  display: flex;
  justify-content: space-between;
  flex-direction: column;
  align-items: start;
  background-color: var(--global-color-dark);
  color: var(--global-color-light);
  padding: 1rem 2.25rem;
}

.navbar-mobile_header {
  display: flex;
  justify-content: space-between;
  flex-direction: row;
  align-items: center;
  width: 100%;
}

.menu-toggle {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 0.875rem;
  width: 1rem;
}

.menu-toggle .bar {
  width: 100%;
  height: 2px;
  background-color: var(--global-color-light);
  border-radius: 5px;
  transition: all 0.3s ease-in-out;
}

.menu-toggle.active .bar:nth-child(1) {
  transform: rotate(35deg) translate(4px, 1px);
  transform-origin: top left;
}

.menu-toggle.active .bar:nth-child(2) {
  transform-origin: center;
  width: 0;
}

.menu-toggle.active .bar:nth-child(3) {
  transform: rotate(-35deg) translate(2px, 1px);
  transform-origin: bottom left;
}

.nav-links {
  list-style: none;
  overflow: hidden;
  max-height: 0;
  transition: all 0.2s ease-in-out;
  background-color: var(--global-color-dark);
  width: 100%;
  text-align: center;
  font-size: 1.5rem;
  font-weight: bold;
  text-align: left;
}

.nav-links.active {
  max-height: fit-content;
  padding-bottom: 2.5rem;
  padding-top: 1.875rem;
  transition: all 0.2s ease-in-out;
}

.nav-links li + li {
  margin-top: 1.25rem;
}

.nav-links a {
  color: var(--global-color-light);
  text-decoration: none;
}

.navbar-mobile .logo img{
  height: 2.5rem;
}

.navbar-desktop {
  display: none;
}

/* Desktop styles */
@media (min-width: 768px) {
  .navbar-mobile {
    display: none;
  }
  .navbar-desktop {
    display: block;
    background-color: var(--global-color-dark);
    padding: 1rem 0;
    height: fit-content;
  }
  .navbar-desktop_header {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 4.17rem;
  }
  .navbar-desktop_header .logo {
    height: 55px;
  }

  .navbar-desktop a + a {
    margin-left: 1.33rem;
  }
}

section {
  display: block;
  padding: 3.33rem 0;
}

#skills {
  padding-bottom: calc(3.33rem - 40px);
}

@media screen and (min-width: 768px) {
  section {
    padding: 6.66rem 0;
  }

  #skills {
  padding-bottom: calc(6.66rem - 40px);
}
}


#hero {
  background: #383C8F;
  background: radial-gradient(circle at bottom right, var(--global-color-light) 0%, var(--global-color-dark) 60%);
}

.hero-flex {
  padding-top: 0.82rem;
  padding-left: 2rem;
  padding-right: 2rem;
  display: flex;
  flex-direction: column;
}

#hero-image {
  width: 80vw;
  height: auto;
  max-height: 500px;
  order: -1;
  margin: 0 auto;
  display: flex;
  justify-content: center;
}

#hero h1 {
  color: var(--global-color-light);
  text-wrap: balance;
}

#hero p {
  color: var(--global-color-light);
  font-family: 'Nunito', sans-serif;
  font-style: italic;
  font-weight: 200;
  font-size: 1.25rem;
  line-height: 1.375rem;
}

@media screen and (min-width: 768px) {
  #hero {
    background: #383C8F;
    background: radial-gradient(circle at bottom center, var(--global-color-light) 0%, var(--global-color-dark) 60%);
  }

  .hero-flex{
    max-width: 69rem;
    padding: 0 4rem;
    margin-left: auto;
    margin-right: auto;
    flex-direction: row;
    justify-content: space-between;
    padding-top: 9.375rem;
    align-items: center;
    gap: 5.16rem;
  }
  
  #hero-image{
    order: 0;;
  }
  #hero-image img{
    max-height: 24.44rem;
    width: 100%;
  }

  #hero p{
    max-width: 21.7rem;
    font-size: 1.56rem;
    line-height: 1.78rem;
  }
}

#work {
  background-color: var(--global-color-x-light);
}

.work-cards {
  display: flex;
  flex-direction: row;
  gap: 1rem;
  overflow-x: scroll;
  overflow-y: hidden;
}

.work-card{
  background-color: var(--global-color-light);
  border-radius: var(--global-borderRadius);
  height: auto;
  position: relative;
  display: flex;
  align-items: stretch;
  aspect-ratio: 1/1;
  max-height: 18rem;
  min-width: fit-content;
}

.work-card a {
  height: 100%;
}

.work-card p {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  -ms-transform: translate(-50%, -50%);
  text-align: center;
  color: var(--global-color-dark);
  font-family: 'Fredoka', sans-serif;
  text-decoration: none;
  text-transform: uppercase;
  font-weight: 900;
  font-size: 1.125rem;
  opacity: 0;
}

.work-card:hover img {
  opacity: 0;
  transition: opacity 0.2s ease-in-out;
}

.work-card:hover p {
  opacity: 1;
  transition: opacity 0.2s ease-in-out;
}

.work-card img {
  border-radius: var(--global-borderRadius);
  height: 100%;
  min-height: 288px;
  object-fit: cover;
  max-width: 100%;
  aspect-ratio: 1/1;
}

@media screen and (min-width: 768px) {
  .work-card {
    max-height: 19.56rem;
    width: 32%;
    min-width: auto;
  }

  .work-card p {
    font-size: 1.33rem;
    line-height: 1.77rem;
  }

  .work-cards {
    gap: 1.11rem;
    flex-wrap: wrap;
    overflow:visible;
  }
}

#about-image {
  height: auto;
  max-width: 18rem;
}

#about-image img {
  margin-top: 1.25rem;
}

#about p {
  line-height: 1.5rem;
  max-width: 24.7rem;
}

#about {
    padding-top: 3.33rem;
    padding-bottom: 3.33rem;
}

@media screen and (min-width: 768px){
  #about {
    padding-top: 6.66rem;
    padding-bottom: 6.66rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  #about-image {
    height: auto;
    max-width: 24.72rem;
    min-width: 40%;
  }

  #about-image img {
    width: 100%;
    height: auto;
  }
}

#skills {
  background-color: var(--global-color-x-dark);
}

#skills .skills-list {
  display: flex;
  flex-direction: column;
}
.skills-list > div > div {
  display: flex;
  margin-bottom: 1rem;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
  align-items: baseline;
}
.skills-list p {
  font-weight: 500;
}

.skills-list picture {
  height: 1rem;
}

@media screen and (min-width: 768px) {
  #skills .skills-list {
    flex-direction: row;
    justify-content: space-between;
    max-width: 52rem;
  }

  .skills-list p {
    font-size: 1.44rem;
  }

  .skills-list > div > div {
    justify-content: space-between;
  }
}

#contact {
  display: flex;
  justify-content: space-between;
}

#contact a {
  text-decoration: none;
  color: var(--global-color-dark);
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.375rem;
  margin-top: 0.125rem;
}

#contact p {
  font-size: 1.1875rem;
  line-height: 2.375rem;
  font-weight: 700;
}

#contact .desktop {
  display: none;
} 

#contact .mobile img{
  display: block;
  height: auto;
}

.socials {
  display: flex;
  gap: 1.25rem;
  margin-top: 1.25rem;
}

.socials svg {
  height: 32px;
  width: 32px;
}

.socials a:hover svg .cls-1,
.socials a:hover svg .cls-2 {
  fill: var(--global-color-light);
  transition: fill 0.1s ease-in-out;
}

a:hover #Linkedin-icon path,
a:hover #Linkedin-icon rect,
a:hover #Linkedin-icon circle {
  stroke: var(--global-color-light);
  fill: var(--global-color-light);
  transition: all 0.1s ease-in-out;
}


@media screen and (min-width: 768px) {
  #contact .desktop {
    display: block;
  }
  #contact .mobile {
    display: none;
  }

  #contact.container {
    padding: 6.66rem 4rem;
  }

  #contact p {
    font-size: 1.44rem;
    line-height: 2.11rem;
  }

  #contact a {
    line-height: 1.33rem;
    margin-top: 0.25rem;
  }

  .socials {
    margin-top: 1.11rem;
    gap: 1.11rem;
  }

  #contact .desktop img {
    max-height: 15.44rem;
}
}
.work {
  padding-top: 7.5rem;
  background-color: var(--global-color-x-light);
}

.work-images {
  margin-top: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.work-images img {
  max-width: 100%;
  border-radius: var(--global-borderRadius);
}

.work p {
  line-height: 1.5rem;
  max-width: 35ch;
  text-wrap: pretty;
}

.work h2 {
  margin-top: 1.875rem;
}

.back {
  color: var(--global-color-dark);
  font-style: italic;
  font-weight: 600;
  text-decoration: none;
}

img.square {
  aspect-ratio: 1/1;
  object-fit: cover;
}

img.rectangle {
  aspect-ratio: 288/210;
  object-fit: cover;
}

@media screen and (min-width: 768px) {
  .work {
    margin-top: 91px; 
    padding-top: 7.5rem;
  }

  .work h2 {
    margin-top: 3.33rem;
    margin-bottom: 2.22rem;
  }

  .work p {
    max-width: 50ch;
    line-height: 1.33rem;
  }

  .work-images {
    flex-direction: row;
    gap: 1.11rem;
    flex-wrap: wrap;
    align-items: stretch;
  }

  .rectangle.last {
    order: 1;
  }

  img.rectangle {
    flex-grow: 2;
    max-width: 56%;
  }

  img.square {
    flex-grow: 1;
    max-width: 40%;
  }

  h3 {
    margin-top: 6.66rem;
  }
}

#more-projects {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 3.75rem;
}


@media screen and (min-width: 768px) {
  #more-projects {
    flex-wrap: nowrap;
    flex-direction: row;
    gap: 1.11rem;
    margin-bottom: 7.5rem;
  }

  #more-projects li {
    width: fit-content;
  }
}

.detail-page-card{
  background-color: var(--global-color-light);
  border-radius: var(--global-borderRadius);
  height: auto;
  position: relative;
}

.detail-page-card a {
  height: 100%;
}

.detail-page-card p {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  -ms-transform: translate(-50%, -50%);
  text-align: center;
  color: var(--global-color-dark);
  font-family: 'Fredoka', sans-serif;
  text-decoration: none;
  text-transform: uppercase;
  font-weight: 900;
  font-size: 1.125rem;
  opacity: 0;
}

.detail-page-card a:hover img {
  opacity: 0;
  transition: opacity 0.2s ease-in-out;
}

.detail-page-card a:hover p {
  opacity: 1;
  transition: opacity 0.2s ease-in-out;
}

.detail-page-card img {
  border-radius: var(--global-borderRadius);
  height: 100%;
  object-fit: cover;
  max-width: 100%;
  aspect-ratio: 288 / 188;
}

@media screen and (min-width: 768px) {
  .detail-page-card p {
    font-size: 1.33rem;
    line-height: 1.77rem;
  }

  .detail-page-card {
    max-height: 19.56rem;
  }
  .detail-page-card img {
    max-height: 19.56rem;
  }
}

.text-image {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.responsive-iframe {
    position: relative;
    margin-top: 1rem;
    padding-bottom: 56.25%;
        /*aspect ratio 16:9 */
    height: 0; 
    overflow: hidden;
}

.responsive-iframe iframe {
    width: 100%;
    height: 100%;
    position: absolute;
    left: 0;
    top: 0;
}

@media screen and (min-width: 768px)  {
  .text-image {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: 1.11rem;
  }

  .text-image img {
    max-width: 50%;
    height: auto;
  }

  .text-image p {
    max-width: 50%;
  }

  .work h2 {
    max-width: 18ch;
    text-wrap: pretty;
  }

  .responsive-iframe {
    margin-top: 1.11rem;
  }
}

@keyframes slide {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-100%);
  }
}

.skill-logos{
  overflow: hidden;
  padding: 60px 0;
  white-space: nowrap;
  position: relative;
}

.skill-logos:before,
.skill-logos:after {
  position: absolute;
  top: 0;
  width: 250px;
  height: 100%;
  content: "";
  z-index: 2;
}

.skill-logos:before {
  left: 0;
  background: linear-gradient(to left, rgba(255, 255, 255, 0), var(--global-color-x-dark));
}

.skill-logos:after {
  right: 0;
  background: linear-gradient(to right, rgba(255, 255, 255, 0), var(--global-color-x-dark));
}

.skill-logos:hover .skill-logos-slide {
  animation-play-state: paused;
}

.skill-logos-slide {
  display: inline-block;
  animation: slide 35s infinite linear;
}

.skill-logos-slide img {
  height: 50px;
  margin: 0 40px;
}
