/* =========================================================
   SALESFORCE ADMINISTRATOR PORTFOLIO - VIBRANT & PLAYFUL THEME
   ========================================================= */

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

:root {
  --sf-blue: #00a1e0;
  --sf-navy: #032d60;
  --sf-dark: #090d16;
  --sf-card-bg: rgba(16, 24, 40, 0.7);
  --sf-card-border: rgba(255, 255, 255, 0.1);
  --sf-green: #04844b;
  --sf-trailhead: #e28743;
  --sf-gold: #ffb74d;
  --sf-purple: #7f56d9;
  --sf-cyan: #00f2fe;
}

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

body {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  background-color: var(--sf-dark);
  color: #f1f5f9;
  overflow-x: hidden;
  position: relative;
  min-height: 100vh;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: #090d16;
}
::-webkit-scrollbar-thumb {
  background: #1e293b;
  border-radius: 5px;
  border: 2px solid #090d16;
}
::-webkit-scrollbar-thumb:hover {
  background: #00a1e0;
}

/* ThreeJS Canvas Background */
#canvas-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
  pointer-events: none;
}

/* Background Gradients & Glow Orbs */
.bg-glow-orb-1 {
  position: absolute;
  top: 5%;
  left: 10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(0, 161, 224, 0.18) 0%, transparent 70%);
  filter: blur(80px);
  z-index: 1;
  pointer-events: none;
  animation: floatOrb 12s ease-in-out infinite alternate;
}

.bg-glow-orb-2 {
  position: absolute;
  top: 40%;
  right: 5%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(127, 86, 217, 0.16) 0%, transparent 70%);
  filter: blur(90px);
  z-index: 1;
  pointer-events: none;
  animation: floatOrb 15s ease-in-out infinite alternate-reverse;
}

.bg-glow-orb-3 {
  position: absolute;
  bottom: 10%;
  left: 20%;
  width: 550px;
  height: 550px;
  background: radial-gradient(circle, rgba(4, 132, 75, 0.16) 0%, transparent 70%);
  filter: blur(85px);
  z-index: 1;
  pointer-events: none;
  animation: floatOrb 18s ease-in-out infinite alternate;
}

@keyframes floatOrb {
  0% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-30px) scale(1.08); }
  100% { transform: translateY(20px) scale(0.95); }
}

/* Glassmorphism Cards */
.glass-panel {
  background: rgba(15, 23, 42, 0.72);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.4);
  transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.glass-panel:hover {
  border-color: rgba(0, 161, 224, 0.35);
  box-shadow: 0 15px 35px -5px rgba(0, 161, 224, 0.2);
}

/* Gradient Text */
.gradient-text-sf {
  background: linear-gradient(135deg, #38bdf8 0%, #00a1e0 40%, #818cf8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.gradient-text-trailhead {
  background: linear-gradient(135deg, #fbbf24 0%, #f97316 50%, #ef4444 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.gradient-text-emerald {
  background: linear-gradient(135deg, #34d399 0%, #059669 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* 3D Tilt Card Effect */
.tilt-card {
  transform-style: preserve-3d;
  perspective: 1000px;
  transition: transform 0.25s ease-out, box-shadow 0.25s ease-out;
}

/* Badges & Pills */
.slds-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.3rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.8rem;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  transition: all 0.2s ease;
}

.slds-pill:hover {
  background: rgba(0, 161, 224, 0.15);
  border-color: var(--sf-blue);
  color: #38bdf8;
  transform: translateY(-2px);
}

/* Code & SOQL Styling */
.code-font {
  font-family: 'JetBrains Mono', monospace;
}

/* Pulsing Flow Visualizer */
.flow-node {
  position: relative;
  transition: all 0.3s ease;
}

.flow-node.active-node {
  border-color: #38bdf8 !important;
  box-shadow: 0 0 20px rgba(56, 189, 248, 0.5) !important;
  transform: scale(1.04);
}

.flow-node.success-node {
  border-color: #34d399 !important;
  box-shadow: 0 0 20px rgba(52, 211, 153, 0.5) !important;
}

/* Animated Lightning Flow Connector */
.flow-line {
  stroke-dasharray: 8;
  animation: flowLineDash 1.2s linear infinite;
}

@keyframes flowLineDash {
  to {
    stroke-dashoffset: -16;
  }
}

/* Sound Effect Pulse Indicator */
.sound-playing {
  animation: audioPulse 0.4s ease;
}

@keyframes audioPulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.15); }
  100% { transform: scale(1); }
}

/* Shimmer Button */
.shimmer-btn {
  position: relative;
  overflow: hidden;
}

.shimmer-btn::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    60deg,
    transparent 20%,
    rgba(255, 255, 255, 0.18) 50%,
    transparent 80%
  );
  transform: rotate(25deg);
  animation: shimmerAnim 4s infinite;
}

@keyframes shimmerAnim {
  0% { transform: translateX(-150%) rotate(25deg); }
  40% { transform: translateX(150%) rotate(25deg); }
  100% { transform: translateX(150%) rotate(25deg); }
}

/* Lightning Toast Alert */
#toast-notification {
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  transform: translateY(-100px);
  opacity: 0;
  pointer-events: none;
}

#toast-notification.show {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

/* Floating Badges */
.floating-badge {
  animation: badgeFloat 4s ease-in-out infinite alternate;
}

@keyframes badgeFloat {
  0% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-8px) rotate(1deg); }
  100% { transform: translateY(4px) rotate(-1deg); }
}
