@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&family=Space+Grotesk:wght@400;500;600;700&display=swap');

/* Global Reset & Base */
:root {
  --bg: #141414;
  --card: #1c1c1c;
  --primary: #55B589;
  --secondary: #FF477E;
  --border: #2A2A2A;
}

body {
  background-color: var(--bg);
  color: #F2F2F2;
  font-family: 'Inter', sans-serif;
  cursor: none; /* Removed for custom cursor */
  overflow-x: hidden;
}

h1, h2, h3, h4, .font-display {
  font-family: 'Space Grotesk', sans-serif;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: var(--bg);
}
::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 5px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--primary);
}

/* Custom Cursor */
.cursor-dot {
  width: 8px; height: 8px; 
  background: var(--primary);
  position: fixed; top: 0; left: 0; 
  border-radius: 50%; pointer-events: none; z-index: 9999;
  box-shadow: 0 0 10px var(--primary);
  transform: translate(-50%, -50%);
  transition: width 0.15s, height 0.15s;
}

.cursor-outline {
  width: 40px; height: 40px; 
  border: 1px solid rgba(85, 181, 137, 0.4);
  position: fixed; top: 0; left: 0; 
  border-radius: 50%; pointer-events: none; z-index: 9998;
  transform: translate(-50%, -50%);
  transition: width 0.2s, height 0.2s, background-color 0.2s, border-color 0.2s;
}

/* Classes applied by JS when hovering */
.cursor-hover .cursor-outline {
  width: 65px; height: 65px; 
  background-color: rgba(85, 181, 137, 0.1);
  border-color: var(--primary);
}

/* Glassmorphism */
.glass {
  background: rgba(28, 28, 28, 0.65);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

/* Specialized Visuals */
.glow-text {
  text-shadow: 0 0 25px rgba(85, 181, 137, 0.6);
}

.glow-box:hover {
  box-shadow: 0 0 40px rgba(85, 181, 137, 0.15);
}

.mask-linear-bottom {
  mask-image: linear-gradient(to bottom, black 50%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, black 50%, transparent 100%);
}

.bg-grid {
  background-size: 50px 50px;
  background-image: 
    linear-gradient(to right, rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  mask-image: linear-gradient(to bottom, #141414 10%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, #141414 10%, transparent 100%);
}

/* Ticker Marquee */
.marquee-container {
  display: flex; overflow: hidden; white-space: nowrap; width: 100%;
}
.marquee-content {
  display: flex; animation: scroll-left 30s linear infinite; padding-left: 3rem;
}
@keyframes scroll-left {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* Animations */
.live-pulse {
  animation: pulse-op 1.5s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}
.pulse-faster {
  animation: pulse-op 0.8s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}
@keyframes pulse-op {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

.animate-pulse-once {
  animation: pulse-flash 1s ease-out forwards;
}
@keyframes pulse-flash {
  0% { background-color: rgba(85,181,137,0.2); transform: translateX(-5px); }
  100% { background-color: transparent; transform: translateX(0); }
}

/* 3D Dashboard Tilt */
.dashboard-wrapper {
  perspective: 1200px;
}
.dashboard-inner {
  transform: rotateX(15deg) rotateY(-8deg) translateZ(0);
  transform-style: preserve-3d;
  transition: transform 0.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  will-change: transform;
}
/* Style Tilt for leaderboard card */
.style-tilt {
  transform: perspective(1000px) rotateX(0deg) rotateY(0deg);
  transition: transform 0.3s ease;
}

/* Fancy SVG dashes */
.dash-anim {
  stroke-dasharray: 10 10;
  animation: dash-move 20s linear infinite;
}
.dash-anim-reverse {
  stroke-dasharray: 5 10;
  animation: dash-move 10s linear infinite reverse;
}
@keyframes dash-move {
  to { stroke-dashoffset: 1000; }
}

/* Developer typing effect */
.typing-container > div {
  opacity: 0;
  animation: fadeInCode 0.1s forwards;
}
.typing-container > div:nth-child(1) { animation-delay: 0.2s; }
.typing-container > div:nth-child(2) { animation-delay: 0.4s; }
.typing-container > div:nth-child(3) { animation-delay: 0.6s; }
.typing-container > div:nth-child(4) { animation-delay: 0.8s; }
.typing-container > div:nth-child(5) { animation-delay: 1.0s; }
.typing-container > div:nth-child(6) { animation-delay: 1.2s; }
.typing-container > div:nth-child(7) { animation-delay: 1.4s; }
.typing-container > div:nth-child(8) { animation-delay: 2.5s; }

@keyframes fadeInCode {
  from { opacity: 0; transform: translateY(5px); }
  to { opacity: 1; transform: translateY(0); }
}