* {
  box-sizing: border-box;
  border: none;
  outline: none;
}

body {
  font-family: "DM Sans", sans-serif;
  font-optical-sizing: auto;
  font-weight: 300;
  font-style: normal;
  color: #EDEFDF;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  font-size: 1.25rem;
}

h1 {
  color: #EDEFDF;
  margin-bottom:1.4rem;
  font-size: 6rem;
  font-family: "Yeseva One", serif;
  font-weight: 400;
  font-style: normal;
  text-shadow: 1px 1px 2px black;
  margin-bottom: 1.4rem;
}

h2 {
  font-size: 6rem;
  margin: 0;
  font-family: "Yeseva One", serif;
  font-weight: 400;
  font-style: normal;
  color: #EDEFDF;
  line-height: 1;
}

h3 {
  font-size: 3rem;
  line-height: 90%;
}

@media (max-width: 640px) {
  h1 {
    font-size: clamp(3.5rem, 2.25rem + 3.125vw, 6rem);
  }    
  
  h2 {
    font-size: clamp(3.5rem, 2.25rem + 3.125vw, 6rem);
  }
  
  h3{
    font-size: clamp(1.5rem, 0.75rem + 1.875vw, 3rem);
  }
}

.content {
    height: 200vh;
    position: relative;
}

button {
  color: #edefdf;
  font-size: 2rem;
  background-color: #ab4e68;
  border: none;
  border-radius: 30px;
  box-shadow: 0 3px 8px rgb(0 0 0 / 0.9);
}

@media (max-width: 640px) {
  button {
    font-size: clamp(1.5rem, 1.25rem + 0.625vw, 2rem);
  }
}

/* start of section negativeone (From Bean to Bar) */

.negativeone {
    background: linear-gradient(90deg,rgba(55, 61, 31, 0.5) 0%, rgba(171, 78, 104, 0.5) 100%), url(Project1/Images/pods-on-branch.webp);
    background-repeat: no-repeat;
    background-size: cover; 
    padding: 4rem 0 4rem 4rem;

    display:flex;
    flex-direction: column;
    justify-content: end;

}

#go-to-bottom {
  width: 300px;
  height: auto;
  padding: 20px;
  border-radius: 30px;
}

@media (max-width: 640px) {
  #go-to-bottom {
    width: clamp(180px, 50vw, 200px);
    padding: 12px;
  }
}


/* start of section zero (cacao tree) */
.zero {
  position: relative;
  height: 100vh;
  overflow: hidden;
  background: linear-gradient(90deg, rgba(55, 61, 31) 0%, rgba(171, 78, 104) 100%);
}

.zeroflex p {
  width: 50%;
  padding: 0 0 0 4rem;
}

.zeroflex h2 {
  padding: 4rem 0 0 4rem;
}

/* SVG style for cacao tree */

.zeroflex {
  position: relative;
  z-index: 1;
  height: 100vh;
}

.svg-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 105vw;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

#cacao-tree-svg {
  width: 105vw;
  height: auto;
  position: absolute;
  left: -2.5vw;
  top: 0;
}

.cls-1 {
  fill: #3f320c;
}

.cls-2 {
  stroke: #98b545;
  stroke-miterlimit: 10;
  stroke-width: 5px;
}

.cls-2, .cls-3 {
  fill: #5a8500;
}

.cls-4 {
  fill: #f5ca2d;
}

.cls-5 {
  fill: #86a940;
}

.cls-6 {
  fill: #3b5c04;
}

.branch {
  fill: #2c2200;
}

#go-to-top {
    position: absolute;
    bottom: 0px;
}

@media (max-width: 640px){
  .zero p {
    margin-top:300px;
    width:100%;
    padding: 0 4rem 0 4rem;    
  }
}

        /* start of section one (Harvesting) */
.one {
  padding: 4rem;  
  background: linear-gradient(90deg,rgba(55, 61, 31) 0%, rgba(171, 78, 104) 100%);
  display: flex;
}

.left {
  width:70%;
}

.right {
  width:30%;
}
        /* Cocoa Pod Clickable Animation */
.image-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100vh;
    width: 100vw;
    background: #fefefe;
}

.image-stack {
    position: relative;
    width:50%;
}

.image-layer {
    position: absolute;
    transform: translate(10%, 30%);
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
}

#podLayer,
#huskLayer {
    transform: none;
}

.image-layer.active {
    opacity: 1;
    pointer-events: auto;
    cursor: pointer;
}

#beansLayer.active {
    cursor: default;
}

.image-layer img {
    max-width: 100%;
    max-height: 100%;
    display: block;
}

@media (max-width: 640px){
  
  .one {
    flex-direction: column;
    align-items: center;
  }
  
  .left {
    width: 100%;
  }
  
  .image-layer img {
    max-width: 200%;
    max-height: 200%;
  }
}


/* start of section two (Fermentation) */

.two {
  background: url(Project1/Images/fermentation.png);
  background-repeat: no-repeat;
  background-size: cover; 
  background-position: bottom;
  width: 100%;
  height: auto;
}

.two h2 {
  padding: 4rem;
  text-shadow: 1px 1px 2px black;
}

.fermentation-wrapper {
  width: 100vw;
  display: flex;
  justify-content: space-between;
}

.clock-container {
  gap: 1rem;
  position: absolute;
  bottom: 10%;
  right: 25%;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.clock-container button {
  font-size: 1rem;
  width: 300px;
  height: auto;
  padding: 20px;
  border-radius: 30px;
}

.clock-container button:hover {
  background-color: #edefdf;
  cursor: default;
  color:#ab4e68;
}

.hand {
    width: 10px;
    height: 140px;
    border-radius: 10px;
    background-color: #3e2723;
    position: absolute;
    top: 10px;
    left: 50%;
    transform-origin: bottom center;
    transform: rotate(0deg);
}


/* Glow pulse animation for end of fermentation */
.clock-face.glow {
  box-shadow: 0 0 30px 10px rgba(255, 150, 100, 0.4), inset 0 0 20px rgba(255, 140, 80, 0.5);
  transition: box-shadow 1s ease-in-out;
}

.inner-glow {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: radial-gradient(circle at center, rgba(255, 180, 120, 0.2), transparent 70%);
  opacity: 0;
  pointer-events: none;
  transition: opacity 1s ease-in-out;
  z-index: 1;
}

.inner-glow.show {
  opacity: 1;
}

.clock-face {
  width: 300px;
  height: 300px;
  border: 10px solid rgba(113, 119, 68, 1);
  border-radius: 50%;
  position: relative;
  background: radial-gradient(circle, #fff9f4, #f0e5dd);
  box-shadow: inset 0 0 15px rgba(50, 20, 10, 0.1);
}

.readout {
  font-size: 1.5rem;
  color: rgba(237, 239, 223, 1); 
  font-weight: 800;
  text-shadow: 1px 1px 2px black;
}

.header-and-body {
  background-color: rgba(55, 61, 31, 0.75);
  border-radius: 0 0 50px 0;
  position: absolute;
  top:0%;
  left: 0%;
  margin: 0;
  height: auto;
  width: 65%;
  font-size: 1.25rem;

  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.fermentation-text {
  font-family: "DM Sans", sans-serif;
  font-optical-sizing: auto;
  font-weight: 300;
  font-style: normal;
  
  max-width: 100%;
  height: auto;
  opacity: 0;
  transition: opacity 1s ease-in;
  font-size: 1.5rem;
  line-height: 1.5;
  
  margin-left: 4rem;
}

.fermentation-text.show {
    opacity: 1;
}

@media (max-width: 640px) {
  
  .two {
    background-position: left;
  }
  
  .clock-container {
    position: absolute;
    bottom: 6%;
    left: 0%;
    justify-content: start;
  }
  
  .clock-container button {
    width: clamp(180px, 50vw, 200px);
    padding: 12px;
  }
  
  .clock-face {
    width: 150px;
    height: 150px;
    border: 5px solid rgba(113, 119, 68, 1);
  }
  
  .hand {
    width: 5px;
    height: 70px;
    border-radius: 5px;
  }
  
  .fermentation-text {
    max-width: 100%;
    font-size: clamp(1rem, 0.75rem + 0.625vw, 1.5rem);
    margin: 4rem;
    position: absolute;
    bottom: 45%;
  }
}

#startBtn {
  font-size:2rem;
  width: 600px;
}

/* start of section three (Drying) */

.three { 
  background: linear-gradient(90deg, rgba(55, 61, 31, .7) 0%,rgba(146, 150, 127, 0.7) 50%, rgba(237, 239, 223, 0.7) 100%), url(Project1/Images/beans-drying.jpeg); 
  background-repeat: no-repeat;
  background-size: cover; 
  padding: 4rem;
  font-size: 1.25rem;
}

.three-left {
 background-color: rgba(55, 61, 31, 0.75);
  padding: 32px;
  border-radius: 0 0 50px 0;
  position: absolute;
  top:0%;
  left: 0%;
  margin: 0;
  height: auto;
  width: 65%;
  font-size: 1.25rem;
  
  display: flex;
  flex-direction: column;
  align-items: flex-start; 
}

@media (max-width: 640px) {
  .three p {
    font-size: clamp(1rem, 0.75rem + 0.625vw, 1.5rem);
  }
}

/* start of section four (Roasting) */
.four {
  background: linear-gradient(90deg, rgba(55, 61, 31, .5) 0%, rgba(0, 0, 0, 0.25) 100%), url(Project1/Images/beans-roasting.jpeg);
  background-repeat: no-repeat;
  background-size: cover; 
  padding: 4rem;
}

.four-left {
  background-color: rgba(55, 61, 31, 0.75);
  padding: 32px;
  border-radius: 50px 0 0 0;
  position: absolute;
  bottom:0%;
  right: 0%;
  margin: 0;
  height: auto;
  width: 65%;
  font-size: 1.25rem;
  
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

@media (max-width: 640px) {
  .four-left {
    font-size: clamp(1rem, 0.75rem + 0.625vw, 1.5rem);
    width: 70%;
}
}
/* start of section 5 (Cracking & winnowing) */

.five {
  display: flex;
  height: 100vh;
  width: 100vw;
  overflow: hidden;
  margin: 0;
  padding: 0;
}

.video-block {
  flex: 1;
  height: 100%;
  position: relative;
  overflow: hidden;
}

.video-block video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.overlay {
  position: absolute;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-family: "Yeseva One", serif;
  font-size: 2rem;
  z-index: 2;
  transition: background-color 0.3s ease;
  cursor: pointer;
}

.overlay:hover {
  background-color: rgba(171, 78, 104, 0.8);
}

.description {
  position: absolute;
  bottom: 0;
  left: 0;
  margin: 1rem;
  background-color: rgba(171, 78, 104, 0.7);
  color: white;
  padding: 1rem;
  border-radius: 10px;
  z-index: 3;
  display: none;
  max-width: 90%;
}

/* start of section 6 (Grinding) */

.six {
  display: flex;
  width: 100%;
  background: linear-gradient(90deg,rgba(55, 61, 31, 1) 0%, rgba(171, 78, 104, 1) 100%);
  z-index: 2;
  position: relative;
}

.left-grinding {
  padding: 4rem;
}

.grinding-description {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.5s ease;
  pointer-events: none;
}

.grinding-description.show {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}


#revealGrindingText {
  background-color: #ab4e68;
  color: #edefdf;
  border: none;
  padding: 1rem 2rem;
  border-radius: 30px;
  font-size: 1rem;
  cursor: pointer;
  margin: 2rem;
}

#revealGrindingText:hover {
  background-color: #edefdf;
  color: #ab4e68;
}

.right-grinding {
  background: url(Project1/Images/grinder.webp);
  background-repeat: no-repeat;
  background-size: cover; 
  background-position: bottom;
  position: relative;
}

.grinding-particles {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  overflow: hidden;
}

.particle {
  position: absolute;
  bottom: 30%;
  width: 10px;
  height: 10px;
  background-color: #5b3720;
  border-radius: 50%;
  opacity: 0.8;
}


@media (max-width: 640px) {
  .six p {
    font-size: clamp(1rem, 0.75rem + 0.625vw, 1.5rem);
  }
}


/* SECTION 7: HEATING / ADDING INGREDIENTS / CONCHING */

.seven {
  width: 100vw;
  height: 300vh;
  overflow: hidden;
  position: relative;
  background: black;
}

.process-wrapper {
  display: flex;
  flex-direction: column;
  width: 100vw;
}

.seven .step {
  width: 100vw;
  height: 100vh;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 3rem;
  box-sizing: border-box;
  color: white;
  text-shadow: 0 2px 5px rgba(0, 0, 0, 0.6);
  z-index: 1;
}

.seven .step h2 {
  margin-bottom: 1rem;
  z-index: 2;
}

.seven .step p {
  max-width: 700px;
  z-index: 2;
}

/* Background video settings */
.seven .step video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  object-fit: cover;
  z-index: 0;
  filter: brightness(0.7);
}

/* start of section 8: tempering */

.eight {
  padding: 4rem;
  background: linear-gradient(90deg,rgba(55, 61, 31) 0%, rgba(171, 78, 104) 100%);
  position: relative;
  z-index: 1;
}

.eight p {
  max-width: 40%;
}

.eight-flex {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  height: 70vh;
}

.eight-left {
  flex: 1;
  font-size: 1.5rem;
  color: #edefdf;
  background-color: rgba(113, 119, 68, 0.75);
  padding: 2rem;
  border-radius: 20px;

  display: flex;
  justify-content: center;
  align-items: center;
  
  height: 25vh;
}

.eight-right {
  flex: 1;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 100%;
}

#tempering-spoon {
  width: 400px;
  cursor: pointer;
  z-index: 2;
  position: relative;
  fill: white;
}

.choco-streak {
  position: absolute;
  top: 300px;
  left: 600px;
  width: 150px;
  opacity: 0;
  pointer-events: none;
  z-index: 1;
}

@media (max-width: 640px) {
  .eight p {
  max-width: 100%;
}
  #tempering-spoon {
  width: 200px;
  }
  
  .eight-flex {
    display: block;
  }
  
  .eight-left {
    height: 12vh;
  }
  
  .eight-right {
    margin-top: 2rem;
  }
  
  .choco-streak {
    width: 75px;
    left: 400px;
    top: 150px;
  }
}


/* start of section 9: molding */

.nine {
  padding: 6rem 2rem;
  background: linear-gradient(90deg,rgba(55, 61, 31) 0%, rgba(171, 78, 104) 100%);
  position: relative;
  z-index: 1;
  display: flex;
}

.molding-left {
  max-width: 40%;
}

.molding-left button {
  font-size: 1.5rem;
  width: 300px;
  height: auto;
  padding: 20px;
  border-radius: 30px;
}

.chocolate-line {
  fill: none;
  stroke: #5b3f1d;
  stroke-width: 8;
  stroke-linecap: round;
  stroke-linejoin: round;
  max-width: 100%;
  height: auto;
  overflow: visible;
}

.pour-wrapper {
  position: relative;
  width: 100%;
  height: auto;
  left: 20%;
  min-height: 100%;
  margin: 0 auto 2rem;
}

.molding-left button:hover {
  background-color: #edefdf;
  cursor: default;
  color:#ab4e68;
}

.top-image {
  position: absolute;
  top: 0;
  left: 15%;
  transform: translateX(-50%);
  width: 300px;
  z-index: 2;
}

.bottom-image {
  position: absolute;
  bottom: 80px;
  left: 30%;
  transform: translateX(-50%);
  width: 400px;
  transition: opacity 0.5s ease;
}

.mold-empty {
  z-index: 2;
  opacity: 1;
}

.mold-filled {
  z-index: 3;
  opacity: 0;
}

#chocolate-line-svg {
  position: absolute;
  top: 150px;
  left: 0;
  z-index: 4;
  max-width: 100%;
  height: 50%;
  overflow: visible;
}

/* start of section 10: wrapping */

.wrap {
  padding: 6rem 2rem;
  background: linear-gradient(90deg, rgba(171, 78, 104) 0%, rgba(55, 61, 31) 100%);
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: row;
}

.wrap div {
  flex:1;
}

.wrap-text {
position: fixed;
padding: 6rem 2rem;
}

.ten {
  width: 100%;
  height: 200vh;
  /* background: linear-gradient(90deg, rgba(171, 78, 104) 0%, rgba(55, 61, 31) 100%); */
}

.container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
}

.container .ui-controls {
  position: absolute;
  bottom: 7%;
  left: 50%;
  transform: translateX(-50%);
  user-select: none;
  font-family: sans-serif;
  position: absolute;
  text-align: center;
  width: 100%;
}

.container .ui-controls div {
  color: black;
}

.container button {
  /*     display: inline-block; */
  display: none;
  text-align: center;
  padding: 0;
  cursor: pointer;
  font-size: 15px;
  width: 25px;
  height: 25px;
  margin-bottom: 1em;
  margin-right: 0.2em;
}
.container button.disabled {
  pointer-events: none;
  cursor: auto;
  opacity: 0.3;
}

a {
  color: #ab4e68;
  background-color:#edefdf;
  border: none;
  box-shadow: 0 3px 8px rgb(0 0 0 / 0.9);
  font-size: 1.5rem;
  width: 300px;
  height: auto;
  padding: 20px;
  border-radius: 30px;
  text-decoration: none;
}

/* start of section 11 */

.eleven {
  padding: 6rem 2rem;
  background: linear-gradient(90deg, rgba(171, 78, 104) 0%, rgba(55, 61, 31) 100%);  position: relative;
  z-index: 1;
}

/* wrappers & sections sizing & BG colors */

.wrapper-1 {
  position: relative;
  height: 100vh;
  overflow: hidden;
}

.wrapper-2 {
  overflow-x: hidden;
  position: relative;
  height: 100vh;
}

.wrapper-3 {
  overflow-x: hidden;
  position: relative;
  height: 100vh;
}

.horiz-container1 {
  width: 200vw;
  min-height: 100vh;
  height: auto;
  display: flex;
  align-items: stretch;
}

.horiz-container2 {
  width: 200vw;
  min-height: 100vh;
  height: auto;
  display: flex;
  align-items: stretch;
}

.horiz-container3 {
  width: 200vw;
  min-height: 100vh;
  height: auto;
  display: flex;
  align-items: stretch;
}

section {
  width: 100vw;
  height: 100vh;
  display: flex;
  flex: 1;
/*   gap: 3rem; */
}

section article {
    flex: 1;
}

svg {
    width: 50%;
    height: auto;
    padding: 50px, 0, 0, 0;
}

.horiz-container2 .four {
    background-color: pink;
}

.horiz-container3 .nine {
    background-color: rgb(230, 162, 185);
}

.horiz-container3 .ten {
    background-color: rgb(193, 239, 219);
}

@import url("reset.css");
