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

/* Override Bootstrap defaults with modern colors */
:root {
  /* Primary Colors - Deep Blue */
  --bs-primary: #2563eb;
  --bs-primary-rgb: 37, 99, 235;
  --primary-50: #eff6ff;
  --primary-100: #dbeafe;
  --primary-200: #bfdbfe;
  --primary-300: #93c5fd;
  --primary-400: #60a5fa;
  --primary-500: #3b82f6;
  --primary-600: #2563eb;
  --primary-700: #1d4ed8;
  --primary-800: #1e40af;
  --primary-900: #1e3a8a;
  
  /* Secondary Colors */
  --bs-secondary: #6c757d;
  --bs-secondary-rgb: 108, 117, 125;
  
  /* Success Colors */
  --bs-success: #22c55e;
  --bs-success-rgb: 34, 197, 94;
  
  /* Info Colors */
  --bs-info: #06b6d4;
  --bs-info-rgb: 6, 182, 212;
  
  /* Warning Colors */
  --bs-warning: #f59e0b;
  --bs-warning-rgb: 245, 158, 11;
  
  /* Danger Colors */
  --bs-danger: #ef4444;
  --bs-danger-rgb: 239, 68, 68;
  
  /* Light/Dark */
  --bs-light: #f8fafc;
  --bs-light-rgb: 248, 250, 252;
  --bs-dark: #1e293b;
  --bs-dark-rgb: 30, 41, 59;
  
  /* Gray Scale */
  --gray-50: #f8fafc;
  --gray-100: #f1f5f9;
  --gray-200: #e2e8f0;
  --gray-300: #cbd5e1;
  --gray-400: #94a3b8;
  --gray-500: #64748b;
  --gray-600: #475569;
  --gray-700: #334155;
  --gray-800: #1e293b;
  --gray-900: #0f172a;
}

/* Base styles */
body {
  font-family: 'Inter', system-ui, sans-serif;
  line-height: 1.6;
  color: var(--gray-800);
  background-color: var(--gray-50);
}

/* Logo Icon Styling */
.logo-icon {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--primary-600), var(--primary-700));
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
}

/* User Avatar Styling */
.user-avatar {
  width: 32px;
  height: 32px;
  background: linear-gradient(135deg, var(--primary-100), var(--primary-200));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.user-initial {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--primary-600);
}

/* Enhanced Navigation */
.navbar-brand {
  font-weight: 700;
  color: var(--gray-900) !important;
  text-decoration: none;
  transition: color 0.2s ease-in-out;
}

.navbar-brand:hover {
  color: var(--primary-600) !important;
}

.nav-link {
  font-weight: 500;
  color: var(--gray-600) !important;
  padding: 0.5rem 1rem !important;
  border-radius: 0.5rem;
  transition: all 0.2s ease-in-out;
  margin: 0 0.25rem;
}

.nav-link:hover {
  color: var(--primary-600) !important;
  background-color: var(--primary-50);
}

.nav-link.active {
  color: var(--primary-700) !important;
  background-color: var(--primary-100);
}

/* Enhanced Buttons */
.btn {
  font-weight: 600;
  border-radius: 0.5rem;
  padding: 0.75rem 1.5rem;
  transition: all 0.2s ease-in-out;
  border: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary-600), var(--primary-700));
  border: none;
  box-shadow: 0 4px 14px 0 rgba(37, 99, 235, 0.3);
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--primary-700), var(--primary-800));
  box-shadow: 0 8px 25px 0 rgba(37, 99, 235, 0.4);
  transform: translateY(-2px);
  border: none;
}

.btn-outline-primary {
  border: 2px solid var(--primary-600);
  color: var(--primary-600);
  background-color: transparent;
}

.btn-outline-primary:hover {
  background: linear-gradient(135deg, var(--primary-600), var(--primary-700));
  color: white;
  border-color: var(--primary-600);
  transform: translateY(-2px);
}

.btn-outline-secondary {
  border: 2px solid var(--gray-400);
  color: var(--gray-600);
  background-color: transparent;
}

.btn-outline-secondary:hover {
  background-color: var(--gray-100);
  color: var(--gray-700);
  border-color: var(--gray-400);
}

.btn-light {
  background-color: white;
  color: var(--primary-600);
  border: none;
  box-shadow: 0 4px 14px 0 rgba(255, 255, 255, 0.3);
}

.btn-light:hover {
  background-color: var(--gray-100);
  color: var(--primary-700);
  transform: translateY(-2px);
}

.btn-outline-light {
  border: 2px solid white;
  color: white;
  background-color: transparent;
}

.btn-outline-light:hover {
  background-color: white;
  color: var(--primary-600);
  border-color: white;
}

.btn-link {
  color: var(--gray-600);
  text-decoration: none;
  border: none;
  background: none;
  transition: all 0.2s ease-in-out;
}

.btn-link:hover {
  color: var(--primary-600);
  text-decoration: none;
  background-color: var(--primary-50);
  border-radius: 0.5rem;
}

/* Enhanced Cards */
.card {
  border: 1px solid var(--gray-200);
  border-radius: 1rem;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  transition: all 0.3s ease-in-out;
  position: relative;
  overflow: hidden;
  background-color: white;
}

.card:hover {
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  transform: translateY(-4px);
}

.card.border-primary {
  border-color: var(--primary-600) !important;
  border-width: 2px;
}

.card.border-success {
  border-color: var(--bs-success) !important;
  border-width: 2px;
}

/* Enhanced Forms */
.form-control {
  border: 2px solid var(--gray-300);
  border-radius: 0.5rem;
  padding: 0.75rem 1rem;
  font-size: 0.875rem;
  transition: all 0.2s ease-in-out;
}

.form-control:focus {
  border-color: var(--primary-500);
  box-shadow: 0 0 0 0.25rem rgba(37, 99, 235, 0.1);
}

.form-label {
  font-weight: 600;
  color: var(--gray-700);
  margin-bottom: 0.5rem;
}

/* Enhanced Dropdowns */
.dropdown-menu {
  border: 1px solid var(--gray-200);
  border-radius: 0.75rem;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  padding: 0.5rem;
}

.dropdown-item {
  border-radius: 0.5rem;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  transition: all 0.2s ease-in-out;
}

.dropdown-item:hover {
  background-color: var(--primary-50);
  color: var(--primary-600);
}

.dropdown-divider {
  margin: 0.5rem 0;
  border-color: var(--gray-200);
}

 
/* Enhanced Navbar */
.navbar {
  padding: 1rem 0;
  backdrop-filter: blur(10px);
  background-color: rgba(255, 255, 255, 0.95) !important;
}

.navbar-toggler {
  border: none;
  padding: 0.25rem 0.5rem;
}

.navbar-toggler:focus {
  box-shadow: none;
}

/* Enhanced Badges */
.badge {
  font-weight: 600;
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
}

.badge.bg-primary {
  background: linear-gradient(135deg, var(--primary-600), var(--primary-700)) !important;
}

/* Enhanced Accordion */
.accordion-button {
  font-weight: 600;
  color: var(--gray-800);
  background-color: white;
  border: none;
  border-radius: 0.5rem !important;
}

.accordion-button:not(.collapsed) {
  background-color: var(--primary-50);
  color: var(--primary-700);
  box-shadow: none;
}

.accordion-button:focus {
  box-shadow: 0 0 0 0.25rem rgba(37, 99, 235, 0.1);
}

.accordion-body {
  color: var(--gray-600);
}

/* Footer Enhancements */
footer {
  background-color: white;
  border-top: 1px solid var(--gray-200);
}

.hover-primary {
  transition: color 0.2s ease-in-out;
}

.hover-primary:hover {
  color: var(--primary-600) !important;
}

/* Utility Classes */
.text-primary-600 {
  color: var(--primary-600) !important;
}

.bg-primary-50 {
  background-color: var(--primary-50) !important;
}

.bg-primary-100 {
  background-color: var(--primary-100) !important;
}

.border-primary-600 {
  border-color: var(--primary-600) !important;
}

/* Hero Section Enhancements */
.hero-gradient {
  background: linear-gradient(135deg, var(--primary-600), var(--primary-700));
}

/* Responsive Enhancements */
@media (max-width: 991.98px) {
  .navbar-nav {
    padding-top: 1rem;
  }

  .nav-link {
    margin: 0.25rem 0;
  }

  .d-flex.align-items-center {
    flex-direction: column;
    align-items: flex-start !important;
    gap: 1rem;
    padding-top: 1rem;
    margin-top: 1rem;
  }

  /* Center CTA buttons on mobile */
  .hero-banner .btn,
  .bg-primary .btn {
    margin-left: auto !important;
    margin-right: auto !important;
    display: block;
    width: fit-content;
  }

  /* Keep footer logo and powered-by items inline on mobile */
  footer .d-flex.align-items-center {
    flex-direction: row !important;
    align-items: center !important;
    border-top: none !important;
    padding-top: 0 !important;
    margin-top: 0 !important;
  }

  .powered-by {
    flex-wrap: nowrap !important;
  }
}

/* Animation Classes */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

.animate-fade-in {
  animation: fadeIn 0.6s ease-out;
}

.animate-slide-up {
  animation: slideUp 0.3s ease-out;
}

/* Loading States */
.btn.loading {
  position: relative;
  color: transparent;
}

.btn.loading::after {
  content: '';
  position: absolute;
  width: 16px;
  height: 16px;
  top: 50%;
  left: 50%;
  margin-left: -8px;
  margin-top: -8px;
  border: 2px solid transparent;
  border-top-color: currentColor;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Focus States for Accessibility */
.btn:focus,
.nav-link:focus,
.dropdown-item:focus {
  outline: 2px solid var(--primary-500);
  outline-offset: 2px;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--gray-100);
}

::-webkit-scrollbar-thumb {
  background: var(--gray-400);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--gray-500);
}

.lead{
  text-indent: 3rem;
}

/* Print Styles */
@media print {
  .navbar,
  footer,
  .dropdown {
    display: none !important;
  }

  body {
    font-size: 12pt;
    line-height: 1.4;
  }

  .card {
    border: 1px solid #000;
    box-shadow: none;
  }
}

/* ============================ */
/* UNIQUE MAP-THEMED ENHANCEMENTS */
/* ============================ */

/* Animated Map Grid Background Pattern */
@keyframes mapGridMove {
  0% {
    background-position: 0 0, 50px 50px;
  }
  100% {
    background-position: 50px 50px, 100px 100px;
  }
}

.map-grid-bg {
  position: relative;
  overflow: hidden;
}

.map-grid-bg::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image:
    linear-gradient(rgba(37, 99, 235, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(37, 99, 235, 0.03) 1px, transparent 1px);
  background-size: 50px 50px;
  animation: mapGridMove 20s linear infinite;
  opacity: 0.5;
  pointer-events: none;
  z-index: 0;
}

/* Hero Section with Animated Gradient */
.hero-banner {
  position: relative;
  overflow: hidden;
}

.hero-banner::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.1) 0%, transparent 70%);
  animation: pulseGlow 15s ease-in-out infinite;
  pointer-events: none;
  z-index: 1;
}

@keyframes pulseGlow {
  0%, 100% {
    transform: translate(0, 0) scale(1);
    opacity: 0.3;
  }
  50% {
    transform: translate(10%, 10%) scale(1.1);
    opacity: 0.5;
  }
}

/* Enhanced Cards with Map Pin Theme */
.card {
  position: relative;
  overflow: hidden;
}

/* Map Pin Icon Effect on Feature Cards */
.bg-primary.bg-opacity-10 {
  position: relative;
  transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.bg-primary.bg-opacity-10:hover {
  transform: translateY(-8px) scale(1.05);
  background: linear-gradient(135deg, var(--primary-100), var(--primary-200)) !important;
  box-shadow: 0 12px 24px rgba(37, 99, 235, 0.2);
}

.bg-primary.bg-opacity-10::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
  border-top: 8px solid transparent;
  transition: all 0.4s ease;
  opacity: 0;
}

.bg-primary.bg-opacity-10:hover::after {
  opacity: 1;
  border-top-color: var(--primary-200);
}

/* Navigation Path Effect */
.nav-link {
  position: relative;
  overflow: hidden;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--primary-400), var(--primary-600));
  transform: translateX(-100%);
  transition: transform 0.3s ease;
  border-radius: 2px 2px 0 0;
}

.nav-link:hover::after,
.nav-link.active::after {
  transform: translateX(0);
}

/* Directional Arrow Animation for Buttons */
.btn-primary,
.btn-outline-primary {
  position: relative;
  overflow: hidden;
}

.btn-primary::before,
.btn-outline-primary::before {
  content: '→';
  position: absolute;
  right: 1rem;
  opacity: 0;
  transform: translateX(-10px);
  transition: all 0.3s ease;
  font-weight: bold;
}

.btn-primary:hover::before,
.btn-outline-primary:hover::before {
  opacity: 1;
  transform: translateX(0);
}

.btn-primary:hover,
.btn-outline-primary:hover {
  padding-right: 2.5rem;
}

/* Wayfinding Path Divider */
.section-divider {
  position: relative;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 3rem 0;
}

.section-divider::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg,
    transparent 0%,
    var(--primary-200) 20%,
    var(--primary-400) 50%,
    var(--primary-200) 80%,
    transparent 100%);
}

.section-divider::after {
  content: '◆';
  position: relative;
  background: white;
  color: var(--primary-600);
  padding: 0 1rem;
  font-size: 1.2rem;
  z-index: 1;
}

/* Location Pin Markers */
.location-marker {
  display: inline-block;
  width: 10px;
  height: 10px;
  background: var(--primary-600);
  border-radius: 50%;
  position: relative;
  animation: markerPulse 2s ease-in-out infinite;
}

.location-marker::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: var(--primary-600);
  animation: markerRipple 2s ease-out infinite;
}

@keyframes markerPulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.2);
  }
}

@keyframes markerRipple {
  0% {
    width: 100%;
    height: 100%;
    opacity: 0.8;
  }
  100% {
    width: 300%;
    height: 300%;
    opacity: 0;
  }
}

/* Enhanced Pricing Cards with Route Theme */
.card[data-plan-type] {
  position: relative;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Compass Rose Background for CTAs */
.bg-primary {
  position: relative;
  overflow: hidden;
}

.bg-primary::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 400px;
  height: 400px;
  transform: translate(-50%, -50%) rotate(0deg);
  background: radial-gradient(circle, rgba(255, 255, 255, 0.05) 0%, transparent 70%);
  border: 2px dashed rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  animation: compassRotate 60s linear infinite;
  pointer-events: none;
}

@keyframes compassRotate {
  from {
    transform: translate(-50%, -50%) rotate(0deg);
  }
  to {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

/* Floor Plan Grid Pattern for Sections */
.floor-plan-pattern {
  position: relative;
  background-image:
    repeating-linear-gradient(0deg, transparent, transparent 49px, rgba(37, 99, 235, 0.04) 49px, rgba(37, 99, 235, 0.04) 50px),
    repeating-linear-gradient(90deg, transparent, transparent 49px, rgba(37, 99, 235, 0.04) 49px, rgba(37, 99, 235, 0.04) 50px);
}

/* Interactive Image Overlay Effect */
.card img,
.position-relative img {
  transition: transform 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}

.card:hover img {
  transform: scale(1.08);
}

/* Badge with Location Pin Design */
.badge {
  position: relative;
  padding-left: 1.75rem;
}

.badge.bg-primary::before {
  content: '📍';
  position: absolute;
  left: 0.5rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.9em;
}

/* Breadcrumb Trail Effect */
.breadcrumb-trail {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 0;
}

.breadcrumb-trail::before {
  content: '';
  flex: 1;
  height: 2px;
  background: linear-gradient(90deg, var(--primary-400), transparent);
}

/* Navbar Glass Effect Enhancement */
.navbar {
  background: rgba(255, 255, 255, 0.85) !important;
  backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid rgba(37, 99, 235, 0.1);
  box-shadow: 0 4px 24px rgba(37, 99, 235, 0.06);
}

/* Feature Icon Glow */
.bi {
  transition: all 0.3s ease;
}

.bg-primary.bg-opacity-10:hover .bi {
  filter: drop-shadow(0 0 8px rgba(37, 99, 235, 0.4));
  animation: iconFloat 2s ease-in-out infinite;
}

@keyframes iconFloat {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-4px);
  }
}

/* Smooth Page Transitions */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

section {
  animation: fadeInUp 0.8s ease-out;
}

section:nth-child(even) {
  animation-delay: 0.1s;
}

section:nth-child(odd) {
  animation-delay: 0.2s;
}

/* Video Container Enhancement */
video {
  border: none;
  transition: border-color 0.3s ease;
}

video:hover {
  border-color: transparent;
}

/* Form Focus State with Map Theme */
.form-control:focus {
  border-color: var(--primary-500);
  box-shadow:
    0 0 0 0.25rem rgba(37, 99, 235, 0.1),
    0 0 20px rgba(37, 99, 235, 0.05);
  transform: translateY(-2px);
}

/* Footer Link Hover with Navigation Effect */
footer a {
  position: relative;
  transition: all 0.3s ease;
}

footer a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary-600);
  transition: width 0.3s ease;
}

footer a:hover::after {
  width: 100%;
}

/* Tooltip Style Enhancement */
[data-bs-toggle="tooltip"] {
  cursor: help;
  border-bottom: 1px dotted var(--primary-400);
}

/* Success/Error Message Animations */
@keyframes slideInRight {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

.alert {
  animation: slideInRight 0.4s ease-out;
  border-left: 4px solid currentColor;
}

/* Mobile Optimized Enhancements */
@media (max-width: 768px) {
  .hero-banner::after {
    animation-duration: 10s;
  }

  .bg-primary::before {
    width: 200px;
    height: 200px;
  }

  .card:hover {
    transform: translateY(-6px);
  }
}

/* Reduce Motion for Accessibility */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

