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

body {
  font-family: sans-serif;
  overflow: hidden;
}

h1 {
  font-family: 'Alfa Slab One', serif;
  color: rgba(0, 0, 0, 0.577);
  letter-spacing: 2px;
}

h1, h2 {
    text-align: center;
}

p {
    color: rgb(51, 48, 48);
    font-size: 25px;
}

body.home-active .navbar h1 {
  display: none;
}

page.about {
    text-align: center;
}

page.contact {
    margin: 20px;
}

.contact {
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  min-height: 100dvh;
  padding: 20px;
}

.contact-content {
  max-width: 600px;
  width: 100%;
}

/* NAVBAR */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  height: 60px;
  background: rgb(252, 252, 252);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.page {
  position: fixed;
  top: 60px;
  height: calc(100dvh - 60px);
  width: 100%;
}

/* TOGGLE BUTTON */
.toggle-btn {
  position: absolute;
  right: 40px;
  top: 10px;
  width: 40px;
  height: 60px;
  cursor: pointer;
}

.toggle-btn span {
  position: absolute;
  width: 100%;
  height: 3px;
  background: red;
  transition: 0.4s;
}

.toggle-btn span:nth-child(1) { top: 10px; }
.toggle-btn span:nth-child(2) { top: 18px; }
.toggle-btn span:nth-child(3) { top: 26px; }

/* X */
.toggle-btn.active span:nth-child(2) {
  opacity: 0;
}

.toggle-btn.active span:nth-child(1) {
  top: 18px;
  transform: rotate(45deg);
}

.toggle-btn.active span:nth-child(3) {
  top: 18px;
  transform: rotate(-45deg);
}

/* MENU */
.nav-list {
  position: fixed;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100dvh;
  background: rgba(0,0,0,0.9);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 30px;
  transition: 0.5s;
  z-index: 999;
}

.nav-list.show {
  left: 0;
}

.link {
  color: white;
  font-size: 2rem;
  cursor: pointer;
  transition: 0.3s;
}

.link:hover {
  color: red;
  transform: scale(1.1);
}

/* PAGES */
.page {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100dvh;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: 0.5s;
  pointer-events: none;
  background-size: cover;
  background-position: center;
}

.page.active {
  opacity: 1;
  pointer-events: all;
}

/* BACKGROUNDS */
.home {
  background-image: url("https://images.pexels.com/photos/13934812/pexels-photo-13934812.jpeg");
}

.project {
  background-image: url("https://images.pexels.com/photos/13934812/pexels-photo-13934812.jpeg");
}

.about {
  background-image: url("https://images.pexels.com/photos/13934812/pexels-photo-13934812.jpeg");
}

.contact {
  background-image: url("https://images.pexels.com/photos/13934812/pexels-photo-13934812.jpeg");
}

.title {
  color: rgb(28, 28, 28);
  font-size: clamp(1.8rem, 5vw, 3rem);
  /* background: rgba(0,0,0,0.5); */
  padding: 20px;
  margin: 20px;
}

.title a {
  color: inherit;
  text-decoration: none;
}

.email {
  padding: 10px;
  display: inline-block;
  margin-top: 20px;
  font-size: clamp(1rem, 3vw, 1.5rem);
  word-break: break-word; /* prevents overflow on small screens */
}

.content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.project-link {
  color: white;
  background-color: rgb(0, 0, 0);
  font-size: 1.5rem;
  padding: 10px 20px;
  border: 2px solid green;
  border-radius: 10px;
  border-style: groove;
  text-decoration: none;
  transition: 0.3s;
}

.project-link:hover {
  background: green;
  color: white;
  transform: scale(1.1);
}

.qr {
  border: black;
  border-radius: 6px;
}

#name {
  color: black;
}

#developer {
  font-size: 30px;
  text-decoration: underline;
  color: rgb(137, 6, 6);
}

#about {
  background: rgb(255, 255, 255);
  margin-right: 80px;
  padding: 10px;
  /* border: 2px solid rgba(0, 0, 0, 0.494); */
  border-radius: 6px;
  /* border-style: groove; */
}

#abTitle {
  color: rgb(137, 6, 6);
  /* text-decoration: underline; */
}

#forward {
  color: rgba(0, 0, 0, 0.537);
  bottom: 2px;
}

#mail {
  color: rgb(137, 6, 6);
}