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

body {
  background: radial-gradient(circle at center, #1b1b1b 0%, #030303 100%);
  color: #fff;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}

.card-container {
  padding: 80px; /* Space for parallax tracking */
  perspective: 1200px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.card {
  position: relative;
  width: 500px;
  max-width: 90vw;
  aspect-ratio: 1.618; /* Golden ratio typical for physical cards */
  border-radius: 12px;
  background-color: #cacaca;
  
  /* The overarching shiny metallic sheen */
  background-image: 
    linear-gradient(110deg, 
      rgba(255, 255, 255, 0.4) 0%, 
      rgba(255, 255, 255, 0.7) 10%, 
      rgba(200, 200, 200, 0.3) 25%, 
      rgba(100, 100, 100, 0.1) 40%, 
      rgba(255, 255, 255, 0.8) 60%, 
      rgba(255, 255, 255, 0.1) 80%,
      rgba(200, 200, 200, 0.3) 100%
    );

  box-shadow: 
    0 30px 60px -15px rgba(0, 0, 0, 0.9), /* Soft drop shadow */
    0 0 25px rgba(255, 255, 255, 0.05), /* Subtle ambient glow */
    inset 0 1px 2px rgba(255, 255, 255, 0.9), /* Top rim highlight */
    inset 0 -2px 5px rgba(0, 0, 0, 0.5), /* Bottom inner shadow */
    inset -1px 0 2px rgba(0, 0, 0, 0.2), /* Right edge shadow */
    inset 1px 0 2px rgba(255, 255, 255, 0.6); /* Left edge highlight */
  
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.3);
  
  /* Smooth transform state */
  transform-style: preserve-3d;
  will-change: transform;
}

/* Added dynamically on mouse leave to smoothly snap back to 0,0 */
.card.reset {
  transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}

/* Brushed texture layer */
.texture-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: inherit;
  pointer-events: none;
  mix-blend-mode: multiply;
  opacity: 0.15;
  
  /* Horizontal streaks */
  background-image: 
    repeating-linear-gradient(
      to bottom,
      transparent,
      transparent 1px,
      rgba(0, 0, 0, 0.2) 1px,
      rgba(0, 0, 0, 0.2) 2px
    ),
    repeating-linear-gradient(
      to bottom,
      transparent,
      transparent 3px,
      rgba(255, 255, 255, 0.3) 3px,
      rgba(255, 255, 255, 0.3) 4px
    );
}

/* Dynamic glare tied to JS pointer tracking */
.glare {
  position: absolute;
  top: 0; 
  left: 0; 
  width: 100%; 
  height: 100%;
  pointer-events: none;
  opacity: 0;
  mix-blend-mode: overlay;
  transition: opacity 0.3s ease;
  z-index: 5;
}

.content {
  position: relative;
  z-index: 10;
  padding: 30px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Engraved Typography Effect */
.card h1 {
  font-size: 38px;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #383838;
  margin-bottom: 8px;
  text-shadow: 
    -1px -1px 1px rgba(0, 0, 0, 0.4),
    1px 1px 2px rgba(255, 255, 255, 1);
}

.card .email {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 1.5px;
  color: #4a4a4a;
  margin-bottom: 40px;
  text-shadow: 
    -1px -1px 1px rgba(0, 0, 0, 0.2),
    1px 1px 1px rgba(255, 255, 255, 0.7);
}

.pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  /* Push slightly forward in 3D space if supported */
  transform: translateZ(20px);
}

.pill {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  background: linear-gradient(135deg, #181818, #0a0a0a);
  color: #f1f1f1;
  text-decoration: none;
  border-radius: 9999px;
  font-size: 14px;
  font-weight: 500;
  box-shadow: 
    0 4px 12px rgba(0,0,0,0.5),
    inset 0 1px 1px rgba(255,255,255,0.15),
    inset 0 -1px 2px rgba(0,0,0,0.8);
  border: 1px solid #2a2a2a;
  transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
  position: relative;
  overflow: hidden;
}

/* Pill shine effect on hover */
.pill::before {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 50%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
  transform: skewX(-20deg);
  transition: all 0.6s ease;
}

.pill:hover {
  background: linear-gradient(135deg, #222, #111);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 
    0 6px 16px rgba(0,0,0,0.6),
    inset 0 1px 1px rgba(255,255,255,0.25);
  border-color: #444;
}

.pill:hover::before {
  left: 150%;
}

.icon {
  width: 16px;
  height: 16px;
  opacity: 0.9;
}
