:root {
  --main-red: #7f1818;
  --main-grey: #141414;
  --hover-grey: #909090;
  --main-bg: #9c9c9c;
}

html {
  overflow-x: hidden;
}

*::-webkit-scrollbar {
  display: none;
}

body {
  opacity: 0;
  transition: opacity 3s;
  -webkit-transition: opacity 3s;
  margin: 0;
  border: none;
  scrollbar-width: none;
  box-sizing: border-box;
  overflow-x: hidden;
  font-family: "Outfit", serif;
  line-height: 1.2;
  background: linear-gradient(
    0.25turn,
    var(--main-bg) 50%,
    var(--main-grey) 50%
  );
}

section {
  scroll-snap-align: start;
  height: 100vh;
  border-top: 1px solid;
  border-color: black;
}

body::-webkit-scrollbar {
  display: none;
}

.top-nav {
  height: 50px;
  width: 100vw;
  left: 0;
  position: fixed;
  z-index: 10;
  backdrop-filter: blur(10px);
  box-sizing: border-box;
  box-shadow: 0px 0px 5px #1b1b1b;
  -webkit-box-shadow: 0px 0px 5px #1b1b1b;
  -webkit-backdrop-filter: blur(10px);
  display: flex;
  justify-content: space-between;
  padding: 0px 20px;
  transition: 0.6s ease-in;
  -webkit-transition: 0.6s ease-in;
  transform: translateY(-50px);
  -webkit-transform: translateY(-50px);
  opacity: 0;
}

.navbar-name-p {
  color: white;
  font-weight: 500;
  text-shadow: 1px 1px 1px var(--main-grey);
  transition: 0.6s ease-in;
  -webkit-transition: 0.6s ease-in;
  opacity: 0;
  letter-spacing: 0.3rem;
}

.navbar-name-p:hover {
  cursor: pointer;
}

.navbutton-container {
  height: 100%;
  display: flex;
  gap: 10px;
}

.nav-btn {
  background: none;
  color: white;
  border: none;
  opacity: 0;
  font-size: 0.9rem;
  text-shadow: 1px 1px 1px var(--main-grey);
  transition: 0.6s ease-in;
  -webkit-transition: 0.6s ease-in;
  -webkit-tap-highlight-color: transparent;
}

@media (hover: hover) {
  .nav-btn:hover {
    cursor: pointer;
    color: var(--hover-grey) !important;
  }
}

.main-section {
  width: 100vw;
  height: 100vh;
  background: linear-gradient(
    0.25turn,
    var(--main-bg) 45%,
    var(--main-grey) 45%
  );
  box-sizing: border-box;
}

.container-div {
  display: flex;
  height: 100%;
  align-items: center;
  z-index: 5;
}

.left-div {
  width: 50vw;
  height: 100%;
  background-color: #9c9c9c;
}

.blur-div {
  background-color: transparent;
  position: absolute;
  width: 50vw;
  height: 1500px;
  opacity: 1;
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  top: 50px;
}

pre {
  height: 100%;
  width: 100%;
  margin: 0;
  box-sizing: border-box;
  position: relative;
}

.code-snippet {
  position: absolute;
  font-size: 1.3rem;
  text-wrap: wrap;
  height: 100%;
  word-wrap: break-word;
  text-overflow: ellipsis;
  padding: 45px 1px 5px 5px;
  box-sizing: border-box;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  opacity: 0.7;
  color: var(--main-bg);
  transition: color 3s;
  -webkit-transition: color 3s;
}

.right-div {
  animation: fadeIn 3s;
  -webkit-animation: fadeIn 3s;
  width: 50vw;
  height: 100%;
  opacity: 0.6;
  background-image: url("/main-photo.jpg");
  background-size: 1200px;
  background-position: 65%;
  background-repeat: no-repeat;
  background-position-y: center;
  border-bottom-left-radius: 25px;
}

@keyframes fadeIn {
  0% {
    opacity: 0;
  }
  20% {
    opacity: 0;
  }
  100% {
    opacity: 0.6;
  }
}

.text-container-div {
  position: absolute;
  width: 100%;
  height: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 6;
}

.main-h1 {
  font-size: 11rem;
  margin: 0;
  padding: 0;
  font-weight: 500;
  color: white;
  text-shadow: 5px 5px 1px var(--main-grey);
}

.about-section {
  background-color: var(--main-red);
  position: relative;
  z-index: 7;
  display: flex;
  flex-direction: column;
  align-items: center;
  height: auto;
}

.about-section-container {
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: left;
  position: relative;
  display: flex;
  justify-content: center;
  z-index: 5;
  max-width: 1600px;
  border-top-left-radius: 50px;
  border-top-right-radius: 50px;
}

.section-container-colour {
  background-color: var(--main-red);
}

.section-h1 {
  margin: 0;
  padding: 0;
  color: white;
  font-weight: 500;
  color: white;
  text-shadow: 2px 2px 1px var(--main-grey);
  font-size: 2.5rem;
  width: 100%;
  text-align: center;
  padding-top: 55px;
  text-decoration: underline;
}

.section-p {
  color: white;
  text-shadow: 1px 1px 1px var(--main-grey);
  padding: 0 10px;
  font-size: 1.4rem;
  line-height: 1.5;
}

.profilePhoto-div {
  width: 280px;
  height: 280px;
  background-image: url("/main-photo.jpg");
  background-size: 300px;
  background-position-x: 50%;
  background-position-y: 40%;
  border-radius: 50%;
  border: 5px solid white;
  margin-top: 10px;
  align-self: center;
}

.xp-container-div {
  height: auto;
  width: 100vw;
  max-width: 1600px;
  background-color: var(--main-grey);
  border-bottom-left-radius: 50px;
  border-bottom-right-radius: 50px;
  padding-bottom: 30px;
}

.experiences-section {
  background-color: var(--main-grey);
  height: auto;
  position: relative;
  z-index: 7;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100vw;
}

.img-scroll-container {
  background-color: var(--main-grey);
  overflow-x: auto;
  white-space: nowrap;
  padding: 10px;
  margin-bottom: 30px;
  overflow-y: hidden;
}

.img-scroll-container::-webkit-scrollbar {
  display: none;
}

.img-scroll-container img {
  padding: 3px;
  margin: 0 3px;
  max-height: 50vh;
  border-radius: 25px;
  border: 4px solid grey;
  transition: 0.3s;
  opacity: 0.9;
}

.img-scroll-container img:hover {
  border: 4px solid white;
  opacity: 1;
}

ul > li {
  list-style: none;
  background-size: 25px;
  background-repeat: no-repeat;
  background-position-x: 15px;
  background-position-y: 5px;
}

.contact-container-div {
  height: auto;
  width: 100vw;
  max-width: 1600px;
  background-color: var(--main-red);
  padding-bottom: 20px;
}

.contact-section {
  background-color: var(--main-red);
  display: flex;
  justify-content: center;
  min-height: 100vh;
  height: auto;
}

.form-container {
  display: flex;
  flex-direction: column;
  padding: 0 50px 50px 50px;
  align-items: center;
}

.form-container button {
  border-radius: 24px;
  margin: 30px 10px;
  height: 50px;
  font-family: "Outfit", serif;
  font-size: 1.4rem;
  color: white;
  background-color: transparent;
  border: 4px solid white;
  transition: 0.3s;
}

.form-container button:disabled {
  opacity: 0.5;
}

.form-container > form {
  display: flex;
  flex-direction: column;
  color: white;
  max-width: 720px;
}

form > input {
  font-size: 1.3rem;
  color: black;
  border: none;
  margin: 0 10px;
  padding: 5px 20px;
  border-radius: 25px;
}

form > label {
  opacity: 1;
  transition: 0.3s;
  font-size: 1.5rem;
  margin: 0 10px;
  padding-top: 20px;
  padding-bottom: 10px;
  text-shadow: 1px 1px 1px var(--main-grey);
}

.messageInput {
  min-height: 250px;
  height: auto;
  resize: none;
  font-size: 1.3rem;
  color: black;
  border: none;
  margin: 0 10px;
  padding: 10px 20px;
  border-radius: 25px;
  font-family: "Outfit", serif;
}

.social-media-container {
  width: 100%;
  display: flex;
  justify-content: center;
  box-sizing: border-box;
  margin-top: 30px;
  margin-bottom: 30px;
}

.social-media-container img {
  min-width: 5px;
  max-width: 100px;
  border-radius: 50px;
}

.social-media-container a {
  border-radius: 50px;
  transition: 0.3s;
  padding: 5px 10px;
  margin: 0 40px;
  opacity: 0.9;
}

.social-media-container a:hover {
  cursor: pointer;
  opacity: 1;
  transform: scale(1.1);
}

hr {
  width: 50px;
}

.or-container {
  width: 100%;
  display: flex;
  justify-content: center;
}

.or-p {
  margin: 0;
}

.thankyou-window {
  width: 50px;
  height: 50px;
  background-color: black;
  position: absolute;
  left: calc(50% - 25px);
  opacity: 0;
}

.about-section-default {
  transform: translateX(-100%);
  -webkit-transform: translateX(-100%);
  transition: 0.5s ease-in-out;
  -webkit-transition: 0.5s ease-in-out;
}

.experiences-section-default {
  transform: translateX(110%);
  -webkit-transform: translateX(110%);
  transition: 0.5s ease-in-out;
  -webkit-transition: 0.5s ease-in-out;
}

.contact-section-default {
  transform: translateX(-100%);
  -webkit-transform: translateX(-100%);
  transition: 0.5s ease-in-out;
  -webkit-transition: 0.5s ease-in-out;
}

.section-animate {
  transform: translateX(0);
  -webkit-transform: translateX(0);
  transition: transform 0.5s ease-in-out;
  -webkit-transition: transform 0.5s ease-in-out;
}

.skip-animation {
  transform: translateX(0);
  -webkit-transform: translateX(0);
  transition: none;
  -webkit-transition: none;
}

@media screen and (min-width: 1600px) {
  .container-div {
    max-width: 1600px;
  }

  .text-container-div {
    max-width: 1600px;
    display: flex;
    margin-top: 180px;
    margin-left: -140px;
  }

  .main-section {
    display: flex;
    justify-content: center;
  }

  .right-div {
    background-position: 50%;
    background-size: 1400px;
  }

  .main-h1 {
    font-size: 15rem;
  }

  .name-h1 {
    width: 100%;
    text-align: center;
  }

  .auto-type-h1 {
    text-align: center;
    width: 100%;
    margin-left: 200px;
  }

  .profilePhoto-div {
    width: 18vmax;
    height: 18vmax;
    background-size: cover;
    margin: 50px 0;
    margin: 20px 0;
  }

  .about-section-container {
    width: 1600px;
  }

  .section-p {
    font-size: 1.5rem;
    padding: 0 50px;
  }

  .section-h1 {
    font-size: 4.5rem;
  }

  .img-scroll-container img {
    max-width: 1000px;
    max-height: 1000px;
  }

  .form-container {
    padding: 25px 50px 50px 50px;
  }
}

@media screen and (max-width: 1024px) {
  .right-div {
    background-size: 900px;
    background-position: 55%;
  }

  .main-h1 {
    font-size: 7rem;
  }

  .name-h1 {
    margin-left: -115px;
  }

  .navbutton-container {
    width: 50%;
    gap: 10px;
    justify-content: space-evenly;
  }

  .code-snippet {
    font-size: 0.9rem;
  }

  .section-p {
    font-size: 1.5rem;
    padding: 0 50px;
  }
}

@media screen and (min-width: 1025px) and (max-width: 1599px) {
  .name-h1 {
    margin-left: -153px;
  }

  .main-h1 {
    font-size: 9rem;
  }

  .text-container-div {
    margin-top: 20px;
  }

  .code-snippet {
    font-size: 1rem;
  }

  .section-p {
    padding: 0 50px;
  }

  .profilePhoto-div {
    margin: 50px 0;
  }
}

@media screen and (max-width: 720px) {
  .right-div {
    background-size: 800px;
    background-position: 55%;
  }

  .main-h1 {
    font-size: 4.1rem;
  }

  .name-h1 {
    margin-left: -60px;
  }

  .auto-type-h1 {
    margin-left: 0;
  }

  .navbutton-container {
    height: 100%;
    display: flex;
    margin-right: 3px;
  }

  .top-nav {
    padding: 0 5px;
  }

  .nav-btn {
    padding: 0;
  }

  .code-snippet {
    font-size: 0.6rem;
  }

  .blur-div {
    backdrop-filter: blur(1.3px);
    -webkit-backdrop-filter: blur(1.3px);
  }

  .section-p {
    font-size: 1.2rem;
  }

  .profilePhoto-div {
    max-width: 150px;
    max-height: 150px;
    margin: 20px 0;
  }
}

@media screen and (max-height: 500px) and (orientation: landscape) {
  .right-div {
    background-position-y: 20%;
    background-size: 600px;
  }

  .main-h1 {
    font-size: 6rem;
  }

  .name-h1 {
    margin-left: -113px;
  }

  .about-section-container {
    flex-direction: column;
  }

  .section-p {
    font-size: 1.1rem;
    padding: 0 50px;
  }

  .profilePhoto-div {
    display: none;
  }
}

@media screen and (min-height: 500px) and (max-height: 1000px) and (orientation: landscape) {
  .main-h1 {
    font-size: 7rem;
  }

  .right-div {
    background-position-y: 40%;
    background-position-x: 60%;
  }

  .name-h1 {
    margin-left: -133px;
  }
}

@media screen and (orientation: landscape) and (min-width: 1600px) and (max-height: 1000px) {
  .name-h1 {
    margin-left: 148px;
  }

  .profilePhoto-div {
    display: none;
  }

  .section-p {
    font-size: 1.5vmax;
  }
}
