:root {
  --bg-color: #faf8fd;
  --text-primary: #1e1b26;
  --text-secondary: #645a77;
  --twitch-color: #9146FF;
  --kick-color: #53FC18;
  
  --card-bg: #ffffff;
  --shadow-sm: 0 4px 15px rgba(0, 0, 0, 0.05);
  --shadow-hover: 0 20px 40px rgba(145, 70, 255, 0.15);
  
  --gradient-marquee: linear-gradient(90deg, #5EE7DF, #B490CA, #FFB88C);
}

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

body {
  font-family: 'Quicksand', sans-serif;
  background-color: var(--bg-color);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
}

h1, h2, h3, h4 {
  font-family: 'Nunito', sans-serif;
  font-weight: 900;
  line-height: 1.1;
}

a {
  text-decoration: none;
  color: inherit;
}

/* Moving Background */
.moving-bg {
  position: fixed;
  top: 0; left: 0; width: 200vw; height: 200vh;
  z-index: -1;
  background-image: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M20,30 Q30,10 40,30 T60,30' stroke='rgba(145, 70, 255, 0.05)' fill='none' stroke-width='4' stroke-linecap='round'/%3E%3Ccircle cx='80' cy='70' r='5' fill='rgba(255, 184, 140, 0.08)'/%3E%3C/svg%3E");
  background-size: 150px;
  animation: bg-scroll 60s linear infinite;
  pointer-events: none;
}

@keyframes bg-scroll {
  0% { transform: translate(0, 0); }
  100% { transform: translate(-50%, -50%); }
}

/* Navbar */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 5%;
  background: rgba(250, 248, 253, 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  position: sticky;
  top: 0;
  z-index: 100;
}

.logo {
  font-family: 'Nunito', sans-serif;
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.nav-links { display: flex; gap: 2rem; font-weight: 700; color: var(--text-secondary); }
.nav-links a:hover { color: var(--twitch-color); }

/* Top Light Bar */
.top-light-bar {
  height: 4px;
  width: 100%;
  background: linear-gradient(90deg, #5EE7DF, #B490CA, #FFB88C, #5EE7DF);
  background-size: 300% 100%;
  animation: gradient-shift 8s ease infinite;
  box-shadow: 0 2px 10px rgba(180, 144, 202, 0.3);
}

@keyframes gradient-shift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* Hero Section (Bento Layout) */
.hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4rem 5% 6rem;
  max-width: 1300px;
  margin: 0 auto;
  gap: 4rem;
}

.hero-left {
  flex: 1;
  max-width: 550px;
}

.hero-left h1 {
  font-size: clamp(2.5rem, 4vw, 3.8rem);
  margin-bottom: 1.5rem;
  color: var(--text-primary);
  line-height: 1.15;
}

/* Bouncing Rainbow Wave Text Effect */
.wave-char {
  display: inline-block;
  color: var(--text-primary);
  animation: wave-bounce 4s infinite;
  transform-origin: bottom center;
}

@keyframes wave-bounce {
  0%, 25%, 100% { 
    transform: translateY(0); 
    color: var(--text-primary); 
  }
  5% { 
    transform: translateY(-15px); 
    color: #9146FF; /* Twitch Purple */
  }
  10% { 
    transform: translateY(-15px); 
    color: #A27BFA; /* Lighter Purple */
  }
  15% { 
    transform: translateY(-10px); 
    color: #4A90E2; /* Deep Blue */
  }
  20% { 
    transform: translateY(0); 
    color: #5EE7DF; /* Cyan / Light Blue */
  }
}

.hero-left p {
  font-size: 1.25rem;
  color: var(--text-secondary);
  margin-bottom: 2.5rem;
  font-weight: 500;
}

/* Buttons */
.btn-primary {
  display: inline-block;
  background: var(--text-primary);
  color: #fff;
  font-weight: 800;
  font-family: 'Nunito', sans-serif;
  padding: 1rem 2.5rem;
  border-radius: 100px;
  font-size: 1.1rem;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  box-shadow: 0 10px 20px rgba(0,0,0,0.1);
  border: none;
  cursor: pointer;
}

.btn-primary:hover {
  transform: translateY(-3px) scale(1.02);
  background: var(--twitch-color);
  box-shadow: var(--shadow-hover);
}

/* Bento Grid */
.hero-right {
  flex: 1.2;
}

.bento-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(2, 180px);
  gap: 1.5rem;
}

.bento-item {
  background: var(--card-bg);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease;
}

.bento-item:hover {
  transform: translateY(-5px);
}

.bento-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.bento-large {
  grid-column: span 2;
  grid-row: span 2;
  background: linear-gradient(135deg, #FFB88C, #DE6262);
}

.bento-large img {
  object-fit: contain;
  padding: 1rem;
  transform: scale(1.1);
}

.bento-tall {
  grid-column: span 1;
  grid-row: span 2;
  background: linear-gradient(135deg, #B490CA, #5EE7DF);
}

.bento-tall img { object-fit: contain; padding: 1rem; }

.bento-small {
  display: none; /* Hide third block if only 2 slots, adjust based on design */
}

.bento-badge {
  position: absolute;
  bottom: 1rem;
  left: 1rem;
  background: rgba(255,255,255,0.9);
  padding: 0.5rem 1rem;
  border-radius: 100px;
  font-weight: 800;
  font-size: 0.85rem;
  color: var(--twitch-color);
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

/* Infinite Marquee */
.marquee-wrapper {
  background: var(--gradient-marquee);
  color: white;
  padding: 1rem 0;
  transform: rotate(-1.5deg) scale(1.02);
  overflow: hidden;
  position: relative;
  box-shadow: 0 10px 20px rgba(0,0,0,0.1);
  margin-bottom: 5rem;
  z-index: 10;
}

.marquee {
  display: flex;
  width: max-content;
}

.marquee-content {
  display: flex;
  animation: scroll-left 25s linear infinite;
}

.marquee-content span {
  font-family: 'Nunito', sans-serif;
  font-weight: 800;
  font-size: 1.1rem;
  padding: 0 2rem;
  white-space: nowrap;
}

@keyframes scroll-left {
  0% { transform: translateX(0); }
  100% { transform: translateX(-100%); }
}

/* Shop Section */
.section {
  padding: 3rem 5% 8rem;
  max-width: 1200px;
  margin: 0 auto;
}

.section-header {
  text-align: center;
  margin-bottom: 5rem;
}

.section-header h2 { font-size: 2.5rem; margin-bottom: 0.5rem; }
.section-header p { font-size: 1.1rem; color: var(--text-secondary); font-weight: 500; }

/* Trading Card "Pop-out" Grid */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 3rem 2rem;
  padding-top: 5rem; /* space for pop-outs */
}

.product-card {
  background: var(--card-bg);
  border-radius: 32px;
  padding: 0 1.5rem 1.5rem;
  position: relative;
  box-shadow: var(--shadow-sm);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  border-bottom: 6px solid #e2dcf2;
}

.product-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-hover);
  border-bottom-color: var(--twitch-color);
}

.popout-image-wrap {
  width: 220px;
  height: 220px;
  margin-top: -80px; /* POP OUT EFFECT */
  margin-bottom: 1rem;
  filter: drop-shadow(0 15px 15px rgba(0,0,0,0.1));
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  z-index: 2;
}

.product-card:hover .popout-image-wrap {
  transform: scale(1.1) translateY(-10px);
}

.popout-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.badge-label {
  background: #f1ecff;
  color: var(--twitch-color);
  font-family: 'Nunito', sans-serif;
  font-weight: 800;
  font-size: 0.75rem;
  text-transform: uppercase;
  padding: 0.3rem 0.8rem;
  border-radius: 100px;
  margin-bottom: 1rem;
  letter-spacing: 1px;
}

.product-title {
  font-size: 1.6rem;
  margin-bottom: 0.5rem;
}

.product-desc {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.product-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding-top: 1.5rem;
  border-top: 2px dashed rgba(0,0,0,0.05);
}

.product-price {
  font-size: 1.4rem;
  font-weight: 900;
  font-family: 'Nunito', sans-serif;
  color: var(--text-primary);
  background: #f1ecff;
  padding: 0.2rem 0.8rem;
  border-radius: 12px;
}

/* Footer */
footer {
  background: white;
  padding: 4rem 5% 2rem;
  border-top: 1px solid rgba(0,0,0,0.05);
}

.footer-content {
  text-align: center;
  margin-bottom: 3rem;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--text-secondary);
  font-size: 0.9rem;
  max-width: 1200px;
  margin: 0 auto;
}

.footer-links { display: flex; gap: 1.5rem; }

/* Responsive */
@media (max-width: 900px) {
  .hero { flex-direction: column; text-align: center; padding-top: 2rem; }
  .hero-left p { margin-left: auto; margin-right: auto; }
  .bento-grid { grid-template-columns: 1fr; grid-template-rows: auto auto; }
  .bento-large, .bento-tall { grid-column: span 1; grid-row: span 1; height: 300px; }
  .product-grid { grid-template-columns: 1fr; max-width: 400px; margin: 0 auto; }
}
