:root {
  --bg-color: #020202;
  --card-bg: #000000;
  --glow-color: rgba(255, 255, 255, 0.2);
  --accent-glow: rgba(255, 255, 255, 0.5);
  --text-color: #ffffff;
  --transition-speed: 0.8s;
}

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

body {
  background-color: var(--bg-color);
  height: 100vh;
  width: 100vw;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  font-family: 'Inter', sans-serif;
  perspective: 1500px;
}

/* Card Container */
.card-container {
  width: 750px;
  height: 438px;
  cursor: pointer;
  perspective: 1500px;
  opacity: 0;
  animation: entrance 1.2s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

.card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  text-align: center;
  transition: transform var(--transition-speed) cubic-bezier(0.4, 0, 0.2, 1);
  transform-style: preserve-3d;
}

.card-container.flipped .card-inner {
  transform: rotateY(180deg);
}

/* Common Face Styles */
.card-front, .card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  background: var(--card-bg);
  border-radius: 0;
  border: 1px solid rgba(255, 255, 255, 0.1);
  overflow: hidden;
}

/* Front Face */
.card-front {
  background: #000;
  box-shadow: 0 0 30px rgba(255, 255, 255, 0.05);
  animation: borderGlow 4s ease-in-out infinite;
}

.logo-container {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 100%;
}

.logo {
  width: 120%;
  height: 120%;
  object-fit: contain;
  filter: none; /* Removed the logo-specific glow */
  animation: float 6s ease-in-out infinite;
  mix-blend-mode: screen;
}

/* Back Face */
.card-back {
  background: radial-gradient(circle at center, #111 0%, #000 100%);
  transform: rotateY(180deg);
  padding: 40px;
  position: relative;
}

/* Back logo watermark */
.card-back::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  height: 100%;
  background-image: url('Hotstreak-full-logo.jpg');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  transform: translate(-50%, -50%);
  opacity: 0.05;
  filter: grayscale(1);
  z-index: 0;
  pointer-events: none;
}

.content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: center;
}

.tagline {
  font-family: 'Permanent Marker', cursive;
  font-size: 2.75rem;
  color: var(--text-color);
  letter-spacing: 1px;
  line-height: 1.2;
  text-shadow: 0 0 20px var(--accent-glow); /* Boosted glow */
  max-width: 90%;
  margin-bottom: 20px;
}

.email {
  font-family: 'Inter', sans-serif;
  font-size: 1.25rem;
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  letter-spacing: 3px;
  text-transform: uppercase;
  transition: all 0.3s ease;
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.2);
}

.email:hover {
  color: #fff;
  text-shadow: 0 0 20px var(--accent-glow);
  transform: scale(1.05);
}

/* Retro Loading Bar */
.coming-soon-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
  margin: 30px 0; /* Centered emphasis */
}

.loading-bar {
  width: 400px; /* Increased width for better balance */
  height: 30px;
  border: 4px solid #fff;
  background: #000;
  position: relative;
  overflow: hidden;
  padding: 0;
  box-shadow: 0 0 15px rgba(255, 255, 255, 0.1);
}

.tetris-stack {
  width: 100%;
  height: 100%;
  position: relative;
  display: flex;
}

.block {
  width: 20px;
  height: 100%;
  background: #fff;
  border: 1px solid #000;
  position: absolute;
  left: 100%;
  animation: slideIn var(--duration) linear forwards;
  image-rendering: pixelated;
}

.block.corrupted {
  background: repeating-linear-gradient(
    45deg,
    #fff,
    #fff 2px,
    #000 2px,
    #000 4px
  );
  animation: slideIn var(--duration) linear forwards, jitter 0.1s infinite;
}

.block.heavy-corrupted {
  background: repeating-linear-gradient(
    135deg,
    #fff,
    #000 1px,
    #fff 3px,
    #000 4px
  );
  filter: contrast(2) brightness(1.5);
  animation: slideIn var(--duration) linear forwards, jitter 0.05s infinite;
}

@keyframes jitter {
  0% { transform: translate(0, 0); }
  25% { transform: translate(1px, -1px); }
  50% { transform: translate(-1px, 1px); }
  75% { transform: translate(1px, 1px); }
}

.block.exploding {
  animation: explode 0.5s ease-out forwards;
}

.block.fade-out {
  animation: fadeOut 0.5s ease-out forwards;
}

@keyframes explode {
  0% { transform: scale(1); filter: brightness(1); }
  50% { transform: scale(1.5) rotate(10deg); filter: brightness(2) blur(2px); opacity: 0.8; }
  100% { transform: scale(2) rotate(-10deg); filter: brightness(3) blur(10px); opacity: 0; }
}

@keyframes fadeOut {
  to { opacity: 0; transform: translateY(10px); }
}

@keyframes slideIn {
  to { left: var(--target); }
}

.coming-soon {
  font-family: 'Permanent Marker', cursive;
  font-size: 1.1rem;
  color: #fff;
  letter-spacing: 3px;
  animation: textGlitch 5s infinite;
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

@keyframes textGlitch {
  0%, 90%, 100% { transform: translate(0); }
  92% { transform: translate(2px, -1px); opacity: 0.8; }
  94% { transform: translate(-2px, 1px); opacity: 0.9; }
}

/* Removed old loadCorrupted and glitchFlicker */

/* Glow Effect */
.card-front::after, .card-back::after {
  content: '';
  position: absolute;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, var(--glow-color) 0%, transparent 70%);
  z-index: -1;
  opacity: 0.3;
  filter: blur(40px);
}

@keyframes borderGlow {
  0%, 100% { box-shadow: 0 0 20px rgba(255, 255, 255, 0.1); border-color: rgba(255, 255, 255, 0.1); }
  50% { box-shadow: 0 0 50px rgba(255, 255, 255, 0.25); border-color: rgba(255, 255, 255, 0.3); }
}

@keyframes entrance {
  0% { opacity: 0; transform: translateY(30px) rotateX(10deg); }
  100% { opacity: 1; transform: translateY(0) rotateX(0); }
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .card-container {
    width: 90vw;
    height: calc(90vw * 0.58); /* Business card ratio */
  }
  
  .tagline {
    font-size: 1.4rem;
  }
  
  .email {
    font-size: 0.8rem;
  }
}
