/* ===================================================================
   miwebpropia.com - Custom Dark Mode Tech Stylesheet
   =================================================================== */

:root {
  --bg-pure-dark: #0D0D0D;
  --bg-graphite: #121212;
  --bg-surface: #17171a;
  --bg-surface-elevated: #1f1f24;
  --accent-neon: #00FF87;
  --accent-neon-glow: rgba(0, 255, 135, 0.35);
  --accent-violet: #7F00FF;
  --accent-violet-glow: rgba(127, 0, 255, 0.4);
  --text-primary: #FFFFFF;
  --text-secondary: #9E9EAE;
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-neon: rgba(0, 255, 135, 0.3);
}

html {
  scroll-behavior: smooth;
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: var(--bg-pure-dark);
  color: var(--text-primary);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-pure-dark);
}
::-webkit-scrollbar-thumb {
  background: #2a2a32;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #3c3c48;
}

/* Glow & Gradient Utilities */
.text-gradient-violet {
  background: linear-gradient(135deg, #FFFFFF 20%, #B774FF 65%, #7F00FF 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.text-gradient-neon {
  background: linear-gradient(135deg, #00FF87 0%, #60EFFF 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.bg-radial-glow {
  background: radial-gradient(circle at 50% 0%, rgba(127, 0, 255, 0.18) 0%, rgba(0, 255, 135, 0.04) 45%, transparent 70%);
}

.bg-radial-card {
  background: radial-gradient(circle at 80% 20%, rgba(127, 0, 255, 0.08) 0%, transparent 60%), #131317;
}

/* Glassmorphism */
.glass-panel {
  background: rgba(18, 18, 22, 0.75);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-subtle);
}

.glass-nav {
  background: rgba(13, 13, 13, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-subtle);
}

/* Neon Glow Buttons & Cards */
.btn-neon {
  background: var(--accent-neon);
  color: #07170E;
  font-weight: 700;
  box-shadow: 0 0 25px rgba(0, 255, 135, 0.35);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-neon:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 35px rgba(0, 255, 135, 0.6), 0 0 70px rgba(0, 255, 135, 0.25);
  background: #2aff99;
}

.btn-neon:active {
  transform: translateY(0);
}

.bento-card {
  position: relative;
  border-radius: 1.25rem;
  background: #141418;
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
}

.bento-card:hover {
  border-color: rgba(0, 255, 135, 0.35);
  transform: translateY(-4px);
  box-shadow: 0 16px 36px -12px rgba(0, 0, 0, 0.7), 0 0 25px -5px rgba(0, 255, 135, 0.15);
}

.bento-card-violet:hover {
  border-color: rgba(127, 0, 255, 0.45);
  box-shadow: 0 16px 36px -12px rgba(0, 0, 0, 0.7), 0 0 30px -5px rgba(127, 0, 255, 0.25);
}

/* Grid Background Effect */
.bg-grid-pattern {
  background-image: 
    linear-gradient(to right, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 40px 40px;
}

/* Floating Animation */
@keyframes floatSlow {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-8px); }
}

.animate-float {
  animation: floatSlow 5s ease-in-out infinite;
}

/* Pulse Glow Animation */
@keyframes pulseGlow {
  0%, 100% {
    box-shadow: 0 0 18px rgba(0, 255, 135, 0.4);
  }
  50% {
    box-shadow: 0 0 30px rgba(0, 255, 135, 0.8), 0 0 50px rgba(0, 255, 135, 0.3);
  }
}

.animate-pulse-glow {
  animation: pulseGlow 2.5s infinite;
}

/* Micro Intersections Animations */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.reveal-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Chatbot Widget Styles */
#chat-widget-window {
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease, visibility 0.3s;
}

#chat-widget-window.hidden-widget {
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px) scale(0.95);
  pointer-events: none;
}

#chat-widget-window.visible-widget {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
  pointer-events: all;
}

/* Chat message bubbles */
.chat-bubble-agent {
  background: #1e1e26;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-top-left-radius: 4px;
}

.chat-bubble-user {
  background: linear-gradient(135deg, #18462d 0%, #0c331f 100%);
  border: 1px solid rgba(0, 255, 135, 0.25);
  border-top-right-radius: 4px;
}

/* Typing indicator dots */
@keyframes dotBlink {
  0%, 80%, 100% { opacity: 0.2; transform: scale(0.8); }
  40% { opacity: 1; transform: scale(1.1); }
}

.typing-dot:nth-child(1) { animation: dotBlink 1.2s infinite ease-in-out; }
.typing-dot:nth-child(2) { animation: dotBlink 1.2s infinite ease-in-out 0.2s; }
.typing-dot:nth-child(3) { animation: dotBlink 1.2s infinite ease-in-out 0.4s; }
