/* ==========================================================================
   PLUS MINUS DATA SOLUTIONS - MASTER DESIGN SYSTEM & STYLESHEET
   Brand Identity: Deep Navy #0D2040 & Electric Blue #0084FF
   Full 11-Point Mobile Responsiveness & UI Polish Audit System
   ========================================================================== */

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

:root {
  --pm-navy-dark: #07101E;
  --pm-navy: #0D2040;
  --pm-navy-light: #18335D;
  --pm-blue: #0084FF;
  --pm-blue-hover: #0066CC;
  --pm-cyan: #00C4FF;
  --pm-accent-gold: #FFB800;
  
  --pm-white: #FFFFFF;
  --pm-slate-50: #F8FAFC;
  --pm-slate-100: #F1F5F9;
  --pm-slate-200: #E2E8F0;
  --pm-slate-300: #CBD5E1;
  --pm-slate-400: #94A3B8;
  --pm-slate-600: #475569;
  --pm-slate-700: #334155;
  --pm-slate-900: #0F172A;
  
  --font-heading: 'Poppins', sans-serif;
  --font-body: 'Inter', sans-serif;

  --pm-gradient-primary: linear-gradient(135deg, #0D2040 0%, #0084FF 60%, #00C4FF 100%);
  --pm-gradient-accent: linear-gradient(135deg, #0084FF 0%, #00C4FF 100%);
  --pm-gradient-dark: linear-gradient(180deg, #07101E 0%, #0D2040 100%);
  --pm-gradient-glass: linear-gradient(135deg, rgba(13, 32, 64, 0.95) 0%, rgba(7, 16, 30, 0.9) 100%);

  --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.12);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.2);
  --shadow-lg: 0 16px 38px rgba(0, 0, 0, 0.3);
  --shadow-glow: 0 10px 28px rgba(0, 132, 255, 0.3);
  
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-full: 9999px;
  
  --transition-fast: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-smooth: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Universal Box Sizing & Zero Overflow Reset */
*, *::before, *::after {
  box-sizing: border-box !important;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden !important;
  max-width: 100% !important;
}

body {
  font-family: var(--font-body);
  color: var(--pm-slate-700);
  background-color: var(--pm-white);
  line-height: 1.6;
  margin: 0;
  padding: 0;
  overflow-x: hidden !important;
  max-width: 100% !important;
}

h1, h2, h3, h4, h5, h6, .font-heading {
  font-family: var(--font-heading);
  color: var(--pm-slate-900);
  font-weight: 700;
  letter-spacing: -0.02em;
  word-wrap: break-word;
}

a {
  text-decoration: none;
  color: var(--pm-blue);
  transition: var(--transition-fast);
}

a:hover {
  color: var(--pm-cyan);
}

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

/* ==========================================================================
   BUTTONS & TOUCH TARGETS (48px - 52px Minimum Target Size)
   ========================================================================== */
.btn-pm-primary {
  background: var(--pm-gradient-accent);
  color: var(--pm-white) !important;
  font-family: var(--font-heading);
  font-weight: 600;
  padding: 12px 28px;
  border-radius: var(--radius-full);
  border: none;
  box-shadow: var(--shadow-glow);
  transition: var(--transition-smooth);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  white-space: nowrap;
  min-height: 48px;
  max-width: 100%;
}

.btn-pm-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 34px rgba(0, 132, 255, 0.45);
  color: var(--pm-white) !important;
}

.btn-pm-outline {
  background: transparent;
  color: var(--pm-blue) !important;
  font-family: var(--font-heading);
  font-weight: 600;
  padding: 11px 24px;
  border-radius: var(--radius-full);
  border: 2px solid var(--pm-blue);
  transition: var(--transition-smooth);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  white-space: nowrap;
  min-height: 48px;
  max-width: 100%;
}

.btn-pm-outline:hover {
  background: var(--pm-blue);
  color: var(--pm-white) !important;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 132, 255, 0.3);
}

.btn-pm-light {
  background: var(--pm-white);
  color: var(--pm-navy) !important;
  font-family: var(--font-heading);
  font-weight: 600;
  padding: 12px 28px;
  border-radius: var(--radius-full);
  border: none;
  box-shadow: var(--shadow-md);
  transition: var(--transition-smooth);
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  max-width: 100%;
}

.btn-pm-light:hover {
  background: var(--pm-slate-100);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.pm-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  background: rgba(0, 132, 255, 0.1);
  color: var(--pm-blue);
  border: 1px solid rgba(0, 132, 255, 0.2);
}

.pm-badge-light {
  background: rgba(255, 255, 255, 0.15);
  color: var(--pm-cyan);
  border: 1px solid rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(8px);
}

/* ==========================================================================
   HEADER & NAVIGATION
   ========================================================================== */
.pm-top-bar {
  background: #040A14;
  color: var(--pm-slate-300);
  font-size: 0.825rem;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.pm-header {
  position: sticky;
  top: 0;
  z-index: 1050;
  background: var(--pm-navy-dark);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: var(--shadow-md);
  transition: var(--transition-smooth);
  min-height: 80px;
  display: flex;
  align-items: center;
}

.pm-header.scrolled {
  background: rgba(7, 16, 30, 0.98);
  backdrop-filter: blur(16px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

/* Brand Logo Container */
.brand-logo {
  display: flex;
  align-items: center;
  padding: 6px 0;
}

.brand-logo-img {
  width: 240px;
  height: auto;
  max-height: 68px;
  object-fit: contain;
  display: block;
  transition: var(--transition-smooth);
}

.footer-logo-img {
  width: 240px;
  height: auto;
  max-height: 68px;
  object-fit: contain;
  display: block;
}

/* Desktop Nav Links & Text-Width Underline */
.nav-link {
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--pm-white) !important;
  padding: 24px 16px !important;
  position: relative;
  transition: var(--transition-fast);
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  min-height: 48px;
}

.nav-link:hover, .nav-link.active {
  color: var(--pm-cyan) !important;
  font-weight: 600;
}

/* Underline matches text length exactly */
.nav-link::after {
  content: '';
  position: absolute;
  bottom: 12px;
  left: 16px;
  right: 16px;
  height: 3px;
  background: var(--pm-gradient-accent);
  opacity: 0;
  transform: scaleX(0);
  transform-origin: center;
  transition: var(--transition-smooth);
  border-radius: 2px;
}

.nav-link:hover::after, .nav-link.active::after {
  opacity: 1;
  transform: scaleX(1);
}

/* Mega Menu Desktop */
.mega-dropdown {
  position: static !important;
}

.mega-menu-content {
  width: 100%;
  left: 0;
  right: 0;
  border: none;
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  box-shadow: var(--shadow-lg);
  background: var(--pm-white);
  padding: 30px;
  margin-top: 0;
  animation: megaMenuFade 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.mega-menu-item {
  padding: 12px 14px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: flex-start;
  gap: 14px;
  transition: var(--transition-fast);
  min-height: 48px;
}

.mega-menu-item:hover {
  background: var(--pm-slate-50);
}

.mega-icon {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-md);
  background: rgba(0, 132, 255, 0.1);
  color: var(--pm-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.mega-menu-item:hover .mega-icon {
  background: var(--pm-blue);
  color: var(--pm-white);
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero-section {
  background: var(--pm-gradient-dark);
  color: var(--pm-white);
  padding: 80px 0 110px;
  position: relative;
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: -20%;
  right: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(0, 196, 255, 0.15) 0%, rgba(0, 132, 255, 0) 70%);
  border-radius: 50%;
  pointer-events: none;
}

.hero-title {
  font-size: 3.2rem;
  font-weight: 800;
  line-height: 1.15;
  color: var(--pm-white);
  margin-bottom: 24px;
}

.text-gradient {
  background: var(--pm-gradient-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: 1.2rem;
  color: var(--pm-slate-300);
  font-weight: 400;
  max-width: 600px;
  margin-bottom: 36px;
}

.hero-stats-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(12px);
  border-radius: var(--radius-lg);
  padding: 24px;
  color: var(--pm-white);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

/* ==========================================================================
   CARDS & SECTIONS
   ========================================================================== */
.section-padding {
  padding: 80px 0;
}

.bg-slate {
  background-color: var(--pm-slate-50);
}

.bg-navy-dark {
  background: var(--pm-gradient-dark);
  color: var(--pm-white);
}

.section-title {
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 16px;
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--pm-slate-600);
  max-width: 650px;
  margin: 0 auto 50px;
}

.pm-card {
  background: var(--pm-white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--pm-slate-200);
  padding: 32px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-smooth);
  height: 100%;
  width: 100%;
  max-width: 100%;
}

.pm-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(0, 132, 255, 0.4);
}

.card-icon-wrapper {
  width: 60px;
  height: 60px;
  border-radius: var(--radius-md);
  background: var(--pm-gradient-primary);
  color: var(--pm-white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin-bottom: 24px;
  box-shadow: var(--shadow-glow);
}

/* Industry Grid Card */
.industry-card {
  background: var(--pm-white);
  border: 1px solid var(--pm-slate-200);
  border-radius: var(--radius-md);
  padding: 24px;
  text-align: center;
  transition: var(--transition-smooth);
  height: 100%;
  width: 100%;
}

.industry-card:hover {
  background: var(--pm-navy);
  border-color: var(--pm-navy);
  color: var(--pm-white);
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.industry-card:hover h5, .industry-card:hover p {
  color: var(--pm-white);
}

.industry-card:hover .industry-icon {
  background: var(--pm-gradient-accent);
  color: var(--pm-white);
}

.industry-icon {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--pm-slate-100);
  color: var(--pm-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  margin: 0 auto 16px;
  transition: var(--transition-smooth);
}

/* Process Timeline */
.process-step {
  position: relative;
  padding: 30px;
  background: var(--pm-white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--pm-slate-200);
  height: 100%;
  width: 100%;
}

.process-number {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 2.5rem;
  color: rgba(0, 132, 255, 0.15);
  position: absolute;
  top: 16px;
  right: 24px;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.pm-footer {
  background: var(--pm-navy-dark);
  color: var(--pm-slate-300);
  padding: 70px 0 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-title {
  color: var(--pm-white);
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 24px;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 12px;
}

.footer-links a {
  color: var(--pm-slate-300);
  transition: var(--transition-fast);
}

.footer-links a:hover {
  color: var(--pm-cyan);
  padding-left: 6px;
}

.social-icon-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: var(--pm-white);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-fast);
  margin-right: 8px;
}

.social-icon-btn:hover {
  background: var(--pm-blue);
  color: var(--pm-white);
  transform: translateY(-3px);
}

/* Back to Top */
#backToTop {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--pm-gradient-accent);
  color: var(--pm-white);
  border: none;
  box-shadow: var(--shadow-glow);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition-smooth);
  z-index: 1000;
}

#backToTop.show {
  opacity: 1;
  visibility: visible;
}

/* ==========================================================================
   MOBILE & TABLET RESPONSIVE FIXES (< 1200px)
   ========================================================================== */
@media (max-width: 1199.98px) {
  .pm-header {
    min-height: 72px;
  }

  .brand-logo-img {
    width: 200px;
  }
  
  /* Mobile Navigation Drawer: Max Width 320px (80-85% Screen Width) */
  .navbar-collapse {
    background: #07101E !important;
    padding: 20px !important;
    border-radius: 16px !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.7) !important;
    margin-top: 12px !important;
    max-height: 80vh;
    overflow-y: auto;
    width: min(320px, 85vw) !important;
    float: right;
  }

  .nav-link {
    padding: 14px 16px !important;
    border-radius: 8px;
    font-size: 1rem;
    min-height: 48px;
    display: flex;
    align-items: center;
  }

  .nav-link:hover, .nav-link.active {
    background: rgba(0, 132, 255, 0.15);
    color: var(--pm-cyan) !important;
    border-left: 4px solid var(--pm-cyan);
    padding-left: 16px !important;
  }

  /* Disable bottom absolute underline in vertical mobile list */
  .nav-link::after {
    content: none !important;
    display: none !important;
  }

  .mega-menu-content {
    position: static;
    box-shadow: none;
    padding: 16px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
  }

  .mega-menu-item {
    color: #fff !important;
    min-height: 48px;
  }

  .mega-menu-item .fw-semibold {
    color: #fff !important;
  }

  .mega-menu-item .small {
    color: var(--pm-slate-400) !important;
  }
}

@media (max-width: 991.98px) {
  .hero-title {
    font-size: 2.4rem;
  }
  
  .section-title {
    font-size: 1.8rem;
  }

  .pm-card {
    padding: 24px;
  }
}

/* Mobile Screens (< 576px) - 1 Column Stack & 48px Full Width Buttons */
@media (max-width: 575.98px) {
  .brand-logo-img {
    width: 175px;
  }

  .hero-title {
    font-size: 1.95rem;
  }

  .pm-card .d-flex.justify-content-between {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 12px !important;
  }

  .pm-card .btn-pm-outline, 
  .pm-card .btn-pm-primary,
  .btn-pm-primary,
  .btn-pm-outline {
    width: 100% !important;
    text-align: center;
    white-space: normal !important;
    min-height: 48px !important;
  }

  .container {
    padding-left: 16px !important;
    padding-right: 16px !important;
  }
}
