@import url('https://fonts.googleapis.com/css2?family=DM+Serif+Display:ital@0;1&family=Noto+Sans:ital,wght@0,100..900;1,100..900&display=swap');

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

.dm-serif-display-regular {
  font-family: "DM Serif Display", serif;
  font-weight: 400;
  font-style: normal;
}

.dm-serif-display-regular-italic {
  font-family: "DM Serif Display", serif;
  font-weight: 400;
  font-style: italic;
}

.noto-sans {
  font-family: "Noto Sans", sans-serif;
  font-style: normal;
}

html, body {
    /* background: linear-gradient(to bottom, #0053b0, #037c6c); */
    background-attachment: fixed; 
    font-family: 'Noto Sans', sans-serif; 
    line-height: 1.5;
    color-scheme: light dark;
    background-color: #242424;
    font-synthesis: none;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

video {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

section.background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    /* scroll-behavior: smooth; */
    /* overflow-y: scroll;              */
    /* scroll-snap-type: y mandatory;   */
}

section.third {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100dvh;
    display: flex; 
    justify-content: center;
    z-index: 1;
}

section.background div.container {
    height: 100dvh;
    display: flex;
    justify-content: center;
    align-items: center; 
    color: rgba(4, 28, 249, 0.335); 
    
    /* scroll-snap-align: start;   */
    /* position: relative;            */
}


section.third div.container {
  position: absolute;
  top: 0;
  left: 0;
  transform: none;
  height: 100dvh;
  width: 100vw;
  max-width: none;
  border-radius: 0;
  display: flex;
  justify-content: center;
  align-items: center;
}

.container {
  width: 100%;
  height: 100dvh;
  max-width: 1440px;
  margin-right: auto;
  margin-left: auto;
  align-items: center;
  border-radius: 50px;
  /* border: 4px solid rgb(21, 224, 255); */
}

.back {
  position: absolute;
  width: 100vw;
  height: 100dvh;
  max-height: none;
  left: 0;
  top: 0;
  transform: none;
  margin-top: auto;
  margin-bottom: auto;
  z-index: 1;
  filter: blur(0px);

}

.front {
  position: absolute;
  width: 35%;
  max-width: 600px;
  min-width: 500px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  top: 50%;
  left: 15%; /* distance to the animation */
  transform: translateY(-50%); 
  z-index: 2; 
  background-color: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(30px);
  padding: 70px 0px 50px 0;
  border-radius: 25px;
}

.front::before {
  content: "";
  position: absolute;
  inset: 0;
  padding: 2px; /* Border thickness */
  border-radius: inherit;
  background: linear-gradient(
    55deg,
    rgba(255, 255, 255, 0.3),
    rgba(255, 255, 255, 0),
    rgba(255, 255, 255, 0),
    rgba(255, 255, 255, 0.3)
  );

  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.carousel {
  position: relative;
  width: clamp(25rem, 80%, 32rem); 
  margin-left: auto;
  margin-right: auto;
  display: flex;
  justify-content: center;
  gap: 2.5rem;
  /* border: 3px solid blueviolet; */
}

.small-product img {
  width: clamp(4rem, 4.5vw, 5rem); 
  height: auto;
  display: inline-block;
  margin: auto;
  /* border: 1px solid blue; */
}

h1 {
  font-size: 2.7em;
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1.1;
  font-family: 'DM Serif Display', serif;
}

.front h1 {
  text-align: center;
  margin-bottom: 2.8rem;
  color: white;
  font-family: 'DM Serif Display', serif;
}

.front .tag {
  font-size: clamp(0.5rem, 1.35vw, 1.2em);
  font-weight: 500;
  line-height: 1.2;
  font-style: italic;
  font-family: 'Noto Sans', sans-serif;
}

.tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-align: center;
  margin-top: 0;
  margin-bottom: 0.4rem;
  padding: 0;
  font-family: 'Noto Sans', sans-serif;
}

.tag::before,
.tag::after {
  content: "";
  width: 20px;
  height: 1px;
  background-color: #000;
  display: inline-block;
  flex: 0 0 auto;
}

h4 {
  font-size: 2.2em;
  font-weight: 600;
  margin-bottom: 0;
  margin-top: 0;
  text-align: center;
  font-family: 'Noto Sans', sans-serif;
}

.detail {
  display: flex;
  align-items: center;
}

.detail h4 {
  margin-top: 1rem;  
  font-size: 1.5rem;
}

p {
  font-size: 1.4em;
  font-weight: 500;
  line-height: 1.5;  
  font-family: 'Noto Sans', sans-serif;
}

.scene-visual {
  position: fixed;
  top: 0;
  left: 0;
  transform: none;
  width: 100vw;
  height: 100dvh;
  max-width: none;
  max-height: none;
  overflow: hidden;
  z-index: 0;
}

  .scene-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .scene-transition .scene-image {
    transition: opacity 0.08s linear;
  }

  .scene-transition .scene-from {
    opacity: 1;
  }

  .scene-transition .scene-to {
    opacity: 0;
}

.brush {
  display: none;
}


div.four .tag {
  color: #471502;
}
div.six .tag {
  color: black;
}
div.eight .tag {
  color: #b0ff6b;
}
div.eight .tag::before,
div.eight .tag::after {
  background-color: #e2ffc9;
}
div.ten .tag {
  color:crimson;
}


div.four h4 {
  color: white;
}
div.six h4 {
  color: white;
}
div.eight h4 {
  color: white;
}
div.ten h4 {
  color: black;
}

.front.eight .buttons button {
color: rgb(123, 71, 196);
border-color: rgb(123, 71, 196);
}

.front.ten .buttons button {
color: rgb(217, 46, 117);
border-color: rgb(255, 121, 183);
}


.blackback-one{
  display: none;
  /* background: linear-gradient(to right, rgba(0,0,0,0.5), rgba(0,0,0,0)); */
  width: 100%;
  height: 100%;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 0;
}

.blackback-two{
  display: none;
  /* background: linear-gradient(to right, rgba(0,0,0,0.5), rgba(0,0,0,0)); */
  width: 100%;
  height: 100%;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 0;
}

.blackback-three{
  display: none;
  /* background: linear-gradient(to right, rgba(0,0,0,0.5), rgba(0,0,0,0)); */
  width: 100%;
  height: 100%;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 0;
}

.blackback-four{
  display: none;
  /* background: linear-gradient(to right, rgba(0,0,0,0.5), rgba(0,0,0,0)); */
  width: 100%;
  height: 100%;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 0;
}

.click-to-learn {
  font-size: .8rem;
  font-weight: 400;
  text-align: center;
  font-family: 'Noto Sans', sans-serif;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: fit-content;
  padding: 3px 12px 3px 12px;
  border-radius: .5rem;
  opacity: 0; 
  z-index: 6;
  background-color: rgba(0, 0, 0, 0.1);
  color: rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  animation: fadeInOut18 18s ease-in-out infinite; 
}

.click-to-learn.four {
  background-color: rgba(51, 237, 215, 0.7);
  color: #471502;
}
.click-to-learn.six {
  background-color: rgba(42, 255, 156, 0.6);
  color: black;
}
.click-to-learn.eight {
  background-color: rgba(26, 0, 156, 0.07);
  color: rgb(28, 0, 112);
}
.click-to-learn.ten {
  background-color: rgba(255, 255, 255, 0.3);
  color: black;
}

@keyframes fadeInOut18 {
  0% {
    opacity: 0;
  }
  83.333% {
    opacity: 0;
  }
  88.888% {
    opacity: 1; 
  }
  100% {
    opacity: 1;
  }
}

.category-nav {
  position: fixed;
  top: 28px;
  left: 38px;
  z-index: 1000;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 10px;
}

.nav-brand {
  display: flex;
  align-items: center;
  pointer-events: none;
  user-select: none;
}

.nav-brand img {
  width: clamp(6rem, 14.4vw, 8.8rem);
  height: auto;
  display: block;
  filter: brightness(0) invert(1);
}

.burger-button {
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 24px;
  padding: 0;
  transition: transform 0.3s ease;
}

.burger-line {
  width: 100%;
  height: 3px;
  background-color: white;
  transition: all 0.3s ease;
  transform-origin: center;
}

.burger-button.open .burger-line:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.burger-button.open .burger-line:nth-child(2) {
  opacity: 0;
}

.burger-button.open .burger-line:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -6px);
}

.nav-menu {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s ease, opacity 0.5s ease;
  opacity: 0;
  margin-top: 10px;
}

.nav-menu.open {
  max-height: 200px; /* Adjust based on number of links */
  opacity: 1;
}

.category-nav .nav-link {
  background-color: rgba(0, 0, 0, 0.3);
  color: white;
  padding: 10px 20px;
  text-decoration: none;
  border-radius: 5px;
  font: 400 1rem/1.2 'Noto Sans', sans-serif;
  transition: background-color 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  box-sizing: border-box;
  letter-spacing: 0;
  backdrop-filter: blur(40px);
  -webkit-backdrop-filter: blur(40px);
}

.category-nav .nav-link .nav-icon {
  width: 1rem;
  height: 1rem;
  display: block;
  object-fit: contain;
}

.category-nav .nav-link:hover {
  background-color: rgba(0, 0, 0, 0.56);
}

.category-nav .nav-link.active {
  box-shadow: inset 0 0 0 999px #ffffff;
  color: #000000;
  font: 600 1rem/1.2 'Noto Sans', sans-serif;
  letter-spacing: 0;
}

.category-nav .nav-link.active:hover {
  box-shadow: inset 0 0 0 999px #f2f2f2;
  color: #000000;
  font: 600 1rem/1.2 'Noto Sans', sans-serif;
  letter-spacing: 0;
}

@media (min-width: 1025px) {
  .category-nav {
    top: calc(24px + env(safe-area-inset-top));
    left: 44px;
    right: 42px;
    width: auto;
    gap: 1.25rem;
  }

  .burger-button {
    display: none;
  }

  .nav-menu {
    position: static;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0.75rem;
    max-height: none;
    opacity: 1;
    overflow: visible;
    margin-top: 0;
    margin-left: auto;
  }

  .category-nav .nav-link {
    border-radius: 999px;
    padding: 0.55rem 1rem;
    white-space: nowrap;
    background-color: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(40px);
    -webkit-backdrop-filter: blur(40px);
  }

  .category-nav .nav-link.active {
    border-radius: 999px;
    padding: 0.55rem 1rem;
  }
}

@media (max-width: 1024px) {
  .category-nav {
    top: calc(20px + env(safe-area-inset-top));
    left: 30px;
    right: 14px;
    width: auto;
    justify-content: space-between;
    align-items: flex-start;
  }

  .burger-button {
    margin-left: auto;
    margin-top: 0.35rem;
  }

  .nav-menu {
    left: auto;
    right: 0;
  }

  .nav-menu.open {
    max-height: min(70dvh, 380px);
    overflow-y: auto;
    padding-bottom: 0.35rem;
  }
   

section.third div.container {
  position: absolute;
  top: 0;
  left: 0;
  transform: none;
  height: 100dvh;
  width: 100vw;
  max-width: none;
  border-radius: 0;
  display: flex;
  justify-content: center;
  align-items: center;
}

.back {
  position: absolute;
  width: 100vw;
  height: 100dvh;
  left: 0;
  top: 0;
  transform: none;
  z-index: 1;
}

.front {
    position: fixed;
    width: 90%;
    height: auto;
    min-width: auto;
    max-width: auto;
    min-height: 400px;
    max-height: calc(100dvh - 2rem - env(safe-area-inset-bottom));
    overflow-y: auto;
    left: 50%;
    top: auto;
    bottom: calc(1rem + env(safe-area-inset-bottom));
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    box-sizing: border-box;
    padding: 35px 0 25px 0;
    /* background-color: blueviolet;  */
}

.carousel {
    position: relative;
    width: clamp(20rem, 80%, 40rem);
    margin-left: auto;
    margin-right: auto;
    display: flex;
    justify-content: center;
    gap: clamp(1.5rem, 6vw, 3rem);
  }
  

.carousel .click-to-learn {
  z-index: 6;
}
  .scene-visual {
    position: fixed;
    top: 0;
    left: 0;
    transform: none;
    width: 100vw;
    height: 100dvh;
    max-width: none;
    max-height: none;
    overflow: hidden;
    z-index: 0;
  }

  .scene-visual .scene-image {
    inset: auto;
    top: 0;
    height: 100dvh;
  }

.front h1 {
  font-size: clamp(2rem, 8vw, 2.7rem);
}

.front .tag {
  font-size: clamp(1rem, 2.5vw, 0.85rem);
  font-weight: 500;
  line-height: 1.2;
  font-style: italic;
  font-family: 'Noto Sans', sans-serif;
}

.tag {
  text-align: center;
  margin-top: 0;
  margin-bottom: 0.5rem;
  padding: 0;
  font-family: 'Noto Sans', sans-serif;
}

.small-product img {
  width: clamp(3rem, 13vw, 4.5rem); 
  height: auto;
  display: inline-block;
  margin: auto;
}


.detail h4 {
  margin-top: 1rem;  
  font-size: 1.2rem;
}

.brush {
  display: block;
  position: fixed;
  width: 320px;
  transform: translateY(-11rem) translateX(-10px);
  z-index: -1;
}

div.four .tag {
  color: #471502;
}
div.six .tag {
  color: black;
}
div.eight .tag {
  color: #cbff9d;
}
div.ten .tag {
  color:rgb(0, 0, 0);
}


div.four h4 {
  color: black;
}
div.six h4 {
  color: black;
}
div.eight h4 {
  color: white;
}
div.ten h4 {
  color: white;
}

/* .product-name {
  color: green;
  background-color: #471502;
} */

}