@import url('https://fonts.googleapis.com/css2?family=Dosis:wght@200;300;400;500;600;700;800&family=Open+Sans:wght@300&display=swap');
* {
  border: 1px solid transparent;
}
:root {
  --color1: #c6fad6;
  --color2: #ffffd3;
  --color3: #ab96db;
  font-size: 20px;
  scroll-behavior: smooth;
}
body {
  margin: 0;
  padding: 0;
  background-color: var(--color3);
  font-family: 'Dosis', sans-serif;
}

nav {
  position: fixed;
  top: 0;
  background: var(--color3);
  z-index: 1;
  color: rgb(255, 255, 255);
}

nav ul {
  list-style-type: none;
  padding: 0;
  margin: 0;
  display: flex;
  justify-content: right;
  align-items: center;
  height: 60px;
  width: 100vw;
}

nav a {
  display: inline-block;
  text-decoration: none;
  color: inherit;
  padding: 19px;
  font-size: 1rem;
}

#welcome-section {
  margin-top: 120px;
  height: 100vh;
  background: var(--color2);
  position: relative;
  color: rgb(28, 28, 28);
}

.img-container {
  position: absolute;
  right: 50px;
  width: 300px;
  height: 300px;
  margin-top: 150px;
  margin-right: 10px;
  border-radius: 50%;
}

.circle-p {
  position: absolute;
  top: 25px;
  right: 23px;
  width: 250px;
  height: 250px;
  border-radius: 50%;
  border: 3px solid rgb(149, 94, 149);
  animation: rotation-p 2s infinite linear;
  transition: opacity 200ms;
}
.dot-p {
  width: 15px;
  height: 15px;
  background-color: rgb(149, 94, 149);
  border-radius: 50%;
  position: absolute;
  top: -8px;
  right: 110px;
}
@keyframes rotation-p{
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(-360deg);
  }
}
.circle-g {
  position: absolute;
  top: 3px;
  right: 3px;
  width: 290px;
  height: 290px;
  border-radius: 50%;
  border: 3px solid #89bac2;
  animation: rotation-g 3s linear infinite;
  transition: opacity 200ms;
}
.dot-g {
  width: 15px;
  height: 15px;
  background-color: #89bac2;
  border-radius: 50%;
  position: absolute;
  top: -8px;
  right: 110px;
}
@keyframes rotation-g{
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

#welcome-section img {
  margin: 40px;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  transition: transform 250ms, border 250ms;
}
#welcome-section .img-container:hover img {
  border: 7px solid var(--color3);
  transform: scaleX(1.2) scaleY(1.2);
}
#welcome-section .img-container:hover .circle-p, #welcome-section .img-container:hover .circle-g {
  opacity: 0;
}

#welcome-section h1, #welcome-section p {
  margin-left: 70px;
  margin-right: 200px;
}
h1 {
  margin-top: 220px;
  font-size: 2rem;
}
h2 {
  text-align: center;
}
#projects {
  background-color: var(--color1);
  height: 800px;
  color: white;
}

#projects h2 {
  color: rgb(28, 28, 28);
}
.container {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: space-around;
  padding: 50px;
  padding-top: 0;
  width: 80%;
  margin: auto;
}
.project-tile {
  flex-basis: 40%;
  background-color: var(--color3);
  margin: 20px;
  height: 280px;
  border-radius: 5px;
  transition: transform 200ms, box-shadow 200ms;
}

.project-tile:hover {
  box-shadow: -18px 15px 3px #95cf93;
  transform: translateY(-10px) translateX(5px);
}

#projects h3 {
  padding-top: 18px;
  padding-bottom: 18px;
  margin-top: 0;
  font-weight: 600;
}

.project-tile img {
  width: 100%;
  height: 70%;
  object-fit: cover;
  padding-top: 0;
  margin-top: -5px;
}
#projects a {
  text-align: center;
  text-decoration: none;
  color: inherit;
}
#contact {
  height: 250px;
  background-color: var(--color2);
}
#contact p, #contact {
  text-align: center;
}
#contact p {
  color: #2e1c5b;
}
#contact a {
  display: inline-block;
  font-size: 2rem;
  margin: 10px;
  padding: 5px;
  color: #6641be;
  transition: transform 100ms,
  color 100ms;
}
#contact a:hover {
  transform: translateY(-7px);
  color: var(--color3);
}
#contact p {
  margin-top: 50px;
  margin-bottom: 0;
  font-size: 1.1rem;
}
footer {
  background-color: var(--color3);
  height: 35px;
}
footer p {
  margin: 5px;
  display: inline-block;
  font-size: 0.9rem;
}
footer p:nth-child(2) {
  position: absolute;
  right: 3px;
}



nav li:hover {
  background-color: #c5b2f2;
  letter-spacing: 1.1;
}
@media only screen and (max-width:400px) {
#welcome-section .img-container {
  margin-left: 20%;
    transform: scaleX(.9) scaleY(.9);
  }
}
@media only screen and (max-width:700px) {
  :root {
    font-size: 18px;
  }
.img-container {
    position: relative;
    margin-left: 30%;
    margin-right: 30%;
    margin-top: 70px;
  }
  #welcome-section h1, #welcome-section p {
    width: 100%;
    margin-left: auto;
    Text-align: center;
}
#welcome-section h1 {
  margin-top: 50px;
}
#projects {
  height: 1500px;
}
.container {
  height: 1450px;
  display: block;
  margin-left: auto;
  width: 80%;
  padding: 10%;
}
#projects h2 {
  margin-top: 80px;
}
.project-tile {
  display: block;
  width: 90%;
  max-width: 300px;
  flex-grow: 0;
  height: 270px;
  margin: auto;
  margin-bottom: 50px;
}
#contact {
  height: 220px;
}
#contact p {
  margin-top: 18px;
}
#contact i {
  font-size: 1.9rem;
}
footer {
  height: 60px;
}
footer p {
  display: block;
}
}
@media only screen and (max-width: 850px) {
  #projects h3 {
    font-size: .95rem;
  }
}
@media only screen and (max-width:420px) {
  #contact {
    height: 240px;
  }
  #contact h2 {
    font-size: 1.2rem;
  }
}
@media only screen and (min-width: 1100px) {
  .project-tile {
    flex-basis: 25%;
    height: 250px;
  }
}

.portfolio-warning {
  margin: auto;
  padding-inline: 1rem;
  width: 100%;
  background-color: rgb(181, 0, 0);
  display: flex;
  justify-content: center;
  align-items: center;
  color: white;
  padding-block: 4px;

  a {
    text-decoration: revert;
    font-weight: 600;
  }

  @media (max-width: 600px) {
    display: block;
  }
}