/*
------------------
  01 TYPOGRAPHY
------------------

Inter: 400, 500, 600, 700
Roboto Slab: 400

FONT SIZES (px)
10 / 12 / 14 / 16 / 18 / 20 / 24 / 30 / 36 / 44 / 52 / 62 / 74 / 86 / 98

FONT SIZES (rem)
1 / 1.2 / 1.4 / 1.6 / 1.8 / 2.0 / 2.4 / 3.0 / 3.6 / 4.4 / 5.2 / 6.2 / 7.4 / 8.6 / 9.8

------------------
- Font Weights: 

Thin / Paragraph: 300
Default: 400
Medium: 500
Semi-Bold: 600
Bold: 700

------------------
- Line Height: 

Default: 1
Small: 1.05
Medium: 1.2
Paragraph: 1.8

------------------
- Letter spacing

-1px
-0.5px
0.5px
1.2px (Button Text)

------------------
  02 COLORS
------------------

- Primary: 
#032c86;

- Tints:
#334e8e;

- Shades: 
#e6c654 (unused)


- Greys:
#888 (not very readable at some point / only used for copyright)
#555
#333

------------------
  03 COLORS
------------------

  box-shadow: 0 0.4rem 0.6rem rgba(0, 0, 0, 0.3);
 
------------------
  04 BORDER RADIUS
------------------

Medium: 10px; (elements in rounded elements e.g. images)
Default: 15px;

------------------
  04 WHITE SPACE
------------------

generaly: 12.8rem 

------------------
  05 SPACING
------------------

- SPACING(px)
2 / 4 / 8 / 12 / 16 / 24 / 32 / 48 / 64 / 80 / 96 / 128

- SPACING(REM)
0.2 / 0.4 / 0.8 / 1.2 / 1.6 / 2.4 / 3.2 / 4.8 / 6.4 / 8.0 / 9.6 / 12.8

*/

/* ------------------------------------- */
/* SECTION PROJECT FOR MOBILE CATEGORIES */
/*  PROJECT AR STACKED ON TOP OF EACH    */
/*  OTHER INSTEAD OF NEXT TO EACH OTHER  */
/* ------------------------------------- */

/* -------- CATEGORY COMPONENT ------- */

.section-categories-mobile {
  position: relative;
  display: none;
  flex-direction: column;
  margin: 0 auto;
  padding: 8.8rem 3.6rem 1.2rem 3.6rem;
  max-width: 80rem;
  height: 900px;
}

#catm2 {
  padding: 1.2rem 3.6rem 1.2rem 3.6rem;
}

.category-preview-project-mobile {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 15px;
  transition: all var(--animationSpeed2) ease-out;
  z-index: 1;
}

.category-open-mobile {
  flex: 1 1 100%;
}

.category-closed-mobile {
  flex: 1 1 5%;
}

/* ---------- CATEGORY IMG --------- */

.category-img-container-mobile {
  position: relative;
  width: 95%;
  height: 95%;
  margin: 1.6rem auto auto auto;
  flex: 1 1 50%;
  border-radius: 15px;
  transition: all var(--animationSpeed2) ease-out;
}

.category-img-container-open-mobile {
  transition-delay: 5000ms;
  transition-property: overflow;
  border: solid 1px rgba(0, 0, 0, 0.2);
}

.category-img-container-closed-mobile {
  transition-delay: 5000ms;
  transition-property: overflow;
  border: solid 0px transparent;
}

.category-img-center-mobile {
  position: absolute;
  height: 100%;
  width: 100%;
  border-radius: 15px;
}

.category-img-mobile {
  position: absolute;
  object-position: 50% 50%;
  height: 100%;
  width: 100%;
  object-fit: cover;
  border-radius: 15px;
}

/* -- CATEGORY DESCRIPTION CONTAINER --- */

.category-description-mobile {
  position: relative;
  flex: 0 0 0%;
  padding: 0 5rem;
}

/* ------------ CLOSE BUTTON ------------ */

.category-close-btn-mobile {
  position: absolute;
  text-decoration: none;
  background: none;
  border: none;
  width: 45px;
  height: 45px;
  top: -15px;
  right: 0px;
  opacity: 0.8;
  cursor: pointer;
  background: url(../img/arrow-down.svg);
  z-index: 100;
}

.category-close-open-mobile {
  transition-delay: var(--animationSpeed2);
  transition: all 350ms;
  visibility: visible;
  top: -15px;
}

.category-close-closed-mobile {
  visibility: hidden;
  transition-delay: var(--animationSpeed2);
  transition: all 350ms;
  top: -60px;
}

/* -------- CATEGORY DESCRIPTION ------- */

.category-title-mobile {
  font-size: 3.6rem;
  padding: 2.4rem 1.2rem 0rem 2.4rem;
  margin-bottom: 1.2rem;
  transition: all var(--animationSpeed2) ease-out;
}

.category-title-closed-mobile {
  position: absolute;
  top: -8px;
  padding: 0rem 0rem 0rem 1.2rem;
  font-size: 3rem;
}

.category-description-paragraph-mobile {
  padding: 0 2.4rem;
  margin: 0rem 0rem 2.4rem 0rem;
  transition: all var(--animationSpeed2) ease-out;
}

.category-description-paragraph-open-mobile {
  color: #555;
}

.category-description-paragraph-closed-mobile {
  color: transparent;
  visibility: hidden;
}

/* -------- SEE MORE BUTTON --------- */

.category-description-btn-mobile {
  text-align: center;
  padding-bottom: 1.2rem;
}

/* -------- PROJECT CONTAINERS -------- */

.project-card-container-mobile {
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  transition: all var(--animationSpeed2) ease-out;
}

.project-card-container-closed-mobile {
  flex: 1 1 0%;
}

.project-card-container-open-mobile {
  flex: 1 1 100%;
}

.project-card-mobile-1,
.project-card-mobile-2 {
  display: flex;
  flex-direction: column;
  width: 98%;
  margin: 0 auto;
  border-radius: 15px;
}

.project-card-mobile-1 {
  flex: 1 1 50%;
  margin-top: 1.2rem;
}

.project-card-mobile-2 {
  flex: 1 1 50%;
  margin-top: 1.2rem;
  margin-bottom: 1.2rem;
}

/* ---------- PROJECT IMG ---------- */

.project-card-img-container-mobile {
  position: relative;
  overflow: hidden;
  height: 100%;
  flex: 1 1 100%;
}

.project-card-img-mobile {
  position: absolute;
  width: 95%;
  height: 90%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  object-fit: cover;
  object-position: 50% 50%;
  border-radius: 10px;
  border: 0.5px solid rgba(51, 78, 142, 0.1);
}

/* ------- PROJECT DESCRIPTION -------- */

.project-card-description-mobile {
  display: flex;
  flex: 1 1 50%;
  flex-direction: column;
  align-content: center;
  padding: 0 1.2rem;
  gap: 0rem;
}

/* ------- HELPER VISIBILITY BUTTONS-------- */

.not-hide {
  visibility: visible;
  transition: all 100ms;
}

.hide {
  visibility: hidden;
  transition: all 100ms;
  transition-delay: var(--animationSpeed2);
}
