/*
SPACING SYSTEM (px)
2 / 4 / 8 / 12 / 16 / 24 / 32 / 48 / 64 / 80 / 96 / 128

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

/* MAIN COLOR: #087f5b
  GREY COLOR: #343a40
 */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* ------------------------ */
/* GENERAL STYLES */
/* ------------------------ */
body {
  font-family: "Inter", sans-serif;
  /* color: #352f44; */
  color:rgb(243, 243, 243);
  border-bottom: 8px;
  background-color: #DBD8E3;
  margin: 10px 50px;
  background-image: url('/bbblurry.svg');
  background-repeat: no-repeat;
  background-size: cover;
}

/* header & nav */

header {
  padding: 10px 10px;
}

#sideNav {
  width: 250px;
  height: 100vh;
  position: fixed;
  right: -250px;
  top: 0;
  background: rgba(221, 212, 212, 0.11);
  border-radius: 10px;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  z-index: 2;
  transition: 0.5s;
}

.navbar {
  height: 55px;
  padding: 0px 15px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(221, 212, 212, 0.11);
  border-radius: 10px;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
} 

nav ul li {
  list-style: none;
  margin: 50px 20px;
}
nav ul li a {
  text-decoration: none;
  color: #352f44;
}

.menuline-1 {
  width: 40px;
  height: 4px;
  background: #ffffff;
  display: inline-block;
}
.menuline-2 {
  margin-left: 13px;
  width: 27px;
  height: 4px;
  background: #ffffff;
  display: inline-block;
}

#menuBtn {
  padding: 4px 8px 10px 10px;
  line-height: 12px;
  position: fixed;
  right: 80px;
  top: 29px;
  z-index: 2;
  cursor: pointer;
  
  background: #DBD8E3;
  border-radius: 10px;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.Nisia_logo {
  height: 80px;
  width: auto;
}

/* intro */

.container {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  height: 90vh;
}

.intro-text-box {
  --duration1: 2.5s;
  --duration2: calc(var(--duration1) / 2);
  --delay1: calc(var(--duration2) / 2);
  --delay2: calc(var(--duration2) + var(--delay1));
  --easing: cubic-bezier(0.65, 0.05, 0.36, 1);
  text-align: center;
    line-height: 1.2;
    margin-top: 2em;
    margin-bottom: 2em;
    opacity: 0;
    transform: translateY(3em);
    animation: loadH1 var(--duration1) var(--easing) var(--delay1) forwards;

    @media screen and (min-width: 981px) {
      font-size: 20px;
    }
}

.gradient_txt {
  background: linear-gradient(to right, #352f44, #a48dd8);
  -webkit-background-clip: text;
  background-clip:text;
  -webkit-text-fill-color: transparent;
  /* text-fill-color: transparent; */
}

.intro-text {
  color: #352f44;
  margin: 30px 0;
  font-size: 18px;
}

  @keyframes loadH1 {
    0% {
      opacity: 0;
      transform: translateY(3em);
    }
    30%,
    50% {
      opacity: 1;
      transform: translateY(3em);
    }
    100% {
      opacity: 1;
      transform: none; 
    }
  }

  /* cards */

  .wrapper {
  padding-bottom: 10vh;
  max-width: 800px;
  margin: 0 auto;
  }

  .card { 
  top: 5vh;
  position: sticky;
  box-shadow: 5px 5px 5px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  background-color: rgba(255, 255, 255, 0.2);
  color:#352f44;
  padding: 40px;
  border-radius: 10px;
  margin-bottom: 40px;
  height: 500px;
  display: grid;
  grid-template-rows: 1fr 1fr 1fr;
  }

 .card span {
  display: block;
  font-size: 14px;
  color: whitesmoke;
  font-weight: 200%;
  margin-bottom: 7px;
}

.card_img {
  max-height: 300px;
  max-width: 100%;
  margin: 10px 0;
  justify-self:center;
}

.multi_card {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr;
  gap: 5px;
  justify-content: space-evenly;
}

.multi_card_stacked {
  display: grid;
  grid-template-rows: 100px 100px 100px;
  justify-content: space-evenly;
  gap: 5px;
}

/* @for $i from 1 through 8 {
  .card:nth-child(#{$i}n) {
    top: $i * 25px;
  }
} */

a:link {
  color:#352f44;
  font-weight: bolder;
  text-decoration: none;
}

a:hover{
  color: #a48dd8;
}

@keyframes slides {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-100%);
  }
}

/* more projects */

.more_projects {
  font-size: 12px;
  color: whitesmoke;
  letter-spacing: 2px;
  margin-bottom: 100px;
  margin-top: 100px;
}

.more_projects ul {
padding-top: 10px;
color: #352f44;
list-style-type: circle;
padding-left: 20px;
}

.more_projects a {
  color:#352f44;
}

.more_projects a:hover {
  text-decoration: underline;
}

/* logo slider */

.logos {
  overflow: hidden;
  padding: 30px 0px;
  white-space: nowrap;
  position: relative;
  margin-bottom: 100px;
}

.logos:before, .logos:after {
  position: absolute;
  top: 0;
  content: '';
  width: 250px;
  height: 100%;
  z-index: 2;
}

.logos:before {
  left: 0;
}

.logos:after {
  right: 0;
}

.logo_items {
  display: inline-block;
  animation: 20s slides infinite linear;
}

.logo_items img{
  height: 70px;
  margin-right: 50px;
  opacity: 50%;
}

/* work */

.work_text {
  font-size: 52px;
  font-family: "Modak", system-ui;
  color: whitesmoke;
  letter-spacing: 2px;
  margin-bottom: 20px;
  width: 100%;
}

.work_logo {
  width: 70px;
  padding-right: 20%;
}

.work_section {
  display: grid;
  grid-template-columns: 0.5fr 1.5fr 1fr;
  align-items: center;
  color:#352f44;
  border-bottom: 1px solid rgba(245, 245, 245, 0.543);
  padding-bottom: 20px;
  margin-bottom: 20px;
}

.work_description {
  font-size: 12px;
  padding-right: 20px;
}

.work {
  margin-bottom: 100px;
}


/* favorite books */

.fav_books {
font-size: 52px;
font-family: "Modak", system-ui;
color: whitesmoke;
letter-spacing: 2px;
margin-bottom: 20px;
}

.book_img {
  height: 350px;
  box-shadow: 15px 15px 15px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(16px);
}

.content h3 {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 10px;
}

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

.book_container .box {
  position: relative;
  width: 350px;
  height: 400px;
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 70px 40px;
}

.book_container .box::after {
  content:'';
  position: absolute;
  top: 0;
  left: 50;
  width: 50%;
  height: 100%;
  background: #fff;
  border-radius: 8px;
  transform: skewX(15deg);
  transition: 0.5s;
  filter: blur(30px);
}

.book_container .box:hover:before,
.book_container .box:hover:after {
  transform: skewX(0deg);
  left: 20px;
  width: calc(100% - 90px);
}

.book_container .box:nth-child(1):before,
.book_container .box:nth-child(1):after {
  background: linear-gradient(315deg, #ffbb007c, #ff00597d)
}

.book_container .box:nth-child(2):before,
.book_container .box:nth-child(2):after {
  background: linear-gradient(315deg, #03a8f473, #ff00597e)
}

.book_container .box:nth-child(3):before,
.book_container .box:nth-child(3):after {
  background: linear-gradient(315deg, #4fff037e, #00d0ff78)
}

@keyframes animate {
  0%, 100%
  {
    transform: translateY(10px);
  }
  
  50%
  {
    transform: translate(-10px);
  }
}

.book_container .box .content {
  position: relative;
  left: 0;
  padding: 20px 40px;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  z-index: 1;
  transform: 0.5s;
  color: #fff;
}

.book_container .box:hover .content {
  left: -25px; 
  padding: 40px 40px;
  color:#352f44;
}

/* footer */

footer {
  padding: 0 20px;
  width: 100%;
  height: 10vh;
  background-color:#352f44;
  color:#DBD8E3;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-radius: 10px;
  margin-top: 100px;
}

a:link.mail {
  color:#DBD8E3;
  font-weight: normal;
}

a:link.mail:hover {
  color: #a48dd8;
}

/* floating star pet */

#star-pet {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 1000;
  width: 90px;
  height: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  user-select: none;
  /* subtle float animation */
  animation: star-float 3s ease-in-out infinite;
}

#star-pet img {
  max-width: 100%;
  max-height: 100%;
  display: block;
}

@keyframes star-float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-6px);
  }
}

@media (max-width: 700px) {
  #star-pet {
    width: 70px;
    height: 70px;
    right: 12px;
    bottom: 12px;
  }
}
