/* ========== Font Setup ========== */
@font-face {
  font-family: 'Satoshi';
  src: url('../fonts/Satoshi-Light.woff2') format('woff2'),
       url('../fonts/Satoshi-Light.woff') format('woff'),
       url('../fonts/Satoshi-Light.ttf') format('truetype');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Satoshi';
  src: url('../fonts/Satoshi-LightItalic.woff2') format('woff2'),
       url('../fonts/Satoshi-LightItalic.woff') format('woff'),
       url('../fonts/Satoshi-LightItalic.ttf') format('truetype');
  font-weight: 300;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'Satoshi';
  src: url('../fonts/Satoshi-Regular.woff2') format('woff2'),
       url('../fonts/Satoshi-Regular.woff') format('woff'),
       url('../fonts/Satoshi-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Satoshi';
  src: url('../fonts/Satoshi-Italic.woff2') format('woff2'),
       url('../fonts/Satoshi-Italic.woff') format('woff'),
       url('../fonts/Satoshi-Italic.ttf') format('truetype');
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'Satoshi';
  src: url('../fonts/Satoshi-Medium.woff2') format('woff2'),
       url('../fonts/Satoshi-Medium.woff') format('woff'),
       url('../fonts/Satoshi-Medium.ttf') format('truetype');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Satoshi';
  src: url('../fonts/Satoshi-MediumItalic.woff2') format('woff2'),
       url('../fonts/Satoshi-MediumItalic.woff') format('woff'),
       url('../fonts/Satoshi-MediumItalic.ttf') format('truetype');
  font-weight: 500;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'Satoshi';
  src: url('../fonts/Satoshi-Bold.woff2') format('woff2'),
       url('../fonts/Satoshi-Bold.woff') format('woff'),
       url('../fonts/Satoshi-Bold.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Satoshi';
  src: url('../fonts/Satoshi-BoldItalic.woff2') format('woff2'),
       url('../fonts/Satoshi-BoldItalic.woff') format('woff'),
       url('../fonts/Satoshi-BoldItalic.ttf') format('truetype');
  font-weight: 700;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'Satoshi';
  src: url('../fonts/Satoshi-Black.woff2') format('woff2'),
       url('../fonts/Satoshi-Black.woff') format('woff'),
       url('../fonts/Satoshi-Black.ttf') format('truetype');
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Satoshi';
  src: url('../fonts/Satoshi-BlackItalic.woff2') format('woff2'),
       url('../fonts/Satoshi-BlackItalic.woff') format('woff'),
       url('../fonts/Satoshi-BlackItalic.ttf') format('truetype');
  font-weight: 900;
  font-style: italic;
  font-display: swap;
}

/* Variable Fonts */
@font-face {
  font-family: 'Satoshi-Variable';
  src: url('../fonts/Satoshi-Variable.woff2') format('woff2'),
       url('../fonts/Satoshi-Variable.woff') format('woff'),
       url('../fonts/Satoshi-Variable.ttf') format('truetype');
  font-weight: 300 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Satoshi-Variable';
  src: url('../fonts/Satoshi-VariableItalic.woff2') format('woff2'),
       url('../fonts/Satoshi-VariableItalic.woff') format('woff'),
       url('../fonts/Satoshi-VariableItalic.ttf') format('truetype');
  font-weight: 300 900;
  font-style: italic;
  font-display: swap;
}

/* ========== Base Styles ========== */

html, body {
    height: 100%;
  margin: 0;
  padding: 0;
  font-family: 'Satoshi-Variable', 'Helvetica Neue', sans-serif;
  display: flex;
  flex-direction: column;
}

a,
a:visited,
a:hover,
a:active,
a:focus {
  color: inherit;             
  text-decoration: none;     
  cursor: pointer;           
}



/* Back to top button */
#topBtn {
  display: inline-block;
  background-color: #363535;
  width: 50px;
  height: 50px;
  text-align: center;
  border-radius: 4px;
  position: fixed;
  bottom: 30px;
  right: 30px;
  transition: background-color .3s, 
    opacity .5s, visibility .5s;
  opacity: 0;
  visibility: hidden;
  z-index: 1000;
}
#topBtn::after {
  content: "\f077";
  font-family: FontAwesome;
  font-weight: normal;
  font-style: normal;
  font-size: 2em;
  line-height: 50px;
  color: #fff;
}
#topBtn:hover {
  cursor: pointer;
  background-color: #ea4f3d;
}
#topBtn:active {
  background-color: #555;
}
#topBtn.show {
  opacity: 1;
  visibility: visible;
}

@media (min-width: 500px) {
  #topBtn {
    margin: 30px;
  }
}

/* ========== Header ========== */
.heading {
  height: 17vh;
  width: 100%;
  background-color: #ea4f3d;
  color: #363535;
  display: flex;
  position: relative;
  font-weight: 900;
  padding-bottom: 0.5rem;
  display: flex;
  flex-direction: column;
}


.text {
  font-size: 3.5rem;
  margin:auto;
  margin-left: 1rem !important;
  text-align: left;
  letter-spacing: 0.3rem;
}

/* ========== Carousel ========== */
#carousel {
  position: relative;
  width: 100%;
  height: 100%;
  background-color: #ea4f3d;
  overflow-x: auto;
  display: flex;
  flex-direction: column;
}

/* Snap Scrolling - Modern Spec */
#carousel.snap {
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}
#carousel.snap.vertical {
  flex-direction: column;
  scroll-snap-type: y mandatory;
}
#carousel.snap > div {
  scroll-snap-align: center;
}

/* Snap Scrolling - Legacy Spec (for compatibility) */
#carousel.snap {
  scroll-snap-type: mandatory;
  -ms-scroll-snap-type: mandatory;
  scroll-snap-points-x: repeat(100%);
  -ms-scroll-snap-points-x: repeat(100%);
}
#carousel.snap.vertical {
  scroll-snap-points-x: initial;
  -ms-scroll-snap-points-x: initial;
  scroll-snap-points-y: repeat(100%);
  -ms-scroll-snap-points-y: repeat(100%);
}

/* Carousel Items */
#carousel > div {
  min-width: 90vw;
  min-height: 93vh;
  margin: 2vh auto;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  text-align: center;
  color: #fff;
  font-size: 20px;
  background-color: white;
}

@media (min-width: 500px) {
  #carousel > div {
    min-height: 75vh;
  }

  .text {
    font-size: 6rem;
    margin: auto !important;
  }

  .heading {
    padding-bottom: 2rem;
  }

  .outer {
    margin: 1rem;
  }
  
}

#project {
  background-color: white;
  width: 50vw;
  /* height: 100%; */
}



/*
  Project Cards
*/

#project {
  display: flex;
  flex-direction: column;
}

.text-content {
  padding: 1rem;
  color: #363535;
  padding-top: 0.5rem !important;
}

.text-content h1 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.text-content hr {
  border: none;
  border-top: 2px solid #ccc;
  margin-bottom: 1rem;
}

.text-content p {
  font-size: 1rem;
  line-height: 1.6;
}

.image-content {
  height: 30%;
  width: 100%;
}

.image-content img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}




/* Larger screen layout */
@media (min-width: 535px) {
  #project {
    flex-direction: row-reverse;
  }

  .text-content, .image-content {
    flex: 1;
  }

  .image-content {
    height: 100% !important;
  }

  .image-content img {
    height: 100%;
    width: 100%;
    object-fit: cover;
  }
  
}


/* Back button */
.outer {
  position: absolute;
  /* margin: auto; */
  width: 50px;
  margin: 1rem;
  cursor: pointer;
  align-self: flex-end;
}

.inner {
  width: inherit;
  text-align: center;
}

label { 
  font-size: .8em; 
  line-height: 4em;
  text-transform: uppercase;
  color: #0000009a;
  transition: all .3s ease-in;
  opacity: 0;
  cursor: pointer;
}

.inner:before, .inner:after {
  position: absolute;
  content: '';
  height: 1px;
  width: inherit;
  background: black;
  left: 0;
  transition: all .3s ease-in;
}

.inner:before {
  top: 50%; 
  transform: rotate(45deg);  
}

.inner:after {  
  bottom: 50%;
  transform: rotate(-45deg);  
}

.outer:hover label {
  opacity: 1;
}

.outer:hover .inner:before,
.outer:hover .inner:after {
  transform: rotate(0);
}

.outer:hover .inner:before {
  top: 0;
}

.outer:hover .inner:after {
  bottom: 0;
}
