/* CREDITS PAGE DECORATIVE ASSETS (SIDE A) */
/* Vendor illustrations and mobile bottom assets */

/* KEYFRAMES FOR FLOATING EFFECT */
@keyframes floatAnimation {
  0% { transform: translate(0, 0); }
  50% { transform: translate(0, -20px); }
  100% { transform: translate(0, 0); }
}

/* VENDORS CONTAINER */
.vendors-container {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
}

/* LEFT VENDOR */
.vendor1 {
  position: absolute;
  left: 0;
  bottom: 0; 
  width: auto;
  height: 45vh;
  z-index: 1;
  pointer-events: none;
  display: block;
  will-change: transform;
  transform-origin: left bottom;
  animation: floatAnimation 4s infinite ease-in-out;
}

/* RIGHT VENDOR */
.vendor2 {
  position: absolute;
  right: 0;
  bottom: 0; 
  width: auto;
  height: 45vh;
  z-index: 1;
  pointer-events: none;
  display: block;
  will-change: transform;
  transform-origin: right bottom;
  animation: floatAnimation 3.5s infinite ease-in-out 0.2s;
}

/* LEFT PINWHEEL */
.pinwheel1 {
  position: absolute;
  left: -8%;
  bottom: 30vh;
  width: auto;
  height: 40vh;
  z-index: 2;
  pointer-events: none;
  display: block;
  will-change: transform;
  transform-origin: center;
  animation: floatAnimation 3.5s infinite ease-in-out 0.2s;
}

/* RIGHT BARS */
.bars2 {
  position: absolute;
  right: -2%;
  bottom: 45vh;
  width: auto;
  height: 40vh;
  z-index: 2;
  pointer-events: none;
  display: block;
  will-change: transform;
  transform-origin: center;
  animation: floatAnimation 4s infinite ease-in-out;
}

/* MOBILE BOTTOM ASSETS */
.mobile-bottom-assets {
  position: fixed;
  bottom: -200px;
  left: 0;
  width: 100vw;
  height: 70vh;
  z-index: 1;
  pointer-events: none;
  display: none;
  object-fit: cover;
  object-position: bottom center;
}

.mobile-bottom-assets img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: bottom center;
}

/* LOGO */
.creditslogo {
  position: absolute;
  left: 5%;
  display: block;
  top: 5%;
  width: 10vw;
  height: auto;
}

/* RESPONSIVE BREAKPOINTS FOR ASSETS */

/* Mobile Phones (up to 480px) */
@media (max-width: 480px) {
  .wave,
  .vendor1,
  .vendor2 {
    display: none;
  }

  .pinwheel1{
    display: block;
    height: 30vh;
    top: 515px;
    left: -28%;
  }

  .bars2{
    display: block;
    height: 30vh;
    top: 50px;
    right: -18%;
  }

  .mobile-bottom-assets {
    display: block;
    height: 70vh;
    bottom: -200px;
    z-index: -1;
    padding-bottom: env(safe-area-inset-bottom);
    height: calc(70vh + env(safe-area-inset-bottom));
  }

  .creditslogo {
    position: absolute;
    left: 5%;
    display: block;
    top: 5%;
    width: 40vw;
    height: auto;
  }
}

/* Tablets (481px - 768px) */
@media (min-width: 481px) and (max-width: 768px) {
  .vendor1 {
    left: -80px;
    bottom: -80px;
    height: 320px;
    pointer-events: auto;
  }

  .wave {
    bottom: -120px;
    height: 350px;
  }

  .vendor2 {
    bottom: -80px;
    height: 320px;
    right: -90px;
    pointer-events: auto;
  }

  .pinwheel1 {
    left: -6%;
    bottom: 28vh;
    height: 30vh;
  }

  .bars2 {
    right: 0%;
    bottom: 38vh;
    height: 30vh;
  }

  .mobile-bottom-assets {
    display: none;
  }
}

/* Small Laptops (769px - 1024px) */
@media (min-width: 769px) and (max-width: 1024px) {
  .vendor1 {
    left: -60px;
    bottom: -100px;
    height: 350px;
  }

  .wave {
    bottom: -130px;
    height: 380px;
  }

  .vendor2 {
    bottom: -100px;
    right: -110px;
    height: 350px;
  }

  .pinwheel1 {
    left: -25%;
    bottom: 35vh;
    height: 35vh;
  }

  .bars2 {
    right: -10%;
    bottom: 42vh;
    height: 35vh;
  }

  .mobile-bottom-assets {
    display: none;
  }
}

/* Desktop (1025px - 1440px) */
@media (min-width: 1025px) and (max-width: 1440px) {
  .vendor1 {
    left: -60px;
    bottom: -120px;
    height: 420px;
  }

  .wave {
    bottom: -190px;
    height: 550px;
  }

  .vendor2 {
    bottom: -120px;
    right: -90px;
    height: 420px;
  }

  .pinwheel1 {
    left: -8%;
    bottom: 32vh;
    height: 38vh;
  }

  .bars2 {
    right: -4%;
    bottom: 44vh;
    height: 38vh;
  }
}

/* Large Desktop (1441px - 1919px) */
@media (min-width: 1441px) and (max-width: 1919px) {
  .vendor1 {
    left: -40px;
    bottom: -130px;
    height: 450px;
  }

  .wave {
    bottom: -230px;
    height: 660px;
  }

  .vendor2 {
    bottom: -130px;
    right: -90px;
    height: 450px;
  }

  .pinwheel1 {
    left: -8%;
    bottom: 35vh;
    height: 42vh;
  }

  .bars2 {
    right: -2%;
    bottom: 47vh;
    height: 42vh;
  }
}

/* Ultra Wide (1920px - 2559px) */
@media (min-width: 1920px) and (max-width: 2559px) {
  .vendor1 {
    left: -20px;
    bottom: -150px;
    height: 550px;
  }

  .wave {
    bottom: -300px;
    height: 850px;
  }

  .vendor2 {
    bottom: -150px;
    right: -150px;
    height: 550px;
  }

  .pinwheel1 {
    left: -8%;
    bottom: 38vh;
    height: 45vh;
  }

  .bars2 {
    right: -2%;
    bottom: 50vh;
    height: 45vh;
  }
}

/* Extra Ultra Wide (2560px+) */
@media (min-width: 2560px) {
  .vendor1 {
    left: clamp(-40px, -2vw, 0px);
    bottom: -180px;
    height: clamp(600px, 35vh, 800px);
  }

  .wave {
    bottom: -600px;
    height: clamp(1500px, 28vh, 550px);
  }

  .vendor2 {
    bottom: -180px;
    right: -150px;
    height: clamp(600px, 35vh, 800px);
  }

  .pinwheel1 {
    left: -8%;
    bottom: clamp(40vh, 45vh, 50vh);
    height: clamp(48vh, 50vh, 55vh);
  }

  .bars2 {
    right: -2%;
    bottom: clamp(52vh, 55vh, 60vh);
    height: clamp(48vh, 50vh, 55vh);
  }
}

/* LANDSCAPE ORIENTATION */
@media (orientation: landscape) and (max-height: 600px) {
  .vendor1 {
    height: 280px;
    left: -60px;
    bottom: -80px;
  }

  .wave {
    bottom: -100px;
    right: 2px;
    height: 280px;
    width: 1000px;
  }

  .vendor2 {
    bottom: -80px;
    height: 280px;
  }

  .pinwheel1 {
    left: -6%;
    bottom: 25vh;
    height: 28vh;
  }

  .bars2 {
    right: -1%;
    bottom: 40vh;
    height: 28vh;
  }
}

@media (orientation: landscape) and (max-height: 600px) and (max-width: 768px) {
  .vendor1,
  .wave,
  .vendor2,
  .pinwheel1,
  .bars2 {
    display: none;
  }

  .mobile-bottom-assets {
    display: block;
    height: 70vh;
    width: 100vw;
    bottom: -200px;
  }
}

/* MOBILE SPECIFIC ADJUSTMENTS */
@media (max-width: 375px) {
  .mobile-bottom-assets {
    display: block;
    height: 65vh;
    bottom: -220px;
    min-height: 65vh;
  }
}

@media (min-width: 376px) and (max-width: 480px) {
  .mobile-bottom-assets {
    display: block;
    height: 70vh;
    bottom: -200px;
  }
}

@media (max-width: 480px) and (orientation: portrait) {
  .mobile-bottom-assets {
    display: block;
    height: 70vh;
    width: 100vw;
    bottom: -200px;
    position: fixed;
  }
}

@media (max-width: 812px) and (orientation: landscape) and (max-height: 480px) {
  .mobile-bottom-assets {
    display: block;
    height: 60vh;
    width: 100vw;
    bottom: -180px;
    position: fixed;
  }
}

/* ASSET INTERACTIONS & EFFECTS */

/* High DPI displays */
@media (min-resolution: 120dpi) {
  .vendor1,
  .vendor2 {
    transform-style: preserve-3d;
    backface-visibility: hidden;
  }
}

/* Hover effects */
.vendor1:hover,
.vendor2:hover,
.pinwheel1:hover,
.bars2:hover {
  transition: opacity 0.3s ease,
    transform 0.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Touch devices */
@media (hover: none) and (pointer: coarse) {
  .vendor1:hover,
  .vendor2:hover,
  .pinwheel1:hover,
  .bars2:hover {
    transition: transform 0.15s ease;
  }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .vendor1,
  .vendor2,
  .pinwheel1,
  .bars2 {
    pointer-events: none;
    transition: none !important;
    will-change: auto;
  }
}
