/* ===================================================================
   ANVION IT SERVICES - Modern UI Enhancements & Next-Gen Design System
   =================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@500;600;700;800&family=Inter:wght@400;500;600;700&display=swap');

:root {
  --brand-blue: #00A3FF;
  --brand-blue-hover: #008be5;
  --brand-blue-glow: rgba(0, 163, 255, 0.28);
  --brand-cyan: #00F5FF;
  --brand-cyan-glow: rgba(0, 245, 255, 0.25);
  --brand-purple: #8B5CF6;
  --brand-purple-glow: rgba(139, 92, 246, 0.25);
  --brand-emerald: #10B981;
  --brand-emerald-glow: rgba(16, 185, 129, 0.25);
  --surface-void: #060709;
  --surface-low: #090B10;
  --surface-card: #0E1118;
  --surface-card-hover: #131722;
  --surface-border: rgba(255, 255, 255, 0.08);
  --surface-border-hover: rgba(0, 163, 255, 0.45);
}

/* Global Smoothness & Responsive Full-Width Layout */
html {
  scroll-behavior: smooth;
  color-scheme: dark;
  overflow-x: hidden;
  max-width: 100%;
  width: 100%;
}

body {
  position: relative;
  overflow-x: hidden;
  max-width: 100%;
  width: 100%;
  min-width: 100%;
  margin: 0;
  padding: 0;
}

/* Ensure all primary layout containers stay strictly full-width and never collapse */
header, main, footer, section {
  width: 100%;
  max-width: 100%;
}

img, video, iframe {
  max-width: 100%;
  height: auto;
}

* {
  -webkit-tap-highlight-color: transparent;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: var(--surface-void);
  color: #E3E2E7;
  letter-spacing: -0.01em;
  background-image: 
    radial-gradient(at 0% 0%, rgba(0, 163, 255, 0.07) 0px, transparent 50%),
    radial-gradient(at 100% 100%, rgba(139, 92, 246, 0.05) 0px, transparent 50%);
  background-attachment: fixed;
}

/* Typography Hierarchy */
h1, h2, h3, h4, h5, h6, 
.font-headline-lg, .font-headline-md, .font-display-lg, .font-display-sm {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  letter-spacing: -0.025em;
  color: #FFFFFF;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 7px;
  height: 7px;
}
::-webkit-scrollbar-track {
  background: var(--surface-void);
}
::-webkit-scrollbar-thumb {
  background: #1F2430;
  border-radius: 9999px;
  border: 1px solid rgba(255, 255, 255, 0.04);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--brand-blue);
  box-shadow: 0 0 10px var(--brand-blue);
}

/* Ambient Radiant Lights */
.ambient-orb,
.hero-glow {
  position: absolute;
  border-radius: 9999px;
  pointer-events: none !important;
  filter: blur(120px);
  -webkit-filter: blur(120px);
  z-index: 0;
  opacity: 0.6;
  max-width: 100vw !important;
  contain: paint !important;
}
.ambient-orb-blue {
  background: radial-gradient(circle, rgba(0, 163, 255, 0.22) 0%, rgba(0, 163, 255, 0) 70%);
}
.ambient-orb-cyan {
  background: radial-gradient(circle, rgba(0, 245, 255, 0.18) 0%, rgba(0, 245, 255, 0) 70%);
}
.ambient-orb-purple {
  background: radial-gradient(circle, rgba(139, 92, 246, 0.18) 0%, rgba(139, 92, 246, 0) 70%);
}

/* Modern Card Engine */
.tech-border,
.tech-border-glow,
article.project-card,
article.tech-border,
.bento-card,
.service-card {
  position: relative;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.03) 0%, rgba(255, 255, 255, 0.005) 100%), var(--surface-card);
  border: 1px solid var(--surface-border) !important;
  border-radius: 14px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
}

.tech-border:hover,
.tech-border-glow:hover,
article.project-card:hover,
article.tech-border:hover,
.bento-card:hover,
.service-card:hover {
  border-color: var(--surface-border-hover) !important;
  transform: translateY(-5px);
  box-shadow: 0 16px 36px -10px var(--brand-blue-glow), 0 0 0 1px rgba(0, 163, 255, 0.2);
}

/* Subtle top shine on cards */
.tech-border::before,
article.project-card::before,
.bento-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent);
  pointer-events: none;
}

/* Glassmorphism Classes */
.glass-panel {
  background: rgba(14, 17, 24, 0.75);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.glass-dropdown {
  background: rgba(14, 17, 24, 0.94);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 20px 48px -10px rgba(0, 0, 0, 0.85), 0 0 24px rgba(0, 163, 255, 0.12);
}

.glass-chip {
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

/* High-Tech Grid Overlays */
.bg-grid, .cyber-grid {
  background-size: 38px 38px;
  background-image: 
    linear-gradient(to right, rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  mask-image: radial-gradient(ellipse at center, black 50%, transparent 85%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 50%, transparent 85%);
}

/* Radiant Text Gradients */
.text-gradient-blue {
  background: linear-gradient(135deg, #FFFFFF 15%, #93C5FD 55%, #00A3FF 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.text-gradient-cyan {
  background: linear-gradient(135deg, #FFFFFF 15%, #67E8F9 55%, #00F5FF 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.text-gradient-purple {
  background: linear-gradient(135deg, #FFFFFF 20%, #D8B4FE 60%, #8B5CF6 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.text-gradient-emerald {
  background: linear-gradient(135deg, #FFFFFF 20%, #6EE7B7 60%, #10B981 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Pulsing Status Dot */
.status-live {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 9999px;
  font-size: 11px;
  font-weight: 600;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.25);
  color: #34D399;
}
.status-live-dot {
  width: 6px;
  height: 6px;
  border-radius: 9999px;
  background-color: #10B981;
  position: relative;
}
.status-live-dot::after {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: 9999px;
  background-color: inherit;
  animation: pulse-ring 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes pulse-ring {
  0% { transform: scale(1); opacity: 0.8; }
  100% { transform: scale(2.4); opacity: 0; }
}

/* Glowing Button Engine */
.btn-glow,
.bg-brand-blue,
a[href*="start-a-project"].bg-brand-blue,
button.bg-brand-blue {
  position: relative;
  background: linear-gradient(135deg, #00A3FF 0%, #0070F3 100%) !important;
  color: #FFFFFF !important;
  font-weight: 700;
  border-radius: 10px;
  box-shadow: 0 4px 18px rgba(0, 163, 255, 0.35);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
  border: none;
}

.btn-glow:hover,
.bg-brand-blue:hover,
a[href*="start-a-project"].bg-brand-blue:hover,
button.bg-brand-blue:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 26px rgba(0, 163, 255, 0.55), 0 0 16px rgba(0, 163, 255, 0.3);
  filter: brightness(1.08);
}

.btn-glow::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.25), transparent);
  transition: all 0.6s ease;
}
.btn-glow:hover::before {
  left: 100%;
}

/* Secondary Button Style */
.btn-secondary {
  background: rgba(255, 255, 255, 0.04) !important;
  color: #FFFFFF !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  border-radius: 10px;
  font-weight: 600;
  transition: all 0.25s ease;
}
.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.08) !important;
  border-color: rgba(255, 255, 255, 0.3) !important;
  transform: translateY(-2px);
}

/* Tech Pill / Tag */
.tech-pill,
.badge-tech {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 9999px;
  font-size: 11px;
  font-weight: 600;
  background: rgba(0, 163, 255, 0.08);
  border: 1px solid rgba(0, 163, 255, 0.22);
  color: var(--brand-blue);
  letter-spacing: 0.02em;
}

/* Futuristic Inputs */
input.input-tech,
input.input-futuristic,
textarea.input-tech,
textarea.input-futuristic,
select.input-tech {
  background: rgba(14, 17, 24, 0.75) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  color: #FFFFFF !important;
  border-radius: 10px !important;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

input.input-tech:focus,
input.input-futuristic:focus,
textarea.input-tech:focus,
textarea.input-futuristic:focus,
select.input-tech:focus {
  background: rgba(16, 21, 32, 0.95) !important;
  border-color: var(--brand-blue) !important;
  box-shadow: 0 0 0 3px rgba(0, 163, 255, 0.22), 0 0 16px rgba(0, 163, 255, 0.2) !important;
  outline: none !important;
}

/* Toast Container & Notification Styles */
#toast-container {
  position: fixed;
  top: 24px;
  right: 24px;
  z-index: 99999;
  display: flex;
  flex-direction: column;
  gap: 12px;
  pointer-events: none;
}

@media (max-width: 640px) {
  #toast-container {
    top: 16px;
    right: 16px;
    left: 16px;
  }
}

.toast {
  pointer-events: auto;
  min-width: 300px;
  max-width: 440px;
  width: 100%;
  background: rgba(14, 17, 24, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(16px);
  padding: 14px 18px;
  border-radius: 12px;
  box-shadow: 0 16px 36px rgba(0,0,0,0.7);
  display: flex;
  align-items: center;
  gap: 12px;
  animation: toast-slide-in 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  transition: all 0.3s ease;
}

.toast.toast-success { border-left: 4px solid #10B981; }
.toast.toast-error { border-left: 4px solid #EF4444; }
.toast.toast-info { border-left: 4px solid #00A3FF; }
.toast.toast-warning { border-left: 4px solid #F59E0B; }
.toast.toast-fadeout { animation: toast-fade-out 0.3s ease forwards; }

@keyframes toast-slide-in {
  from { opacity: 0; transform: translateX(60px) scale(0.95); }
  to { opacity: 1; transform: translateX(0) scale(1); }
}

@keyframes toast-fade-out {
  from { opacity: 1; transform: translateY(0); }
  to { opacity: 0; transform: translateY(-20px); }
}

/* WhatsApp Floating Widget */
.whatsapp-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 999;
  display: flex;
  align-items: center;
  gap: 10px;
  background-color: #25D366;
  color: #FFFFFF !important;
  padding: 12px 18px;
  border-radius: 9999px;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.45), 0 2px 6px rgba(0, 0, 0, 0.3);
  font-family: 'Inter', -apple-system, sans-serif;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none !important;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
}

.whatsapp-float:hover {
  transform: translateY(-4px) scale(1.03);
  box-shadow: 0 14px 32px rgba(37, 211, 102, 0.6), 0 4px 12px rgba(0, 0, 0, 0.4);
  background-color: #20BA56;
  color: #FFFFFF !important;
}

.whatsapp-float-pulse {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 9999px;
  background-color: #25D366;
  opacity: 0.6;
  animation: wa-pulse 2.2s infinite;
  z-index: -1;
  pointer-events: none;
}

@keyframes wa-pulse {
  0% { transform: scale(1); opacity: 0.6; }
  70% { transform: scale(1.25); opacity: 0; }
  100% { transform: scale(1.35); opacity: 0; }
}

@media (max-width: 640px) {
  .whatsapp-float {
    bottom: 20px;
    right: 20px;
    padding: 14px;
    border-radius: 50%;
  }
  .whatsapp-float-text {
    display: none;
  }
}

/* Responsive Table & Container Helpers */
.table-responsive {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

/* Hide scrollbars for neat touch scrolling tabs */
.no-scrollbar::-webkit-scrollbar {
  display: none;
}
.no-scrollbar {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

/* Mobile Navigation Drawer Refinements */
#anvionMobileDrawer {
  touch-action: pan-y;
  -webkit-overflow-scrolling: touch;
}

#mobileDrawerPanel {
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.1) transparent;
}

/* Mobile Viewport & Touch Ergonomics */
@media (max-width: 640px) {
  /* Prevent horizontal stretch from ambient light orbs */
  .hero-glow, .ambient-orb {
    max-width: 100vw;
  }

  /* Prevent iOS Safari auto-zoom on input focus */
  input:not([type="checkbox"]):not([type="radio"]),
  select,
  textarea {
    font-size: 16px !important;
  }
}

/* ===================================================================
   Continuous Single-Line Running Logos / Marquee Strip
   =================================================================== */
@keyframes marquee-scroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee-scroll 28s linear infinite;
  will-change: transform;
}

.marquee-track:hover {
  animation-play-state: paused;
}

@media (prefers-reduced-motion: reduce) {
  .marquee-track {
    animation: none;
    overflow-x: auto;
  }
}



