*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Arial, sans-serif;
  overflow-x: hidden;
  min-height: 100vh;
  background: #000;
  color: #fff;
}

header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 10px;
  background: rgba(0, 0, 0, 0.7);
  z-index: 100;
  text-align: center;
}

.logo img {
  width: 200px;
  height: 100px;
  object-fit: contain;
  margin-top: 10px;
  transform: scale(1.5);
  transform-origin: center;
}

.main-homepage-title {
  position: fixed;
  top: 165px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 100;
  width: min(1200px, 92%);
  text-align: center;
  font-size: clamp(15px, 4vw, 30px);
  font-weight: 500;
  line-height: 1.1;
  color: #fff;
  letter-spacing: -1px;
  text-shadow:
    0 4px 18px rgba(0, 0, 0, 0.8),
    0 0 25px rgba(138, 74, 243, 0.25);
  pointer-events: none;
  padding: 0 15px;
}

.menu-btn {
  position: absolute;
  top: 20px;
  left: 20px;
  font-size: 2em;
  color: #fff;
  cursor: pointer;
  z-index: 102;
}

.side-menu {
  position: fixed;
  top: 0;
  left: -500px;
  height: 100%;
  width: 500px;
  background: rgba(0, 0, 0, 0.9);
  transition: left 0.3s ease;
  z-index: 101;
}

.side-menu.open {
  left: 0;
}

.side-menu ul {
  list-style: none;
  padding: 20px;
}

.side-menu ul li {
  margin: 20px 0;
}

.side-menu ul li a {
  color: #fff;
  text-decoration: none;
  font-size: 1.2em;
  padding: 10px;
  display: block;
  transition: background 0.3s ease;
}

.side-menu ul li a:hover {
  background: #8a4af3;
}

.side-menu .sub-menu {
  display: none;
  list-style: none;
  padding-left: 15px;
}

.side-menu .sub-menu li {
  margin: 5px 0;
}

.close-btn {
  position: absolute;
  top: 20px;
  right: 20px;
  font-size: 2em;
  color: #fff;
  cursor: pointer;
}

.modern-button {
  display: inline-block;
  position: absolute;
  left: 85%;
  top: 40px;
  padding: 12px 28px;
  font-size: 17px;
  font-weight: 600;
  color: #e0e0e0;
  background: transparent;
  border: 2px solid #6a6a6a;
  border-radius: 8px;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.modern-button:hover {
  color: #fff;
  border-color: #00bcd4;
  background: rgba(0, 188, 212, 0.1);
  box-shadow: 0 6px 15px rgba(0, 188, 212, 0.4);
  transform: translateY(-2px);
}

.reddit-link {
  position: absolute;
  top: 50px;
  right: 40px;
  z-index: 10;
  color: #ff4500;
  font-size: 36px;
  text-decoration: none;
  display: flex;
  align-items: center;
  line-height: 1;
  animation: shake 0.8s ease-in-out infinite;
}

.reddit-link:hover {
  color: #ffa07a;
}

@keyframes shake {
  0%, 100% {
    transform: translateX(0) rotate(0deg);
  }

  25% {
    transform: translateX(-6px) rotate(-10deg);
  }

  50% {
    transform: translateX(6px) rotate(10deg);
  }

  75% {
    transform: translateX(-6px) rotate(-10deg);
  }
}

.scrolling-headline-container {
  background: transparent;
  overflow: hidden;
  padding: 15px 0;
  white-space: nowrap;
}

.scrolling-headline-text {
  display: inline-block;
  padding-left: 100%;
  animation: scrollHeadline 45s linear infinite;
}

.headline-item {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-right: 60px;
  color: #fff;
}

.headline-title {
  display: inline;
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  margin: 0;
  padding: 0;
}

.headline-desc {
  font-size: 16px;
  color: #d6d6d6;
}

@keyframes scrollHeadline {
  0% {
    transform: translateX(0);
  }

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

.frame {
  width: 100vw;
  height: 95vh;
  display: flex;
  justify-content: flex-start;
  align-items: flex-end;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 99;
  transition: opacity 1s ease;
  opacity: 1;
  padding: 20px;
  color: #fff;
  text-align: center;
  flex-direction: column;
}

.frame.hidden {
  opacity: 0;
  pointer-events: none;
}

.frame-1,
.frame-4 {
  background: linear-gradient(135deg, #8a4af3, #000);
}

.frame-2 {
  background: linear-gradient(135deg, #000, #32cd32);
}

.frame-3 {
  background: linear-gradient(135deg, #000, #8a4af3);
}

.product-img,
.product-img2,
.product-img3,
.product-img4 {
  position: absolute;
  height: auto;
  border-radius: 10px;
  transition: all 0.3s ease;
  pointer-events: auto !important;
  cursor: pointer;
}

.product-title,
.product-title2,
.product-title3,
.product-title4 {
  position: absolute;
  margin-top: 20px;
  font-size: 30px;
}

/* Desktop Frame Positions */
.frame-1 .product-img,
.frame-2 .product-img,
.frame-3 .product-img,
.frame-4 .product-img {
  top: 30%;
  left: 3%;
  width: 20%;
  transform: rotate(-35deg);
}

.frame-1 .product-img2,
.frame-2 .product-img2,
.frame-4 .product-img2 {
  top: 30%;
  left: 26%;
  width: 20%;
  transform: rotate(-35deg);
}

.frame-3 .product-img2 {
  top: 30%;
  left: 28%;
  width: 20%;
  transform: rotate(-35deg);
}

.frame-1 .product-img3 {
  top: 30%;
  left: 52%;
  width: 20%;
  transform: rotate(-35deg);
}

.frame-2 .product-img3,
.frame-4 .product-img3 {
  top: 30%;
  left: 50%;
  width: 20%;
  transform: rotate(-35deg);
}

.frame-3 .product-img3 {
  top: 30%;
  left: 52.5%;
  width: 20%;
  transform: rotate(-35deg);
}

.frame-1 .product-img4,
.frame-2 .product-img4,
.frame-4 .product-img4 {
  top: 30%;
  left: 74%;
  width: 20%;
  transform: rotate(-35deg);
}

.frame-3 .product-img4 {
  top: 30%;
  left: 77%;
  width: 20%;
  transform: rotate(-35deg);
}

.frame-1 .product-title {
  bottom: 14%;
  right: 74%;
  transform: rotate(-35deg);
}

.frame-1 .product-title2 {
  bottom: 13%;
  right: 52%;
  transform: rotate(-35deg);
}

.frame-1 .product-title3 {
  bottom: 15%;
  right: 29%;
  transform: rotate(-35deg);
}

.frame-1 .product-title4 {
  bottom: 15%;
  right: 5%;
  transform: rotate(-35deg);
}

.frame-2 .product-title {
  bottom: 13%;
  right: 74%;
  transform: rotate(-35deg);
}

.frame-2 .product-title2 {
  bottom: 12%;
  right: 52%;
  transform: rotate(-35deg);
}

.frame-2 .product-title3 {
  bottom: 13%;
  right: 29%;
  transform: rotate(-35deg);
}

.frame-2 .product-title4 {
  bottom: 13%;
  right: 5%;
  transform: rotate(-35deg);
}

.frame-3 .product-title {
  bottom: 18%;
  right: 73%;
  transform: rotate(-35deg);
}

.frame-3 .product-title2 {
  bottom: 18%;
  right: 50%;
  transform: rotate(-35deg);
}

.frame-3 .product-title3 {
  bottom: 18%;
  right: 27%;
  transform: rotate(-35deg);
}

.frame-3 .product-title4 {
  bottom: 18%;
  right: 1%;
  transform: rotate(-35deg);
}

.frame-4 .product-title {
  bottom: 10%;
  right: 74.5%;
  transform: rotate(-35deg);
}

.frame-4 .product-title2 {
  bottom: 18%;
  right: 51%;
  transform: rotate(-35deg);
}

.frame-4 .product-title3 {
  bottom: 18%;
  right: 29%;
  transform: rotate(-35deg);
}

.frame-4 .product-title4 {
  bottom: 18%;
  right: 5%;
  transform: rotate(-35deg);
}

/* Popup */
.popup-overlay {
  display: none;
  position: fixed;
  z-index: 99999;
  inset: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.7);
  justify-content: center;
  align-items: center;
  backdrop-filter: blur(5px);
}

.popup-content {
  position: relative;
  z-index: 100000;
  background: #fff;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
  text-align: center;
  max-width: 500px;
  width: 90%;
  animation: fadeInScale 0.3s ease-out forwards;
  overflow: hidden;
}

.popup-img {
  max-width: 120px;
  margin-bottom: 20px;
  border-radius: 8px;
}

.popup-content h1 {
  color: #333;
}

.popup-content p,
.popup-content h4 {
  color: #555;
  line-height: 1.5;
}

.no-bold {
  font-weight: normal;
  font-size: 1rem;
  line-height: 1.5;
  margin: 0 0 1rem;
}

.popup-button {
  background: #fff;
  color: #000;
  padding: 12px 25px;
  border: 2px solid #000;
  border-radius: 5px;
  cursor: pointer;
  font-size: 1.1em;
  font-weight: bold;
  box-shadow: 6px 6px 0 rgba(0, 0, 0, 0.8);
  transition: all 0.2s ease-in-out;
}

.popup-button:hover {
  background: #eee;
  transform: translate(-3px, -3px);
  box-shadow: 9px 9px 0 rgba(0, 0, 0, 0.8);
}

.popup-button:active {
  transform: translate(0);
  box-shadow: 6px 6px 0 rgba(0, 0, 0, 0.8);
}

.popup-small-print {
  font-size: 0.8em;
  color: #888;
  margin-top: 15px;
}

@keyframes fadeInScale {
  from {
    opacity: 0;
    transform: scale(0.9);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 110;
}

footer {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 10px;
  background: rgba(0, 0, 0, 0.7);
  color: #fff;
  text-align: center;
  z-index: 100;
  font-size: 1em;
}

/* Mobile - matched to your original file */
@media (max-width: 768px) {
  .main-homepage-title {
    top: 135px;
    width: 94%;
    font-size: clamp(22px, 7vw, 34px);
    line-height: 1.2;
    letter-spacing: -0.5px;
    padding: 0 10px;
  }

  .logo img {
    width: 120px;
    height: 85px;
    margin-top: 10px;
    object-fit: contain;
    transform: scale(1.5);
    transform-origin: center;
  }

  .menu-btn {
    position: fixed;
    top: 20px;
    left: 20px;
    font-size: 2em;
    color: #fff;
    cursor: pointer;
    z-index: 102;
  }

  .close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 2em;
    color: #fff;
    cursor: pointer;
  }

  .side-menu {
    width: 100%;
  }

  .reddit-link {
    top: 30px;
    right: 25px;
    font-size: 32px;
  }

  .modern-button {
    padding: 6px 16px;
    font-size: 14px;
    left: 85%;
    top: 72px;
    transform: translateX(-50%);
  }

  .modern-button:hover,
  .modern-button:active {
    color: #e0e0e0;
    border-color: #6a6a6a;
    background: transparent;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    transform: translateX(-50%);
  }

  .frame {
    padding: 10px;
    font-size: 2em;
    justify-content: center;
    align-items: center;
  }

  .product-img,
  .product-img2,
  .product-img3,
  .product-img4 {
    position: absolute;
    border-radius: 10px;
    transition: all 0.3s ease;
  }

  .product-title,
  .product-title2,
  .product-title3,
  .product-title4 {
    position: absolute;
    margin-top: 15px;
  }
  
  

  .frame-1 .product-img {
    top: 20%;
    left: 0%;
    width: 50%;
    max-width: 100%;
    height: auto;
    transform: rotate(0deg);
  }

  .frame-1 .product-img2 {
    top: 20%;
    left: 47%;
    width: 50%;
    max-width: 100%;
    height: auto;
    transform: rotate(0deg);
  }

  .frame-1 .product-img3 {
    top: 58%;
    left: 3%;
    width: 50%;
    max-width: 100%;
    height: auto;
    transform: rotate(0deg);
  }

  .frame-1 .product-img4 {
    top: 58%;
    left: 47%;
    width: 50%;
    max-width: 100%;
    height: auto;
    transform: rotate(0deg);
  }

  .frame-1 .product-title {
    bottom: 46%;
    right: 62%;
    transform: rotate(0deg);
    font-size: 20px;
  }

  .frame-1 .product-title2 {
    bottom: 46%;
    right: 13.5%;
    transform: rotate(0deg);
    font-size: 20px;
  }

  .frame-1 .product-title3 {
    bottom: 11%;
    right: 62%;
    transform: rotate(0deg);
    font-size: 20px;
  }

  .frame-1 .product-title4 {
    bottom: 11%;
    right: 13.5%;
    transform: rotate(0deg);
    font-size: 20px;
  }

  .frame-2 .product-img {
    top: 20%;
    left: 0%;
    width: 50%;
    max-width: 100%;
    height: auto;
    transform: rotate(0deg);
  }

  .frame-2 .product-img2 {
    top: 20%;
    left: 47%;
    width: 50%;
    max-width: 100%;
    height: auto;
    transform: rotate(0deg);
  }

  .frame-2 .product-img3 {
    top: 56%;
    left: 0%;
    width: 50%;
    max-width: 100%;
    height: auto;
    transform: rotate(0deg);
  }

  .frame-2 .product-img4 {
    top: 56%;
    left: 47%;
    width: 50%;
    max-width: 100%;
    height: auto;
    transform: rotate(0deg);
  }

  .frame-2 .product-title {
    bottom: 46%;
    right: 61%;
    transform: rotate(0deg);
    font-size: 20px;
  }

  .frame-2 .product-title2 {
    bottom: 46%;
    right: 15%;
    transform: rotate(0deg);
    font-size: 20px;
  }

  .frame-2 .product-title3 {
    bottom: 9.5%;
    right: 63%;
    transform: rotate(0deg);
    font-size: 20px;
  }

  .frame-2 .product-title4 {
    bottom: 9.5%;
    right: 19%;
    transform: rotate(0deg);
    font-size: 20px;
  }

  .frame-3 .product-img {
    top: 20%;
    left: 2%;
    width: 50%;
    max-width: 100%;
    height: auto;
    transform: rotate(0deg);
  }

  .frame-3 .product-img2 {
    top: 20%;
    left: 51%;
    width: 50%;
    max-width: 100%;
    height: auto;
    transform: rotate(0deg);
  }

  .frame-3 .product-img3 {
    top: 58%;
    left: 2%;
    width: 50%;
    max-width: 100%;
    height: auto;
    transform: rotate(0deg);
  }

  .frame-3 .product-img4 {
    top: 58%;
    left: 50%;
    width: 50%;
    max-width: 100%;
    height: auto;
    transform: rotate(0deg);
  }

  .frame-3 .product-title {
    bottom: 48.5%;
    right: 55%;
    transform: rotate(0deg);
    font-size: 20px;
  }

  .frame-3 .product-title2 {
    bottom: 48.5%;
    right: 10%;
    transform: rotate(0deg);
    font-size: 20px;
  }

  .frame-3 .product-title3 {
    bottom: 11%;
    right: 65%;
    transform: rotate(0deg);
    font-size: 20px;
  }

  .frame-3 .product-title4 {
    bottom: 11%;
    right: 15%;
    transform: rotate(0deg);
    font-size: 20px;
  }

  .frame-4 .product-img {
    top: 20%;
    left: 0%;
    width: 50%;
    max-width: 100%;
    height: auto;
    transform: rotate(0deg);
  }

  .frame-4 .product-img2 {
    top: 20%;
    left: 47%;
    width: 50%;
    max-width: 100%;
    height: auto;
    transform: rotate(0deg);
  }

  .frame-4 .product-img3 {
    top: 58%;
    left: 0%;
    width: 50%;
    max-width: 100%;
    height: auto;
    transform: rotate(0deg);
  }

  .frame-4 .product-img4 {
    top: 58%;
    left: 47%;
    width: 50%;
    max-width: 100%;
    height: auto;
    transform: rotate(0deg);
  }

  .frame-4 .product-title {
    bottom: 45%;
    right: 60%;
    transform: rotate(0deg);
    font-size: 20px;
  }

  .frame-4 .product-title2 {
    bottom: 48.5%;
    right: 10%;
    transform: rotate(0deg);
    font-size: 20px;
  }

  .frame-4 .product-title3 {
    bottom: 11%;
    right: 65%;
    transform: rotate(0deg);
    font-size: 20px;
  }

  .frame-4 .product-title4 {
    bottom: 11%;
    right: 15%;
    transform: rotate(0deg);
    font-size: 20px;
  }

  footer {
    font-size: 0.9em;
  }
}