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

* {
    box-sizing: border-box;
    scroll-behavior: smooth;
    font-size: 100%;
}

.transition-fade {
  opacity: 1;
  transition: 750ms;
}

html.is-animating .transition-fade {
  opacity: 0;
}

html.is-leaving .transition-fade {
  opacity: 0;
}

html[theme="light"]{
  --background: rgb(255, 255, 255);
  --background50: rgba(255, 255, 255, 0.8);
	--container-bg: rgba(0, 0, 0, 0.75);
	--container-shadow: -3px 3px 0 rgba(0, 0, 0, 1);
	--text-color: rgb(0, 0, 0);
  --link-color: rgb(100, 100, 100);
  --link-hover: rgb(0, 0, 0);
  --link-before: rgb(255, 255, 255);
  --link-after: rgb(0, 0, 0);
  --text-shadow: 1px 1px 0px #c7c7c7, 2px 2px 0px #c7c7c7, 3px 3px 0px #c7c7c7;
  --underline-color: rgb(0, 0, 0);
}
html[theme="dark"]{
  --background: rgb(25, 25, 25);
  --background50: rgba(25, 25, 25, 0.8);
	--container-bg: rgba(255, 255, 255, 0.75);
	--container-shadow: -3px 3px 0 rgba(250, 250, 250, 1);
	--text-color: rgb(255, 255, 255);
  --link-color: rgb(150, 150, 150);
  --link-hover: rgb(255, 255, 255);
  --link-before: rgb(255, 255, 255);
  --link-after: rgb(0, 0, 0);
  --text-shadow: 1px 1px 0px #545454, 2px 2px 0px #545454, 3px 3px 0px #545454;
  --underline-color: rgb(255, 255, 255);
}

body {
  font-family: 'Poppins', sans-serif;
  background: var(--background);
  margin: 0;
  padding: 0;
}

.top-navigation {
  display: flex;
  flex-direction: row;
  justify-content: space-evenly;
  align-items: center;
  margin: 25px 80px;
}

.top-navigation li {
  display: inline-block;
  list-style: none;
  margin: 0 0.5em;
  padding: 0;
  color: var(--link-color);
}

@media screen and (max-width:600px) {
  .top-navigation{
    flex-direction: column;
    justify-content: center;
    margin: 10px 0;
    padding: 0;
  }
  .top-navigation li {
    margin: 0 10px;
  }
}


.logo img {
  max-width: 40px;
  width: auto;
  display: flex;
  justify-content: center;
}

.top-navigation a {
  display: inline-block;
  text-decoration: none;
  font-weight: 500;
}

.top-navigation i {
  margin: 0 10px;
}


.underline-animation {
  color: var(--link-color);
  display: inline-block;
  position: relative;
}

.underline-animation:after {
  content: '';
  position: absolute;
  width: 100%;
  transform: scaleX(0);
  height: 2px;
  bottom: 0;
  left: 0;
  background-color: var(--underline-color);
  transform-origin: bottom right;
  transition: transform 0.3s ease-out;
}

.underline-animation:hover:after {
  transform: scaleX(1);
  transform-origin: bottom left;
}

.fade-animation {
  color: var(--link-color);
  transition: 0.3s ease-out;
}

.fade-animation:hover {
  color: var(--link-hover);
}


/* THEME TOGGLE BUTTON */

.toggle {
  display: flex;
  justify-content: center;
  align-items: center;
}

.toggle input[type="checkbox"] {
  height: 0;
	width: 0;
	visibility: hidden;
}

.toggle label {
  cursor: pointer;
  width: 52px;
  height: 27px;
  background: rgb(128, 128, 128);
  float: right;
  border-radius: 100px;
  position: relative;
}

.toggle label:after {
  content: '';
  position: absolute;
  top: 3.4px;
  left: 5px;
  width: 20px;
  height: 20px;
  background-color: #fff;
  border-radius: 90px;
  transition: 0.3s;
}

.toggle input:checked + label {
  background: rgb();
}

.toggle input:checked + label::after {
  left: calc(100% - 5px);
  transform: translateX(-100%);
}

.welcome-section {
  width: 100%;
  height: 90vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: left;
  line-height: 1;
  margin: 0;
  padding: 0;
  color: var(--text-color);
}

.welcome-section h1 {
  font-size: 6em;
  margin: 0;
}

.welcome-section h2 {
  font-size: 5.5em;
  margin: 0;
}

.welcome-section p {
  font-size: 1em;
  font-weight: 200;
  font-style: italic;
  margin: 0;
}

@media screen and (max-width:600px) {
  .welcome-section {
    height: 30vh;
    margin-bottom: 10em;
  }
  .welcome-section h1 {
    font-size: 5em;
  }
  .welcome-section h2 {
    font-size: 4.5em;
  }
  .welcome-section p {
    font-size: 0.85em;
  }
}

@media screen and (max-width:400px) {
  .welcome-section {
    height: 30vh;
    margin-bottom: 10em;
  }
  .welcome-section h1 {
    font-size: 4em;
  }
  .welcome-section h2 {
    font-size: 3.5em;
  }
  .welcome-section p {
    font-size: 0.85em;
  }
}


.about-section {
  color: var(--text-color);
  margin-bottom: 100px;
}

.container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(100px, 500px));
  justify-content: center;
}

.about-image {
  display: flex;
  justify-content: center;
  margin-right: 50px;
}

img {
  max-width: 100%;
  max-height: 100%;
}

.about-info {
  padding: 1em;
  position: relative;
}

.about-info h2 {
  font-size: 2.5em;
  margin: 0 20px;
  font-weight: 600;
}

.about-info h3 {
  margin: 10px 20px;
}

.about-section p {
  font-size: 1em;
  font-weight: 200;
  margin: 0;
}

.knowledge {
  padding: 1rem;
  margin-top: 100px;
}

.knowledge h2 {
  font-size: 2.5em;
  margin: 0 20px;
  font-weight: 600;
}

.skills {
  display: grid;
  grid-template-columns: repeat(auto-fit,minmax(100px,1fr));
  font-size: 4em;
  gap: 15px;
}

.skills svg {
  align-self: center;
  justify-self: center;
}


.projects-section {
  padding: 1rem;
  color: var(--text-color);
}

.projects-section h2 {
  font-size: 2.5em;
  margin: 0 20px;
}

.grid-projects {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 15px;
}

.project-card {
  display: flex;
  flex-direction: column;
  justify-content: end;
  align-items: center;
  border: 2px solid;
  border-color: var(--link-hover);
  border-radius: 10px 10px 0 0;
  transition: 250ms;
}

.project-card a {
  text-decoration: none;
  cursor: pointer;
}

.project-card:hover {
  box-shadow: var(--container-shadow);
}

#project_todo {
  background-image: url("res/project_todo.jpg");
  background-position: center;
  background-size: cover;
}

#project_palindrome {
  background-image: url("res/project_palindrome.jpg");
  background-position: center;
  background-size: cover;
}

#project_weather {
  background-image: url("res/project_weather.jpg");
  background-position: center;
  background-size: cover;
}

#project_memorygame {
  background-image: url("res/project_memorygame.jpg");
  background-position: center;
  background-size: cover;
}

#project_okeystreamer {
  background-image: url("res/project_.jpg");
  background-position: center;
  background-size: cover;
}

#project_raulpop {
  background-image: url("res/project_raulpop.jpg");
  background-position: center;
  background-size: cover;
}

#project_soon {
  background-image: url("res/project_soon.jpg");
  background-position: center;
  background-size: cover;
}


.project-title {
  width: 100%;
  padding: 10px;
  margin: 0;
  margin-top: 250px;
  font-size: 1.2em;
  font-weight: 400;
  background-color: var(--background50);
}

.project-description {
  width: 100%;
  padding: 10px 25px 30px;
  margin: 0;
  font-size: 0.9em;
  font-weight: 300;
  background-color: var(--background50);
}






.contact-section {
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  height: 50vw;
  padding: 1rem;
  color: var(--text-color);
}

.contact-mail {
  font-size: 2em;
  font-weight: 200;
}

.mail a {
  color: var(--link-hover);
  text-decoration: none;
}
.mail a span {
  font-weight: 200;
  transition: all 0.5s;
  border-bottom: 1px solid;
}
.mail a:hover span {
  font-weight: 700;
}
.mail a:hover span:nth-child(1) {
  transition-delay: 0s;
}
.mail a.hover-shadow:hover {
  text-shadow: var(--text-shadow);
}
.mail a.hover-color:hover {
  border-color: var(--link-hover);
}

@media screen and (max-width:600px) {
  .about-section h2 {
    font-size: 1.5em;
  }
  .projects-section h2 {
    font-size: 1.5em;
  }
  .contact-section h2 {
    font-size: 1.5em;
  }
}


footer {
  display: flex;
  justify-content: center;
  margin: 0 10px;
  margin-bottom: 2em;
  gap: 5em;
}

footer p {
  color: var(--text-color);
}

footer a {
  display: inline-block;
  margin: 0 0.3em;
  color: var(--link-color);
  text-decoration: none;
  font-weight: 400;
}

@media screen and (max-width:600px) {
  footer {
    flex-direction: column;
    align-items: center;
    margin-top: 5em;
    padding: 0;
    gap: 0;
  }
  footer p {
    font-size: 1em;
    margin: 5px 0;
  }
}
