* {
  box-sizing: border-box;
}

body {
  font-family: "Quicksand", sans-serif !important;
  background-color: #faf5f3 !important;

}

h1 {
  font-size: clamp(2rem, 4vw, 4rem) !important;
  font-weight: 700 !important;
  color: #ffffff !important;
  padding-bottom: 30px;
  text-align: center;
  position: fixed;
  top: 36%;
  transition: color 0.3s ease;
}

h4 {
  font-size: 2.25rem !important;
  font-weight: 700 !important;
}

h5 {
  font-size: 1rem !important;
  font-weight: 500 !important;
}

button {
  font-size: 1.125rem !important;
  font-weight: 700 !important;
}

.fade-section {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-section.visible {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-section.hidden {
  opacity: 0;
  transform: translateY(-40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.page-load {
  opacity: 0;
  transform: translateY(40px);
  animation: fadeUp 0.8s ease forwards;
}

@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

#textH1.fade-section {
  transform: translateY(40px);
  opacity: 0;
  transition: opacity 0.8s ease, transform 0.8s ease;
}

#textH1.fade-section.visible {
  transform: translateY(0);
  opacity: 1;
}


.delay-1 {
  animation-delay: 0.2s;
}

.delay-2 {
  animation-delay: 0.4s;
}

@media (min-width: 769px) {
  header {
    padding: 50px 60px 0;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    background-color: transparent;
    position: fixed;
    top: 0;
    width: 100vw;
    z-index: 100;
  }

  #header-btn {
    transition: opacity 0.8s ease;
  }

  #header-btn.hidden-state {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
  }

  #img_logo {
    opacity: 0;
    transition: opacity 0.5s ease;
    height: 60px;
  }

  button {
    background-color: #2d2d2d !important;
    color: #faf5f3 !important;
    padding: 22px 30px 22px 30px !important;
    border-radius: 50px !important;
    border: none !important;
  }

  button:hover {
    background-color: #faf5f3 !important;
    color: #2d2d2d !important;
  }

  #top-section {
    background-color: #faf5f3;
    padding: 80px 0 0 0;
  }

  .container {

    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
  }


  #logo-img {
    padding: 20px 0 50px 0;
    max-width: 80%;
    /* Exit State */
    transition: opacity 0.8s ease, transform 0.5s ease;
    position: fixed;
    top: 26%;
    transform: translateY(0);
    opacity: 0;
    z-index: 50;
  }

  #logo-img.visible {
    /* Visible State */
    transition: opacity 0.4s ease, transform 0.8s ease;
    transform: translateY(0);
    opacity: 1;
  }

  #logo-img.fade-out {
    opacity: 0 !important;
    transition: opacity 0.8s ease !important;
  }

  #logo-img.fade-out-top {
    opacity: 0;
    transform: translateY(-60px);
    transition: opacity 0.5s ease, transform 0.8s ease;
  }

  #logo-img.from-bottom {
    transform: translateY(100vh) !important;
    opacity: 0 !important;
    transition: transform 1s ease-out !important;
  }

  #scroll-btn {
    width: 60px;
    animation: updown 1.2s infinite ease-in-out;
    transition: opacity 0.8s ease;
    position: fixed;
    bottom: 20%;
    opacity: 0;
  }

  #scroll-btn.visible {
    opacity: 1;
  }

  @keyframes updown {
    0% {
      transform: translateY(0);
    }

    50% {
      transform: translateY(10px);
    }

    100% {
      transform: translateY(0);
    }
  }

  #gradient-section {
    background-image: url("../images/background-gradient.svg");
    background-size: 100% 100%;
    background-repeat: no-repeat;
    background-position: center center;
    height: 30vh;
    position: relative;
    margin-bottom: -10vh;
    z-index: 1;
  }

  #second_section {
    background-image: url("../images/background.svg");
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center top;

    opacity: 1;
    position: relative;
    min-height: 100vh;
  }

  .gradient-overlay {
    display: none;
  }

  #second-content {
    position: relative;
    z-index: 2;
  }

  .mobile_button {
    display: none;
  }

  #button-modal {
    display: block;
    position: fixed;
    top: 55%;
    left: 50%;
    transform: translate(-50%, -50%) translateY(40px);
    z-index: 10;
    opacity: 0;
    transition: opacity 0.8s ease, transform 0.8s ease;
  }

  #button-modal.visible {
    opacity: 1;
    transform: translate(-50%, -50%) translateY(0);
  }

  .modal-dialog {
    max-width: 700px !important;
    width: 100%;
    height: 90vh;
    display: flex;
    align-items: center;
    background-image: url("../images/modal-bg.svg");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
  }

  .modal-content {
    width: 100%;
    height: 100%;
    text-align: center;
    background-color: transparent !important;
    position: relative;
    border: 0 !important;
    display: flex;
    flex-direction: column;
  }

  .modal-body {
    position: relative;
    background-color: transparent !important;
    border: 0 !important;
    padding: 40px !important;
    padding-bottom: 140px !important;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    height: 100%;
  }

  .modal-body .close {
    color: #2d2d2d !important;
    background-color: transparent !important;
    padding: 0 !important;
    border: 0 !important;
    font-size: 2rem !important;
    position: relative;
    margin-bottom: 40px;
    z-index: 10000;
  }

  .barcode {
    background-color: transparent;
    padding: 90px 30px 90px 30px;
    border-radius: 30px;

    margin: 0;
    margin-bottom: 40px;
    width: 42% !important;
    justify-self: anchor-center;
    background-image: url("../images/barcode-frame.svg");
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
  }

  .barcode h5 {
    color: #2d2d2d;
    font-size: 1.2rem !important;
  }

  .text {
    color: #e91e63;
    font-size: 1.5rem !important;
    font-family: "Quicksand", sans-serif !important;
    font-weight: 700;
    margin: 0;
  }

  .imgQrcode {
    width: 200px;
    height: 200px;
    margin: 26px 0;
  }

  .footer {
    z-index: 100;
    display: flex;
    gap: 20px;
    padding: 0 80px 59px;
    position: fixed;
    bottom: 0;
    width: 100vw;
    justify-content: space-between !important;
    align-items: center;
  }

  .footer-nav {
    display: flex;
    gap: 20px;
  }

  .copyright {
    font-family: "Quicksand", sans-serif !important;
    font-size: 12px !important;
    font-weight: 600;
    color: #2d2d2d;
    transition: color 0.3s ease;
  }

  .footer .link_btn {
    font-family: "Quicksand", sans-serif !important;
    font-size: 1.125rem;
    font-weight: 700;
    color: #2d2d2d;
    text-decoration: none;
    transition: color 0.3s ease;
  }

  .footer .link_btn:hover {
    color: #e91e63;
  }
}

@media (max-width: 1024px) {
  h1 {
    top: 38%;
    font-size: 3.5rem !important;
    white-space: nowrap;
  }

  header {
    padding: 40px 40px 0;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    background-color: transparent;
    position: fixed;
    top: 0;
    width: 100vw;
    z-index: 100;
  }

  #img_logo {
    height: 45px;
    transition: opacity 0.5s ease;
  }

  button {
    background-color: #2d2d2d !important;
    color: #faf5f3 !important;
    padding: 22px 30px 22px 30px !important;
    border-radius: 50px !important;
    font-size: 1.0625rem !important;
    border: none !important;
  }

  button:hover {
    background-color: #faf5f3 !important;
    color: #2d2d2d !important;
  }

  #top-section {
    background-color: #faf5f3;
    padding: 40px 0 0 0;
  }

  .container {
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    font-size: 1.125rem;
    font-weight: 700;
    color: #2d2d2d;
    text-decoration: none;
  }

  .footer .link_btn {
    font-family: "Quicksand", sans-serif !important;
    font-size: 1.125rem;
    font-weight: 700;
    color: #2d2d2d;
    text-decoration: none;
    transition: color 0.3s ease;
  }

  .footer .link_btn:hover {
    color: #e91e63;
  }

  .footer {
    display: flex;
    gap: 20px;
    padding: 0 40px 59px;
    position: fixed;
    bottom: 0;
    width: 100vw;
    justify-content: center !important;
    background-color: transparent;
    z-index: 100;
    align-items: center;
  }

  .footer-nav {
    display: flex;
    gap: 20px;
  }

  #logo-img {
    padding: 20px 0 50px 0;
    max-width: 80%;
    transition: opacity 0.5s ease, transform 0.5s ease;
    position: fixed;
    top: 30%;
    transform: translateY(0);
    opacity: 0;
    z-index: 50;
  }

  #logo-img.visible {
    transition: opacity 0.4s ease, transform 0.8s ease;
    transform: translateY(0);
    opacity: 1;
  }

  #logo-img.from-bottom {
    transform: translateY(100vh) !important;
    opacity: 0 !important;
    transition: transform 1s ease-out !important;
  }

  .copyright {
    display: none;
  }

  .imgQrcode {
    width: 180px;
    height: 180px;
    margin: 20px 0;
  }

  #gradient-section {
    background-image: url("../images/background-gradient.svg");
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center center;
    height: 30vh;
    position: relative;
    margin-bottom: -10vh;
    z-index: 1;
  }

  #second_section {
    background-image: url("../images/background.svg");
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center center;
    position: relative;
    min-height: 100vh;
  }

  .gradient-overlay {
    display: none;
  }

  #second-content {
    position: relative;
    z-index: 2;
  }

  .mobile_button {
    display: none;
  }

  /* Restored Styles */
  .btn-active {
    background: #2d2d2d;
    cursor: pointer;
  }

  .btn-disabled {
    background-color: rgba(187, 185, 185, 0.8) !important;
    cursor: not-allowed !important;
    color: #faf5f3;
    border: 0;
  }

  #button-modal {
    display: block;
    position: fixed;
    top: 60%;
    left: 50%;
    transform: translate(-50%, -50%) translateY(40px);
    z-index: 10;
    opacity: 0;
    transition: opacity 0.8s ease, transform 0.8s ease;
  }

  #button-modal.visible {
    opacity: 1;
    transform: translate(-50%, -50%) translateY(0);
  }

  .modal-dialog {
    height: 85vh;
    display: flex;
    align-items: center;
    background-image: url("../images/modal-bg.svg");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
  }

  .modal-content {
    width: 100%;
    height: 100%;
    text-align: center;
    background-color: transparent !important;
    position: relative;
    border: 0 !important;
    display: flex;
    flex-direction: column;
  }

  .modal-body {
    position: relative;
    background-color: transparent !important;
    border: 0 !important;
    padding: 30px !important;
    padding-bottom: 110px !important;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    height: 100%;
  }

  .modal-body .close {
    color: #2d2d2d !important;
    background-color: transparent !important;
    padding: 0 !important;
    border: 0 !important;
    font-size: 2rem !important;
    position: relative;
    margin-bottom: 35px;
    z-index: 10000;
  }

  .barcode {
    background-color: transparent;
    padding: 80px 30px 80px 30px;
    border-radius: 30px;
    margin: 0;
    margin-bottom: 35px;
    width: 50%;
    justify-self: anchor-center;
    background-image: url("../images/barcode-frame.svg");
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
  }

  .barcode h5 {
    color: #2d2d2d;
  }

  .text {
    color: #e91e63;
    font-size: 1.5rem !important;
    font-family: "Quicksand", sans-serif !important;
    font-weight: 700;
    margin: 0;
  }

  .header-btn {
    display: block;
  }

  #header-btn {
    transition: opacity 0.8s ease;
  }

  /* Strict Enforcements for Tablet/iPad Air */
  #scroll-btn {
    width: 60px !important;
    animation: updown 1.2s infinite ease-in-out;
    transition: opacity 0.8s ease;
    position: fixed;
    bottom: 35% !important;
    /* Push lower to avoid logo overlap */
    left: 0;
    right: 0;
    margin: 0 auto;
    /* Ensure horizontal centering */
    opacity: 0;
  }

  #scroll-btn.visible {
    opacity: 1;
  }

  @keyframes updown {
    0% {
      transform: translateY(0);
    }

    50% {
      transform: translateY(10px);
    }

    100% {
      transform: translateY(0);
    }
  }

  .mobile_button {
    display: none !important;
  }
}

@media (max-width: 576px) {
  h1 {
    top: 32%;
    z-index: 60;
    font-size: 9.5vw !important;
    padding-bottom: 0 !important;
    width: 100%;
    margin: 0 auto;
    left: 0;
    right: 0;
    line-height: 1.2;
    white-space: nowrap;
  }

  #textH1.fade-section {
    transition: opacity 0.56s ease, transform 0.56s ease !important;
  }

  header {
    padding: 40px 40px 0;
    /* Tighter header */
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    background-color: transparent;
    position: fixed;
    top: 0;
    width: 100vw;
    z-index: 100;
  }

  #img_logo {
    width: 38px;
    height: 35px;
    transition: opacity 0.5s ease;
  }

  #header-btn {
    display: none !important;
  }

  button {
    background-color: #BBB9B9 !important;
    color: #faf5f3 !important;
    width: 151px !important;
    height: 45px !important;
    padding: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 50px !important;
    border: none !important;
    font-size: 1rem !important;
  }

  @media (hover: hover) {
    button:hover {
      background-color: #faf5f3 !important;
      color: #2d2d2d !important;
    }
  }



  /* Programmatic Active State for Mobile - FORCED GRAY */
  .temp-active,
  button:active,
  button:focus,
  button:hover {
    background-color: #BBB9B9 !important;
    color: #faf5f3 !important;
    outline: none !important;
    -webkit-tap-highlight-color: transparent !important;
  }

  button:focus {
    outline: none;
  }

  #top-section {
    background-color: #faf5f3;
    padding: 40px 0 0 0;
  }

  .container {
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
  }

  #logo-img {
    padding: 0;
    max-width: 80%;
    /* Add spacing to push other elements if needed */
    transition: opacity 0.5s ease, transform 0.5s ease;
    transform: translateY(0);
    /* Ensure top is respected if position is fixed */
    top: 30% !important;
    opacity: 0;
    z-index: 50;
  }

  #logo-img.visible {
    transition: opacity 0.4s ease, transform 0.8s ease;
    transform: translateY(0);
    opacity: 1;
  }

  #logo-img.from-bottom {
    transform: translateY(100vh) !important;
    opacity: 0 !important;
  }

  #logo-img.fade-out-top {
    opacity: 0 !important;
    transform: translateY(-60px);
    transition: opacity 0.5s ease, transform 0.8s ease;
  }

  #scroll-btn {
    width: 30px !important;
    height: 30px !important;
    animation: updown 1.2s infinite ease-in-out;
    transition: opacity 0.8s ease;
    position: fixed;
    bottom: 35% !important;
    left: 0;
    right: 0;
    margin: 0 auto;
    opacity: 0;
  }

  #scroll-btn.visible {
    opacity: 1;
  }

  @keyframes updown {
    0% {
      transform: translateY(0);
    }

    50% {
      transform: translateY(10px);
    }

    100% {
      transform: translateY(0);
    }
  }

  .footer {
    display: flex;
    gap: 20px;
    padding: 0 40px 36px;
    position: fixed;
    bottom: 0;
    width: 100vw;
    justify-content: center !important;
    background-color: transparent;
    z-index: 100;
  }

  .footer-nav {
    display: flex;
    gap: 20px;
  }

  .copyright {
    display: none;
  }

  .footer .link_btn {
    font-family: "Quicksand", sans-serif !important;
    font-size: 1rem !important;
    font-weight: 700;
    color: #2d2d2d;
    text-decoration: none;
  }

  .footer .link_btn:hover {
    color: #e91e63;
  }

  #gradient-section {
    background-image: url("../images/background-gradient.svg");
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center center;
    height: 30vh;
    position: relative;
    margin-bottom: -10vh;
    z-index: 1;
  }

  #second_section {
    background-image: url("../images/background.svg");
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center center;
    position: relative;
    min-height: 100vh;
  }

  .gradient-overlay {
    display: none;
  }

  #second-content {
    position: relative;
    z-index: 2;
  }

  .mobile_button {
    display: none;
  }

  #button-modal {
    display: block;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) translateY(40px);
    z-index: 10;
    opacity: 0;
    transition: opacity 0.8s ease, transform 0.8s ease;
  }

  #button-modal.visible {
    opacity: 1;
    transform: translate(-50%, -50%) translateY(0);
  }

  .modal-dialog {
    height: 85vh;
    display: flex;
    align-items: center;
    max-width: 90%;
    margin: 0 auto;
    background-image: url("../images/modal-bg.svg");
    background-size: 100% 100%;
    background-repeat: no-repeat;
    background-position: center;
  }

  .modal-content {
    width: 100%;
    height: 100%;
    min-height: auto;
    text-align: center;
    background-color: transparent !important;
    position: relative;
    border: 0 !important;
    display: flex;
    flex-direction: column;
  }

  .modal-body {
    position: relative;
    background-color: transparent !important;
    border: 0 !important;
    padding: 20px !important;
    padding-bottom: 100px !important;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    height: 100%;
  }

  .modal-body .close {
    color: #2d2d2d !important;
    background-color: transparent !important;
    padding: 0 !important;
    border: 0 !important;
    font-size: 1.8rem !important;
    position: relative;
    margin-bottom: 30px;
    z-index: 10000;
  }

  .barcode {
    background-color: transparent;
    padding: 30px 20px;
    border-radius: 30px;
    /* border: 1px dashed #000; */
    margin: 0;
    margin-bottom: 30px;
    width: 50%;
    display: inline-block;
    background-image: url("../images/barcode-frame.svg");
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
  }

  .barcode h5 {
    color: #2d2d2d;
  }

  .text {
    color: #e91e63;
    font-size: 1.25rem !important;
    font-family: "Quicksand", sans-serif !important;
    font-weight: 700;
    margin: 0;
  }

  .header-btn {
    display: none;
  }

  .barcode h5 {
    font-size: 0.85rem !important;
    line-height: 1.2;
  }
}

@media (min-width: 2000px) {
  #logo-img {
    max-width: 100% !important;
    transform: scale(1.5);
    /* Increase visual size */
  }

  h1 {
    font-size: 5rem !important;
  }
}