@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Plus+Jakarta+Sans:wght@300;400;500;600;700&family=JetBrains+Mono:wght@400;500&display=swap');

:root {
  color-scheme: dark;
}

body {
  font-family: 'Plus Jakarta Sans', sans-serif;
  background-color: #050811;
  color: #F8FAFC;
  overflow-x: hidden;
  position: relative;
}

/* Background Glow Effects */
.bg-glow-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: -1;
  overflow: hidden;
}

.bg-glow-1 {
  position: absolute;
  top: -10%;
  right: -10%;
  width: 60vw;
  height: 60vw;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.08) 0%, rgba(16, 185, 129, 0) 70%);
  filter: blur(80px);
  animation: float-slow 20s infinite alternate;
}

.bg-glow-2 {
  position: absolute;
  bottom: -10%;
  left: -10%;
  width: 50vw;
  height: 50vw;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(6, 182, 212, 0.08) 0%, rgba(6, 182, 212, 0) 70%);
  filter: blur(80px);
  animation: float-slow 25s infinite alternate-reverse;
}

.bg-glow-3 {
  position: absolute;
  top: 40%;
  left: 30%;
  width: 40vw;
  height: 40vw;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.04) 0%, rgba(99, 102, 241, 0) 60%);
  filter: blur(100px);
}

@keyframes float-slow {
  0% {
    transform: translate(0, 0) scale(1);
  }
  100% {
    transform: translate(5%, 5%) scale(1.1);
  }
}

/* Glassmorphism Cards */
.glass-card {
  background: rgba(19, 27, 46, 0.4);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.04);
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.glass-card:hover {
  transform: translateY(-4px);
  border-color: rgba(16, 185, 129, 0.2);
  box-shadow: 0 12px 40px 0 rgba(16, 185, 129, 0.08), 
              0 0 1px 1px rgba(16, 185, 129, 0.15);
  background: rgba(22, 32, 54, 0.6);
}

/* Cyan variation for Cristal Cash or alternative states */
.glass-card-cyan:hover {
  border-color: rgba(6, 182, 212, 0.2);
  box-shadow: 0 12px 40px 0 rgba(6, 182, 212, 0.08), 
              0 0 1px 1px rgba(6, 182, 212, 0.15);
}

/* Typography styles */
.font-outfit {
  font-family: 'Outfit', sans-serif;
}

.font-mono {
  font-family: 'JetBrains Mono', monospace;
}

/* Live Pulse Microinteractions */
.pulse-green {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #10B981;
  position: relative;
}

.pulse-green::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background-color: #10B981;
  animation: pulse-ping 2s cubic-bezier(0, 0, 0.2, 1) infinite;
}

.pulse-cyan {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #06B6D4;
  position: relative;
}

.pulse-cyan::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background-color: #06B6D4;
  animation: pulse-ping 2s cubic-bezier(0, 0, 0.2, 1) infinite;
}

@keyframes pulse-ping {
  0% {
    transform: scale(1);
    opacity: 0.8;
  }
  70%, 100% {
    transform: scale(3.5);
    opacity: 0;
  }
}

/* Custom Nav Hover Line Effect */
.nav-link {
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  width: 0;
  height: 1px;
  bottom: -2px;
  left: 50%;
  background-color: #10B981;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  transform: translateX(-50%);
}

.nav-link:hover::after {
  width: 100%;
}

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

::-webkit-scrollbar-track {
  background: #050811;
}

::-webkit-scrollbar-thumb {
  background: #1E293B;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #334155;
}

/* Terminal & Simulator Styles */
.terminal-window {
  background: rgba(10, 15, 26, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

.terminal-header {
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

/* Circular Progress Chart SVG style */
.circle-progress-bg {
  fill: none;
  stroke: rgba(255, 255, 255, 0.05);
}

.circle-progress-val {
  fill: none;
  stroke-dasharray: 283;
  stroke-dashoffset: 283;
  transition: stroke-dashoffset 1.5s cubic-bezier(0.16, 1, 0.3, 1);
  transform: rotate(-90deg);
  transform-origin: center;
}

/* Glow Text */
.text-glow-emerald {
  text-shadow: 0 0 10px rgba(16, 185, 129, 0.3);
}

.text-glow-cyan {
  text-shadow: 0 0 10px rgba(6, 182, 212, 0.3);
}

/* Gradient borders for specific buttons/inputs */
.gradient-border-btn {
  position: relative;
  background: rgba(19, 27, 46, 0.8);
  border-radius: 0.5rem;
  z-index: 1;
}

.gradient-border-btn::before {
  content: '';
  position: absolute;
  top: -1px;
  left: -1px;
  right: -1px;
  bottom: -1px;
  background: linear-gradient(to right, #10B981, #06B6D4);
  border-radius: 0.5rem;
  z-index: -1;
  opacity: 0.5;
  transition: opacity 0.3s ease;
}

.gradient-border-btn:hover::before {
  opacity: 1;
}

/* Utility Animations */
.animate-fade-in {
  animation: fadeIn 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

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