/* ============================================================
   M. V. Carrijo Tecnologia - High-Tech Design System
   Color Palette: Deep Royal Blue, Cyan Accents, Dark Grays, Crisp Whites
   ============================================================ */

:root {
  --bg-dark: #050811;
  --bg-surface: #0a1020;
  --bg-card: rgba(12, 20, 39, 0.75);
  --bg-card-hover: rgba(18, 29, 58, 0.85);
  --border-glass: rgba(56, 189, 248, 0.15);
  --border-glass-hover: rgba(0, 240, 255, 0.45);
  --accent-cyan: #00f0ff;
  --accent-cyan-glow: rgba(0, 240, 255, 0.35);
  --accent-blue: #1e40af;
  --accent-royal: #2563eb;
  --accent-sky: #38bdf8;
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-dim: #64748b;
  --whatsapp-green: #25d366;
  --whatsapp-hover: #1ebd5a;
  --whatsapp-glow: rgba(37, 211, 102, 0.4);
}

/* Base resets & smooth scrolling */
html {
  scroll-behavior: smooth;
  scroll-padding-top: 85px;
}

body {
  background-color: var(--bg-dark);
  color: var(--text-main);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  overflow-x: hidden;
  position: relative;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: #050811;
}
::-webkit-scrollbar-thumb {
  background: #1e293b;
  border-radius: 5px;
  border: 2px solid #050811;
}
::-webkit-scrollbar-thumb:hover {
  background: #0284c7;
}

/* Background Cyber Grid Pattern */
.bg-cyber-grid {
  background-image: 
    linear-gradient(to right, rgba(14, 165, 233, 0.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(14, 165, 233, 0.04) 1px, transparent 1px);
  background-size: 40px 40px;
}

/* Radial Glow Backdrops */
.glow-orb-cyan {
  position: absolute;
  width: 480px;
  height: 480px;
  background: radial-gradient(circle, rgba(0, 240, 255, 0.12) 0%, rgba(0, 240, 255, 0) 70%);
  pointer-events: none;
  filter: blur(40px);
  z-index: 0;
}

.glow-orb-blue {
  position: absolute;
  width: 550px;
  height: 550px;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.18) 0%, rgba(37, 99, 235, 0) 70%);
  pointer-events: none;
  filter: blur(50px);
  z-index: 0;
}

/* Glassmorphic Cards */
.glass-panel {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-glass);
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.6), 0 0 15px -3px rgba(14, 165, 233, 0.05);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.glass-panel:hover {
  border-color: var(--border-glass-hover);
  box-shadow: 0 15px 35px -10px rgba(0, 0, 0, 0.7), 0 0 25px 2px rgba(0, 240, 255, 0.15);
  transform: translateY(-4px);
}

/* Tech Card with Corner Accents */
.tech-corner-card {
  position: relative;
  overflow: hidden;
}

.tech-corner-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 24px;
  height: 2px;
  background: var(--accent-cyan);
  box-shadow: 0 0 8px var(--accent-cyan);
  transition: width 0.3s ease;
}

.tech-corner-card:hover::before {
  width: 60px;
}

.tech-corner-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  height: 24px;
  width: 2px;
  background: var(--accent-cyan);
  box-shadow: 0 0 8px var(--accent-cyan);
  transition: height 0.3s ease;
}

.tech-corner-card:hover::after {
  height: 60px;
}

/* Gradient Texts */
.text-gradient-cyan {
  background: linear-gradient(135deg, #ffffff 10%, #38bdf8 60%, #00f0ff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.text-gradient-blue {
  background: linear-gradient(135deg, #60a5fa 0%, #2563eb 50%, #00f0ff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.text-gradient-silver {
  background: linear-gradient(135deg, #ffffff 0%, #cbd5e1 50%, #94a3b8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Neon Glow Outline Buttons */
.btn-tech-outline {
  position: relative;
  background: rgba(14, 165, 233, 0.08);
  border: 1px solid rgba(56, 189, 248, 0.4);
  color: #38bdf8;
  transition: all 0.25s ease;
}

.btn-tech-outline:hover {
  background: rgba(14, 165, 233, 0.2);
  border-color: #00f0ff;
  color: #ffffff;
  box-shadow: 0 0 20px rgba(0, 240, 255, 0.4);
  transform: translateY(-2px);
}

/* WhatsApp Pulse Button */
.btn-whatsapp-pulse {
  background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
  color: #ffffff;
  box-shadow: 0 4px 20px var(--whatsapp-glow);
  position: relative;
  transition: all 0.3s ease;
}

.btn-whatsapp-pulse:hover {
  background: linear-gradient(135deg, #28e06d 0%, #159c8d 100%);
  box-shadow: 0 6px 28px rgba(37, 211, 102, 0.6);
  transform: translateY(-2px) scale(1.02);
}

.btn-whatsapp-pulse::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: inherit;
  border: 2px solid rgba(37, 211, 102, 0.7);
  animation: pulse-ring 2s cubic-bezier(0.215, 0.61, 0.355, 1) infinite;
}

@keyframes pulse-ring {
  0% {
    transform: scale(0.96);
    opacity: 0.8;
  }
  50% {
    transform: scale(1.12);
    opacity: 0;
  }
  100% {
    transform: scale(1.18);
    opacity: 0;
  }
}

/* Floating WhatsApp Sticky Widget */
.floating-whatsapp {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 999;
  display: flex;
  align-items: center;
  gap: 12px;
}

.floating-whatsapp-btn {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, #25d366, #128c7e);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.45);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
  position: relative;
}

.floating-whatsapp-btn:hover {
  transform: scale(1.1) rotate(5deg);
  box-shadow: 0 12px 30px rgba(37, 211, 102, 0.65);
}

.floating-whatsapp-tooltip {
  background: rgba(10, 16, 32, 0.95);
  color: #f1f5f9;
  padding: 8px 14px;
  border-radius: 20px;
  font-size: 0.825rem;
  font-weight: 500;
  border: 1px solid rgba(0, 240, 255, 0.25);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
  white-space: nowrap;
  pointer-events: none;
  animation: floatTooltip 3s ease-in-out infinite;
}

@keyframes floatTooltip {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-4px);
  }
}

/* Circuit Animated Line & Nodes */
.circuit-line {
  stroke-dasharray: 8, 8;
  animation: circuitFlow 20s linear infinite;
}

@keyframes circuitFlow {
  to {
    stroke-dashoffset: -1000;
  }
}

/* Badge Glow */
.badge-tech {
  background: rgba(0, 240, 255, 0.08);
  border: 1px solid rgba(0, 240, 255, 0.3);
  color: #38bdf8;
  box-shadow: 0 0 12px rgba(0, 240, 255, 0.15);
}

.badge-live-dot {
  width: 8px;
  height: 8px;
  background-color: #22c55e;
  border-radius: 50%;
  display: inline-block;
  box-shadow: 0 0 8px #22c55e;
  animation: blink 2s infinite ease-in-out;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

/* Feature Checkmark List */
.feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

/* Tab Active Styles */
.tab-btn.active {
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.3), rgba(0, 240, 255, 0.2));
  border-color: #00f0ff;
  color: #ffffff;
  box-shadow: 0 0 15px rgba(0, 240, 255, 0.25);
}

/* Form focus states */
.form-input-tech {
  background: rgba(10, 16, 32, 0.7);
  border: 1px solid rgba(56, 189, 248, 0.2);
  color: #ffffff;
  transition: all 0.25s ease;
}

.form-input-tech:focus {
  background: rgba(14, 23, 46, 0.9);
  border-color: #00f0ff;
  outline: none;
  box-shadow: 0 0 15px rgba(0, 240, 255, 0.25);
}

/* Hero Showcase Frame */
.showcase-frame {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(0, 240, 255, 0.3);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8), 0 0 35px rgba(0, 240, 255, 0.2);
}

.showcase-frame::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(5, 8, 17, 0) 60%, rgba(5, 8, 17, 0.85) 100%);
  z-index: 1;
  pointer-events: none;
}

/* Toast Notification */
#toastNotification {
  transition: opacity 0.3s ease, transform 0.3s ease;
}
