/* ===================================================================
   MDSNEXCORE — CLEAN CORPORATE SINGLE-PAGE STYLESHEET
   Digital Marketing & Lead Generation
   =================================================================== */

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

:root {
  /* Brand Corporate Colors */
  --color-navy-950: #060b17;
  --color-navy-900: #0b132b;
  --color-navy-850: #0f1a36;
  --color-navy-800: #142247;
  --color-navy-700: #1e293b;
  
  --color-blue-600: #2563eb;
  --color-blue-500: #3b82f6;
  --color-blue-400: #60a5fa;
  --color-cyan-400: #38bdf8;
  --color-cyan-500: #0284c7;
  
  --color-slate-50: #f8fafc;
  --color-slate-100: #f1f5f9;
  --color-slate-200: #e2e8f0;
  --color-slate-300: #cbd5e1;
  --color-slate-400: #94a3b8;
  --color-slate-500: #64748b;
  --color-slate-600: #475569;
  --color-slate-700: #334155;
  --color-slate-800: #1e293b;
  --color-slate-900: #0f172a;
  
  --color-emerald-500: #10b981;
  --color-emerald-400: #34d399;
  --color-whatsapp: #25d366;

  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'Space Grotesk', monospace;
  
  --shadow-subtle: 0 4px 20px -2px rgba(11, 19, 43, 0.05);
  --shadow-corporate: 0 10px 30px -4px rgba(11, 19, 43, 0.08), 0 4px 6px -2px rgba(11, 19, 43, 0.03);
  --shadow-elevation: 0 20px 45px -10px rgba(11, 19, 43, 0.12);
  --shadow-glow: 0 0 35px rgba(37, 99, 235, 0.2);

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --radius-full: 9999px;

  --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-smooth: 250ms cubic-bezier(0.16, 1, 0.3, 1);
}

/* Base Reset & Setup */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-family: var(--font-sans);
  background-color: #ffffff;
  color: var(--color-slate-800);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  overflow-x: hidden;
  background-color: #ffffff;
}

/* Focus styles */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 2px solid var(--color-blue-500);
  outline-offset: 2px;
}

/* Background Gradients & Meshes */
.bg-corporate-dark {
  background: radial-gradient(circle at 80% 20%, #15274d 0%, #0b132b 55%, #060b17 100%);
}

.bg-corporate-mesh {
  background-color: #0b132b;
  background-image: 
    radial-gradient(at 100% 0%, rgba(37, 99, 235, 0.16) 0px, transparent 50%),
    radial-gradient(at 0% 100%, rgba(2, 132, 199, 0.12) 0px, transparent 50%),
    radial-gradient(at 50% 50%, rgba(30, 41, 59, 0.3) 0px, transparent 100%);
}

.grid-matrix-overlay {
  background-size: 36px 36px;
  background-image: 
    linear-gradient(to right, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
}

/* Glassmorphism Header */
.glass-header {
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid rgba(226, 232, 240, 0.85);
  transition: all var(--transition-smooth);
}

.glass-header.scrolled {
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 4px 20px -2px rgba(11, 19, 43, 0.08);
}

/* Buttons */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.8rem 1.6rem;
  font-weight: 700;
  font-size: 0.9375rem;
  color: #ffffff;
  background: linear-gradient(135deg, #1d4ed8 0%, #2563eb 60%, #0284c7 100%);
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 4px 14px 0 rgba(37, 99, 235, 0.3);
  transition: all var(--transition-smooth);
  cursor: pointer;
  text-decoration: none;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 22px 0 rgba(37, 99, 235, 0.4);
  background: linear-gradient(135deg, #1e40af 0%, #1d4ed8 60%, #0369a1 100%);
  color: #ffffff;
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-whatsapp {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.8rem 1.5rem;
  font-weight: 700;
  font-size: 0.9375rem;
  color: #ffffff;
  background: #128c7e;
  background: linear-gradient(135deg, #075e54 0%, #128c7e 50%, #25d366 100%);
  border-radius: var(--radius-md);
  box-shadow: 0 4px 14px 0 rgba(37, 211, 102, 0.25);
  transition: all var(--transition-smooth);
  cursor: pointer;
  text-decoration: none;
}

.btn-whatsapp:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px 0 rgba(37, 211, 102, 0.35);
  color: #ffffff;
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.8rem 1.5rem;
  font-weight: 600;
  font-size: 0.9375rem;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius-md);
  backdrop-filter: blur(6px);
  transition: all var(--transition-smooth);
  cursor: pointer;
  text-decoration: none;
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
  color: #ffffff;
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.4rem;
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--color-slate-800);
  background: #ffffff;
  border: 1px solid var(--color-slate-300);
  border-radius: var(--radius-md);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  transition: all var(--transition-smooth);
  cursor: pointer;
  text-decoration: none;
}

.btn-outline:hover {
  border-color: var(--color-blue-600);
  color: var(--color-blue-600);
  transform: translateY(-1px);
}

/* Service Card Lift */
.service-card {
  background: #ffffff;
  border: 1px solid var(--color-slate-200);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-subtle);
  transition: all var(--transition-smooth);
  display: flex;
  flex-direction: column;
}

.service-card:hover {
  transform: translateY(-4px);
  border-color: var(--color-blue-500);
  box-shadow: var(--shadow-corporate);
}

/* Pulsing Status Dot */
.pulse-indicator {
  position: relative;
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--color-emerald-500);
}

.pulse-indicator::after {
  content: '';
  position: absolute;
  top: -3px;
  left: -3px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background-color: rgba(16, 185, 129, 0.4);
  animation: pulse-ring 2s cubic-bezier(0.215, 0.61, 0.355, 1) infinite;
}

@keyframes pulse-ring {
  0% { transform: scale(0.6); opacity: 0.8; }
  50% { transform: scale(1.6); opacity: 0; }
  100% { transform: scale(0.6); opacity: 0; }
}

/* Scroll Animations */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.reveal-on-scroll.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Toast Notification */
#toast-container {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 10000;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  pointer-events: none;
}

.toast {
  pointer-events: auto;
  background: var(--color-navy-900);
  color: #ffffff;
  padding: 0.9rem 1.2rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-elevation);
  border-left: 4px solid var(--color-cyan-400);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 280px;
  max-width: 380px;
  animation: slideInToast 0.3s ease forwards;
}

@keyframes slideInToast {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

/* Mobile Drawer */
#mobile-menu {
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
}

#mobile-menu.hidden-menu {
  transform: translateY(-100%);
  opacity: 0;
  pointer-events: none;
}

#mobile-menu.active-menu {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}
