:root {
  --burger-color: #ffffff;
}

.mobile-hidden {
  display: none !important;
}

.mobile-nav-hidden {
  transform: translateY(-100%);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.mobile-nav-visible {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

/* Header */

header {
  position: fixed;
  top: 0;
  width: 100vw;
  height: 3rem;
  z-index: 1000;
  padding: 0 10px;
  border-bottom: 2px solid var(--shadow);
  background: rgba(var(--background_rgb), 0.5);
  backdrop-filter: blur(32px);
}

header > .name {
  z-index: 1001;
}

#burger-menu {
  position: absolute;
  top: 0;
  right: 5px;
  background: none;
  width: max(5vw, 5vh);
  height: max(5vw, 5vh);
  border: none;
  cursor: pointer;
  z-index: 1001;
}

#main-menu {
  position: absolute;
  top: 3rem;
  right: 0;
  width: 100vw;
  height: 70vh;
  max-height: 300px;
  background: rgba(var(--background_rgb), 0.5);
  backdrop-filter: blur(32px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  transition: all 0.3s ease-in-out;
}

#main-menu ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}

#main-menu ul li {
  margin: 10px 0;
}

#main-menu ul li a {
  color: var(--text);
  text-decoration: none;
  font-size: 1.2em;
  transition: color 0.3s ease;
}

/* language selector */

.lang-selector {
  display: flex;
  flex-direction: row;
}

.lang-button {
  position: relative;
  background: none;
  border: none;
  font-size: 15px;
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  cursor: pointer;
}

.lang-button > img {
  width: 32px;
  height: 24px;
}

.lang-button > span {
  margin-left: 10px;
  color: var(--text);
  font-weight: 500;
  font-size: 18px;
}

.lang-menu {
  /* position: absolute; */
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  background: none;
  box-shadow: -2px 2px 10px var(--primary), 2px -2px 10px var(--secondary);
  padding: 2px;
  border-radius: 5px;
  width: 100%;
}

.lang-option {
  background: none;
  border: none;
  padding: 10px 10px;
  color: var(--text);
  font-size: 14px;
  display: flex;
  flex-direction: column;
  justify-content: start;
  align-items: center;
  text-align: center;
  cursor: pointer;
}

.lang-option > img {
  width: 24px;
  height: 18px;
}

/* MAIN CONTENT */

main {
  display: flex;
  flex-direction: column;
  justify-content: space-evenly;
  align-items: center;
  flex-wrap: nowrap;
}

section {
  display: flex;
  flex-direction: column;
  width: 100vw;
  min-height: 60vh;
  justify-content: start;
  align-items: center;
  position: relative;
  padding: 0 10vw;
  scroll-margin-top: 15vh;
  margin-bottom: 25vh;
}

section:last-of-type {
  margin-bottom: 5vh;
}

@media screen and (min-width: 700px) {
  .home {
    flex-direction: row;
  }
  .home > .avatar-border {
    margin-right: 50px;
  }
}

.home {
  justify-content: center;
  height: 100vh;
}

.avatar-border {
  width: 250px;
  height: 250px;
  border-radius: 50%;
  border: 10px solid var(--shadow);
  box-shadow: -10px 10px 10px var(--primary), 10px -10px 10px var(--secondary);
}

.avatar {
  width: 230px;
  height: 230px;
  border-radius: 50%;
  mask-image: url("../images/avatar.jpg");
}

.avatar-img {
  width: 150%;
  height: 150%;
  border-radius: 50%;
  transform: translate(-15%, -5%);
  object-fit: cover;
  filter: blur(0px);
}

.name {
  line-height: 0.7;
  font-size: 48px;
  font-weight: 900;
  position: relative;
  /* z-index: 1001; */
}

h1.name {
  font-size: 16px;
}

h1.name > span {
  text-shadow: -1px -1px 0 var(--background), 1px -1px 0 var(--background),
    -1px 1px 0 var(--background), 1px 1px 0 var(--background);
}

p.name > span {
  text-shadow: -2px -2px 0 var(--background), 2px -2px 0 var(--background),
    -2px 2px 0 var(--background), 2px 2px 0 var(--background);
}

p.name::after {
  content: "Przemekkk";
  display: block;
  position: absolute;
  width: 100%;
  color: var(--subtext2);
  opacity: 0.3;
  font-size: 0.5em;
  line-height: normal;
  text-align: right;
}

/* ABOUT ME */

.about-me {
  font-size: 2rem;
}

.about-me > p {
  font-size: 1rem;
  text-align: justify;
  min-width: 50vw;
  max-width: 800px;
}

.about-me > hr {
  width: 80vw;
  max-width: 1200px;
  height: 2px;
  background: linear-gradient(to right, var(--primary), var(--secondary));
  border: none;
  margin: 20px 0;
}

/* PROJECTS */

.projects {
  display: flex;
  flex-direction: column;
  align-items: start;
  /* max-width: 1500px; */
}

.projects > h1 {
  font-size: 3rem;
  margin: 50px 20px;
  align-self: center;
}

.project {
  max-width: 1200px;
  margin: 20px 0;
  padding: 20px;
  border-radius: 10px;
  box-shadow: -10px 10px 20px var(--primary), 10px -10px 20px var(--secondary);
  transition: all 0.2s ease-out;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  text-decoration: none;
  text-align: justify;
  text-align-last: left;
  color: var(--text);
}

.project > div {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: start;
  width: 90%;
}

.project > div > h1 {
  font-size: 1.5rem;
  margin-bottom: 10px;
}

.project > div > p {
  font-size: 1rem;
  line-height: 1.2;
  color: var(--subtext);
}

.project > div > p > h2 {
  font-size: 0.9rem;
  margin-bottom: 10px;
}

.project > img {
  border-radius: 10px;
  max-width: 90%;
  max-height: 300px;
  object-fit: cover;
}

/* CONTACTS */

.contact {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100vw;
}

.contact::before {
  top: -30vh !important;
}
.contact::after {
  top: -5vh !important;
}

.contact > h1 {
  font-size: 4rem;
  margin: 50px 20px;
  align-self: center;
}

#contact-main {
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  align-items: center;
  width: 90vw;
  max-width: 1200px;
}

.contact > p {
  font-size: 1.5rem;
  text-align: justify;
  min-width: 50vw;
  max-width: 800px;
  /* margin: 50px 0 */
}

#social {
  display: flex;
  flex-direction: column;
  /* width: 100%; */
  align-items: start;
  margin: 20px 0;
}

.social-link {
  color: var(--text);
  text-decoration: none;
  font-size: 1.2rem;
}

.social-link > img {
  width: 60px;
  height: 60px;
  background: var(--text);
  border-radius: 50%;
  padding: 5px;
  margin: 10px;
  vertical-align: middle;
}

#contact-form {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 80vw;
  max-width: 800px;
}

#contact-form > input {
  width: 100%;
  height: 50px;
  margin: 10px 0;
  border-radius: 5px;
  max-width: 800px;
  /* background: var(--text); */
  font-size: 1rem;
  background: rgba(var(--shadow_rgb), 0.4);
  color: var(--text);
  border: 2px solid var(--subtext);
  border-radius: 5px;
  padding: 10px;
}

#contact-form > input::placeholder,
textarea::placeholder {
  color: var(--subtext);
  font-weight: bold;
  opacity: 0.8;
}

#contact-form > textarea {
  width: 100%;
  height: 200px;
  margin: 10px 0;
  max-width: 800px;
  font-size: 1.1rem;
  resize: none;
  background: rgba(var(--shadow_rgb), 0.4);
  color: var(--text);
  border: 2px solid var(--subtext);
  border-radius: 5px;
  padding: 10px;
}

#form_bottom {
  display: flex;
  flex-direction: row;
  justify-content: end;
  align-items: center;
  width: 80vw;
  margin-top: 10px;
}

#submit-button {
  height: 50px;
  align-self: flex-end;
  font-weight: bolder;
  font-size: 1.2rem;
  background: rgba(var(--background_rgb), 0.5);
  color: var(--text);
  border: none;
  border-radius: 5px;
  box-shadow: -2px 2px 10px var(--primary), 2px -2px 10px var(--secondary);
  cursor: pointer;
  margin: 10px 0;
  transition: all 0.2s ease-out;
}

/* FOOTER */

footer {
  width: 100vw;
  min-height: 20vh;
  background: rgba(var(--background_rgb), 0.5);
  border-top: 2px solid var(--shadow);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 0 20px;
}

footer > p {
  margin: 8px 0;
}

/* additions */
.back-elements::before {
  content: "";
  display: block;
  position: absolute;
  top: 5vh;
  left: -15vw;
  background: var(--primary);
  width: max(20vw, 20vh);
  height: max(20vw, 20vh);
  border-radius: 50%;
  filter: blur(100px) opacity(0.5);
  z-index: -1;
}

.back-elements::after {
  content: "";
  display: block;
  position: absolute;
  bottom: -10vh;
  right: -15vw;
  background: var(--secondary);
  width: max(20vw, 20vh);
  height: max(20vw, 20vh);
  border-radius: 50%;
  filter: blur(100px) opacity(0.5);
  z-index: -1;
}
