/* ============================================================
   Neil D — "Drop It Like It's Hot"
   Stylesheet
   ============================================================ */

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

/* Snoop cursor everywhere */
html, a, button, img, div, span, svg {
  cursor: url("assets/obama.png?v=5") 32 32, auto;
}

html, body {
  height: 100%;
  overflow: hidden;
  font-family: "Trebuchet MS", "Comic Sans MS", sans-serif;
  background: #0a0a2a;
}

/* ===== Animated sky background (blackish gradient) ===== */
#sky {
  position: fixed;
  inset: 0;
  z-index: 0;
  background: radial-gradient(ellipse at 50% 0%, #1a1a1a 0%, #0d0d0d 40%, #000 100%);
  background-size: 100% 200%;
  animation: skyShift 14s ease-in-out infinite alternate;
  overflow: hidden;
}
@keyframes skyShift {
  0%   { background-position: 0% 0%;   filter: brightness(1); }
  100% { background-position: 0% 100%; filter: brightness(1.4); }
}

/* Faint green scanline grid (hacker vibe) */
#sky::before {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(0deg, rgba(0,255,0,.04) 0 1px, transparent 1px 4px);
  opacity: .6;
  pointer-events: none;
}
/* Subtle green vignette glow */
#sky::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 50%, rgba(0,255,0,.06), transparent 70%);
  animation: glowPulse 4s ease-in-out infinite alternate;
}
@keyframes glowPulse {
  from { opacity: .3; }
  to   { opacity: .9; }
}

/* ===== Falling text rain ===== */
#rain {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
}
.drop {
  position: absolute;
  top: -160px;
  color: #00ff00;
  font-family: "Courier New", "Lucida Console", monospace;
  font-weight: bold;
  font-size: 20px;
  text-shadow: 0 0 6px #00ff00, 0 0 12px #00cc00, 0 0 22px rgba(0,255,0,.6);
  white-space: nowrap;
  letter-spacing: .5px;
  animation-name: fall;
  animation-timing-function: linear;
  animation-iteration-count: infinite;
}
@keyframes fall {
  0%   { transform: translateY(-160px); opacity: 0; }
  10%  { opacity: 1; }
  100% { transform: translateY(105vh); opacity: .35; }
}

/* Falling bitcoin (₿) rain */
.btc-drop {
  position: absolute;
  top: -160px;
  color: #f7931a;
  font-weight: 900;
  font-family: "Courier New", monospace;
  text-shadow: 0 0 6px #f7931a, 0 0 12px #ffae42, 0 0 22px rgba(247,147,26,.6);
  white-space: nowrap;
  animation-name: fall;
  animation-timing-function: linear;
  animation-iteration-count: infinite;
}

/* ===== Nyan cat (runs left -> right) ===== */
#nyan {
  position: fixed;
  top: 12%;
  left: -260px;
  width: 140px;
  z-index: 6;
  pointer-events: none;
  animation: nyanRun 4s linear forwards;
}
@keyframes nyanRun {
  0%   { transform: translateX(0)     translateY(0); }
  25%  { transform: translateX(30vw) translateY(-18px); }
  50%  { transform: translateX(55vw) translateY(10px); }
  75%  { transform: translateX(80vw) translateY(-12px); }
  100% { transform: translateX(120vw) translateY(0); }
}
/* rainbow trail wiggle */
#nyan .body {
  animation: nyanBob .2s steps(2) infinite;
  transform-origin: center;
}
@keyframes nyanBob {
  from { transform: translateY(-2px); }
  to   { transform: translateY(2px); }
}

/* ===== Center stage ===== */
#stage {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 20px;
  text-align: center;
}

/* Name title */
#name {
  font-size: clamp(54px, 12vw, 150px);
  font-weight: 900;
  letter-spacing: 2px;
  color: #fff;
  text-shadow:
    0 0 10px #ff00ff,
    0 0 25px #ff00ff,
    0 0 45px #ff00cc,
    4px 4px 0 #000;
  animation: pulseGlow 1.6s ease-in-out infinite alternate;
}
@keyframes pulseGlow {
  from { text-shadow: 0 0 10px #ff00ff, 0 0 25px #ff00ff, 0 0 45px #ff00cc, 4px 4px 0 #000; }
  to   { text-shadow: 0 0 18px #00ffff, 0 0 40px #00ffff, 0 0 70px #00ccff, 4px 4px 0 #000; }
}

/* LinkedIn icon link */
#linkedin {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: #fff;
  font-size: 18px;
  font-weight: bold;
  padding: 8px 16px;
  border: 2px solid #fff;
  border-radius: 30px;
  background: rgba(0, 119, 181, .6);
  transition: transform .2s, background .2s;
  text-shadow: 0 0 6px #000;
}
#linkedin:hover {
  transform: scale(1.1);
  background: rgba(0, 119, 181, .95);
  cursor: url("assets/obama.png?v=5") 32 32, pointer;
}
#linkedin svg {
  width: 22px;
  height: 22px;
  fill: #fff;
}

#employer {
  font-size: clamp(16px, 2.5vw, 26px);
  color: #ffe600;
  font-weight: bold;
  text-shadow: 0 0 8px #ff9900, 2px 2px 0 #000;
}

#caption {
  font-size: clamp(10px, 1.3vw, 16px);
  color: rgba(0,255,0,.85);
  font-family: "Courier New", monospace;
  margin-top: 2px;
  text-shadow: 0 0 6px rgba(0,255,0,.6);
}

/* Photo */
#photo {
  width: clamp(140px, 18vw, 240px);
  height: clamp(140px, 18vw, 240px);
  object-fit: cover;
  border-radius: 50%;
  border: 5px solid #fff;
  box-shadow: 0 0 25px #00ffff, 0 0 50px #ff00ff;
  animation: floaty 3s ease-in-out infinite alternate;
}
@keyframes floaty {
  from { transform: translateY(-6px) rotate(-2deg); }
  to   { transform: translateY(6px)  rotate(2deg); }
}

/* ===== Snoop Dogg (transparent APNG) ===== */
.snoop-wrap {
  position: fixed;
  z-index: 3;
  pointer-events: none;
}
.snoop-wrap img {
  height: 100%;
  width: auto;
  display: block;
  border-radius: 14px;
  image-rendering: auto;
  /* glow hugs the silhouette, not a box (since the PNG is transparent) */
  filter: drop-shadow(0 0 14px rgba(0,255,0,.55)) drop-shadow(0 0 30px rgba(0,255,0,.3));
}

/* BIG Snoop: top-left, rocks side to side like a rocking chair */
#snoop-left {
  top: 1vw;
  left: 1vw;
  height: 36vh;
  transform-origin: 50% 96%;  /* pivot at the feet */
  animation: rock 2.6s ease-in-out infinite alternate;
}
@keyframes rock {
  from { transform: rotate(-9deg); }
  to   { transform: rotate(9deg); }
}

/* RIGHT: smaller, with bitcoin eyes, bottom-right */
#snoop-right {
  right: 1vw;
  bottom: 1vw;
  height: clamp(220px, 48vh, 480px);
}

/* Bitcoin ₿ eyes overlay (sits over the sunglasses) */
.btc-eyes {
  position: absolute;
  top: 8.5%;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: clamp(13px, 2.6vh, 26px);
  z-index: 4;
  pointer-events: none;
}
.btc {
  font-size: clamp(12px, 2.3vh, 22px);
  font-weight: 900;
  line-height: 1;
  color: #f7931a;            /* bitcoin orange */
  text-shadow:
    0 0 4px #fff,
    0 0 8px #f7931a,
    0 0 16px #f7931a;
  animation: btcSpin 3s linear infinite;
}
.btc:nth-child(2) { animation-delay: -1.5s; }
@keyframes btcSpin {
  0%, 100% { transform: scale(1)    rotate(0deg); }
  50%      { transform: scale(1.25) rotate(180deg); }
}

/* ===== Audio control button ===== */
#sound {
  position: fixed;
  top: 14px;
  right: 14px;
  z-index: 10;
  background: rgba(0,0,0,.6);
  color: #fff;
  border: 2px solid #fff;
  border-radius: 30px;
  padding: 8px 14px;
  font-weight: bold;
  cursor: pointer;
  font-size: 14px;
}
#sound:hover { background: rgba(255,0,255,.6); }
#sound:disabled { opacity: .8; cursor: default; }
