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

:root {
  --text-color: #333;
  --hero-border-color: #55f;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: 'Poppins', Arial, sans-serif;
  scroll-behavior: smooth;
  color: var(--text-color);
}

body {
  max-width: 1440px;
  margin: 0 auto;
}

img {
  max-width: 100%;
}

.hero {
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  position: relative;
}

.hero::before {
  content: '';
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  z-index: -1;
  background: url('./hero2.jpg');
  background-size: cover;
  background-position: center;
  filter: opacity(.35) blur(3px) brightness(.50);
}

.hero h1 {
  position: relative;
  font-size: 30px;
  font-weight: 400;
  line-height: 60px;
  text-align: center;
}

.hero h1::before {
  content: '';
  width: 75%;
  height: 100%;
  padding: 20px 0;
  position: absolute;
  top: -20px;
  left: 12.5%;
  z-index: -1;
  border-top: 3px solid var(--hero-border-color);
  border-bottom: 3px solid var(--hero-border-color);
  border-radius: 15px 0 15px 0;
}

.hero__name {
  font-weight: 600;
  font-size: 60px;
}

.hero a {
  margin-top: 50px;
  width: 40px;
  height: 20px;
}

.hero svg {
  animation: goToDown 1.5s alternate infinite;
  fill: var(--text-color);
}

.wave {
  display: inline-block;
  cursor: pointer;
  user-select: none;
  /* animation: wave .7s .3s ease-in-out; */
}

.wave:hover {
  animation-play-state: running;
}

section {
  padding: 0 50px;
}

h2 {
  font-weight: 400;
  font-size: 50px;
  text-align: center;
  padding: 40px 0;
}

/* About Me section */

.about__content {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  align-items: center;
  gap: 15px;
}

.about__texts {
  font-size: 20px;
  padding: 0 40px;
  text-wrap: balance;
  grid-column: 1/-2;
}

.about__subtitle {
  font-size: 24px;
}

.about__photo {
  max-width: 300px;
  width: 100%;
}


/* Skills section */

.skills__gallery {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 25px;
  margin: 0px 15px 0;
}

.skills__item {
  min-width: 200px;
  max-width: 300px;
  width: 30%;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-start;
  align-content: flex-start;
  gap: 5px;
}

.skills__item h3 {
  width: 100%;
  text-align: center;
  font-weight: 400;
  font-size: 20px;
}

.skills__item figure {
  width: 80px;
  height: 80px;
  border: 1px solid #0002;
  border-radius: 5px;
  filter: opacity(.7);
  transition: filter .2s;
}

.skills__item figure:hover {
  filter: none;
}

.skills__item img {
  width: 100%;
  height: 100%;
}



/* Experience section */

.experience__gallery {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 15px;
  margin: 30px 15px 0;
}

.experience__item {

  width: 100%;
  min-width: 300px;
  max-width: 350px;
  border-radius: 7px;
  flex: 1 0 auto;
  overflow: hidden;
  box-shadow: 0px 1px 5px 2px rgba(0, 0, 0, 0.1);
}

.experience__item:hover img {
  transform: scale(1.1);
}

.experience__item figure {
  margin: 0;
  overflow: hidden;
}

.experience__item img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  transition: transform .3s;
}

.experience__info {
  padding: 10px 15px;
  display: flex;
  flex-direction: column;
  text-align: center;
}


.info__position-wrapper {
  font-style: italic;
  margin-left: auto;
  font-size: 10px;
  line-height: 1.1;
  text-align: end;
  margin-bottom: 10px;
}

.info__position {
  font-size: 16px;
}

.info__tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  list-style: none;
}

.info__tag {
  padding: 2px 10px;
  border-radius: 25px;
  background-color: #0002;
  color: var(--text-color);
  font-size: 12px;
}

.info__links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  margin-top: 10px;
}

.info__links a {
  display: inline-block;
  margin: 5px 0;
  font-size: 14px;
  text-decoration: none;
  color: var(--text-color);
  text-decoration: underline;
  min-width: 60px;
  text-align: center;
}

.info__links a.disabled {
  color: #0004;
  user-select: none;
  text-decoration: none;
}

.info__links a:hover.disabled {
  color: #0004;
}

.info__links a:hover {
  color: var(--hero-border-color);
}

.contact {
  display: flex;
  flex-direction: column;
  padding-bottom: 60px;
}

.contact__container {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
}

.contact__container--figure {
  width: 300px;
}

.contact__container--figure img {
  width: 100%;
}

.contact__texts {
  padding: 20px 40px;
  border-radius: 25px 0 25px 0;
  border: 2px solid var(--hero-border-color);
  font-size: 20px;
  text-align: center;
}

.contact__texts a {
  font-weight: 600;
  font-size: 16px;
  color: var(--hero-border-color);
}

@media screen and (max-width:1024px) {
  .about__texts {
    font-size: 16px;
  }
}

@media screen and (max-width:768px) {

  h2 {
    font-size: 40px;
  }

  .about__content {
    grid-template-rows: repeat(5, 1fr);
  }

  .about__texts {
    grid-row: 3/-1;
    grid-column: 1/-1;
    padding: 0 20px;
  }

  .about__photo {
    max-width: 175px;
    justify-self: center;
    grid-row: 1/3;
    grid-column: 1/-1;
  }

  .contact__texts {
    font-size: 14px;
    padding: 20px 20px;
  }

  .contact__container--figure {
    width: 200px;
  }
}

@media screen and (max-width:425px) {

  h2 {
    font-size: 30px;
  }

  section {
    padding: 0 20px;
  }

  .about__texts {
    font-size: 14px;
    padding: 0 10px;
  }

  .about__photo {
    max-width: 175px;
    justify-self: center;
    grid-row: 1/3;
    grid-column: 1/-1;
  }

  .contact__container {
    flex-direction: column;
  }

  .contact__container--figure {
    order: 1;
    margin-top: 15px;
  }
}

@keyframes goToDown {
  to {
    transform: translateY(20px);
  }
}

@keyframes wave {

  0%,
  100% {
    transform: rotateZ(0deg);
  }

  20% {
    transform: rotateZ(-15deg);
  }

  60% {
    transform: rotateZ(15deg);
  }

  80% {
    transform: rotateZ(-10deg);
  }
}