/* || RESET */
*,
*::after,
*::before {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

img {
  width: 100%;
  display: block;
  height: auto;
}

/* || VARIABLES */
:root {
  /* || COLORS */
  --BG1: whitesmoke;
  --BG2: #000;
  --BG3: #333;
  --BG4: rgb(249, 202, 61);
  --BG5: rgb(142, 108, 4);
  --BG6: rgb(198, 150, 4);
  /* || FONTS */
  --FF: Cambria, Cochin, Georgia, Times, "Times New Roman", serif;
  --FS-SMALL: 1rem;
  --FS-MEDIUM: 1.5rem;
  --FS-LARGE: 2rem;
  /* || MARGIN */
  --M-XS: 0.5rem;
  --M-SMALL: 1rem;
  --M-MEDUIM: 2rem;
  --M-LARGE: 3rem;
  /* || PADDING */
  --P-SMALL: 0.5rem;
  --P-MINI: 1rem;
  --P: 1.5rem;
  --P-LARGE: 2rem;
  /* || FONTS */
  --F-SMALL: 1rem;
  --F-LARGE: 2rem;
  --F-XL: 3rem;
}

/* || UTILITY CLASSES */
.nowrap {
  white-space: nowrap;
}

.center {
  text-align: center;
}

.offscreen html {
  scroll-behavior: smooth;
}

body {
  width: 100vw;
  overflow-x: hidden;
  position: relative;
}

/* || HEADER */
.header {
  background-color: var(--BG2);
  position: sticky;
  top: 0;
  z-index: 1;
  border-bottom: 2px solid var(--BG2);
}

.navbar {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.navbar__ol {
  list-style-type: none;
  display: flex;
  flex-wrap: nowrap;
  margin-inline-end: var(--M-SMALL);
}

.navbar__ol li:hover {
  background-color: var(--BG3);
}

.navbar__ol li a {
  display: inline-block;
  padding: var(--P);
  height: 100%;
  width: 100%;
}

.navbar__ol li a:any-link {
  text-decoration: none;
  color: var(--BG1);
}

.three-bar {
  background-color: transparent;
  width: 3rem;
  height: 3.5rem;
  position: relative;
  margin-inline-start: var(--M-SMALL);
  display: grid;
  place-content: center;
  border: none;
}

.icon {
  width: 2.8rem;
  background-color: var(--BG4);
  height: 0.3rem;
  border-radius: 0.1rem;
}

.icon::before,
.icon::after {
  content: "";
  position: absolute;
}

.icon::before {
  transform: translate(-1.4rem, -0.6rem);
  width: 2.8rem;
  background-color: var(--BG1);
  height: 0.3rem;
  border-radius: 0.1rem;
}

.icon::after {
  transform: translate(-1.4rem, 0.6rem);
  width: 2.8rem;
  background-color: var(--BG1);
  height: 0.3rem;
  border-radius: 0.1rem;
}

/* || MAIN */
.welcome-section {
  height: 100vh;
}

.contact-section {
  height: 80vh;
}

.projects-section {
  height: 100vh;
}

.contact-section,
.projects-section {
  scroll-margin-top: 4rem;
}

.welcome-section {
  background-image: linear-gradient(90deg, var(--BG4), var(--BG5));
  display: flex;
  flex-flow: column nowrap;
  align-items: center;
  justify-content: center;
  font-size: var(--FS-LARGE);
}

.welcome-section p {
  color: var(--BG1);
}

.projects-section {
  background-color: var(--BG3);
  height: auto;
  overflow: auto;
  min-height: 100px;
}

.projects-header {
  padding-top: var(--P-LARGE);
  font-size: var(--FS-LARGE);
  color: var(--BG1);
}

.bottom-line {
  margin-inline: auto;
  background-color: rgba(245, 245, 245, 0.7);
  width: 27rem;
  height: 0.4rem;
  border-radius: 2rem;
}

.more_body {
  display: flex;
  min-height: 100vh;
}

.projects {
  margin: var(--M-SMALL);
  padding: var(--P-LARGE);
  display: flex;
  flex-wrap: wrap;
  flex-direction: row;
  gap: 3rem;
}

.project-tile {
  margin: var(--M-SMALL);
  background-color: var(--BG1);
  width: 19rem;
  margin-inline: auto;
  border-radius: 12px;
  border: 3px solid var(--BG2);
}

.project-tile img {
  border-radius: 12px 12px 0 0;
}

.project-tile a:any-link {
  text-decoration: none;
  color: var(--BG2);
  font-weight: 550;
}

.figcaption {
  padding: var(--P-LARGE);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: clamp(12px, 3vw, 20px);
  letter-spacing: 2;
}

.nowrap {
  white-space: nowrap;
}

.figcaption .code {
  padding-inline: 0.3rem;
  font-weight: 600;
  color: var(--BG1);
  transition: all 1s ease-in-out 0.3s;
}

.project-tile:hover .code {
  color: chocolate;
  transition: 0.6s all ease-in;
  transform: scale(1.2);
}

.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-inline: auto;
  margin-block-end: var(--M-SMALL);
  height: 3rem;
  width: 9rem;
  padding: 1rem;
  border-radius: 12px;
  background-color: var(--BG2);
  outline: none;
  border: none;
}

.btn a:any-link {
  text-decoration: none;
  color: var(--BG1);
}

.btn:hover {
  transform: scale(1.2);
  transition: all 1s ease-out;
  background-color: var(--BG3);
  border: 2px double var(--BG1);
}

.contact-section {
  background-color: var(--BG6);
}

.main-container {
  display: flex;
  flex-flow: column nowrap;
  align-items: center;
  justify-content: center;
  height: 100%;
  font-size: var(--FS-LARGE);
}

.contacts-container ul {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
}

.contacts-container ul li {
  list-style: none;
  margin: var(--M-SMALL);
}

.p {
  font-size: var(--FS-MEDIUM);
}

.contacts-container ul li a {
  display: inline-block;
  padding: var(--P-MINI);
}

.contacts-container ul li a:any-link {
  color: var(--BG2);
  text-decoration: none;
}

.contacts-container ul li:hover {
  transform: translateY(14px);
  transition: all 0.5s ease-in-out;
}

.footer {
  height: 15vh;
  background-color: var(--BG6);
  border-top: 5px solid var(--BG2);
}

.footer p {
  width: 90%;
  height: 100%;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  font-size: var(--FS-MEDIUM);
}

/* || SMALL */
@media screen and (min-width: 300px) and (max-width: 767px) {
  .header {
    width: 100vw;
  }

  .navbar {
    padding: 0;
    margin: 0;
  }
  .navbar__ol {
    margin: 0;
  }

  .navbar__ol li a {
    padding: var(--P-SMALL);
    padding-block: 1.2rem;
    font-size: small;
  }

  .welcome-section {
    font-size: var(--F-SMALL);
  }

  .projects {
    grid-template-columns: repeat(1, 1fr);
    row-gap: 0;
  }

  .projects-header {
    font-size: var(--FS-MEDIUM);
  }

  .offscreen,
  .offscreen1 {
    position: absolute;
    left: -10000px;
  }

  /* .projects-section {
    height: 100vh;
  } */

  .project-tile {
    width: 12rem;
  }

  .main-container,
  .p,
  .footer p {
    font-size: var(--FS-SMALL);
  }
}

/* || MEDIUM */
@media screen and (min-width: 768px) and (max-width: 1000px) {
  .navbar {
    padding-inline: var(--M-XS);
    margin: 0;
  }

  .three-bar {
    margin: 0;
  }

  /* .projects-section {
    height: 120vh;
  } */

  .btn_offscreen {
    position: absolute;
    left: -10000px;
  }
}

/* || LARGE */
@media screen and (min-width: 1001px) {
  .navbar {
    padding-inline: var(--P);
    margin: 0;
  }

  .header {
    width: 100vw;
  }

  .projects {
    column-gap: 1rem;
  }

  .btn_offscreen {
    position: absolute;
    left: -10000px;
  }
}

/* || LANDSCAPE */
@media screen and (max-height: 500px) {
  .navbar {
    padding-inline: var(--P);
    margin: 0;
  }

  .projects {
    column-gap: 1rem;
  }

  .project-tile {
    width: 10rem;
  }

  .figcaption {
    font-size: clamp(5px, 2vw, 15px);
  }

  /* .projects-section {
    height: 200vh;
  } */
}

@media screen and (min-height: 520px) and (max-width: 876px) {
  /*  .offscreen1 {
    position: absolute;
    left: -10000px;
  } */
}
