

.scene {
  min-height: 100vh;
  display: grid;
  place-items: center;
  perspective: 1400px;
}

.wallet-card {
    --rotate-x: 0deg;
    --rotate-y: 0deg;
    --glare-x: 50%;
    --glare-y: 50%;
    position: relative;
    width: min(88vw, 460px);
    border-radius: 12px;
    aspect-ratio: 1.586 / 1;
    overflow: hidden;
    border: 1px solid rgb(255 255 255 / 21%);
    transform-style: preserve-3d;
    transform: rotateX(var(--rotate-x)) rotateY(var(--rotate-y));
    transition: transform 0.15s ease-out;
    background: #090909;
    box-shadow: 0px 5px 6px 0px rgb(0 0 0 / 27%), 0 12px 20px rgb(0 0 0 / 20%), inset 0 0 35px rgb(0 0 0 / 31%);
    animation: idleFloat 5s ease-in-out infinite;
}

.wallet-card::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 5;
    pointer-events: none;
    border-radius: inherit;
    background: linear-gradient(115deg, rgb(24 24 24), #00000061 18%, #0000003d 75%, rgb(0 0 0));
    mix-blend-mode: screen;
}

.card-glare {
    position: absolute;
    inset: -30%;
    z-index: 10;
    pointer-events: none;
    opacity: 0.3;
    background: radial-gradient(circle at var(--glare-x) var(--glare-y), #061798, #000000 38%);
    mix-blend-mode: screen;
}

.blue-shape {
  position: absolute;
  right: -7%;
  top: 7%;
  width: 56%;
  height: 108%;
  clip-path: polygon(42% 0, 100% 15%, 100% 100%, 30% 100%, 0 43%);
  background:
    linear-gradient(110deg, #0875ff 0%, #064ed9 55%, #06194f 100%);
  box-shadow: inset 30px 0 50px rgba(0, 130, 255, 0.25);
}

.brand {
  position: absolute;
  top: 10%;
  left: 8%;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 20px;
  color: #ffffff;
  font-size: clamp(1.4rem, 4vw, 4rem);
  font-weight: 300;
  letter-spacing: 1px;
  white-space: nowrap;
}

.shield {
  width: clamp(42px, 7vw, 76px);
  height: clamp(52px, 8vw, 90px);
  clip-path: polygon(50% 0, 100% 22%, 100% 62%, 50% 100%, 0 62%, 0 22%);
  background: linear-gradient(135deg, #174cff, #12c9e9);
  box-shadow: 0 0 25px rgba(0, 90, 255, 0.6);
}

.visa {
  position: absolute;
  top: 21%;
  left: 17%;
  z-index: 2;
  color: #ffffff;
  font-size: clamp(1.7rem, 5vw, 4rem);
  font-weight: 700;
  letter-spacing: 2px;
}

.visa small {
  font-size: 0.8em;
  font-weight: 300;
}

.chip {
  position: absolute;
  left: 10%;
  bottom: 25%;
  z-index: 2;
  width: clamp(85px, 15vw, 145px);
  height: clamp(68px, 12vw, 115px);
  overflow: hidden;
  border-radius: 17px;
  background: linear-gradient(145deg, #ffffff, #a9a9a9);
  box-shadow:
    0 10px 20px rgba(0, 0, 0, 0.45),
    inset 0 0 12px rgba(255, 255, 255, 0.8);
}

.chip::before,
.chip::after {
  content: "";
  position: absolute;
  border: 3px solid #151515;
}

.chip::before {
  inset: 20px 0;
  border-left: 0;
  border-right: 0;
}

.chip::after {
  inset: 0 48px;
  border-top: 0;
  border-bottom: 0;
}

.chip-center {
  position: absolute;
  inset: 25% 31%;
  z-index: 2;
  border: 3px solid #151515;
  border-radius: 12px;
  background: #d8d8d8;
}

.bottom-text,
.debit-text {
  position: absolute;
  bottom: 7%;
  z-index: 2;
  color: #ffc044;
  font-weight: 300;
}

.bottom-text {
  left: 8%;
  font-size: clamp(0.7rem, 2.4vw, 2.2rem);
  letter-spacing: clamp(2px, 0.6vw, 8px);
}

.debit-text {
  right: 8%;
  font-size: clamp(1rem, 2.8vw, 2.7rem);
  letter-spacing: clamp(2px, 0.5vw, 6px);
}

@keyframes idleFloat {
  0%,
  100% {
    margin-top: 0;
  }

  50% {
    margin-top: -10px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .wallet-card {
    animation: none;
    transition: none;
  }
}

@media (max-width: 600px) {
  .wallet-card {
    border-radius: 18px;
  }

  .brand {
    gap: 10px;
  }

  .chip::before {
    inset: 14px 0;
  }

  .chip::after {
    inset: 0 28px;
  }
}


.wallet-card {
    position: relative;
    overflow: hidden;
    width: min(88vw, 460px);
    border-radius: 12px;
    aspect-ratio: 1.586 / 1;
    background: #000000;
    transform-style: preserve-3d;
    background-image: url(assets/bb2.jpg);
    background-size: contain;
}

.brand-image {
    position: absolute;
    top: 5%;
    left: 3%;
    z-index: 3;
    width: 37%;
    height: auto;
}

.chip-image {
    position: absolute;
    left: 10%;
    bottom: 50%;
    z-index: 3;
    width: 13%;
    height: auto;
}

.blue-shape-image {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

.card-glare {
    position: absolute;
    inset: -30%;
    z-index: 10;
    pointer-events: none;
    opacity: 0.3;
    background: radial-gradient(circle at var(--glare-x) var(--glare-y), #061798, #000000 38%);
    mix-blend-mode: screen;
}

.bottom-text,
.debit-text {
  position: absolute;
  bottom: 7%;
  z-index: 4;
  color: #ffc044;
  font-weight: 300;
}

.bottom-text {
    left: 8%;
    font-size: clamp(0.7rem, 2.4vw, 0.2rem);
    letter-spacing: clamp(1px, 1.6vw, 8px);
}

.debit-text {
    right: 4%;
    font-size: clamp(0rem, 0.8vw, 1.7rem);
    letter-spacing: clamp(2px, 0.5vw, 0px);
}