/* ==========================================================================
   con.ong - Cyber-Bio-Hexagon & Fun Stylesheet
   ========================================================================== */

/* Custom Font Import */
@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700;800&family=JetBrains+Mono:wght@400;600;700&display=swap');

:root {
  --color-honey-500: #F59E0B;
  --color-honey-400: #FBBF24;
  --color-honey-300: #FCD34D;
  --color-honey-glow: rgba(245, 158, 11, 0.4);
  --color-bg-dark: #0d1117;
  --color-card-dark: #161b22;
  --color-border-dark: #30363d;
}

body {
  font-family: 'Space Grotesk', sans-serif;
  background-color: var(--color-bg-dark);
  color: #f0f6fc;
  overflow-x: hidden;
}

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

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #0d1117;
}
::-webkit-scrollbar-thumb {
  background: #2b313a;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--color-honey-500);
}

/* --------------------------------------------------------------------------
   Honeycomb Animated Background Pattern
   -------------------------------------------------------------------------- */
.honeycomb-pattern {
  position: absolute;
  inset: 0;
  background-size: 56px 97px;
  background-image: 
    radial-gradient(circle 2px at 0 0, rgba(245, 158, 11, 0.3) 100%, transparent 0),
    radial-gradient(circle 2px at 28px 48.5px, rgba(251, 191, 36, 0.25) 100%, transparent 0);
  mask-image: radial-gradient(circle at 50% 30%, black 20%, transparent 85%);
  -webkit-mask-image: radial-gradient(circle at 50% 30%, black 20%, transparent 85%);
  pointer-events: none;
  z-index: 0;
}

/* Moving Hive Matrix Grid */
.hive-grid-svg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0.12;
  pointer-events: none;
  z-index: 0;
}

/* --------------------------------------------------------------------------
   Screen Shake Animation (Triggered by Dangerous Button)
   -------------------------------------------------------------------------- */
@keyframes screenShake {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  10% { transform: translate(-8px, -6px) rotate(-1deg); }
  20% { transform: translate(7px, 5px) rotate(1.5deg); }
  30% { transform: translate(-6px, 7px) rotate(-1deg); }
  40% { transform: translate(5px, -5px) rotate(1deg); }
  50% { transform: translate(-4px, 4px) rotate(-0.5deg); }
  60% { transform: translate(4px, -3px) rotate(0.5deg); }
  70% { transform: translate(-2px, 2px) rotate(-0.2deg); }
  80% { transform: translate(2px, -1px) rotate(0.2deg); }
  90% { transform: translate(-1px, 1px) rotate(0deg); }
}

.shake-active {
  animation: screenShake 0.65s cubic-bezier(.36,.07,.19,.97) both;
}

/* --------------------------------------------------------------------------
   Glow & Pulse Animations
   -------------------------------------------------------------------------- */
@keyframes neonPulse {
  0%, 100% {
    box-shadow: 0 0 15px rgba(245, 158, 11, 0.35), inset 0 0 15px rgba(245, 158, 11, 0.2);
  }
  50% {
    box-shadow: 0 0 30px rgba(245, 158, 11, 0.7), 0 0 50px rgba(251, 191, 36, 0.4), inset 0 0 25px rgba(245, 158, 11, 0.35);
  }
}

.glow-honey {
  animation: neonPulse 3s infinite ease-in-out;
}

@keyframes dangerPulse {
  0%, 100% {
    box-shadow: 0 0 15px rgba(239, 68, 68, 0.4);
    border-color: rgba(239, 68, 68, 0.6);
  }
  50% {
    box-shadow: 0 0 35px rgba(239, 68, 68, 0.8), 0 0 60px rgba(245, 158, 11, 0.5);
    border-color: rgba(239, 68, 68, 1);
  }
}

.danger-glow {
  animation: dangerPulse 1.8s infinite ease-in-out;
}

/* Floating bee animation */
@keyframes floatGentle {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-10px) rotate(2deg); }
}

.animate-float {
  animation: floatGentle 4s ease-in-out infinite;
}

/* --------------------------------------------------------------------------
   Hexagon Geometry & Clip-Paths
   -------------------------------------------------------------------------- */
.clip-hex {
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
}

.hex-card-wrapper {
  position: relative;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.hex-card-wrapper::before {
  content: '';
  position: absolute;
  inset: -2px;
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.8), transparent 40%, rgba(251, 191, 36, 0.8));
  border-radius: 1.25rem;
  z-index: -1;
  opacity: 0.3;
  transition: opacity 0.4s ease, filter 0.4s ease;
}

.hex-card-wrapper:hover {
  transform: translateY(-8px) scale(1.02);
}

.hex-card-wrapper:hover::before {
  opacity: 1;
  filter: drop-shadow(0 0 20px rgba(245, 158, 11, 0.5));
}

/* Glassmorphism Cyber Card */
.glass-panel {
  background: rgba(22, 27, 34, 0.75);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(245, 158, 11, 0.2);
}

.glass-panel:hover {
  border-color: rgba(245, 158, 11, 0.45);
}

/* Quote Machine Glow */
.quote-highlight {
  background: linear-gradient(90deg, #F59E0B, #FBBF24, #FCD34D);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Bee Waggle Dance Keyframes */
@keyframes waggle {
  0% { transform: translateX(0) rotate(0deg); }
  25% { transform: translateX(-4px) rotate(-6deg); }
  50% { transform: translateX(4px) rotate(6deg); }
  75% { transform: translateX(-3px) rotate(-4deg); }
  100% { transform: translateX(0) rotate(0deg); }
}

.waggle-dance {
  animation: waggle 0.3s ease-in-out infinite;
}

/* Interactive Cursor Bee Follower */
#bee-follower {
  pointer-events: none;
  position: fixed;
  z-index: 9999;
  transition: transform 0.15s ease-out, opacity 0.3s ease;
  transform: translate(-50%, -50%);
}
