/* 
- Font Sizes (px)
10 / 12 / 14 / 16 / 18 / 20 / 24 (h2)/ 30 / 36 / 44 / 52 / 62 / 74 / 86 / 98

- Spacing System (px)
2 / 4 / 8 / 12 / 16 / 24 / 32 / 48 / 64 / 80 / 96 / 128
*/

:root {
  /* COLORS */
  --color-background: #121212;
  --color-text: #e7e7e7;

  --color-grey-dark: #2a2a2a;

  --color-primary: #ff8133;
  --color-primary-dark: #ff6200;
  --color-primary-light: #ffa770;

  --color-secondary: #cbcce1;
  --color-secondary-dark: #9797c2;
  --color-secondary-light: #e6e5f0;
}

*,
*::after,
*::before {
  margin: 0;
  padding: 0;
  box-sizing: inherit;
}

html {
  box-sizing: border-box;
  font-size: 62.5%;
  overflow-x: hidden;
}

body {
  font-family: "Montserrat", sans-serif;
  font-size: 1.6rem;
  font-weight: 400;
  line-height: 1.6;
  background-color: var(--color-background);
  color: var(--color-text);
  position: relative;
  overflow-x: hidden;
  overflow-y: scroll;

  /* Hide scrollbar for IE, Edge and Firefox */
  -ms-overflow-style: none; /* IE and Edge */
  scrollbar-width: none; /* Firefox */
}

/* Hide scrollbar for Chrome, Safari and Opera */
body::-webkit-scrollbar {
  display: none;
}

::selection {
  background-color: var(--color-primary-dark);
  color: var(--color-text);
}

/* HELPER CLASSES */
.container {
  max-width: 114rem;
  margin: 0 auto;
  padding: 0 3.2rem;
}

.content-center {
  display: flex;
  justify-content: center;
  align-items: center;
}

.grid {
  display: grid;
  column-gap: 6.4rem;
  row-gap: 4.8rem;
}

.grid--2-cols {
  grid-template-columns: repeat(2, 1fr);
}

.center-text {
  text-align: center;
}

.mb-sm {
  margin-bottom: 2.4rem;
}
.mb-md {
  margin-bottom: 3.2rem;
}

.text-gradient {
  background-image: linear-gradient(
    to right,
    var(--color-secondary-dark),
    var(--color-primary)
  );
  display: inline-block;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* HEADINGS */
.heading-primary {
  font-size: 6.2rem;
  font-weight: 400;
  letter-spacing: -1px;
}

.heading-secondary {
  font-size: 3rem;
  font-weight: 300;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* NAVIGATION + FOOTER*/
.nav,
.footer {
  background-color: rgba(var(--color-background), 0.2);
  backdrop-filter: blur(10px);
  position: fixed;
  left: 5%;
  height: 9rem;
  width: 90%;
  padding: 0 3.2rem;
  border-radius: 1rem;
  z-index: 999;
}

.nav {
  top: 2rem;
}

.footer {
  bottom: 2rem;
}

.buttons,
.social-list {
  gap: 6.4rem;
  list-style: none;
}

.btn-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
}

.btn {
  background: none;
  cursor: pointer;
  border: none;
  width: 4.8rem;
  height: 4.8rem;
  border-radius: 50%;
  box-shadow: 0, 1rem 2rem rgba(0, 0, 0, 0.3);
  background-color: var(--color-primary);
  color: var(--color-text);
  font-size: 2rem;
}

.btn:hover {
  background-color: var(--color-primary-dark);
}

.btn:active {
  transform: translateY(1px);
}

.btn--close,
.btn--close:hover {
  display: hidden;
  background-color: var(--color-secondary-dark);
}

.hidden {
  display: none;
}

.btn-text {
  font-size: 1.4rem;
  font-weight: 300;
  letter-spacing: 2px;
  color: var(--color-secondary);
  text-transform: uppercase;
}

.btn:hover + .btn-text {
  color: var(--color-secondary-light);
}

.btn--close + .btn-text {
  color: var(--color-secondary-light);
}

.social-list__link:link,
.social-list__link:visited {
  display: inline-block;
  color: var(--color-secondary-dark);
  font-size: 3.2rem;
  text-decoration: none;
  border-bottom: 1px solid currentColor;
  padding-bottom: 2px;
  transition: all 0.3s;
}

.social-list__link:hover,
.social-list__link:active {
  color: var(--color-secondary);
  border-bottom: 1px solid transparent;
}

/* MAIN */
.main {
  position: relative;
  height: 100vh;
}

.section {
  width: 100%;
  padding: 18rem 0 14rem;
}

.section-modal {
  position: absolute;
  top: 0;
  left: 0;
  transform: translateY(-100%);
  transition: all 0.6s ease-in-out;
}

.show-modal {
  transform: translateY(0);
}

.section-resume {
  width: 100%;
  height: 100%;
}

/* HERO */
.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  transform: translateY(-2rem);
  animation: moveIn 0.6s ease-in-out;
}

.hero__text {
  font-size: 2rem;
  width: 85%;
  letter-spacing: 1px;
}

.hero__text span {
  font-size: 2.4rem;
}

/* ABOUT */
.about {
  grid-template-columns: minmax(20rem, 30rem) 1fr;
}

.about__img-box {
  overflow: hidden;
}

.about__img-box img {
  display: block;
  width: 100%;
  height: auto;
}

.about__text-box {
  justify-items: start;
}

.about__text {
  font-size: 1.8rem;
  letter-spacing: 1px;
  line-height: 1.8;
}

.about__text span {
  text-transform: uppercase;
  font-size: 2rem;
}

/* PROJECTS */
.projects__list {
  list-style: none;
  grid-template-columns: repeat(auto-fit, minmax(32rem, 1fr));
}

.projects__list-item {
  background-color: rgb(var(--color-grey-dark), 0.5);
  overflow: hidden;
  border-radius: 10px;
  box-shadow: 0 2rem 4rem rgba(0, 0, 0, 0.4);
  padding: 1.2rem;
  transition: all 0.3s;
}

.projects__list-item:hover {
  transform: translateY(-0.5rem);
  box-shadow: 0 3rem 5rem rgba(0, 0, 0, 0.2);
}

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

.projects__list-item img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 1rem;
}

.projects__list-info {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.4rem 1.4rem 0.4rem 1rem;
}

.projects__list-info-title {
  font-size: 1.8rem;
  font-weight: 300;
  letter-spacing: 0.5px;
  color: var(--color-secondary-light);
}

.projects__list-info i {
  font-size: 1.8rem;
  color: var(--color-primary-light);
}

/* RESUME */
.resume__btn:link,
.resume__btn:visited {
  gap: 1.4rem;
  text-decoration: none;
  color: var(--color-secondary-light);
  text-transform: uppercase;
  font-weight: 600;
  font-size: 1.8rem;
  box-shadow: inset 0 0 0 1px var(--color-primary);
  padding: 1.6rem 3.2rem;
  border-radius: 1rem;
  transition: all 0.3s;
}

.resume__btn:hover,
.resume__btn:active {
  background-color: var(--color-grey-dark);
  color: var(--color-text);
}

.resume__btn i {
  font-size: 2.4rem;
}

/* ANIMATION */
@keyframes moveIn {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}
