@import url("https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&family=Saira+Condensed:wght@100;200;300;400;500;600;700;800;900&display=swap");

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

:root {
  --primary: #bfea88;
  --whait: #b2b2b2;
  --black: #0a0a0a;
  --dark: #192928;
}

html,
body {
  position: relative;
  font-family: "Inter", sans-serif;
}

h1 {
  font-family: "Saira Condensed", sans-serif;
  font-weight: 100;
}

h2 {
  font-family: "Inter", sans-serif;
}

a,
p {
  font-family: "Inter", sans-serif;
  text-decoration: none;
  color: var(--black);
  font-size: 0.8rem;
}

.hero {
  position: relative;
}

.hero model-viewer {
  width: 100%;
  height: 100vh;
  position: absolute;
  top: 0;
  --poster-color: transparent;
  z-index: 2;
}

.box-container {
  width: 100%;
  height: 100vh;
  position: relative;
}

.top-left {
  position: absolute;
  width: 90%;
  top: 5%;
  left: 5%;
  font-family: sans-serif;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 3;
}

.navbar ul {
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: end;
  gap: 0.5rem;
}

.navbar li {
  list-style: none;
  font-size: 0.8rem;
  text-align: right;
}

#ul-nav a span {
  padding: 2.5px 5px;
  transition: 0.5s;
  position: relative;
}
#ul-nav a span:nth-child(1) {
  color: var(--black);
  background: var(--primary);
}

#ul-nav a span:nth-child(1):before {
  content: attr(data-attr);
  position: absolute;
  top: 0;
  left: 0;
  color: var(--whait);
  background: var(--dark);
  padding: 2.5px 5px;
  transition: 0.5s;
  transform-origin: top;
  transform: rotateX(90deg) translateY(-50%);
}

#ul-nav a:hover span:nth-child(1):before {
  transform: rotateX(0deg) translateY(0%);
}

#ul-nav a span:nth-child(1):after {
  content: attr(data-attr);
  padding: 2.5px 5px;
  position: absolute;
  top: 0;
  left: 0;

  background: var(--primary);
  transform-origin: bottom;
  transform: rotateX(0deg) translateY(0%);
  transition: 0.5s;
}
#ul-nav a:hover span:nth-child(1):after {
  transform: rotateX(90deg) translateY(50%);
}

.center {
  position: absolute;
  top: 45%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  font-family: sans-serif;
  font-weight: 100;
  font-size: 6vw;
}

.bottom-left {
  position: absolute;
  bottom: 5%;
  left: 5%;
  width: 100%;
  text-align: left;
  font-family: sans-serif;
  font-size: 0.7rem;
}

.bottom-right {
  position: absolute;
  bottom: 10%;
  right: 5%;
  width: 25%;
  font-size: 0.7rem;
}

.bottom-right p {
  margin-bottom: 1rem;
}

/* button style*/
.btn-center {
  position: absolute;
  z-index: 3;
  top: 50%;
  right: 27%;
  transform: translate(0, -50%);
}

a span {
  padding: 10px 20px;
  transition: 0.5s;
  position: relative;
}
a span:nth-child(1) {
  color: var(--black);
  background: var(--primary);
}

a span:nth-child(1):before {
  content: attr(data-attr);
  position: absolute;
  top: 0;
  left: 0;
  color: var(--whait);
  background: var(--dark);
  padding: 10px 20px;
  transition: 0.5s;
  transform-origin: top;
  transform: rotateX(90deg) translateY(-50%);
}

a:hover span:nth-child(1):before {
  transform: rotateX(0deg) translateY(0%);
}

a span:nth-child(1):after {
  content: attr(data-attr);
  padding: 10px 20px;
  position: absolute;
  top: 0;
  left: 0;

  background: var(--primary);
  transform-origin: bottom;
  transform: rotateX(0deg) translateY(0%);
  transition: 0.5s;
}
a:hover span:nth-child(1):after {
  transform: rotateX(90deg) translateY(50%);
}

/* card-hero style*/
.card-hero {
  width: 150px;
  background-color: var(--primary);
  max-width: max-content;
  padding: 0.5rem;
  position: absolute;
  top: 35%;
  left: 23%;
  transform: translate(0, -50%);
  z-index: 4;
}

.title h2 {
  letter-spacing: 1.5px;
}

.title img {
  width: 20px;
  align-content: center;
}

.title p {
  font-size: 0.8rem;
  letter-spacing: 1.5px;
}

.barcode {
  display: flex;
  flex-wrap: nowrap;
  width: 100%;
  height: 50px;
}

.barcode img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.line {
  width: 100%;
  height: 1px;
  background-color: var(--black);
}

.desk {
  display: flex;
  font-size: 0.6rem;
  justify-content: space-between;
  margin-top: 0.5rem;
}

.body-card p {
  margin: 0.2rem 0;
  font-size: 0.6rem;
  text-align: justify;
  letter-spacing: 1.6px;
}

.icons-card {
  width: 95%;
  height: 20px;
  margin: 0.5rem 0;
}

.icons-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.footer-card p {
  font-size: 0.5rem;
  letter-spacing: .7px;
  text-align: justify;
}

.icons-footer-card {
  display: flex;
  flex-wrap: nowrap;
  justify-content: space-between;
  width: 100%;
  height: 20px;
  margin: 0.2rem 0;
}

.icons-footer-card img {
  width: 20;
  height: 20px;
  object-fit: cover;
}

/* media for home */
@media only screen and (max-width: 900px) {
  .center {
    font-size: 10vw;
  }
  .bottom-right {
    width: 70%;
    text-align: justify;
  }
  .btn-center {
    right: 0;
  }
  .card-hero {
    left: 0;
  }
}

footer p {
  padding: 2rem 0;
}

