/* WMS Brand CSS Variables - Matching Business Card/Marketing Materials */
:root {
  /* Brand Colors - Extracted from marketing materials */
  --wms-red: #c53030;           /* Primary red from WHEEL text */
  --wms-blue: #1e3a8a;          /* Navy blue from flag stars */
  --wms-flag-red: #dc2626;      /* Flag red stripes */
  --wms-flag-blue: #1e40af;     /* Flag blue field */
  --wms-dark: #1f2937;          /* Dark text */
  --wms-gray: #6b7280;          /* Secondary text */
  --wms-light: #f8fafc;         /* Light background */
  --wms-white: #ffffff;         /* Pure white */
  --wms-silver: #9ca3af;        /* Wheel silver/gray */
  
  /* Typography - Matching business card style */
  --font-primary: 'Inter', 'Segoe UI', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-heading: 'Inter', 'Segoe UI', sans-serif;
  --font-mono: 'Roboto Mono', 'Monaco', 'Menlo', monospace;
  
  /* Spacing */
  --header-height: 85px;
  --nav-height: 72px;
  
  /* Effects */
  --shadow-soft: 0 4px 24px rgba(0, 0, 0, 0.06);
  --shadow-medium: 0 8px 32px rgba(0, 0, 0, 0.12);
  --shadow-strong: 0 16px 48px rgba(0, 0, 0, 0.18);
  --shadow-patriotic: 0 8px 32px rgba(197, 48, 48, 0.15);
  --border-radius: 8px;
  
  /* Gradients */
  --gradient-patriotic: linear-gradient(135deg, var(--wms-flag-blue) 0%, var(--wms-flag-red) 100%);
  --gradient-red: linear-gradient(135deg, var(--wms-red) 0%, var(--wms-flag-red) 100%);
}

/* Typography */
body {
  font-family: var(--font-primary);
  line-height: 1.6;
  color: var(--wms-dark);
  background: linear-gradient(180deg, 
    rgba(247, 248, 251, 1) 0%, 
    rgba(255, 255, 255, 1) 100%);
  min-height: 100vh;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.2;
  margin-bottom: 1rem;
}

h1 { font-size: 3.5rem; font-weight: 800; }
h2 { font-size: 2.5rem; font-weight: 700; }
h3 { font-size: 2rem; font-weight: 600; }

.hero-title {
  font-size: 4.2rem;
  font-weight: 800;
  letter-spacing: -0.05em;
  line-height: 1.1;
  background: var(--gradient-patriotic);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 1.25rem;
  font-weight: 400;
  color: var(--wms-gray);
  line-height: 1.7;
}

.display-large {
  font-size: 5rem;
  font-weight: 900;
  letter-spacing: -0.05em;
}

/* Navbar Spacing Fix */
.navbar.fixed-top { 
  height: var(--nav-height); 
}

.main-content { 
  padding-top: calc(var(--nav-height) + 12px); 
  scroll-margin-top: var(--nav-height); 
}

.hero, .page-hero { 
  margin-top: 0; 
}

/* Brand Utilities */
.text-wms { color: var(--wms-red) !important; }
.text-wms-red { color: var(--wms-red) !important; }
.text-wms-blue { color: var(--wms-blue) !important; }
.text-wms-flag-red { color: var(--wms-flag-red) !important; }
.text-wms-flag-blue { color: var(--wms-flag-blue) !important; }
.text-wms-gray { color: var(--wms-gray) !important; }
.text-wms-dark { color: var(--wms-dark) !important; }
.text-wms-silver { color: var(--wms-silver) !important; }

.bg-wms { 
  background-color: var(--wms-red) !important; 
  color: white !important;
}
.bg-wms-red { 
  background-color: var(--wms-red) !important; 
  color: white !important;
}
.bg-wms-blue { 
  background-color: var(--wms-blue) !important; 
  color: white !important;
}
.bg-wms-flag-red { 
  background-color: var(--wms-flag-red) !important; 
  color: white !important;
}
.bg-wms-flag-blue { 
  background-color: var(--wms-flag-blue) !important; 
  color: white !important;
}
.bg-wms-light { 
  background-color: var(--wms-light) !important; 
}
.bg-wms-dark { 
  background-color: var(--wms-dark) !important; 
  color: white !important;
}

/* Patriotic Gradient Backgrounds */
.bg-patriotic {
  background: var(--gradient-patriotic) !important;
  color: white !important;
}

.bg-patriotic-red {
  background: var(--gradient-red) !important;
  color: white !important;
}

/* Buttons */
.btn {
  border-radius: var(--border-radius);
  font-weight: 600;
  letter-spacing: 0.025em;
  transition: all 0.3s ease;
  border: none;
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: left 0.5s ease;
}

.btn:hover::before {
  left: 100%;
}

.btn-wms {
  background: linear-gradient(135deg, var(--wms-flag-blue) 0%, var(--wms-flag-red) 100%);
  border: 2px solid var(--wms-flag-blue);
  color: white;
  font-weight: 700;
  padding: 12px 32px;
  font-size: 1.1rem;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(30, 64, 175, 0.3);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
  text-decoration: none;
}

.btn-wms:hover {
  background: linear-gradient(135deg, var(--wms-flag-red) 0%, var(--wms-red) 100%);
  border-color: var(--wms-red);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(197, 48, 48, 0.4);
  text-decoration: none;
}

.btn-wms-outline {
  background-color: transparent;
  border: 2px solid var(--wms-red);
  color: var(--wms-red);
  font-weight: 700;
  padding: 12px 32px;
  font-size: 1.1rem;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(197, 48, 48, 0.2);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
  text-decoration: none;
}

.btn-wms-outline:hover {
  background: var(--wms-red);
  border-color: var(--wms-red);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(197, 48, 48, 0.4);
  text-decoration: none;
}

.btn-lg {
  padding: 16px 40px !important;
  font-size: 1.25rem !important;
  border-radius: 10px !important;
}

.btn-wms.btn-lg {
  padding: 16px 40px;
  font-size: 1.25rem;
  border-radius: 10px;
}

.btn-wms-outline.btn-lg {
  padding: 16px 40px;
  font-size: 1.25rem;
  border-radius: 10px;
}

/* Utility Classes */
.shadow-soft { box-shadow: var(--shadow-soft); }
.shadow-medium { box-shadow: var(--shadow-medium); }
.shadow-strong { box-shadow: var(--shadow-strong); }

/* Navigation */
.navbar-brand img {
  height: 48px;
  width: auto;
}

.navbar {
  background: var(--wms-dark) !important;
  backdrop-filter: none;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.3);
  border-bottom: 3px solid var(--wms-red);
  padding: 1rem 0;
  min-height: var(--header-height);
  transition: all 0.3s ease;
  z-index: 1100; /* ensure it sits above hero/content on mobile */
}

.navbar.scrolled {
  background: var(--wms-dark) !important;
  box-shadow: 0 4px 25px rgba(0, 0, 0, 0.4);
  border-bottom-color: var(--wms-red);
}

.navbar-brand {
  font-weight: 800;
  color: var(--wms-white) !important;
  text-decoration: none;
  transition: opacity 0.3s ease;
}

.navbar-brand:hover {
  opacity: 0.9;
}

.brand-logo {
  width: 50px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.flag-accent {
  position: absolute;
  top: -2px;
  left: -5px;
  width: 12px;
  height: 8px;
  background: linear-gradient(
    to bottom,
    var(--wms-flag-blue) 0%,
    var(--wms-flag-blue) 40%,
    var(--wms-flag-red) 60%,
    var(--wms-flag-red) 100%
  );
  border-radius: 2px;
  opacity: 0.8;
}

.brand-text {
  line-height: 1;
}

.brand-main {
  line-height: 0.9;
}

.brand-sub {
  line-height: 1;
  margin-top: -2px;
}

.navbar-nav .nav-link {
  font-weight: 500;
  color: var(--wms-white) !important;
  padding: 0.75rem 1rem !important;
  border-radius: 6px;
  margin: 0 0.25rem;
  transition: all 0.3s ease;
  position: relative;
}

.navbar-nav .nav-link:hover {
  color: var(--wms-white) !important;
  background-color: var(--wms-red);
  transform: translateY(-1px);
}

.navbar-nav .nav-link.active {
  color: var(--wms-white) !important;
  background-color: var(--wms-red);
  font-weight: 700;
}

.navbar-nav .nav-link i {
  font-size: 0.85rem;
  opacity: 0.8;
}

.navbar-toggler {
  border: 2px solid var(--wms-white) !important;
  padding: 0.5rem;
  border-radius: 6px;
}

.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 1%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
}

.navbar-toggler:focus {
  box-shadow: none;
}

/* Dropdown Menu Styling */
.dropdown-menu {
  background-color: var(--wms-dark);
  border: 1px solid var(--wms-red);
  box-shadow: var(--shadow-strong);
  border-radius: 8px;
  padding: 0.5rem;
  margin-top: 0.5rem;
}

.dropdown-item {
  color: var(--wms-white);
  border-radius: 6px;
  padding: 0.5rem 1rem;
  transition: all 0.3s ease;
}

.dropdown-item:hover,
.dropdown-item:focus {
  background-color: var(--wms-red);
  color: var(--wms-white);
}

.dropdown-divider {
  border-color: rgba(255, 255, 255, 0.2);
  margin: 0.5rem 0;
}

/* Hero Section */
.hero {
  background: linear-gradient(135deg, var(--wms-light) 0%, white 100%);
  padding: 120px 0 100px;
  position: relative;
  overflow: hidden;
}

.hero .container {
  position: relative;
  z-index: 2;
}

/* Hero Image Styling */
.hero-image-container {
  position: relative;
  max-width: 400px;
  margin: 0 auto;
  margin-bottom: 2rem;
}

.hero-image {
  width: 100%;
  height: auto;
  border: 3px solid var(--wms-red);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  max-width: 360px;
  max-height: 360px;
  object-fit: cover;
  border-radius: 1rem;
}

.hero-image:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-strong);
}

/* Hero Image Placeholder */
.hero-image-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 360px;
  height: 360px;
  max-width: 100%;
  background: linear-gradient(135deg, var(--wms-light) 0%, white 100%);
  border: 3px solid var(--wms-red);
  border-radius: 1rem;
  box-shadow: var(--shadow-strong);
  margin: 0 auto;
}

.wheel-icon-large {
  font-size: 8rem;
  color: var(--wms-red);
  opacity: 0.7;
}

.hero-stats-overlay {
  border-radius: 0 0 1rem 1rem !important;
  background: rgba(31, 41, 55, 0.9) !important;
  backdrop-filter: blur(8px);
}

.hero-stat-number {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--wms-red);
  line-height: 1;
}

.hero-stat-label {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: white;
  opacity: 0.9;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--wms-gray);
  margin-bottom: 2rem;
  font-weight: 400;
  line-height: 1.7;
}

/* Welcome Badge */
.welcome-badge .badge {
  font-size: 0.9rem;
  letter-spacing: 0.025em;
  border: 2px solid rgba(197, 48, 48, 0.3);
  box-shadow: var(--shadow-patriotic);
}

/* Value Propositions */
.value-props {
  font-size: 1rem;
}

.value-props .fas {
  font-size: 1.1rem;
  color: var(--wms-flag-red);
}

/* Trust Badges */
.trust-badge {
  text-align: center;
  padding: 1rem 0.5rem;
  transition: transform 0.3s ease;
  min-height: 120px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.trust-badge:hover {
  transform: translateY(-2px);
}

.trust-badge-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 0.75rem;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-soft);
  border: 2px solid rgba(255, 255, 255, 0.2);
  font-size: 1.25rem;
  flex-shrink: 0;
}

.trust-badge h6 {
  font-size: 0.9rem;
  margin-bottom: 0.25rem;
  color: var(--wms-dark);
  font-weight: 600;
  line-height: 1.2;
}

.trust-badge small {
  font-size: 0.8rem;
  line-height: 1.2;
  color: var(--wms-gray);
}

/* Cards */
.card {
  border: 1px solid rgba(31, 63, 138, 0.1);
  border-radius: 16px;
  box-shadow: 0 4px 25px rgba(0,0,0,0.08);
  transition: all 0.3s ease;
  overflow: hidden;
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 40px rgba(31, 63, 138, 0.15);
}

.card-header {
  background: linear-gradient(135deg, var(--wms-red) 0%, var(--wms-flag-red) 100%);
  color: white;
  border: none;
  font-weight: 600;
}

.card-body {
  padding: 2rem;
}

/* Feature Icons */
.feature-icon {
  width: 70px;
  height: 70px;
  background: linear-gradient(135deg, var(--wms-red), var(--wms-flag-red));
  color: white;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  margin-bottom: 1rem;
  transition: all 0.3s ease;
  box-shadow: var(--shadow-medium);
}

.feature-icon:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 25px rgba(197, 48, 48, 0.3);
}

/* Stats/KPI Cards */
.kpi-card {
  background: linear-gradient(135deg, var(--wms-blue), var(--wms-flag-blue));
  color: white;
  border-radius: 16px;
  padding: 2rem;
  text-align: center;
  transition: all 0.3s ease;
}

.kpi-card.bg-wms {
  background: linear-gradient(135deg, var(--wms-red), var(--wms-flag-red));
}

.kpi-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(31, 63, 138, 0.2);
}

.kpi-number {
  font-size: 3rem;
  font-weight: 800;
  line-height: 1;
  margin-bottom: 0.5rem;
}

.kpi-label {
  opacity: 0.9;
  font-size: 1.1rem;
  font-weight: 500;
}

/* Forms */
.form-control {
  border: 2px solid #e9ecef;
  border-radius: 8px;
  padding: 12px 16px;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.form-control:focus {
  border-color: var(--wms-red);
  box-shadow: 0 0 0 0.2rem rgba(211, 47, 47, 0.15);
}

.form-label {
  font-weight: 600;
  color: var(--wms-dark);
  margin-bottom: 0.5rem;
}

/* Trust Badges */
.trust-badge {
  background: white;
  border-radius: 12px;
  padding: 1.5rem;
  text-align: center;
  box-shadow: 0 2px 15px rgba(0,0,0,0.08);
  transition: transform 0.3s ease;
}

.trust-badge:hover {
  transform: translateY(-4px);
}

.trust-badge-icon {
  width: 60px;
  height: 60px;
  background: var(--wms-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  color: var(--wms-red);
  font-size: 1.5rem;
}

/* Footer */
.footer {
  background: var(--wms-dark);
  color: white;
  padding: 4rem 0 2rem;
}

.footer h5 {
  color: white;
  margin-bottom: 1.5rem;
}

.footer a {
  color: var(--wms-accent-silver);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer a:hover {
  color: white;
}

.footer-bottom {
  border-top: 1px solid #333;
  padding-top: 2rem;
  margin-top: 3rem;
  text-align: center;
  color: var(--wms-accent-silver);
}

/* Responsive */
@media (max-width: 768px) {
  .hero-title {
    font-size: 2.5rem;
  }
  
  .hero-subtitle {
    font-size: 1.25rem;
  }
  
  .btn-lg {
    padding: 14px 28px;
    font-size: 1.1rem;
  }
  
  .kpi-number {
    font-size: 2rem;
  }
  
  .hero {
    padding: 80px 0 60px;
  }
  
  .hero-image-container {
    max-width: 300px;
    margin-bottom: 3rem;
  }
  
  .hero-image-placeholder {
    width: 300px;
    height: 300px;
  }
  
  .wheel-icon-large {
    font-size: 6rem;
  }
  
  .trust-badge {
    padding: 0.75rem 0.25rem;
    min-height: 100px;
  }
  
  .trust-badge-icon {
    width: 40px;
    height: 40px;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
  }
  
  .trust-badge h6 {
    font-size: 0.8rem;
    margin-bottom: 0.15rem;
  }
  
  .trust-badge small {
    font-size: 0.7rem;
  }
}

/* --- Mobile navbar readability overrides --- */
@media (max-width: 991.98px) {
  /* Prevent page content from colliding with absolute dropdown */
  body {
    padding-top: var(--header-height);
  }

  /* Solid dark background for collapsed panel */
  .navbar .navbar-collapse {
    background-color: #111 !important;
    box-shadow: 0 10px 24px rgba(0,0,0,.35);
    padding: 0.5rem 0.75rem;
    border-bottom: 1px solid rgba(255,255,255,.12);
    position: absolute;
    top: 100%;
    left: 0;
    width: 100vw;
    z-index: 1101; /* above navbar to cover content */
    max-height: calc(100vh - var(--header-height));
    overflow-y: auto;
  }

  /* Dropdowns rendered inside collapse */
  .navbar .dropdown-menu {
    background-color: #111 !important;
    border: 1px solid rgba(255,255,255,.12);
  }

  /* Links readable on dark background */
  .navbar .navbar-nav .nav-link,
  .navbar .dropdown-item {
    color: #fff !important;
    background: transparent;
  }

  /* Hover/focus states */
  .navbar .navbar-nav .nav-link:hover,
  .navbar .navbar-nav .nav-link:focus,
  .navbar .dropdown-item:hover,
  .navbar .dropdown-item:focus {
    color: var(--wms-red) !important;
    background-color: rgba(255,255,255,.08) !important;
  }

  /* Active/current page */
  .navbar .navbar-nav .nav-link.active,
  .navbar .dropdown-item.active {
    color: #fff !important;
    background-color: rgba(255,255,255,.14) !important;
  }

  /* Icons inherit link color */
  .navbar .navbar-nav .nav-link i,
  .navbar .dropdown-item i {
    color: currentColor !important;
  }

  /* Toggler contrast on dark background */
  .navbar .navbar-toggler {
    border-color: rgba(255,255,255,.35) !important;
  }

  .navbar .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(255,255,255,1)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
  }

  /* Ensure immediate container doesn't clip the collapse */
  .navbar + .container,
  .navbar + .container-fluid {
    overflow: visible !important;
  }
}

/* Utilities */
.shadow-wms {
  box-shadow: 0 8px 30px rgba(211, 47, 47, 0.12) !important;
}

.border-wms {
  border-color: var(--wms-red) !important;
}

.spacer-lg {
  padding: 100px 0;
}

.spacer-md {
  padding: 60px 0;
}

.spacer-sm {
  padding: 40px 0;
}

/* Code/ID Display */
.code-display {
  font-family: var(--font-mono);
  background: var(--wms-light);
  padding: 0.5rem 1rem;
  border-radius: 6px;
  font-size: 0.9rem;
  border: 1px solid #ddd;
}

/* Toast Notifications */
.toast {
  border-radius: 12px;
  border: none;
  box-shadow: 0 8px 30px rgba(0,0,0,0.15);
}

.toast-success {
  background: linear-gradient(135deg, #4caf50, #66bb6a);
  color: white;
}

.toast-error {
  background: linear-gradient(135deg, #f44336, #ef5350);
  color: white;
}

.toast-warning {
  background: linear-gradient(135deg, #ff9800, #ffb74d);
  color: white;
}

/* Loading States */
.loading {
  opacity: 0.6;
  pointer-events: none;
}

.spinner-wms {
  border: 3px solid rgba(211, 47, 47, 0.3);
  border-radius: 50%;
  border-top: 3px solid var(--wms-red);
  width: 40px;
  height: 40px;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Advanced Animations & Effects */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

@keyframes float {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-10px);
  }
}

@keyframes shimmer {
  0% {
    background-position: -200% 0;
  }
  100% {
    background-position: 200% 0;
  }
}

/* Enhanced Cards */
.card {
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--wms-red), var(--wms-blue), var(--wms-red));
  transition: left 0.5s ease;
}

.card:hover::before {
  left: 100%;
}

/* Trust Badge Enhancements */
.trust-badge-icon {
  position: relative;
  overflow: hidden;
}

.trust-badge-icon::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  transition: all 0.3s ease;
  transform: translate(-50%, -50%);
}

.trust-badge:hover .trust-badge-icon::before {
  width: 100%;
  height: 100%;
}

/* Patriotic Accent Lines */
.patriotic-divider {
  height: 6px;
  background: linear-gradient(90deg, 
    var(--wms-red) 0%, 
    var(--wms-red) 33%, 
    white 33%, 
    white 66%, 
    var(--wms-blue) 66%, 
    var(--wms-blue) 100%);
  border-radius: 3px;
  margin: 2rem 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  position: relative;
  z-index: 10;
}

/* Services Section Background Enhancement */
.spacer-lg {
  position: relative;
  overflow: visible;
  padding: 80px 0;
}

.spacer-lg::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 20% 80%, rgba(197, 48, 48, 0.08) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(30, 58, 138, 0.08) 0%, transparent 50%),
    radial-gradient(circle at 40% 40%, rgba(197, 48, 48, 0.05) 0%, transparent 50%);
  z-index: 1;
  pointer-events: none;
  opacity: 1;
  animation: backgroundFloat 8s ease-in-out infinite;
}

@keyframes backgroundFloat {
  0%, 100% { transform: translateY(0px) scale(1); }
  50% { transform: translateY(-10px) scale(1.02); }
}

.spacer-lg .container {
  position: relative;
  z-index: 2;
}

/* Enhanced Navbar */
.navbar-brand:hover {
  animation: pulse 0.5s ease-in-out;
}

/* Floating Elements */
.floating-element {
  animation: float 3s ease-in-out infinite;
}

.floating-element:nth-child(2) {
  animation-delay: 0.5s;
}

.floating-element:nth-child(3) {
  animation-delay: 1s;
}

/* Text Gradient Effects */
.text-gradient-patriotic {
  background: linear-gradient(45deg, var(--wms-red), var(--wms-blue));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 700;
}

/* Enhanced Hero Background */
.hero-bg-enhanced {
  background: 
    linear-gradient(135deg, rgba(197, 48, 48, 0.1) 0%, transparent 50%),
    linear-gradient(225deg, rgba(30, 58, 138, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 30% 70%, rgba(197, 48, 48, 0.05) 0%, transparent 50%),
    radial-gradient(circle at 70% 30%, rgba(30, 58, 138, 0.05) 0%, transparent 50%);
}

/* Scrolling Animations */
[data-animate] {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.6s ease;
}

[data-animate].animate-in {
  opacity: 1;
  transform: translateY(0);
}

/* Enhanced Form Styling */
.form-control:focus {
  border-color: var(--wms-red);
  box-shadow: 0 0 0 0.2rem rgba(197, 48, 48, 0.25);
  background: linear-gradient(90deg, 
    rgba(197, 48, 48, 0.02) 0%, 
    rgba(255, 255, 255, 1) 10%, 
    rgba(255, 255, 255, 1) 90%, 
    rgba(30, 58, 138, 0.02) 100%);
}

/* Section Spacing */
.spacer-lg {
  padding: 6rem 0;
}

.spacer-md {
  padding: 4rem 0;
}

.spacer-sm {
  padding: 2rem 0;
}

/* Enhanced Section Backgrounds */
section.bg-wms-light {
  background: linear-gradient(135deg, 
    rgba(247, 248, 251, 0.8) 0%, 
    rgba(255, 255, 255, 0.9) 50%, 
    rgba(240, 242, 247, 0.8) 100%);
  position: relative;
}

section.bg-wms-light::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: 
    radial-gradient(circle at 10% 20%, rgba(197, 48, 48, 0.03) 0%, transparent 50%),
    radial-gradient(circle at 90% 80%, rgba(30, 58, 138, 0.03) 0%, transparent 50%);
  pointer-events: none;
  z-index: 1;
}

section.bg-wms-light > .container {
  position: relative;
  z-index: 2;
}

/* Service Cards */
.service-card {
  transition: all 0.4s ease;
  border: 2px solid rgba(31, 63, 138, 0.1);
  height: 100%;
}

.service-card .card-body {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 300px;
  padding: 2rem 1.5rem;
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 45px rgba(31, 63, 138, 0.2);
  border-color: rgba(197, 48, 48, 0.3);
}

.service-card .feature-icon {
  transition: all 0.3s ease;
}

.service-card:hover .feature-icon {
  transform: scale(1.1);
  background: linear-gradient(135deg, var(--wms-flag-red), var(--wms-flag-blue));
}

.service-card h5 {
  margin-bottom: 1rem;
  font-size: 1.1rem;
}

.service-card p {
  flex-grow: 1;
  margin-bottom: 1.5rem;
}

.service-card .btn {
  margin-top: auto;
}

/* Professional Badge Styling */
.badge.bg-success {
  background: linear-gradient(135deg, #28a745, #20c997) !important;
  box-shadow: 0 2px 8px rgba(40, 167, 69, 0.3);
}

.badge.bg-primary {
  background: linear-gradient(135deg, var(--wms-blue), var(--wms-flag-blue)) !important;
  box-shadow: 0 2px 8px rgba(30, 58, 138, 0.3);
}

/* Wheel Grid Styling */
#wheel-grid .col-6 { 
  aspect-ratio: 1/1; 
}

.object-fit-cover { 
  object-fit: cover; 
}

/* Trust Badges - Prevent sliding behind next section */
#hero-trust {
  position: relative;
  z-index: 25;
  margin-bottom: 3rem;
}

#hero-trust .trust-card {
  position: relative;
  z-index: 26;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  margin-bottom: 0.5rem;
}

#hero-trust .trust-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* Hero section padding adjustment */
.hero {
  padding-bottom: 4rem;
}
