@import url("https://fonts.googleapis.com/css2?family=Inter:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;1,100;1,200;1,300;1,400;1,500;1,600;1,700&display=swap");
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: Inter, Arial, Helvetica, sans-serif;
  scroll-behavior: smooth;
}

:root {
  --color-bg: #d9d9d9;
  --color-dist-bg: #f7f7f7;
  --color-dist-ex-bg: #f7f7f7;
  --color-text: #000;
  --color-purple: rgb(114, 8, 158);
  --color-link: blue;
  --color-ftr-link: #676767;
  --color-box-shadow: rgba(0, 0, 0, 0.1);
}

[data-theme="dark"] {
  --color-bg: #121212;
  --color-dist-ex-bg: #121212; /* only for dark mode distributor section, all black - no section distinguisher */
  --color-dist-bg: #313131;
  --color-text: #ebebeb;
  --color-purple: rgb(155, 82, 187);
  --color-link: rgb(212, 111, 255);
  --color-ftr-link: #b7b7b7;
  --color-box-shadow: rgba(255, 255, 255, 0.1);
}

body {
  background-color: var(--color-bg);
  color: var(--color-text);
  transition: all 0.3s ease-in-out;
}

body.no-scroll {
  overflow: hidden;
}

h1 {
  font-size: 3rem;
}

.go-top-btn {
  position: fixed;
  width: 50px;
  height: 50px;
  background-color: var(--color-purple);
  bottom: 40px;
  right: 40px;
  text-decoration: none;
  text-align: center;
  line-height: 50px;
  color: #fff;
  font-size: 1.3rem;
  z-index: 20;
  border-radius: 0.6rem;
}

/* OBSERVER STYLES */
.mb-wrapper {
  height: 100%;
  padding-top: 140px;
  display: flex;
  flex-direction: column;
  align-items: center;
  background-color: #fff;
  gap: 2rem;
  margin-bottom: 4rem;
  /* padding: 0 1rem; */
}

.main-container {
  height: 100%;
}

.zoom-background {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
}

.zoom-background video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(35%);
  /* animation: zoomInOut 20s ease-in-out infinite; */
}

/* .zoom-background::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("../images/header.webp") center center / cover no-repeat;
  transform-origin: center center;
  animation: zoomInOut 20s ease-in-out infinite;
} */

/* Smooth zoom animation */
@keyframes zoomInOut {
  0%,
  100% {
    transform: scale(1);
  }
  25%,
  50% {
    transform: scale(1.1);
  }
}

/* Overlay for the fade effect */
.zoom-background::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0);
  animation: fadeInOut 10s ease-in-out infinite;
  pointer-events: none;
}

@keyframes fadeInOut {
  0% {
    background: rgba(0, 0, 0, 0);
  }
  25% {
    background: rgba(0, 0, 0, 0.25);
  }
  50% {
    background: rgba(0, 0, 0, 0.25);
  }
  75% {
    background: rgba(0, 0, 0, 0);
  }
  100% {
    background: rgba(0, 0, 0, 0);
  }
}

header {
  position: relative;
}

nav.blurred-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  display: flex;
  justify-content: space-evenly;
  align-items: center;
  padding: 1rem 2rem;
  background: var(--color-bg) !important;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: var(--color-text);
  z-index: 1000;
  transition: height 0.3s ease-in-out;
  transition: background-color 0.3s ease-in-out;
  box-shadow:
    0 4px 8px 0 rgba(0, 0, 0, 0.2),
    0 6px 20px 0 rgba(0, 0, 0, 0.19);
}

.theme-toggle-btn {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--color-text);
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* .theme-icon {
  color: var(--color-text);
} */

.header-cta {
  position: absolute;
  bottom: 20%;
  left: 50%;
  z-index: 2;
  color: #fff;
  transform: translateX(-50%);
  width: 80%;
  display: flex;
  justify-content: space-between;
  gap: 6rem;
}

.header-cta-inner.left {
  flex: 1 1 60%;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.header-cta-inner.right {
  flex: 0 0 20%;
  display: flex;
  align-items: end;
}

.header-left-inner-lg {
  font-size: 4rem;
}

.header-left-inner-sm {
  font-size: 2rem;
}

.header-btn-container {
  margin-top: 2rem;
}

.header-btn-container a {
  background-color: var(--color-purple);
  padding: 1rem 2rem;
  border: none;
  border-radius: 1rem;
  font-size: 1.2rem;
  color: #fff;
  text-decoration: none;
  transition: background-color 0.3s ease-in-out;
}

.header-btn-container a:hover {
  background-color: rgb(127, 57, 166);
}

.client-container {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  font-size: 1.5rem;
  border-radius: 1rem;
  padding: 2rem;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.flag-container img {
  height: 40px;
  width: 40px;
  border-radius: 50%;
  border: 1px solid #fff;
}

.flag-container img:nth-child(2),
.flag-container img:nth-child(3),
.flag-container img:nth-child(4),
.flag-container img:nth-child(5) {
  margin-left: -10%;
}

/* Distributor Scroll */
/*** LOGO SCROLL ***/
@keyframes slide {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-100%);
  }
}

#distributor-section {
  padding: 2rem 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-transform: uppercase;
  letter-spacing: 0.5rem;
  background-color: var(--color-dist-ex-bg);
  color: #a3a3a3;
  font-size: 1.5rem;
}

.pics {
  position: relative;
  width: 80%;
  padding: 2rem;
  display: flex;
  gap: 4rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.pics-slide {
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all 0.2s ease-in-out;
  cursor: pointer;
}

.pics-slide img {
  width: 110px;
}

.pics-slide:hover {
  filter: brightness(75%);
  transform: scale(1.2);
}

/*** MOVE UP ELEMENT OBSERVER STYLES ***/

.move-up-element {
  transform: translateY(100px);
  opacity: 0;
  transition:
    transform 250ms,
    opacity 250ms;
  transition-delay: var(--stagger-delay, 0ms);
}

.move-up-element.show {
  transform: translateY(0);
  opacity: 1;
}

/* About Section */
#about {
  width: 100%;
  background-color: var(--color-bg);
  color: var(--color-text);
}

.about-container {
  width: 80%;
  height: 100%;
  display: flex;
  padding: 4rem 0rem;
  margin: 0 auto;
  justify-content: center;
  align-items: center;
  gap: 4rem;
}

.about-left,
.about-right {
  flex-basis: 100%;
  width: 50%;
  height: 100%;
}

.about-left {
  position: relative;
  overflow: hidden;
  border-radius: 1rem;
}

@keyframes transformImage {
  0% {
    transform: scale(1);
  }
  25% {
    transform: scale(1.05);
  }
  50% {
    transform: scale(1.1);
  }
  75% {
    transform: scale(1.05);
  }
  100% {
    transform: scale(1);
  }
}

.about-left img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform-origin: center center;
  animation: transformImage 20s linear infinite alternate;
}

.about-right {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.about-right h2 {
  font-size: 3rem;
}

.about-right p {
  padding-top: 1rem;
  font-size: 1.3rem;
}

.about-right a {
  color: var(--color-text);
}

.payment-container {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 1rem;
}

.payment-container div {
  padding: 0.5rem;
  border-radius: 0.5rem;
}

.payment-container img {
  width: 20%;
}

.iso-container {
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  padding: 2rem;
}

.iso-container img {
  width: 50%;
}

/* Products and Services */
.products-services-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  height: 100%;
  padding: 2rem 0;
  background-color: var(--color-dist-bg);
}

.products-services-wrapper > h2 {
  font-size: 3rem;
}

.product-card-container {
  display: flex;
  justify-content: center;
  align-items: stretch;
  flex-wrap: wrap;
  gap: 1rem;
  width: 80%;
}

.product-card {
  display: block;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  width: calc(33% - 1rem);
  overflow: hidden;
  border-radius: 1rem;
  background: var(--color-bg);
  box-shadow: 0 4px 15px var(--color-box-shadow);
  transition: all 0.3s ease-in-out;
}

.product-card:hover {
  filter: brightness(85%);
  transform: scale(1.02);
  box-shadow: 0 8px 28px var(--color-box-shadow);
}

.product-card img {
  width: 100%;
}

.product-card h3 {
  font-size: 1.3rem;
}

.product-card-text {
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.product-card-link {
  display: none;
}

.iso-container a {
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 0.5rem;
  background: var(--color-purple);
  color: white;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
  text-align: center;
}

.iso-container a:hover {
  background-color: rgb(127, 57, 166);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

/* Product Application */
#gallery {
  width: 100%;
  height: 100%;
  background-color: var(--color-bg);
}

.gallery-container {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  padding: 2rem 0rem 4rem 0rem;
  text-align: center;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(2, 250px); /* adjust height as needed */
  gap: 1rem;
  width: 80%;
  padding: 0 1rem;
}

.gallery div {
  position: relative;
  overflow: hidden;
  border-radius: 1rem;
}

.gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 10px;
}

/* Grid placement */
.img1 {
  grid-column: 1 / 2;
  grid-row: 1 / 3;
}

.img2 {
  grid-column: 2 / 3;
  grid-row: 1 / 2;
}

.img3 {
  grid-column: 3 / 4;
  grid-row: 1 / 2;
}

.img4 {
  grid-column: 2 / 4;
  grid-row: 2 / 3;
}

.gallery-container h2 {
  font-size: 3rem;
}

.gallery-caption {
  width: 100%;
  height: 15%;
  background: linear-gradient(rgba(48, 48, 48, 0.5), var(--main-color));
  border-radius: 1rem;
  position: absolute;
  left: 0;
  bottom: 0;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  color: #fff;
  font-size: 1.5rem;
  background: #212121;
  background: linear-gradient(
    0deg,
    rgb(21, 21, 21) 0%,
    rgba(158, 158, 158, 0) 100%
  );
  transition: height 0.3s;
}

.gallery-caption a {
  color: #fff;
  text-decoration: none;
  font-size: 0.5rem;
}

.gallery div:nth-child(2) > .gallery-caption,
.gallery div:nth-child(3) > .gallery-caption,
.gallery div:nth-child(4) > .gallery-caption {
  height: 25%;
}

/* CONTACT */
#contact {
  background-image: url("../images/contact.webp");
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4rem 0;
}

#contact h2 {
  font-size: 3rem;
}

#contact h3 {
  text-align: center;
}

.contact-form-box {
  width: 50%;
  background-color: var(--color-bg);
  color: var(--color-text);
  padding: 2rem;
  border-radius: 1rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
  box-shadow: 0 4px 15px var(--color-box-shadow);
}

.contact-box img {
  width: 100%;
}

form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

form div {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

input,
textarea {
  border-radius: 1rem;
  border: none;
  padding: 1rem;
  font-size: 1.1rem;
}

.form-btn {
  background-color: var(--color-purple);
  padding: 1rem 2rem;
  border: none;
  border-radius: 1rem;
  font-size: 1.2rem;
  color: #fff;
  width: 40%;
  display: block;
  margin: 0 auto;
}

@media (max-width: 1024px) {
  .products-services-wrapper {
    padding: 1rem;
  }

  .products-services-wrapper > h2 {
    font-size: 2.4rem;
    text-align: center;
  }

  .product-card {
    width: 100%;
  }

  .product-card:hover {
    transform: none;
  }

  .go-top-btn {
    bottom: 20px;
    right: 20px;
  }

  .header-div {
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin-top: 0;
    padding: 1rem;
    gap: 2rem;
    height: 100%;
    background-image: url("../images/header-mobile.webp");
  }

  /* mobile should be 90% */
  .header-left img {
    width: 50%;
  }

  .header-right {
    padding: 0;
  }
  .header-slogan {
    font-size: 2.4rem;
  }
  .service-list {
    flex-direction: column;
    gap: 1rem;
  }

  .service-list p {
    font-size: 1.1rem;
  }
  .zoom-background {
    height: 50vh;
  }

  .zoom-background video {
    object-position: 80%;
  }

  .header-cta {
    top: 50%;
    width: 90%;
    gap: 1.5rem;
  }

  section {
    scroll-margin-top: 100px;
  }

  nav.blurred-background {
    position: fixed;
    display: block;
    flex-direction: column;
    justify-content: start;
    align-items: center;
    padding: 1rem;
    gap: 1rem;
    height: 100px;
    overflow: hidden;
    transition: height 0.3s ease-in-out;
    background-color: #e6e6e6;
  }

  .blurred-background.active {
    height: 100vh;
  }

  .header-btn-container {
    margin-bottom: 1rem;
  }

  .client-container {
    font-size: 1rem;
    padding: 1rem 2rem;
  }

  .header-left-inner-lg {
    font-size: 2.4rem;
  }

  .header-left-inner-sm {
    font-size: 1.2rem;
  }

  .header-cta-inner.left {
    gap: 0.5rem;
  }

  .header-cta-inner.right {
    justify-content: start;
    flex-basis: 30%;
  }

  /* Flags - Tablet */
  /* .flag-container img {
  height: 40px;
  width: 40px;
  border-radius: 50%;
  border: 1px solid #fff;
}

.flag-container img:nth-child(2),
.flag-container img:nth-child(3),
.flag-container img:nth-child(4),
.flag-container img:nth-child(5) {
  margin-left: -20%;
} */

  /* Distributor - Tablet */
  #distributor-section {
    padding-bottom: 0;
    font-size: 1.3rem;
  }

  .pics {
    width: 100%;
    /* flex-direction: column; */
    gap: 2rem;
  }

  /* .pics-slide {
    animation: 15s slide infinite linear;
  } */

  .pics-slide img {
    width: 100px;
  }

  .pics-slide:hover {
    transform: none;
  }

  /* About Section */
  #about {
    width: 100%;
  }

  /* mobile width should be 100% */
  .about-container {
    height: 100%;
    flex-direction: column;
    width: 80%;
    padding: 1rem;
    gap: 2rem;
  }

  .about-left {
    display: flex;
    justify-content: center;
    align-items: center;
  }

  .about-left,
  .about-right {
    flex-basis: 100%;
    width: 100%;
    height: 100%;
  }

  .about-right {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
  }

  .about-right h2 {
    font-size: 2rem;
    text-align: center;
  }

  .about-right p {
    padding: 1rem 0;
    font-size: 1.1rem;
  }

  .about-left {
    width: 50%;
    border-radius: 1rem;
  }

  .about-left img {
    width: 100%;
  }

  .product-card {
    width: 33%;
  }

  .product-card-link {
    display: block;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 0.5rem;
    background: var(--color-purple);
    color: white;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    text-align: center;
  }

  /* Product Application */
  #gallery {
    height: 100%;
  }

  .gallery {
    display: grid;
    grid-template-columns: 1fr 1fr; /* 2 equal-width columns */
    grid-template-rows: repeat(2, auto);
    gap: 1rem;
    width: 80%;
    padding: 0;
  }

  /* .gallery {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: repeat(4, auto); 
    gap: 1rem;
    width: 100%;
    padding: 0;
  } */

  .gallery-container {
    padding: 1rem;
  }

  .img1 {
    grid-row: 1;
    grid-column: 1;
  }

  .img2 {
    grid-row: 1;
    grid-column: 2;
  }

  .img3 {
    grid-row: 2;
    grid-column: 1;
  }

  .img4 {
    grid-row: 2;
    grid-column: 2;
  }

  /* .img1,
  .img2,
  .img3,
  .img4 {
    grid-column: 1 / 2;
    aspect-ratio: 1/ 1;
  } */

  /* .img1 {
    grid-row: 1 / 2;
  }

  .img2 {
    grid-row: 2 / 3;
  }

  .img3 {
    grid-row: 3 / 4;
  }

  .img4 {
    grid-row: 4 / 5;
  } */

  .gallery div:nth-child(1) > .gallery-caption,
  .gallery div:nth-child(2) > .gallery-caption,
  .gallery div:nth-child(3) > .gallery-caption,
  .gallery div:nth-child(4) > .gallery-caption {
    height: 25%;
  }

  .image-credits {
    width: 100%;
  }

  #contact {
    padding: 1rem;
    align-items: start;
    height: 100%;
  }

  /* mobile width should be 100% */
  .contact-form-box {
    width: 80%;
    padding: 1rem;
  }
}

@media (max-width: 768px) {
  .zoom-background {
    height: 100vh;
  }

  .zoom-background video {
    object-position: 80%;
  }

  .header-cta {
    width: 90%;
    top: 210px;
    flex-direction: column;
    gap: 1.5rem;
  }

  section {
    scroll-margin-top: 100px;
  }

  nav.blurred-background {
    position: fixed;
    display: block;
    flex-direction: column;
    justify-content: start;
    align-items: center;
    padding: 1rem;
    gap: 1rem;
    height: 100px;
    overflow: hidden;
    transition: height 0.3s ease-in-out;
    background-color: #e6e6e6;
  }

  .blurred-background.active {
    height: 100vh;
  }

  .header-btn-container {
    margin-bottom: 1rem;
  }

  .client-container {
    font-size: 1rem;
    padding: 1rem 2rem;
  }

  .header-left-inner-lg {
    font-size: 2.4rem;
  }

  .header-left-inner-sm {
    font-size: 1.2rem;
  }

  .header-cta-inner.left {
    gap: 0.5rem;
  }

  .header-cta-inner.right {
    justify-content: start;
    flex-basis: 20%;
  }

  /* Logo slide */
  #distributor-section {
    padding-bottom: 0;
    font-size: 1.3rem;
  }

  .pics {
    width: 100%;
    flex-direction: column;
  }

  /* .pics-slide {
    animation: 15s slide infinite linear;
  } */

  .pics-slide img {
    width: 200px;
  }

  /* About Section */
  #about {
    width: 100%;
  }

  .about-container {
    height: 100%;
    flex-direction: column;
    width: 100%;
    padding: 1rem;
    gap: 2rem;
  }

  .about-left,
  .about-right {
    flex-basis: 100%;
    width: 100%;
    height: 100%;
  }

  .about-right {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
  }

  .about-right h2 {
    font-size: 2rem;
    text-align: center;
  }

  .about-right p {
    padding: 1rem 0;
    font-size: 1.1rem;
  }

  .product-card-link {
    display: block;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 0.5rem;
    background: var(--color-purple);
    color: white;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    text-align: center;
  }

  .product-card-container {
    width: 100%;
  }
  .product-card {
    width: 100%;
  }

  /* mobile width should be 100% */
  .about-container {
    width: 100%;
  }

  /* mobile width should be 100% */
  .slideshow {
    width: 100%;
  }

  /* for mobile */
  .product-card-container {
    flex-direction: column;
  }

  .gallery {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: repeat(4, auto);
    gap: 1rem;
    width: 100%;
    padding: 0;
  }

  .img1,
  .img2,
  .img3,
  .img4 {
    grid-column: 1 / 2;
    aspect-ratio: 1/ 1;
  }

  .img1 {
    grid-row: 1 / 2;
  }

  .img2 {
    grid-row: 2 / 3;
  }

  .img3 {
    grid-row: 3 / 4;
  }

  .img4 {
    grid-row: 4 / 5;
  }

  /* mobile width should be 100% */
  .contact-form-box {
    width: 100%;
  }
}
