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

/* default  */
* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
}

:root {
  font-size: 62.5%;
  font-family: 'Roboto', sans-serif;
  /* colors */
  --maincolor: #e28743;
  --secondcolor: white;
  --textcolor: black;
}

/* smooth scrolling and scroll padding on whole page */
html {
  scroll-behavior: smooth;
  scroll-padding-top: 10rem;
}

/* If text selected change backgroundcolor */
::selection {
  background: var(--maincolor);
  color: white;
}

body {
  text-align: center;
}

section {
  min-height: 70vh;
  margin-bottom: 4rem;
  padding: 0 3rem;
}

hr {
  border: 4px var(--maincolor) solid;
  width: 3rem;
  margin: 0.7rem auto;
  margin-bottom: 4rem;
  border-radius: 1rem;
}

/* Fontsize sections*/
section h2 {
  font-size: 3rem;
}

section h3 {
  font-size: 2rem;
  margin-top: 4rem;
  margin-bottom: 2rem;
}

section h4 {
  font-size: 1.8rem;
}

section p {
  font-size: 1.8rem;
}

/* Navbar */
nav {
  display: flex;
  justify-content: space-between;
  min-height: 7rem;
  background-color: var(--secondcolor);
  box-shadow: 0px 0px 10px var(--maincolor);

  z-index: 99;
  padding: 0 4rem;
  position: fixed;
  top: 0;
  width: 100%;
}

.name,
.navbar,
.navImg {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  list-style-type: none;
  gap: 3rem;
}

.navImg {
  gap: 1rem;
}

nav h1 {
  font-size: 2rem;
}

/* Links on page*/
a {
  text-decoration: none;
  color: black;
  transition: all 0.3s ease-in-out;
}

.navbar {
  font-weight: 700;
  font-size: 2rem;
}

/* Hovereffect Navbar */
.navImg:hover,
.navbar a:hover {
  color: var(--maincolor);
}

/* Img Navbar */
.navImg {
  flex-wrap: nowrap;
}

.portraitImg {
  border-radius: 50%;
  height: 40px;
  width: 40px;
  object-fit: cover;
  object-position: top;
}

/* If screen <650px display dropdown */
@media (max-width: 650px) {
  .navbar {
    display: none;
  }

  /* Dropdownmenu */
  .dropbtn {
    color: white;
    padding-right: 4rem;
    border: none;
    position: absolute;
    top: 2rem;
    background-color: transparent;
  }

  .dropbtn > img {
    margin-bottom: 1.7rem;
  }

  .dropdown {
    display: flex;
    justify-content: flex-end;
    width: 100%;
    position: fixed;
    z-index: 99;
  }

  /* Content only displayed on hover */
  .dropdown-content {
    display: none;
    position: absolute;
    top: 7rem;
    background-color: var(--secondcolor);
    min-width: 160px;
    z-index: 1;
  }

  /* Links im dropdown */
  .dropdown-content a {
    color: black;
    padding: 17px 16px;
    text-decoration: none;
    display: flex;
    justify-content: center;
    font-size: 2rem;

    transition: all 0.3s ease-in-out;
  }

  /* Hovereffect dropdownmenu */
  .dropdown-content a:hover {
    background-color: var(--secondcolor);
    color: var(--maincolor);
    box-shadow: inset 0 0 5px var(--maincolor);
  }

  /* Zeig Dropdown menu */
  .dropdown:hover .dropdown-content {
    display: block;
  }
}

/* Main */
/* Loading Screen */
.introLoad {
  position: fixed;
  z-index: 99;
  left: 0;
  top: 0;
  width: 100%;
  height: 100vh;
  background-color: var(--maincolor);
  transition: 1s;
}

/* Logo center */
.name-header {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
}

.myName {
  position: relative;
  display: inline-block;
  bottom: -20px;
  font-size: 5rem;
  opacity: 0;
}

/* Gap between Name */
.myName:nth-of-type(1) {
  margin-right: 1rem;
}

.myName.active {
  bottom: 0;
  opacity: 1;
  transition: ease-in-out 0.5s;
}

.myName.fade {
  bottom: 150px;
  opacity: 0;
  transition: ease-in-out 0.5s;
}

/* Introduction section */
.introduction {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  height: 100vh;

  background: url(./images/background.jpg) no-repeat center/cover;
}

/* Logos Intro */
.logosIntro {
  display: flex;
  gap: 1.4rem;
  font-size: 3rem;
  padding: 1rem 1rem;
}

/* Logo color */
.logosIntro i {
  color: var(--maincolor);
  transition: all 0.3s ease-in-out;
}

/* logo hover */
.logosIntro i:hover {
  scale: 1.1;
}

/* Font styling Intro section */
.introduction h2 {
  font-size: 5rem;
}

.introduction p {
  font-size: 1.8rem;
  padding: 0.5rem 0;
}

.introName {
  color: var(--maincolor);
}

/* Button Intro */
.btn.intro {
  padding: 1.5rem 4rem;
  border-radius: 1rem;
  background: var(--maincolor);
  border: none;
  color: white;
  font-weight: bold;
  font-size: 1.7rem;
  transition: all 0.3s ease-in-out;
  animation: pulseBtn 2s infinite;
}

/* Animation for Btn */
@keyframes pulseBtn {
  0% {
    scale: 1;
  }
  50% {
    scale: 1.05;
  }
  100% {
    scale: 1;
  }
}

/* Animation stop on hover */
.btn.intro:hover {
  animation: none;
  cursor: pointer;
}

/* About */

.aboutArticle {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  max-width: 120ch;
  margin: 0 auto;
}

/* Screen >900px */
@media (min-width: 900px) {
  .aboutArticle {
    flex-direction: row;
    gap: 2rem;
    max-width: 150ch;
  }

  section {
    min-height: 50vh;
  }
}

.skills img {
  border-radius: 1rem;
}

/* Projects */
.myProjects {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  flex-grow: 1;
  gap: 2rem;
}

/* Cards */
.projectCards {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
}

/* Card text */
.cardInner {
  display: flex;
  justify-content: center;
  align-items: center;

  opacity: 0;
  transition: all 0.3s ease-in-out;
  position: absolute;
  top: 0%;

  background-color: var(--maincolor);
  width: 100%;
  height: 5rem;
  border-top-right-radius: 2rem;
  border-top-left-radius: 2rem;
}

.cardInner > a {
  color: white;
}

/* Hovereffect cards */
.projectCards:hover .cardInner {
  opacity: 1;
  animation: banner 0.7s ease;
}

/* Animation banner */
@keyframes banner {
  0% {
    height: 0;
  }
  100% {
    height: 5rem;
  }
}

/* Image styling */
.projectImg {
  width: 25rem;
  height: 20rem;
  border-radius: 2rem;
  box-shadow: 0px 0px 10px var(--maincolor);
}

/* Contact */
.formular {
  display: flex;
  flex-direction: column;
  border-radius: 1rem;
  padding: 0 2rem;
  box-shadow: 0px 0px 10px var(--maincolor);
  margin: 0 auto;
  max-width: 60rem;
}

label {
  text-align: left;
  margin: 1rem 0;
  font-size: 1.6rem;
  font-weight: 700;
}

input,
textarea {
  padding: 1rem;
  border-radius: 1rem;
  background-color: rgba(200, 200, 200, 0.2);
  border: none;
}

input {
  min-height: 4rem;
}

/* Focused input fields */
input:focus,
textarea:focus {
  outline: 2px var(--maincolor) solid;
}

/* Submit button */
#submit {
  padding: 1rem;
  background-color: var(--maincolor);
  width: 10rem;
  margin: 1rem 0 1rem 0;
  color: white;
  font-weight: 700;
  align-self: center;
  transition: all ease-in-out 0.3s;
}

/* Submit and Projects Button Hovereffects */
.btn:hover {
  scale: 1.05;
}

/* Footer */
footer {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;

  font-size: 1.6rem;
  background-color: var(--maincolor);
  height: 10rem;
}

footer > p {
  margin-top: 1rem;
  color: white;
  font-size: 1.2rem;
}

.logoLinks {
  font-size: 2rem;
  transition: all 0.3s ease-in-out;
}

.logoLinks i:hover {
  scale: 1.1;
}
