/* Global UAV Styles: Smooth animations, elegant transitions, and responsive interactions */

/* Color System */
:root {
  --bg: #000000;
  --surface: #111111;
  --border: #333333;
  --text: #ffffff;
  --muted: #cccccc;
  --accent: #ffffff;
  --accent-soft: #e8e8e8;
}

html { scroll-behavior: smooth; }

* { box-sizing: border-box; }

body {
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Containers */
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* Universal transitions for interactive elements */
a, button, .nav-links a, .cta-button, .filter-tab, .search-btn,
.newsletter-btn, .submit-btn, .quick-action-btn {
  transition: transform 0.25s ease, box-shadow 0.25s ease,
              background-color 0.25s ease, color 0.2s ease, border-color 0.2s ease;
}

.cta-button, .newsletter-btn, .submit-btn {
  border-radius: 25px;
  will-change: transform, box-shadow;
}

.cta-button:hover, .newsletter-btn:hover, .submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(255,255,255,0.08);
}

/* Subtle hover lift for cards and tiles */
.feature-card:hover, .product-card:hover, .status-item:hover,
.metric-card:hover, .faq-item:hover, .suggestion-card:hover,
.service-card:hover, .channels-section .channel-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(0,0,0,0.35);
}

/* Fade-up animation utility */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Avoid flicker before ready */
body:not(.ready) .fade-in { opacity: 0; }
body.ready .fade-in { animation: fadeUp 0.45s ease both; }

/* Pulsing status indicator (consistent across pages) */
@keyframes smoothPulse {
  0% { opacity: 0.65; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.05); }
  100% { opacity: 0.65; transform: scale(1); }
}

.status-indicator { animation: smoothPulse 1.6s ease-in-out infinite; }

/* Snow/Particles toggle button */
.snow-control {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 10000;
  background: rgba(0, 0, 0, 0.7);
  border: 1px solid var(--border);
  border-radius: 25px;
  padding: 8px 14px;
  color: var(--text);
  font-size: 12px;
  cursor: pointer;
  transition: all 0.25s ease;
  backdrop-filter: blur(10px);
}
.snow-control:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: var(--accent);
}

/* Scrollbar (WebKit-based browsers) */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #555555; }

/* Focus states for accessibility */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* Utility styles for glass and soft shadows */
.glass {
  background: rgba(255,255,255,0.06);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border);
}

.soft-shadow {
  box-shadow: 0 20px 40px rgba(0,0,0,0.35);
}

.gradient-text {
  background: linear-gradient(45deg, var(--accent), var(--accent-soft));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Reduced Motion Respect */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}