@font-face {
  font-family: dm;
  src: url(./DMSans-Regular.ttf);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: DMSans, sans-serif;
  font-weight: 100;
}

html,
body {
  height: 100%;
  width: 100%;

}

#page1 {
  height: 100vh;
  width: 100%;
  position: relative;
  
}
#cursor {
  height: 7.5vw;
  width: 7.5vw;
  background-color: #ff5f38;
  border-radius: 50%;
  position: fixed;
  z-index: 9;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: translate(-50%, -50%);
}

#cursor h5 {
  font-size: 1.15vw;    
}
#page1 video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
}

#page1-content {
  height: 100%;
  width: 100%;
  position: relative;
  z-index: 10;
  color: #fff;
  display: flex;
  align-items: center;
  flex-direction: column;
  justify-content: space-between;
}
nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 2vw 3vw;

}

nav h3 {
  font-size: 1.4vw;
  font-family: 100;
    cursor: pointer;
}

nav h4 {
  font-size: 1.4vw;
  font-weight: 100;
    cursor: pointer;
}

#page1-content h1 {
  font-family: "Audiowide", sans-serif;
  font-size: 27vw;
  font-weight: bolder;
  font-style: normal;
  text-transform: lowercase;
  padding-bottom: 5vw;
 
}

#page1-content h1 span {
  font-family: "Audiowide", sans-serif;
   display: inline-block;
}

#page2 {
  min-height: 100vh;
  width: 100%;
  display: flex;
  background: #ffffff;
  align-items: center; /* vertical center */
  justify-content: center; /* horizontal center */
  padding: 5vw;
  

}

#page2 p {
  max-width: 1200px; /* keeps lines readable */
  font-family: "DM Sans", sans-serif;
  font-size: 3.5vw; /* large responsive text */
  line-height: 1.4;
  color: #000000; /* white text */
  font-weight: lighter;
  text-align: center;
  position: relative;
}


#page2 p .word {
  display: inline-block;
  will-change: transform, opacity;
}

#page3 {
  min-height: 100vh;
  width: 100%;
  position: relative;
  padding: 3vw;
}

#page3-top {
  text-align: center;
}

#page3-top h4 {
  margin-bottom: 1vw;
  font-size: 1vw;
  font-weight: 500;
}

#page3-top h4 span {
  font-size: 0.7vw;
  background-color: black;
  color: #fff;
  padding: 4px 10px;
  border-radius: 10px;
}
#page3-top h2 {
  font-size: 3vw;
  font-weight: 500;
}

#page3-elements {
  display: flex;
  justify-content: center;
  align-items: stretch;
  gap: 1vw; /* space between boxes */
  width: 100%;
  height: 75vh;
  margin-top: 8vw;
}

#page3-elements .box {
  flex: 1;
  width: 32.5%; /* each box takes up 1/3 of the row */
  height: 80vh; /* all boxes equal width */
  overflow: hidden; /* hide overflow when scaling */
  border-radius: 15px; /* optional, gives smooth edges */
  position: relative;
  transition: flex 0.5s ease;
  cursor: pointer;
}

#page3-elements .box video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

#page3-elements .box img {
  position: absolute;
  height: 100%;
  width: 100%;
  object-fit: cover;
  object-position: center;

}

#page3-elements .box:hover img {
  opacity: 0;
  transition: all linear 0.7s;
}

#page4 {
  height: 100vh;
  width: 100%;
  padding: 4vw 0;
  position: relative;
}

#page4 h1 {
  font-size: 10vw;
  font-family: "Audiowide", sans-serif;
  font-weight: 100;
  border-bottom: 1px solid black;
  width: 96%;
  margin-left: 2%;
}

#swiperdiv {
  height: 60vh;
  width: 100%;
  position: relative;
  margin-top: -3%;
}

.swiper {
  width: 130%;
  height: 100%;
}

.swiper-slide {
  width: 400px;
  text-align: center;
  font-size: 18px;
  display: flex;
  gap: 1vw;
  justify-content: center;
  align-items: flex-end;
}

.swiper-slide img {
  display: block;
  width: 19%;
  cursor: grab;
  object-fit: cover;
}

.swiper {
  margin-left: auto;
  margin-right: auto;
}

#loader {
  height: 100%;
  width: 100%;
  position: fixed;
  top: 0;
  background-color: #000; /* full black screen */
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 99;
  color: white;
  gap: 10px;
}

#loader h3{
    font-size: 2vw;
    font-weight: 100;
}



/* Page 1 huge heading */
#page1-content h1 {
  font-size: clamp(15vw, 27vw, 27vw); /* scales but stays huge */
}

/* Page 4 heading */
#page4 h1 {
  font-size: clamp(8vw, 10vw, 10vw);
}

/* Page 2 paragraph */
#page2 p {
  font-size: clamp(2.5vw, 3.5vw, 3.5vw);
}

/* Nav text */
nav h3, nav h4 {
  font-size: clamp(1vw, 1.4vw, 1.4vw);
}

/* Page 3 headings */
#page3-top h2 {
  font-size: clamp(2vw, 3vw, 3vw);
}

#page3-top h4 {
  font-size: clamp(0.8vw, 1vw, 1vw);
}

#page3-top h4 span {
  font-size: clamp(0.6vw, 0.7vw, 0.7vw);
}

@media (max-width: 1024px) {
  #page3-elements {
    flex-direction: column;
    height: auto;
  }

  #page3-elements .box {
    width: 100%;
    height: 50vh;
  }

  #page1-content h1 {
    padding-bottom: 2vw;
  }
}

@media (max-width: 768px) {
  #page2 p {
    padding: 0 3vw;
  }

  #swiperdiv {
    width: 100%;
  }

  #page1-content h1 {
    font-size: clamp(10vw, 20vw, 20vw);
  }
}
