/* ==========================================================================
   MakerPixel Techsystem - Estilos Globais & Efeitos Visuais High-Tech
   ========================================================================== */

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

:root {
  --color-primary: #00a3e0;
  --color-primary-hover: #0284c7;
  --color-primary-light: #38bdf8;
  --color-deep-navy: #0f2b48;
  --color-dark-bg: #070b14;
  --color-surface-dark: #0f172a;
  --color-surface-card: #131d33;
  --color-accent-teal: #06b6d4;
  --color-accent-green: #10b981;
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}

/* Reset & Base */
html {
  scroll-behavior: smooth;
  font-family: var(--font-body);
  background-color: var(--color-dark-bg);
  color: #f1f5f9;
}

body {
  overflow-x: hidden;
  background-color: var(--color-dark-bg);
}

h1, h2, h3, h4, h5, h6, .font-heading {
  font-family: var(--font-heading);
}

.font-mono-tech {
  font-family: var(--font-mono);
}

/* Cyber Grid & Background Mesh */
.bg-cyber-grid {
  background-image: 
    linear-gradient(to right, rgba(0, 163, 224, 0.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(0, 163, 224, 0.05) 1px, transparent 1px);
  background-size: 40px 40px;
}

.bg-radial-gradient {
  background: radial-gradient(circle at 50% 0%, rgba(0, 163, 224, 0.15) 0%, rgba(7, 11, 20, 0) 70%);
}

.bg-radial-glow-cyan {
  background: radial-gradient(circle, rgba(0, 163, 224, 0.12) 0%, transparent 70%);
}

.bg-radial-glow-teal {
  background: radial-gradient(circle, rgba(6, 182, 212, 0.10) 0%, transparent 70%);
}

/* Glassmorphism Styles */
.glass-nav {
  background: rgba(7, 11, 20, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(56, 189, 248, 0.12);
}

.glass-card {
  background: rgba(15, 23, 42, 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(56, 189, 248, 0.12);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.glass-card:hover {
  background: rgba(19, 29, 51, 0.85);
  border-color: rgba(0, 163, 224, 0.4);
  transform: translateY(-4px);
  box-shadow: 0 16px 32px -8px rgba(0, 163, 224, 0.15);
}

.glass-card-interactive {
  background: rgba(15, 23, 42, 0.8);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(56, 189, 248, 0.15);
}

/* Custom Gradients */
.text-gradient-cyan {
  background: linear-gradient(135deg, #ffffff 30%, #38bdf8 70%, #00a3e0 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.text-gradient-brand {
  background: linear-gradient(135deg, #38bdf8 0%, #00a3e0 60%, #0284c7 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.btn-gradient-primary {
  background: linear-gradient(135deg, #00a3e0 0%, #0284c7 100%);
  box-shadow: 0 4px 20px -2px rgba(0, 163, 224, 0.4);
  transition: all 0.25s ease;
}

.btn-gradient-primary:hover {
  background: linear-gradient(135deg, #38bdf8 0%, #00a3e0 100%);
  box-shadow: 0 6px 26px 0px rgba(0, 163, 224, 0.6);
  transform: translateY(-2px);
}

/* Pulse and Glow Animations */
@keyframes pulseGlow {
  0%, 100% {
    box-shadow: 0 0 15px rgba(0, 163, 224, 0.4), 0 0 30px rgba(0, 163, 224, 0.1);
  }
  50% {
    box-shadow: 0 0 25px rgba(0, 163, 224, 0.7), 0 0 50px rgba(0, 163, 224, 0.3);
  }
}

.animate-pulse-glow {
  animation: pulseGlow 3s infinite ease-in-out;
}

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

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

/* Floating WhatsApp Widget */
.wa-widget-button {
  background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
  box-shadow: 0 6px 24px rgba(37, 211, 102, 0.4);
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.wa-widget-button:hover {
  transform: scale(1.08) translateY(-3px);
  box-shadow: 0 10px 30px rgba(37, 211, 102, 0.6);
}

.wa-badge-pulse {
  position: absolute;
  top: -2px;
  right: -2px;
  width: 14px;
  height: 14px;
  background-color: #22c55e;
  border-radius: 50%;
  border: 2px solid #070b14;
}

.wa-badge-pulse::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid #22c55e;
  animation: ping 1.5s cubic-bezier(0, 0, 0.2, 1) infinite;
}

/* Floating Chat Modal */
.wa-chat-window {
  transform-origin: bottom right;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.wa-chat-window.hidden {
  opacity: 0;
  transform: scale(0.85) translateY(20px);
  pointer-events: none;
}

.wa-chat-window:not(.hidden) {
  opacity: 1;
  transform: scale(1) translateY(0);
  pointer-events: auto;
}

/* Lightbox Modal */
.lightbox-modal {
  transition: opacity 0.3s ease;
}

.lightbox-modal.hidden {
  opacity: 0;
  pointer-events: none;
}

.lightbox-modal:not(.hidden) {
  opacity: 1;
  pointer-events: auto;
}

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

::-webkit-scrollbar-track {
  background: #070b14;
}

::-webkit-scrollbar-thumb {
  background: #1e293b;
  border-radius: 4px;
  border: 2px solid #070b14;
}

::-webkit-scrollbar-thumb:hover {
  background: #00a3e0;
}

/* Badge Glow */
.tech-tag {
  background: rgba(0, 163, 224, 0.08);
  border: 1px solid rgba(0, 163, 224, 0.25);
  color: #38bdf8;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border-radius: 9999px;
  padding: 0.25rem 0.75rem;
  transition: all 0.2s ease;
}

.tech-tag:hover {
  background: rgba(0, 163, 224, 0.2);
  border-color: rgba(56, 189, 248, 0.6);
  color: #ffffff;
}

/* Code mockup bar */
.code-window-bar {
  background: rgba(15, 23, 42, 0.95);
  border-bottom: 1px solid rgba(56, 189, 248, 0.15);
}

/* Image zoom in portfolio */
.portfolio-img-container {
  overflow: hidden;
  position: relative;
}

.portfolio-img-container img {
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.portfolio-card:hover .portfolio-img-container img {
  transform: scale(1.06);
}

/* Responsive adjustments */
@media (max-width: 640px) {
  .hero-headline {
    font-size: 2.25rem;
    line-height: 1.15;
  }
}

/* Video Showcase Custom Styling */
.video-glow-frame {
  position: relative;
  border-radius: 1.25rem;
  border: 1px solid rgba(0, 163, 224, 0.35);
  box-shadow: 0 0 40px -8px rgba(0, 163, 224, 0.25), 0 20px 40px -15px rgba(0, 0, 0, 0.8);
  transition: all 0.3s ease;
  overflow: hidden;
  background: #090d16;
}

.video-glow-frame:hover {
  border-color: rgba(56, 189, 248, 0.65);
  box-shadow: 0 0 50px -5px rgba(0, 163, 224, 0.35), 0 25px 50px -12px rgba(0, 0, 0, 0.9);
}

.video-pulse-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.85rem;
  background: rgba(0, 163, 224, 0.15);
  border: 1px solid rgba(0, 163, 224, 0.5);
  border-radius: 9999px;
  color: #38bdf8;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.video-pulse-badge::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #38bdf8;
  box-shadow: 0 0 8px #38bdf8;
  animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}
