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

:root {
  --bg-deep: #0a0a1a;
  --bg-card: #12122a;
  --neon-blue: #00d4ff;
  --neon-pink: #ff006e;
  --neon-green: #39ff14;
  --neon-yellow: #ffe600;
  --neon-purple: #b026ff;
  --text-primary: #e8e8f0;
  --text-muted: #8888aa;
}

body {
  background: var(--bg-deep);
  color: var(--text-primary);
  font-family: 'JetBrains Mono', monospace;
  overflow-x: hidden;
}

/* Starfield background */
.starfield {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.star {
  position: absolute;
  border-radius: 50%;
  background: white;
  animation: twinkle var(--duration) ease-in-out infinite;
  opacity: 0;
}

@keyframes twinkle {
  0%, 100% { opacity: 0.1; transform: scale(0.8); }
  50% { opacity: var(--max-opacity); transform: scale(1.2); }
}

/* Floating geometric shapes */
.geo-shape {
  position: absolute;
  border: 1px solid;
  opacity: 0.08;
  animation: float-shape var(--duration) ease-in-out infinite;
}

@keyframes float-shape {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  33% { transform: translateY(-30px) rotate(120deg); }
  66% { transform: translateY(15px) rotate(240deg); }
}

/* Typewriter */
.typewriter-cursor {
  display: inline-block;
  width: 3px;
  height: 1.1em;
  background: var(--neon-blue);
  margin-left: 4px;
  animation: blink-cursor 0.7s step-end infinite;
  vertical-align: text-bottom;
}

@keyframes blink-cursor {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

/* Waving hand */
.wave-hand {
  display: inline-block;
  animation: wave 1.8s ease-in-out infinite;
  transform-origin: 70% 70%;
}

@keyframes wave {
  0% { transform: rotate(0deg); }
  10% { transform: rotate(14deg); }
  20% { transform: rotate(-8deg); }
  30% { transform: rotate(14deg); }
  40% { transform: rotate(-4deg); }
  50% { transform: rotate(10deg); }
  60%, 100% { transform: rotate(0deg); }
}

/* Countdown card flip */
.countdown-unit {
  background: linear-gradient(180deg, #1a1a3e 0%, #12122a 50%, #1a1a3e 100%);
  border: 1px solid rgba(0, 212, 255, 0.3);
  border-radius: 10px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 0 20px rgba(0, 212, 255, 0.15), inset 0 1px 0 rgba(255,255,255,0.05);
}

.countdown-unit::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 1px;
  background: rgba(0, 212, 255, 0.2);
}

/* Project card glow */
.project-card {
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
}

.project-card::before {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: 14px;
  padding: 2px;
  background: linear-gradient(135deg, var(--neon-blue), var(--neon-pink), var(--neon-green));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0.5;
  animation: glow-rotate 4s linear infinite;
  transition: opacity 0.3s;
}

.project-card:hover::before {
  opacity: 1;
}

.project-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 212, 255, 0.2);
}

@keyframes glow-rotate {
  0% { filter: hue-rotate(0deg); }
  100% { filter: hue-rotate(360deg); }
}

/* New project shimmer */
.shimmer-card::before {
  background: linear-gradient(135deg, var(--neon-green), var(--neon-yellow), var(--neon-purple));
}

.shimmer-overlay {
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.08), transparent);
  animation: shimmer 3s ease-in-out infinite;
  pointer-events: none;
  border-radius: 12px;
}

@keyframes shimmer {
  0% { left: -100%; }
  50% { left: 100%; }
  100% { left: 100%; }
}

/* Sticky notes */
.cork-board {
  background: 
    repeating-conic-gradient(rgba(139, 90, 43, 0.06) 0% 25%, transparent 0% 50%) 0 0 / 20px 20px,
    linear-gradient(135deg, #1a1a2e 0%, #0f0f20 100%);
  border: 2px solid rgba(139, 90, 43, 0.2);
  border-radius: 16px;
}

.sticky-note {
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 2px 3px 8px rgba(0,0,0,0.4);
}

.sticky-note:hover {
  transform: scale(1.05) !important;
  box-shadow: 4px 6px 16px rgba(0,0,0,0.5);
  z-index: 10;
}

/* Vote bar */
.vote-bar {
  transition: width 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Confetti */
.confetti-piece {
  position: fixed;
  z-index: 9999;
  pointer-events: none;
  animation: confetti-fall var(--fall-duration) cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

@keyframes confetti-fall {
  0% {
    transform: translateY(var(--start-y)) rotate(0deg) scale(1);
    opacity: 1;
  }
  100% {
    transform: translateY(100vh) rotate(var(--rotation)) scale(0.3);
    opacity: 0;
  }
}

/* Section fade in */
.section-hidden {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.section-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Floating berry */
.floating-berry {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 100;
  font-size: 2rem;
  cursor: pointer;
  animation: bounce-berry 2s ease-in-out infinite;
  text-decoration: none;
  filter: drop-shadow(0 0 10px rgba(255, 0, 110, 0.5));
  transition: transform 0.2s;
}

.floating-berry:hover {
  transform: scale(1.3);
}

@keyframes bounce-berry {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

/* Memorial overlay */
.memorial-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.9);
  z-index: 10000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  animation: fade-in-memorial 1s ease;
}

@keyframes fade-in-memorial {
  from { opacity: 0; }
  to { opacity: 1; }
}

.candle-flame {
  width: 12px;
  height: 30px;
  background: linear-gradient(to top, #ff6600, #ffcc00, #fff);
  border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
  animation: flicker 0.3s ease-in-out infinite alternate;
  filter: blur(1px);
  box-shadow: 0 0 30px rgba(255, 180, 0, 0.6), 0 0 60px rgba(255, 100, 0, 0.3);
}

@keyframes flicker {
  0% { transform: scaleY(1) scaleX(1) translateX(0); }
  25% { transform: scaleY(1.05) scaleX(0.95) translateX(-1px); }
  50% { transform: scaleY(0.95) scaleX(1.05) translateX(1px); }
  75% { transform: scaleY(1.02) scaleX(0.98) translateX(-0.5px); }
  100% { transform: scaleY(0.98) scaleX(1.02) translateX(0.5px); }
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg-deep);
}

::-webkit-scrollbar-thumb {
  background: rgba(0, 212, 255, 0.3);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(0, 212, 255, 0.5);
}

/* Neon text glow */
.neon-glow-blue {
  text-shadow: 0 0 10px rgba(0, 212, 255, 0.5), 0 0 40px rgba(0, 212, 255, 0.2);
}

.neon-glow-pink {
  text-shadow: 0 0 10px rgba(255, 0, 110, 0.5), 0 0 40px rgba(255, 0, 110, 0.2);
}

.neon-glow-green {
  text-shadow: 0 0 10px rgba(57, 255, 20, 0.5), 0 0 40px rgba(57, 255, 20, 0.2);
}

/* Status badges */
.badge-coming-soon {
  background: rgba(0, 212, 255, 0.15);
  color: var(--neon-blue);
  border: 1px solid rgba(0, 212, 255, 0.3);
}

.badge-in-progress {
  background: rgba(255, 230, 0, 0.15);
  color: var(--neon-yellow);
  border: 1px solid rgba(255, 230, 0, 0.3);
}

.badge-done {
  background: rgba(57, 255, 20, 0.15);
  color: var(--neon-green);
  border: 1px solid rgba(57, 255, 20, 0.3);
}

/* Emoji button */
.emoji-btn {
  transition: all 0.2s;
  cursor: pointer;
}

.emoji-btn:hover {
  transform: scale(1.1);
}

.emoji-btn:active {
  transform: scale(0.95);
}