@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;600&display=swap');

:root{
  color-scheme: dark;
}

*{
  margin: 0;
  padding: 0;
}

body{
  font-family: 'Montserrat', sans-serif;
  background: radial-gradient(ellipse at bottom, #0b0c10 0%, #000 100%) !important;
  background-color: #0b0c10 !important;
  color: #e0e0e0;
  overflow-x: hidden;
  position: relative;
  line-height: 1.6;
}

#spaceLayer{
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: -2;
  pointer-events: none;
}

.star{
  position: absolute;
  background: white;
  border-radius: 50%;
  opacity: 0.5;
  animation: twinkle 3s infinite ease-in-out;
  z-index: -1;
}

@keyframes twinkle {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.navbar{
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 3rem;
  background-color: #00000080;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.logo{
  font-size: 2rem;
  font-weight: bold;
  color: #ffffff;
  letter-spacing: 1px;
}

.navigationLinks{
  list-style: none;
  display: flex;
  gap: 2rem;
  align-items: center;
}

.navigationLinks a{
  color: #aaa;
  text-decoration: none;
  font-size: 1.1rem;
  transition: 0.3s;
}

.navigationLinks a:hover{
  color: #fff;
}

.languageButton{
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

.flagIcon{
  height: 35px;
  transition: transform 0.3s;
}

.languageButton:hover .flagIcon{
  transform: scale(1.1);
}

header{
  text-align: center;
  padding: 2rem 2rem;
}

header h2{
  font-size: 3rem;
}

header h2 span{
  color: #7f9cf5;
  text-shadow: 0 0 5px #7f9cf5;
}

header h3{
  margin-top: 0.5rem;
  color: #aaa;
}

header p{
  margin: 1.5rem auto;
  color: #ccc;
  max-width: 750px;
}

.selfPortait{
  width: 200px;
  border-radius: 50%;
  margin-top: 1rem;
  border: 4px solid #7f9cf5;
}

.headerButtons{
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 2rem;
}

.button{
  padding: 0.8rem 1.5rem;
  border-radius: 30px;
  text-decoration: none;
  font-weight: 300;
  transition: 0.3s;
  background-color: transparent;
  color: #7f9cf5;
  border: 2px solid #7f9cf5;
  min-width: 110px;
}

.btn{
  padding: 0.8rem 1.5rem;
  border-radius: 30px;
  text-decoration: none;
  font-weight: 300;
  transition: 0.3s;
  background-color: transparent;
  color: #7f9cf5;
  border: 2px solid #7f9cf5;
  min-width: 250px;
}

.button:hover, .btn:hover{
  background-color: #7f9cf5;
  color: #fff;
}

.contactButtons{
  gap: 1rem;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  max-width: 700px;
  margin: 2rem auto 0 auto;
}

.section{
  padding: 4rem 2rem;
  text-align: center;
}

.aboutMeText{
  max-width: 1000px;
  margin: 1.5rem auto 0 auto;
  color: #ccc;
  line-height: 1.8;
  text-align: justify;
}

.projectGrid{
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  margin-top: 2rem;
  justify-items: center;
}

.projectCard{
  background-color: #1a1a1a;
  padding: 1rem;
  border-radius: 10px;
}

.projectCard h3{
  margin-bottom: 1rem;
  color: #ffffff;
}

.projectCardContent{
  display: grid;
  text-align: justify;
  gap: 1rem;
  grid-template-columns: repeat(2, 1fr);
}

.bulletList{
  padding-left: 1rem;
}

.exitButton{
  background: none;
  border: none;
  color: #fff;
  font-size: 1.5rem;
  position: absolute;
  top: 10px;
  right: 15px;
  cursor: pointer;
  rotate: 45deg;
}

.videoSize{
  max-width: 475px;
}

.popUpButton{
  cursor: pointer;
  color: #7f9cf5;
  text-decoration: underline;
}

.popUpOverlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.7);
  display: none;
  z-index: 998;
}

/* Popup Box */
.popUpContent {
  background: #111;
  padding: 2rem;
  border-radius: 10px;
  width: 50%;
  height: 70%;
  position: fixed;
  top: 50%;
  left: 50%;
  display: none;
  transform: translate(-50%, -50%);
  z-index: 999;
  border: 2px solid #7f9cf5;
  overflow-y: auto;
  scrollbar-width: none;
}

.popUpCardContent{
  display: grid;
  text-align: justify;
  gap: 1rem;
}

.popUpCardContent video{
  max-width: 100%;
}

footer{
  text-align: center;
  padding: 2rem;
  color: #666;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

#about, #omMig, #projects, #projekt, #contact, #kontakt{
  scroll-margin-top: 2rem;
}

@media (max-width: 828px) {
  
  body{
    background: radial-gradient(ellipse at bottom, #0b0c10 0%, #000 100%) !important;
    background-color: #0b0c10 !important;
  }

  .navbar{
    flex-direction: column;
    gap: 1rem;
    position: sticky;
  }

  .navigationLinks{
    flex-direction: row;
    gap: 1rem;
  }

  .logo{
    font-size: 1.5rem;
  }

  #about, #projects, #contact{
    scroll-margin-top: 4rem;
  }

  header{
    padding: 2rem 1rem 0;
  }

  header h2{
    font-size: 2.5rem;
  }

  .projectGrid, .projectCardContent{
    grid-template-columns: 1fr;
  }

  .projectCard{
    width: 100%;
  }

  .videoSize{
    max-width: 100%;
  }

  .popUpContent{
    width: 75%;
    height: 60%;
  }

  .contactButtons{
    grid-template-columns: 1fr;
  }
}