@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&family=Sacramento&display=swap');

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: 'Poppins', sans-serif;
}

:root {
  --bg: #0c0c0c;
  --text-color: #fff;
  --main-color: #ff73b9;
  --yellow: #fffff0;

  --big-font: 6rem;
  --med-font: 1.5rem;
  --paragraph: 1rem;
}

/* ----------------------------- GENERAL STYLING ---------------------------- */
html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--text-color);
  font-size: var(--paragraph);
  overflow-x: hidden;
}

header {
  position: absolute;
  width: 100%;
  top: 0;
  right: 0;
  z-index: 2;
  padding: 3em;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: all .50s ease;

  div {
    padding: 1em 3em;
  }
}
section {
  padding: 0 7%;
  height: 100vh;
}
/* ------------------------------ TEXT STYLING ------------------------------ */
h1 {
  color: white;
  font-weight: 400;
  font-family: "Sacramento", cursive, serif;
  letter-spacing: .02em;
  font-size: var(--big-font);

  span {
    font-family: "Sacramento", cursive, serif;
  }
}

h2 {
  font-size: var(--med-font);
  font-weight: 400;
}

p {
  width: 100%;
  /* max-width: 550px; */
  line-height: 1.5rem;
  margin-bottom: 1rem;
  font-size: var(--paragraph);
}

a {
  text-decoration: none;
  color: var(--text-color);
}

li {
  list-style: none;
}
/* ------------------------------ HEADER STUFF ------------------------------ */
.logo img {
  width: 50%;
  height: auto;
  transition: all .6s ease;

  &:hover {
    transform: translateY(-10px);
  }
}
/* NAVIGATION */
.navlist {
  display: flex;

  a {
    display: inline-block;
    margin: 0 1em;
    transition: all .6s ease;

    &:hover {
      color: var(--main-color);
    }
  }
}

.nav-btn {
  display: inline-block;
  padding: 0.5em 1.5em;
  border: 2px solid var(--yellow);
  background: var(--yellow);
  border-radius: 8px;
  color: var(--bg);
  transition: all .6s ease;
  cursor: pointer;

  &:hover {
    background-color: var(--main-color);
    border: 2px solid var(--main-color);
    color: var(--bg);
  }
}

#menu-icon {
  font-size: 3rem;
  z-index: 999;
  cursor: pointer;
  margin-left: 25px;
  display: none;
}

.icons {
  display: flex;
  justify-content: right;
  margin: 1em;
  gap: 1em;
  position: relative;
  text-align: right;

  i {
    color: var(--text-color);
    margin: 0.1;
    font-size: var(--med-font);
    transition: all .6s ease;

  }
}

i:hover {
  transform: translateY(-10px);
  color: var(--main-color);
}

.scroll {
  position: absolute;
  top: 92%;
  right: 7%;
  transform: translateY(-50%);

  a i {
    margin-right: 0.5em;
  }
}

/* ------------------------------ SECTION: HERO ----------------------------- */
section.hero {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  align-items: center;
  position: relative;
  width: 100%;
  background-image: url(../public/images/bg.png);
  background-size: cover;
  background-position: center;
}

.hero-text {
  img {
    width: 25%;
  }
}
/* ------------------------------ SECTION: LOLA ----------------------------- */
section#lola {
  width: 100vw;
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: row;
  background: rgb(12, 12, 12);
  background: linear-gradient(180deg, rgba(12, 12, 12, 1) 0%, rgba(0, 0, 0, 1) 15%, rgba(68, 61, 62, 1) 100%);

  h3 {
    i {
      font-weight: 300;
      margin-left: 1em;
      opacity: 0.5;
    }
  }

  p {
    padding: 2em 0;
    max-width: 550px;
  }

  img {
    width: 100%;
    height: 50vh;
    transition: all .6s ease-in-out;

    &:hover {
      transform: scale(1.1);
    }
  }
}
/* ----------------------------- SECTION: STORY ----------------------------- */
section#story {
  display: grid;
  grid-template-columns: 1fr 1fr;
  justify-content: center;
  align-items: center;
  height: 100vh;
  background: rgb(12, 12, 12);
  background: linear-gradient(0deg, rgba(12, 12, 12, 1) 0%, rgba(0, 0, 0, 1) 15%, rgba(68, 61, 62, 1) 100%);

  #why {
    display: flex;
    justify-content: center;
  }

  #story-text {
    margin: 0 auto;
    display: flex;
    flex-direction: column;
  }

  img {
    width: 60%;
    height: auto;
    transform: translateY(-10px);
  }
}
/* ----------------------------- SECTION: ABOUT ----------------------------- */
section#about {
  display: grid;
  grid-template-columns: 1fr 1fr;
  justify-content: center;
  align-items: center;
  gap: 2em;
  background: rgb(12, 12, 12);
  background: linear-gradient(180deg, rgba(12, 12, 12, 1) 0%, rgba(0, 0, 0, 1) 15%, rgba(68, 61, 62, 1) 100%);

  h2 {
    width: 80%;
    padding-bottom: 1em;
  }

  div#baby-pic {
    display: flex;
    justify-content: right;
  }

  img {
    width: 60%;
    height: auto;
    transform: translateY(-10px);
    border-radius: 200px;
  }
}
/* ----------------------------- FOOTER STYLING ----------------------------- */

footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 2em 0;
  padding: 0 6em;
  padding-bottom: 2em;

  .footer-text {
    display: flex;
    img {
      width: 25%;
    }
  }

  .bottom-nav {
    width: 100%;
    ul {
      display: flex;
      gap: 1em;
      li {
        text-align: center;
        width: 100%;
      }
    }
  }
  a {
    transition: all .6s ease;

    &:hover {
      color: var(--main-color);
    }
  }
}

/* footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgb(12, 12, 12);

  .footer-text {
    display: flex;
    align-items: center;
    div {
      display: flex;
      justify-content: right;
      flex-direction: column;
      img {
        width: 50%;
        padding: 1em;
      }
      }
  }
  a {
    display: inline-block;
    margin: 0 1em;
    transition: all .6s ease;

    &:hover {
      color: var(--main-color);
    }
  }

  div {
    padding-left: 3em;
    span {
      h1 {
        font-size: 4rem; 
        line-height: 1em;
      }
    }
  }
  .bottom-nav {
    padding: 1em 3em;
    ul {
      display: flex;
      gap: 3em;
    }
  }
} */

/* ----------------------------- BUTTON STYLING ----------------------------- */


/* Button Hover Glow Effect */
/* Source: https://prismic.io/blog/css-button-animations */
#glow-on-hover {
  border: 1px solid palevioletred;
  color: #fff;
  background: transparent;
  cursor: pointer;
  position: relative;
  z-index: 0;
  border-radius: 10px;
  padding: 1em 3em;
}

#glow-on-hover:before {
  content: '';
  background: linear-gradient(45deg, pink, plum, violet, purple, red);
  position: absolute;
  top: -2px;
  left: -2px;
  background-size: 400%;
  z-index: -1;
  filter: blur(5px);
  width: calc(100% + 4px);
  height: calc(100% + 4px);
  animation: glowing 20s linear infinite;
  opacity: 0;
  transition: opacity .3s ease-in-out;
  border-radius: 10px;
}

#glow-on-hover:active {
  color: #000
}

#glow-on-hover:active:after {
  background: transparent;
}

#glow-on-hover:hover:before {
  opacity: 1;
}

#glow-on-hover:after {
  z-index: -1;
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  background: #111;
  left: 0;
  top: 0;
  border-radius: 10px;
}

@keyframes glowing {
  0% {
    background-position: 0 0;
  }

  50% {
    background-position: 400% 0;
  }

  100% {
    background-position: 0 0;
  }
}


/* ---------------------------- 3D SCENE STYLING ---------------------------- */
/* Film Grain effect */
/* https://github.com/taimoorshahzada/Film-Grain-Noise-Effect-on-Background-in-Website-using-Pure-CSS?utm_source=github */

.noise::before {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  content: "";
  opacity: .05;
  z-index: 1000;
  pointer-events: none;
  background: url('/public/images/noise.gif');
}
/* ----------------------------- IFRAME STYLING ----------------------------- */
.frame-container {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  gap: 1rem;
  border: 0;
  width: 100%;
  height: auto;
}

iframe {
  width: 75%;
  height: 55vh;
  border: 1px solid var(--bg);
  border-radius: 900px;
}


/* --------------------------- RESPONSIVE SCREENS --------------------------- */
@media(max-width: 1770px) {
  header {
    padding: 1.5em 4%;
  }

  .icons {
    padding: 0 4%;
  }

  .scroll {
    right: 4%;
  }
}
/* RESPONSIVE SCREEN 900PX */
@media(max-width: 900px) {
  :root {
    --big-font: 5rem;
    --med-font: 1rem;
    --paragraph: 0.85rem;
  }
  /* FONTS AND ICONS */
  h1 {
    font-size: 4rem;
  }

  h4 {
    font-family: "Sacramento", cursive, serif;
  }

  .icons {
    display: none;
  }

  /* HERO SECTION */
  section.hero {
    padding: 0 4%;
    display: grid;
    grid-template-columns: 1fr;
    justify-content: center;
    align-items: center;
    height: auto;

    .hero-text {
      padding: 4%;
      margin-top: 15%;
      text-align: center;
    }
  }

  .scroll {
    display: none;
  }

  .btn {
    padding: 0.3em 0.6em;
  }

  #menu-icon {
    display: block;
    position: relative;
    z-index: 99;
  }

  .navlist {
    position: absolute;
    width: 100%;
    height: 100vh;
    padding: 6.25em 3.125em;
    top: 0;
    right: 0;
    bottom: 0;
    left: 100%;
    display: flex;
    flex-direction: column;
    backdrop-filter: blur(32px);
    transition: all .6s ease-in-out;

    a {
      display: block;
      padding: 0;
      margin: 0 0 1em 0;
      font-size: 1.7rem;

      &:hover {
        transform: translateY(-5px);
      }
    }
  }

  .navlist.open {
    left: 0;
  }
  /* IFRAME */
  iframe {
    width: 75%;
    height: 40vh;
    border: 3px solid var(--bg);
    border-radius: 900px;
    object-fit: contain;
  }
  /* LOLA SECTION */
  section#lola {
    padding: 15%;
    height: 70vh;
  }

  #app {
    width: 100vw;
  }
  /* STORY SECTION */
  section#story {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-bottom: 3em;
    height: 70vh;

    #story-text {
      text-align: center;
      display: flex;
      flex-direction: column;
      justify-content: center;

      p {
        margin: 0 auto;
      }
    }

    #why {
      display: flex;
      justify-content: center;
    }

    div p {
      width: 80%;
    }
  }
  /* ABOUT SECTION */
  section#about {
    display: flex;
    justify-content: center;
    flex-direction: column;
    text-align: center;

    h2 {
      margin: 0 auto;
    }

    img {
      margin-top: 2em;
      width: 100%;
    }
  }
  /* FOOTER STYLE */
  footer {
    display: flex;
    justify-content: center;
    flex-direction: column;
    text-align: center;
    margin: 0 auto;

    .footer-text {
      margin: 0 auto;
      div {
        div {
          padding-left: 0 !important;
          padding: 0.5em 0;
        }
      }
      img {
        padding: 1em 0;
        width: 100%;
      }
    }
    .bottom-nav {
      margin-top: 2em;
      ul {
          display: flex
;
          flex-direction: column;
          gap: 1em;
      }
  }
  }
}
/* --------------------------- THREE JS SCENE TEXT -------------------------- */
/* SCENE TEXT */
.text {
  color: #dfdcff;
  font-size: clamp(2rem, 12rem, 7vw);
  line-height: 1.2;
  box-sizing: border-box;
  padding: 5%;
  width: 100%;
  text-align: left;
  perspective: 500px;
}
/* SCENE CANVAS */
#three-canvas {
  display: flex;
  justify-content: center;

  p {
    text-align: center;
    position: absolute;
    top: 100px;
    z-index: 99;
    opacity: 0.5;


    &:hover {
      opacity: 1;
      cursor: pointer;
    }
  }
}