@import url("https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400..900;1,400..900&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Audiowide&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Playball&display=swap");

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Montserrat", sans-serif;
  color: #fff;
}

a {
  text-decoration: none;
  cursor: pointer;
}

a:hover {
  font-size: 17px;
}

body {
  background: linear-gradient(to right, #2980b9, #2c3e50);
}

header{
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 20px;
  margin-right: 20px;
  height: 30px;
  font-size: 20px;
  font-weight: bold;
  font-family: "Audiowide", sans-serif;
}

header a{
  width: 80px;
}

header a:hover{
  font-size: 22px;
  transform: translateX(-10px)
}

section {
  width: 100%;
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  background-image: url("./assets/dgt.avif");
  background-size: cover;
  background-position: bottom;
}

.info {
  width: 100%;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: space-around;
  text-align: left;
  margin: 20px 0;
}

h1 {
  color: #f1f1f1;
  margin: 25px 0;
  font-size: 60px;
  text-align: center;
  font-family: "Playball", cursive;
  opacity: 1;
}

h2 {
  color: #f1f1f1;
  margin-bottom: 30px;
  text-align: center;
  font-family: "Audiowide", sans-serif;
  font-weight: bold;
  opacity: 1;
}

#text {
  width: 35vw;
  font-size: 20px;
  font-weight: 500;
  text-align: center;
  font-family: "Playfair Display", serif;
}

.photo-container {
  border-bottom-right-radius: 50%;
  border-top-left-radius: 50%;
  overflow: hidden;
  height: 200px;
  transition: all 1s;
}

.photo-container:hover {
  transform: translateX(-3px);
}

.photo {
  height: 400px;
  margin-top: -50px;
  transition: all 1s;
}

.tec-text {
  color: #f1f1f1;
  margin-bottom: 20px;
  font-size: 17px;
  font-weight: bold;
}

.tec {
  margin-bottom: 20px;
  width: 66vw;
  height: 160px;
  overflow: hidden;
  white-space: nowrap;
}

.tec-imgs {
  display: inline-block;
  height: 160px;
  animation: animated 15s linear infinite;
}

.skills {
  width: 150px;
  transition: 4s;
}

.skills:hover{
  transform: rotate(360deg);
}

@keyframes animated {
  100% {
    transform: translateX(-100%);
  }
}

main {
  display: flex;
  align-items: center;
  flex-direction: column;
  justify-content: center;
}

h3 {
  font-size: 30px;
  margin-bottom: 30px;
  font-family: "Playfair Display", serif;
}

.container {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
}

.project-container {
  align-items: center;
  justify-content: center;
}

.projects {
  width: 35vw;
  height: 40vh;
  background-size: contain;
  background-repeat: no-repeat;
  background-position-y: center;
  background-position-x: center;
  background-color: #7598d4;
  border-radius: 15px;
  padding: 10px;
  margin: 20px;
  position: relative;
  overflow: hidden;
  transition: 1s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.projects::before {
  content: "";
  position: absolute;
  width: 120px;
  height: 300%;
  bottom: -35vh;
  left: calc(50% - 10vh);
  background: #a2f7ff;

  animation: animate 4s linear infinite;
}

@keyframes animate {
  100% {
    transform: rotate(360deg);
  }
}

.projects::after {
  content: "";
  position: absolute;
  inset: 6px;
  border-radius: inherit;
}

.projects:hover {
  transform: translateY(6px);
}

.projects img {
  z-index: 1;
  position: relative;
  width: 34.4vw;
  height: 38.5vh;
  border-radius: 15px;
  transition: 1s;
}

.projects img:hover {
  transform: translateY(3px);
}

.links {
  margin-left: 20px;
  margin-bottom: -16px;
  height: 60px;

}

.links span {
  color: #fff;
  padding: 5px;
  font-weight: 700;
}

.links a {
  color: #fff;
  font-weight: 500;
  padding: 5px;
}

footer{
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3px;
    font-weight: bold;
}

.contacts-container{
  display: flex;
  align-items: center;
  gap: 50px;
  margin: 20px;
}

.contact{
  height: 120px;
  width: 250px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 7px;
  background-color: #1d4f5e;
  border-radius: 20px;
}

.contact:hover{
  border: 2px solid #1983e6;
  box-shadow: 6px 6px 6px 6px #1983e6, -3px -3px 6px 6px #1983e6, -3px 3px 6px 6px #1983e6, -6px 6px 6px 6px #1983e6 ;
  text-shadow: 6px 6px 6px #1983e6, -6px -6px 6px #1983e6, -6px 6px 6px #1983e6, 6px -6px 6px #1983e6 ;
}

.whats:hover, .email:hover{
  filter: drop-shadow(0px 0px 10px #1983e6);
}

.go-start{
  display: flex;
  justify-content: center;
}

.go-start:hover{
  height: 50px;
  transform: translateY(-10px);
  filter: drop-shadow(0 0 6px #fafafa);
}

@media (max-width: 430px) {

    .info{
        display: block;
    }

    h1, h2, span{
        color: #000;
    }

    #text{
        width: 95vw;
        color: #000;
    }

    .photo-container{
        width: 100vw;
        display: flex;
        justify-content: center;
        border-radius: 0;
    }

    .container{
        grid-template-columns: 1fr;
    }

    .projects {
        width: 80vw;
        height: 20vh;
    }

    .projects img {
        width: 78vw;
        height: 19vh;
    }

    .projects::before {
      bottom: -19vh;
    }

    .contacts-container{
      flex-direction: column;
    }

}