/* 
-------- 01 TYPOGRAPHY SYSTEM

- FONT SIZE SYSTEM (px)
10 / 12 / 14 / 16 / 18 / 20 / 24 / 30 / 36 / 44 / 52 / 62 / 74 / 86 / 98


- Font weights:
small: 300
Default: 400
Medium: 500
Semi-bold: 600
Bold: 700


- Line heights:
Default: 1
Paragraph default: 1.6

- Letter spacing
0.75px

------- 02 COLORS

- Primary: #3392c5
- Tints: #c2deee
- Shades: #ebf4f9
- Accents: #2e83b1
- Greys:
#555
#333

---- 05 SHAWDOWS

-primary: #00000013
-active:  #00000002

---- 06 BOTDER-RADIUS

-default: 0.3rem

---- 07 WHITESPACE

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

*/

* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
}
html {
  /* 1 rem = 10px */
  /* 10px /16px = 0.625 = 62.5% */
  /* Percentage of user's browser font-size setting */
  font-size: 62.5%;
}

body {
  font-family: 'Source Serif 4', sans-serif;
  line-height: 1;
  font-weight: 400;
  color: #555;
  overscroll-behavior-y: none;
  overscroll-behavior-x: none;
  /* background-color: #f3f3f3; */
}

/* ********************************** */
/*  GENERAL REUSABLE COMPONENTS */
/* ********************************** */

.btn {
  display: inline-block;
  text-decoration: none;
  color: #3392c5;
  font-size: 2rem;
  font-weight: 500;
  padding: 1.6rem 3.2rem;
  border: none;
  border-radius: 0.5rem;
  cursor: pointer;
  box-shadow: inset 0 0 0 1.5px #3392c5;

  background: linear-gradient(to right, #3392c5 50%, white 50%);
  background-size: 200% 100%;
  background-position: right bottom;
  transition: all 0.3s ease-out;
}

.btn:hover {
  background-position: left bottom;
  color: #fff;
}

.margin-right-sm {
  margin-right: 1.5rem !important;
}

.margin-bottom-medium {
  margin-bottom: 6.4rem !important;
}

.margin-bottom-small {
  margin-bottom: 3.2rem !important;
}

.margin-bottom-large {
  margin-bottom: 8rem !important;
}

.container {
  max-width: 120rem;
  padding: 0 4.8rem;
  margin: 0 auto;
}

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

.grid--2-cols {
  grid-template-columns: repeat(2, 1fr);
  /* margin: 0 auto; */
}

.grid--2-cols-special {
  grid-template-columns: 0.75fr 0.25fr;
  /* margin: 0 auto; */
}

.grid--3-cols {
  grid-template-columns: repeat(3, 1fr);
  /* margin: 0 auto; */
}

.grid--4-cols {
  grid-template-columns: repeat(4, 1fr);
  /* margin: 0 auto; */
}

.grid--5-cols {
  grid-template-columns: repeat(5, 1fr);
  /* margin: 0 auto; */
}

.grid--timeline-3-cols {
  display: grid;
  column-gap: 3.2rem;
  /* row-gap: 9.6rem; */
  grid-template-columns: 1fr 3px 1fr;
  /* margin: 0 auto; */
}

.subheading {
  display: block;
  font-family: 'Rubik';
  font-size: 1.8rem;
  font-weight: 500;
  text-transform: uppercase;
  margin-bottom: 6.4rem;
  letter-spacing: 0.75px;
  color: #2e83b1;
}

.heading-secondary {
  display: block;
  font-weight: 600;
  color: #333;
  letter-spacing: 0px;
  font-size: 2.4rem;
  line-height: 1.2;
  text-transform: capitalize;
}

.heading-tertiary {
  display: block;
  font-weight: 500;
  color: #333;
  letter-spacing: -0.5px;
  font-size: 1.6rem;
  line-height: 1.2;
  text-transform: capitalize;
}

.heading-box {
  display: flex;
  align-items: center;
  /* justify-content: center; */
  gap: 1.6rem;
  margin-bottom: 1.6rem;
}

.description {
  font-size: 1.8rem;
  font-weight: 400;
  line-height: 1.6;
  color: #333;
}

.description strong {
  font-weight: 600;
  color: #333;
  letter-spacing: 0px;
  font-size: 2.4rem;
  line-height: 1.2;
}

.center-text {
  display: flex;
  flex-direction: column;
  text-align: center;
  font-weight: 600;
  color: #333;
  letter-spacing: -0.5px;
  font-size: 3.6rem;
  line-height: 1.2;
  text-transform: capitalize;
  gap: 1.6rem;
  color: #2e83b1;
}

.animate-to-right {
  animation: moveright 1.75s ease-in-out;
}

@keyframes moveright {
  0% {
    transform: translateX(-100px);
  }
  100% {
    transform: translateX(0);
  }
}

.animate-to-left {
  animation: moveleft 1.5s ease-in-out;
}

@keyframes moveleft {
  0% {
    transform: translateX(100px);
  }
  100% {
    transform: translateX(0);
  }
}

.animate-down {
  animation: movedown 1s ease-in-out;
}

@keyframes movedown {
  0% {
    transform: translateY(-100px);
  }
  100% {
    transform: translateY(0);
  }
}

.animate-up {
  animation: moveup 0.5s ease-in-out;
}

@keyframes moveup {
  0% {
    transform: translateY(100px);
  }
  100% {
    transform: translateY(0);
  }
}

.section--hidden {
  opacity: 0;
  /* transform: translateY(8rem); */
}

.active {
  border-bottom: solid 2px #2e83b1;
  transition: 0.3 ease;
}

/* MODAL WINDOW */
.modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border-radius: 1rem;
  max-width: 60rem;
  width: 100%;
  background-color: #f3f3f3;
  /* padding: 5rem 6rem; */
  box-shadow: 0 4rem 6rem rgba(0, 0, 0, 0.3);
  z-index: 1119;
  transition: all 0.5s;
}

.modal p {
  padding: 5rem 6rem;
}

.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  z-index: 1118;
  transition: all 0.5s;
}

.btn--close-modal {
  font-family: inherit;
  color: inherit;
  position: absolute;
  top: 0.5rem;
  right: 2rem;
  font-size: 4rem;
  cursor: pointer;
  border: none;
  background: none;
  opacity: 0.7;
  z-index: 101;
}

.hidden {
  visibility: hidden;
  opacity: 0;
}

.project__hero {
  position: relative;
  height: 22rem;
  overflow: hidden;
}

.project__hero::before {
  content: '';
  display: block;
  height: 100%;
  width: 100%;
  position: absolute;
  top: 0;
  left: 0;
  background-image: linear-gradient(to left bottom, #c2deee, #2e83b1);
  opacity: 0.5;
  z-index: 100;
}

.project__emoji {
  font-size: 8rem;
  position: absolute;
}

.project__emoji--1 {
  top: -4rem;
  left: -2rem;
  z-index: 10;
}

.project__emoji--2 {
  top: 2rem;
  left: 9rem;
}

.project__emoji--3 {
  top: 8rem;
  right: 15rem;
}

.project__emoji--4 {
  top: 15rem;
  right: 2rem;
  z-index: 10;
}

.project__link:link,
.project__link:visited {
  display: block;
  background-color: #c2deee;
  font-size: 2rem;
  font-weight: 600;
  text-transform: uppercase;
  text-decoration: none;
  letter-spacing: 0.75px;
  padding: 2rem 3rem;
  text-align: center;
  transform: scale(0.7);
  box-shadow: 0 2rem 6rem rgba(0, 0, 0, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
}

.project__link:hover,
.project__link:active {
  transform: scale(0.75) skewX(-10deg);
}

.project__modal {
  font-size: 2rem;
  list-style-type: none;
  display: flex;
  flex-direction: column;
  /* gap: 1.2rem; */
}

.project__modal li:last-child {
  margin-bottom: 3.2rem;
}

.project__link span {
  color: #333;
}
