/* ==========================================================================
   ARTAX IA — DESIGN SYSTEM & ADVANCED STYLES
   Design: Electric Intelligence
   Colors: Midnight Base (#070913), Electric Blue (#00a6ff), Neon Magenta (#b537f2), Cyan (#2fd9f4)
   ========================================================================== */

:root {
  --color-surface-base: #070913;
  --color-surface: #11131d;
  --color-surface-card: #0b0f19;
  --color-surface-elevated: #131b2e;
  --color-surface-highlight: #1a2540;
  
  --color-primary: #00a6ff;
  --color-primary-dim: #96ccff;
  --color-secondary: #b537f2;
  --color-secondary-dim: #e9b3ff;
  --color-tertiary: #2fd9f4;
  --color-whatsapp: #25d366;
  --color-whatsapp-hover: #20ba5a;
  
  --color-text-primary: #f8fafc;
  --color-text-secondary: #94a3b8;
  --color-text-muted: #64748b;
  
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-glow-blue: rgba(0, 166, 255, 0.35);
  --border-glow-magenta: rgba(181, 55, 242, 0.35);
  --border-glow-cyan: rgba(47, 217, 244, 0.35);

  --font-display: 'Space Grotesk', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}

/* Global Reset & Base */
*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-family: var(--font-body);
  background-color: var(--color-surface-base);
  color: var(--color-text-primary);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  max-width: 100vw;
  width: 100%;
}

body {
  margin: 0;
  padding: 0;
  background-color: var(--color-surface-base);
  overflow-x: hidden;
  min-height: 100vh;
  width: 100%;
  max-width: 100vw;
  position: relative;
}

#particles-canvas {
  width: 100% !important;
  height: 100% !important;
  max-width: 100% !important;
  max-height: 100% !important;
  pointer-events: none;
}

::selection {
  background: var(--color-primary);
  color: #001d32;
}

/* Scroll progress bar */
#scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, #00a6ff 0%, #2fd9f4 50%, #b537f2 100%);
  z-index: 9999;
  transition: width 0.1s ease-out;
  box-shadow: 0 0 10px rgba(0, 166, 255, 0.7);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #070913;
}
::-webkit-scrollbar-thumb {
  background: #1d283a;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #00a6ff;
}

/* Glassmorphism Classes */
.glass-panel {
  background: rgba(11, 15, 25, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-subtle);
}

.glass-panel-elevated {
  background: rgba(19, 27, 46, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.glass-panel-glow {
  background: rgba(11, 15, 25, 0.88);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(0, 166, 255, 0.25);
  box-shadow: 0 0 30px -5px rgba(0, 166, 255, 0.15);
}

/* Glow Shadows */
.glow-primary {
  box-shadow: 0 0 24px -2px rgba(0, 166, 255, 0.45);
}
.glow-primary-lg {
  box-shadow: 0 0 45px -4px rgba(0, 166, 255, 0.65);
}
.glow-secondary {
  box-shadow: 0 0 24px -2px rgba(181, 55, 242, 0.4);
}
.glow-tertiary {
  box-shadow: 0 0 24px -2px rgba(47, 217, 244, 0.4);
}
.glow-whatsapp {
  box-shadow: 0 0 20px -2px rgba(37, 211, 102, 0.35);
}

/* Logo Pulse Animation */
@keyframes logoPulse {
  0%, 100% {
    filter: drop-shadow(0 0 15px rgba(0, 166, 255, 0.6)) drop-shadow(0 0 35px rgba(181, 55, 242, 0.35));
    transform: scale(1);
  }
  50% {
    filter: drop-shadow(0 0 30px rgba(0, 166, 255, 0.95)) drop-shadow(0 0 65px rgba(181, 55, 242, 0.7));
    transform: scale(1.05);
  }
}

.artax-hero-glow-logo {
  animation: logoPulse 4s ease-in-out infinite;
  will-change: transform, filter;
}

.artax-isotype-container:hover .artax-hero-glow-logo {
  animation-play-state: paused;
  filter: drop-shadow(0 0 35px rgba(0, 166, 255, 1)) drop-shadow(0 0 70px rgba(181, 55, 242, 0.9)) drop-shadow(0 0 95px rgba(47, 217, 244, 0.8));
  transform: scale(1.12) rotate(2deg);
}

.artax-isotype-container:hover .artax-glow-halo {
  transform: scale(1.45);
  opacity: 1;
  filter: blur(36px);
  background: radial-gradient(circle, rgba(0, 166, 255, 0.45) 0%, rgba(181, 55, 242, 0.4) 50%, rgba(47, 217, 244, 0.2) 80%, transparent 100%);
}

/* Subtle 3D Card Hover Perspective */
.tilt-card {
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s ease, border-color 0.25s ease;
  will-change: transform, box-shadow;
}

.tilt-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 34px -10px rgba(0, 166, 255, 0.25);
  border-color: rgba(0, 166, 255, 0.4);
}

/* Industry Tabs & Panels */
.industry-tab {
  cursor: pointer;
  user-select: none;
  transition: all 0.25s ease;
}

.industry-panel {
  animation: fadeInPanel 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes fadeInPanel {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Accordion Smooth Grid Transition */
.faq-item {
  transition: border-color 0.25s ease, background-color 0.25s ease;
}

.faq-item.active {
  border-color: rgba(0, 166, 255, 0.4);
  background-color: rgba(19, 27, 46, 0.7);
}

.faq-toggle .accordion-icon {
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.faq-item.active .faq-toggle .accordion-icon {
  transform: rotate(45deg);
  color: #00a6ff;
}

.faq-content-wrapper {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.faq-content-wrapper.open {
  grid-template-rows: 1fr;
}

.faq-content-inner {
  overflow: hidden;
}

/* Toast Notification Styles (Sonner-inspired) */
#toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 10000;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
  max-width: 380px;
  width: calc(100vw - 48px);
}

.toast {
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  border-radius: 12px;
  background: rgba(19, 27, 46, 0.95);
  border: 1px solid rgba(0, 166, 255, 0.3);
  backdrop-filter: blur(16px);
  color: #f8fafc;
  font-family: var(--font-body);
  font-size: 14px;
  box-shadow: 0 12px 30px -6px rgba(0, 0, 0, 0.6), 0 0 20px -2px rgba(0, 166, 255, 0.25);
  transform: translateY(20px) scale(0.96);
  opacity: 0;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
}

.toast.show {
  transform: translateY(0) scale(1);
  opacity: 1;
}

.toast-success .toast-icon {
  color: #25d366;
}
.toast-info .toast-icon {
  color: #00a6ff;
}
.toast-error .toast-icon {
  color: #ff5252;
}

/* Modal Overlay & Drawer */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(7, 9, 19, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  overflow-x: hidden;
}

.modal-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.modal-container {
  width: 100%;
  max-width: 640px;
  max-height: 90vh;
  overflow-y: auto;
  background: #0b0f19;
  border: 1px solid rgba(0, 166, 255, 0.35);
  border-radius: 20px;
  padding: 24px;
  box-shadow: 0 24px 60px -10px rgba(0, 0, 0, 0.8), 0 0 40px rgba(0, 166, 255, 0.2);
  transform: scale(0.94) translateY(10px);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-overlay.open .modal-container {
  transform: scale(1) translateY(0);
}

/* Mobile Drawer */
#mobile-drawer {
  position: fixed;
  inset: 0;
  z-index: 9999;
  visibility: hidden;
  pointer-events: none;
  transition: visibility 0.3s ease;
  overflow: hidden;
}

#mobile-drawer.open {
  visibility: visible;
  pointer-events: auto;
}

#mobile-drawer .drawer-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(7, 9, 19, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  opacity: 0;
  transition: opacity 0.3s ease;
}

#mobile-drawer.open .drawer-backdrop {
  opacity: 1;
}

#mobile-drawer .drawer-content {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 85%;
  max-width: 340px;
  background: #0b0f19;
  border-left: 1px solid rgba(0, 166, 255, 0.25);
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: -10px 0 35px rgba(0, 0, 0, 0.85), 0 0 30px rgba(0, 166, 255, 0.15);
  overflow-y: auto;
}

#mobile-drawer.open .drawer-content {
  transform: translateX(0);
}

/* Floating Action Buttons */
.fab-container {
  position: fixed;
  bottom: 20px;
  right: 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 800;
  max-width: 56px;
}

.fab-btn {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s ease, opacity 0.25s ease;
}

.fab-btn:hover {
  transform: scale(1.1);
}

#back-to-top {
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
}

#back-to-top.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}
