/* Base styles */
@import url("https://fonts.googleapis.com/css2?family=Baloo+Bhaijaan+2:wght@400;500;600;700&display=swap");

@font-face {
  font-family: "Museo Sans";
  src: url("./font/Museo Sans 300.otf") format("opentype");
  font-weight: 300;
  font-style: normal;
}

@font-face {
  font-family: "Museo Sans";
  src: url("./font/Museo Sans 500.otf") format("opentype");
  font-weight: 500;
  font-style: normal;
}

@font-face {
  font-family: "Museo Sans";
  src: url("./font/Museo Sans 700.otf") format("opentype");
  font-weight: 700;
  font-style: normal;
}

@font-face {
  font-family: "Museo Sans";
  src: url("./font/Museo Sans 900.otf") format("opentype");
  font-weight: 900;
  font-style: normal;
}

:root {
  --primary-color: #6a2c91;
  --primary-hover: #8d68f2;
  --success-color: #05a84b;
  --success-hover: #19aa4b;
  --white: #ffffff;
  --black: #1c1c1c;
}

body {
  font-family: "Museo Sans", sans-serif;
  padding-top: 76px;
}

/* Layout */
.py-3 {
  margin-block: 3rem !important;
}

/* Navbar */
.navbar {
  font-size: 24px;
}

.navbar-brand img {
  max-height: 40px;
}

@media (max-width: 768px) {
  .navbar-brand img {
    margin-left: 20px;
  }
}

/* Buttons */
.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  border-radius: 50px;
}

.btn-primary {
  font-family: "Baloo Bhaijaan 2";
  background-color: var(--primary-color);
  border-color: var(--primary-color);
}

.btn-primary:hover {
  background-color: var(--primary-hover);
  border-color: #6234e3;
}

.btn-outline-primary {
  border-color: var(--success-color);
  color: var(--success-color);
}

.btn-outline-success {
  color: var(--success-color) !important;
  border-color: var(--success-color) !important;
}

.btn-outline-success:hover {
  color: var(--white) !important;
  background-color: var(--success-color) !important;
}

/* Product section */
#product {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background-color: rgba(255, 255, 255, 0.7);
  background-attachment: fixed;
  background-size: cover;
}

#product::before {
  content: "";
  position: absolute;
  inset: 0;
  background-color: rgba(255, 255, 255, 0.7);
  z-index: 1;
}

#product .container {
  position: relative;
  z-index: 2;
}

#product h1 {
  color: var(--success-color);
  font-size: 80px;
  font-weight: 600;
}

#product p {
  color: var(--black);
  font-size: 18px;
}

#product form {
  background-color: rgba(255, 255, 255, 0.8);
  padding: 20px;
  border-radius: 10px;
}

.productImage {
  height: 50vw;
}

/* Accordion */
.accordion-button {
  &:not(.collapsed) {
    background-color: var(--success-hover);
    color: var(--white);

    &::after {
      filter: brightness(0) invert(1);
    }
  }

  &:focus {
    box-shadow: none;
    border-color: rgba(119, 73, 248, 0.5);
  }
}

/* Download section */
#download {
  position: relative;
  overflow: hidden;
}

#download::before {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 150px;
  background: url("wave.svg") no-repeat center/cover;
}

/* Animations */
.fade-in,
.scale-in {
  opacity: 0;
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.fade-in {
  transform: translateY(20px);
}

.scale-in {
  transform: scale(0.9);
}

.fade-in.active,
.scale-in.active {
  opacity: 1;
  transform: none;
}

/* Section titles */
.section-title-hr {
  width: 175px;
  height: 3px;
  border: 3px solid var(--primary-color);
  background-color: var(--primary-color);
  margin: auto;
  border-radius: 100px;
}

.white-hr {
  border-color: var(--white);
  background-color: var(--white);
}

/* Footer Styles */
.footer {
  width: 100%;
  color: var(--white);
  position: relative;
  z-index: 2;
}

/* Footer Background */
.bg-image {
  background: url("./image/bc-footer-mini.svg") no-repeat center/cover;
  min-height: 60vh;
  display: flex;
  align-items: flex-end;
  position: relative;
  z-index: 1;
  padding-bottom: 2rem;
}

/* Footer Content */
.footer__container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

/* Footer Contact Section */
.footer__contact {
  text-align: center;
  margin-bottom: 2rem;
}

.footer__contact-title {
  font-size: 1.25rem;
  margin-bottom: 1rem;
}

.footer__contact-button {
  max-width: 180px;
  margin: 0 auto;
}

/* Footer Logo Section */
.footer__logo {
  text-align: center;
}

.footer__logo-image {
  height: 120px;
  margin-bottom: 1rem;
}

.footer__copyright {
  font-size: 0.875rem;
  margin: 0;
}

/* Footer Links */
.footer a {
  color: var(--white);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer a:hover {
  color: #ddd;
}

/* Select2 customization */
.select2-container {
  .select2-selection--single {
    height: 36px !important;

    .select2-selection__rendered {
      line-height: 38px !important;
    }

    .select2-selection__arrow {
      height: 35px !important;
    }

    .select2-selection__placeholder {
      color: #595c5f !important;
    }
  }
}

.select2-container--default .select2-selection--single {
  border: 1px solid #dee2e5 !important;
}

/* Benefits section */
#benefits {
  padding: 10px;

  img {
    transition: transform 0.3s ease-in-out;

    &:hover {
      transform: scale(1.1);
    }
  }
}

/* Scroll button */
#scrollToSection {
  background-color: var(--success-hover) !important;
  border-color: var(--success-hover) !important;
  z-index: 9999;
  font-size: 20px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  position: fixed;
  bottom: 20px;
  right: 20px;
}

/* Modal */
.modal-body img {
  max-width: 100%;
  height: auto;
}

.tutorial-item {
  width: 100%;
}

/* Store links */
.store-link {
  display: block;
  max-width: 444px;
  height: 150px;
  position: relative;
  z-index: 1;
  cursor: pointer;

  &:hover {
    opacity: 0.9;
  }
}

.store-image {
  width: 100%;
  height: 150px;
  display: block;
}

/* Footer social */
#footer-social {
  display: flex;
}

/* Media queries */
@media (max-width: 768px) {
  #product {
    h1 {
      font-size: 60px;
    }

    p {
      font-size: 14px;
    }

    padding-top: 40px;
    min-height: calc(100vh - 76px);
    background-attachment: scroll;
  }

  #benefits {
    h2 {
      font-size: 2rem;
    }

    h3 {
      font-size: 1.25rem;
    }

    p {
      font-size: 0.9rem;
    }
  }

  .bg-image {
    min-height: 70vh;
    margin-top: -70px;
    background-size: cover;
    background-position: center bottom;
  }

  .row {
    flex-direction: column;
  }

  .col-lg-6 {
    width: 100%;
    margin-bottom: 20px;
  }

  .footer {
    padding: 0;
  }

  .footer__logo-image {
    height: 80px;
  }

  .footer__contact {
    margin-bottom: 1.5rem;
  }

  .footer__contact-button {
    max-width: 250px;
  }

  .download {
    text-align: left;
  }

  .modal-dialog {
    margin: 10px;
    width: auto;
  }

  .store-image {
    width: 70%;
    margin: 0 auto;
  }

  .store-link {
    height: 116px;
  }
}

@media (max-width: 480px) {
  #product {
    h1 {
      font-size: 30px;
    }

    p {
      font-size: 14px;
    }
  }

  #benefits {
    h2 {
      font-size: 1.5rem;
    }

    h3 {
      font-size: 1rem;
    }

    p {
      font-size: 0.8rem;
    }
  }

  /* for mobile resolution */
  .bg-image {
    min-height: 70vh;
    padding: 30px 0;
  }

  .footer__logo-image {
    height: 60px;
  }

  .footer__contact-title {
    font-size: 1.125rem;
  }

  .mt-mobile {
    margin-top: -30px;
  }

  .bn-mobile {
    margin-top: -50px !important;
    position: relative;
    z-index: 100;
  }

  #footer-social {
    justify-content: space-around;
    align-items: center;
    margin-block: 32px;

    a {
      font-size: 48px;
    }
  }
}
