:root {
    background-color: white;
    font-family: 'elizeth', serif;
    color: #270722;
    font-size: 13px;
    padding: 0;
    --red:#cc3333;
    --green: #ccffcc;
    --yellow: #ffcc99;
}
body {
  margin: 0;
}
h2 {
  text-transform: uppercase;
  letter-spacing: 1px;
}
#header {
  position: relative;
  margin: none;
  z-index: 120;
}
.head-grid {
  background-color: var(--green) ;
}
.header-top{
  display: flex;
  justify-content: space-between;
  padding: 30px;
}
.header-side {
  display: flex;
  flex-direction: row;
  gap: 15px;
}
.name,
.email {
  white-space: nowrap;
}
h1 {
  font-size: 80px;
  grid-column: 1 / -1;
  margin: 6px 0;
}
.mobile-nav-wrap {
  display: flex;
  flex-direction: row;
  justify-content: space-between;

  height: 0;
  overflow: hidden;

  transition: height 0.6s cubic-bezier(.22, 1, .36, 1);
}
#menu-toggle {
  display: none;
}
.hamburger {
  display: flex;
  flex-direction: column;
  position: relative;
  top: 10px;
  gap: 6px;
  width: 30px;
  cursor: pointer;
}
.hamburger span {
  height: 3px;
  width: 100%;
  background: #000;
  display: block;
  transition: 0.3s;
}
.mobile-nav {
  display: flex;
  gap: 80px;
  opacity: 0;
  margin: -1px auto;
  transform-origin: top;
  transform: translateY(-10px);
    transition:
    transform 0.4s cubic-bezier(.4,0,.2,1),
    opacity 0.25s ease;
}
.mobile-nav a{
    flex: 00 auto;
    text-align: center;
    transform-origin: center;
    transform: translateY(5px);
    transition: transform 0.25s ease;
    color: #1c1c1c;
}
.mobile-nav a:hover {
    transform: translateY(0px);
    transform-origin: center;
}
.head-grid:has(#menu-toggle:checked) .mobile-nav-wrap {
  height: 60px;
}
.head-grid:has(#menu-toggle:checked) .mobile-nav-wrap .mobile-nav {
  transform: translateY(0px);
  opacity: 1;
}
#menu-toggle:checked + .hamburger span:nth-child(1) {
  transform: rotate(45deg) translate(8px, 8px);
}
#menu-toggle:checked + .hamburger span:nth-child(2) {
  opacity: 0;
}
#menu-toggle:checked + .hamburger span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}
a, a:visited, a :active{
  color: #6D0C00;
  text-decoration: none;
  display: inline-block;
  transition: transform 0.2s ease;
  transform-origin: left;
  text-align: left;
}
.wave-section {
  z-index: 90;
  background-color: #ffcc99;
}
.portfolio-title {
  position: relative;
  bottom: 450px;
  z-index: 80;
}
.picture {
  z-index: 90;
}
.picture.visible {
  transform: translateY(0);
}
.grow {
  background: #cc3333;

  animation: growHeight linear forwards;
  animation-timeline: scroll();
  animation-range: 0 100%;
}

@keyframes growHeight {
  from {
    height: 0;
  }
  to {
    height: 100vh;
  }
}
.vertical-curve {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  pointer-events: none;
}
.homeGrid {
  position: relative;
  background-color: white;
}
.video {
  position: absolute;
  width: 50%;
  top: 15%;
  left: 40%;
  z-index: 84;

  transform: translateY(40px);
  transition: transform 0.4s cubic-bezier(.22, 1, .36, 1);
}
.video.visible {
  transform: translateY(0);
}
.bg-logo {
  position: relative;
  z-index: 80;
  aspect-ratio: 1/1;
}
.wrapper {
  position: relative;
}
.experience {
  position: relative;
  margin-top: 7.5vh;
  margin-bottom: 30vh;
  z-index: 83;
  height: fit-content;
}
.experience-element {
    position: relative;
  padding: 20px;
  transform: scale(1);
  transition: transform 0.4s ease;
}
.experience-element:hover {
  transform: scale(1.04);
  transform: translateX(10px);
  background-color: #ccffcc;
}
.experience-detail {
  position: absolute;
  top: 0;
  left: 100%;

  width: 300px;
  padding: 20px;

  background: var(--green);

  opacity: 0;
  transform: translateX(-20px);
  transition:
    opacity 0.4s ease,
    transform 0.4s cubic-bezier(.22,1,.36,1);

  pointer-events: none;
}
.experience-element:hover .experience-detail {
  opacity: 1;
  transform: translateX(0);
}
.bg-green {
  position: absolute;
  margin-top: -10vh;
  width: 100%;
  height: 170%;
  background-color: var(--green);
  opacity: 0.5;
  z-index: 81;
  transform: translateY(100px);
  transition: transform 0.4s cubic-bezier(.22, 1, .36, 1);
}
.bg-green.visible {
  transform: translateY(0);
}
.experience-arrow {
  position: absolute;
  left: 5.5vw;
  top: 15vh;
  width: 8px;
  height: 70vh;           
  background: black;

  transform-origin: top;
  transform: scaleY(0);

  animation: arrowGrow linear forwards;
  animation-timeline: view();
  animation-range: entry 0% cover 100%;
}

@keyframes arrowGrow {
  to {
    transform: scaleY(1);
  }
}
.experience h2 {
  position: absolute;
  top: -5vh;
  left: 20vw;
  margin-top: 0;
  z-index: 84;
}
.experience-flex{
  display: flex;
  flex-direction: row;
}
.year-flex {
  position: relative;
  left: 15vw;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  z-index: 84;
}
.experience-grid {
  position:relative;
  left: 20vw;
  width:30%;
  z-index: 84;
}
.experience-grid h3 {
  text-transform: uppercase;
}
.experience-grid p {
  margin-left: 10%;
}
.technical-skills {
  position: relative;
  padding-top: 100px;
  top: 80px;
  background-color: var(--yellow);
  z-index: 93;
}
.technical-skills svg {
  display: block;
}
.education {
  position: absolute;
  left: 40vw;
  margin-top: -20vh;
  width: 45%;
  padding: 30px 60px;
  z-index: 100;
  background-color: white;
}
.book-cover {
  position: absolute; 
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--red);
  z-index: 101;
  transform-origin: right center;
  transform: scaleX(1);
  transition: transform 0.8s cubic-bezier(.22, 1, .36, 1);
}
.book-cover.visible {
  transform: scaleX(0);
}
.technical-square {
  position: absolute;
  top: 25vw;
  left: 15vw;
  width: 30%;
  height: 30%;
  background-color: white;
  padding: 30px 60px;
}
.fine-art-skills {
  position: absolute;
  bottom: 40vh;
  left:52vw;
}



.animation-title {
  position: relative;
  height: 65vh;
  width: 100%;
  background-color: var(--green);
}
.h1-animation {
  position: absolute;
  margin: 0;
  font-size: 500px;
  left: 55vw;
  top: -5vh;
  color: var(--red);
}
.p-animation {
  position: absolute;
  bottom: 5vh;
  left: 10vw;
  width: 30vw;
  font-size: 16px;
  color: black;
}
.beetle {
  position: relative;
  height: 100vh;
  width: 100%;
  background-color: var(--red);
}
.beetle-curve {
  position: absolute;
  top: 100vh;
}
.lava {
  position: relative;
  width: 100%;
  background-color: var(--red);
}


.footer {
  width: 100%;
  height: 35vh;
  background-color: var(--green) ;
}
