/* ===================================
   Architecture Studio - Deep Ocean Blue & Amber Horizon Theme
   Primary: #0D47A1 (Deep Ocean Blue)
   Secondary: #FF6F00 (Amber Horizon)
   =================================== */

/* === ROOT VARIABLES === */
:root {
  --primary-color: #0D47A1;
  --primary-dark: #08306b;
  --primary-light: #1565C0;
  --secondary-color: #FF6F00;
  --secondary-dark: #E65100;
  --secondary-light: #FF8F00;
  --text-dark: #1a1a1a;
  --text-light: #ffffff;
  --text-muted: #6c757d;
  --bg-light: #f8f9fa;
  --bg-dark: #0a0a0a;
  --shadow-sm: 0 2px 4px rgba(13, 71, 161, 0.1);
  --shadow-md: 0 4px 12px rgba(13, 71, 161, 0.15);
  --shadow-lg: 0 8px 24px rgba(13, 71, 161, 0.2);
  --transition-base: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* === GLOBAL STYLES === */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  color: var(--text-dark) !important;
  background-color: var(--bg-light) !important;
  line-height: 1.6;
  overflow-x: hidden;
}

/* === TYPOGRAPHY === */
h1, h2, h3, h4, h5, h6,
.display-3, .display-4, .display-5 {
  font-weight: 700 !important;
  color: var(--primary-color) !important;
  line-height: 1.2 !important;
}

.lead {
  font-size: 1.2rem !important;
  color: var(--text-dark) !important;
  opacity: 0.9;
}

.text-white,
.text-white h1,
.text-white h2,
.text-white h3,
.text-white h4,
.text-white h5,
.text-white h6,
.text-white .display-3,
.text-white .display-4,
.text-white .display-5,
.text-white p,
.text-white .lead {
  color: var(--text-light) !important;
}

.text-muted {
  color: var(--text-muted) !important;
}

.text-success {
  color: #28a745 !important;
}

.text-warning {
  color: #ffc107 !important;
}

/* === NAVIGATION BAR === */
.navbar {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-color) 100%) !important;
  box-shadow: var(--shadow-md);
  padding: 1rem 0 !important;
  transition: var(--transition-base);
  z-index: 1050;
}

.navbar.fixed-top {
  backdrop-filter: blur(10px);
}

.navbar-dark .navbar-brand {
  color: var(--text-light) !important;
  font-size: 1.75rem !important;
  font-weight: 700 !important;
  letter-spacing: 1px;
  transition: var(--transition-base);
}

.navbar-dark .navbar-brand:hover {
  color: var(--secondary-color) !important;
  transform: scale(1.05);
}

.navbar-toggler {
  border: 2px solid var(--secondary-color) !important;
  padding: 0.5rem 0.75rem !important;
}

.navbar-toggler:focus {
  box-shadow: 0 0 0 0.25rem rgba(255, 111, 0, 0.25) !important;
}

.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='%23FF6F00' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
}

.navbar-nav {
  gap: 0.5rem;
}

.nav-link {
  color: rgba(255, 255, 255, 0.9) !important;
  font-weight: 500 !important;
  padding: 0.5rem 1rem !important;
  border-radius: 6px;
  transition: var(--transition-base);
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--secondary-color);
  transform: translateX(-50%);
  transition: var(--transition-base);
}

.nav-link:hover,
.nav-link.active {
  color: var(--text-light) !important;
  background: rgba(255, 111, 0, 0.1) !important;
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 80%;
}

/* === HERO SECTION === */
.hero-section,
.hero-container {
  min-height: 100vh;
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-color) 50%, var(--primary-light) 100%);
  position: relative;
  overflow: hidden;
  padding-top: 80px;
}

.wave-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 150px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 120'%3E%3Cpath d='M0,50 C150,80 350,0 600,50 C850,100 1050,20 1200,50 L1200,120 L0,120 Z' fill='%23f8f9fa' opacity='0.3'/%3E%3C/svg%3E") repeat-x;
  background-size: cover;
  animation: wave 20s linear infinite;
}

@keyframes wave {
  0% { background-position: 0 0; }
  100% { background-position: 1200px 0; }
}

.hero-content,
.hero-content-left {
  position: relative;
  z-index: 2;
  animation: fadeInUp 1s ease-out;
}

.hero-content h1,
.hero-content-left h1,
.hero-content .display-3,
.hero-content-left .display-3 {
  color: var(--text-light) !important;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
  margin-bottom: 1.5rem !important;
}

.hero-content p,
.hero-content-left p,
.hero-content .lead,
.hero-content-left .lead {
  color: rgba(255, 255, 255, 0.95) !important;
  font-size: 1.3rem !important;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
}

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

/* === BUTTONS === */
.btn {
  border-radius: 8px !important;
  font-weight: 600 !important;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 0.75rem 2rem !important;
  transition: var(--transition-base);
  border: none !important;
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.btn:hover::before {
  width: 300px;
  height: 300px;
}

.btn-lg {
  padding: 1rem 3rem !important;
  font-size: 1.1rem !important;
}

.btn-sm {
  padding: 0.5rem 1.5rem !important;
  font-size: 0.9rem !important;
}

.btn-primary {
  background: linear-gradient(135deg, var(--secondary-color), var(--secondary-dark)) !important;
  color: var(--text-light) !important;
  box-shadow: var(--shadow-md);
}

.btn-primary:hover,
.btn-primary:focus {
  background: linear-gradient(135deg, var(--secondary-dark), var(--secondary-color)) !important;
  color: var(--text-light) !important;
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

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

.btn-outline-primary:hover,
.btn-outline-primary:focus {
  background: var(--primary-color) !important;
  color: var(--text-light) !important;
  border-color: var(--primary-color) !important;
}

.btn-light {
  background: var(--text-light) !important;
  color: var(--primary-color) !important;
  box-shadow: var(--shadow-sm);
}

.btn-light:hover,
.btn-light:focus {
  background: var(--bg-light) !important;
  color: var(--primary-dark) !important;
  transform: translateY(-2px);
}

.btn-outline-light {
  border: 2px solid var(--text-light) !important;
  color: var(--text-light) !important;
  background: transparent !important;
}

.btn-outline-light:hover,
.btn-outline-light:focus {
  background: var(--text-light) !important;
  color: var(--primary-color) !important;
  border-color: var(--text-light) !important;
}

.btn-outline-secondary {
  border: 2px solid var(--secondary-color) !important;
  color: var(--secondary-color) !important;
  background: transparent !important;
}

.btn-outline-secondary:hover,
.btn-outline-secondary:focus {
  background: var(--secondary-color) !important;
  color: var(--text-light) !important;
  border-color: var(--secondary-color) !important;
}

/* === FLOATING CTA === */
.floating-cta {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 1040;
  animation: float 3s ease-in-out infinite;
}

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

/* === STAT CARDS === */
.stat-card,
.stat-tile {
  background: var(--text-light);
  border-radius: 12px;
  box-shadow: var(--shadow-md);
  transition: var(--transition-base);
  border: 2px solid transparent;
  padding: 2rem !important;
  text-align: center;
}

.stat-card:hover,
.stat-tile:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: var(--secondary-color);
}

.stat-card h3,
.stat-tile h3 {
  color: var(--secondary-color) !important;
  font-size: 2.5rem !important;
  font-weight: 700 !important;
  margin-bottom: 0.5rem !important;
}

.stat-card p,
.stat-tile p {
  color: var(--text-muted) !important;
  margin: 0 !important;
}

/* === SERVICE CARDS === */
.service-card {
  background: var(--text-light);
  border-radius: 12px;
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-base);
  border: 2px solid transparent;
  height: 100%;
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
  transform: scaleX(0);
  transform-origin: left;
  transition: var(--transition-base);
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-light);
}

.service-card:hover::before {
  transform: scaleX(1);
}

.service-card .bi-container,
.service-card .bi {
  color: var(--secondary-color) !important;
  font-size: 3rem !important;
  margin-bottom: 1rem;
}

.service-card h3 {
  color: var(--primary-color) !important;
  font-size: 1.5rem !important;
  margin-bottom: 1rem !important;
}

.service-card p {
  color: var(--text-dark) !important;
  line-height: 1.6;
}

/* === CAROUSEL / TESTIMONIALS === */
.testimonials-section {
  padding: 4rem 0;
  background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
}

.carousel {
  position: relative;
}

.carousel-inner {
  border-radius: 12px;
  overflow: hidden;
}

.carousel-item {
  transition: transform 0.6s ease-in-out;
}

.testimonial-card {
  background: var(--text-light);
  border-radius: 12px;
  padding: 3rem 2rem !important;
  box-shadow: var(--shadow-lg);
  margin: 2rem;
}

.testimonial-card .bi-star-fill {
  color: var(--secondary-color) !important;
  font-size: 1.2rem;
  margin-right: 0.25rem;
}

.testimonial-card p {
  color: var(--text-dark) !important;
  font-size: 1.1rem;
  line-height: 1.8;
  margin-bottom: 1.5rem;
}

.carousel-control-prev,
.carousel-control-next {
  width: 50px !important;
  height: 50px !important;
  background: var(--secondary-color) !important;
  border-radius: 50%;
  top: 50%;
  transform: translateY(-50%);
  opacity: 0.8 !important;
  transition: var(--transition-base);
}

.carousel-control-prev {
  left: -25px !important;
}

.carousel-control-next {
  right: -25px !important;
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
  opacity: 1 !important;
  transform: translateY(-50%) scale(1.1);
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
  filter: brightness(0) invert(1);
}

/* === MAP INTERFACE === */
.map-container,
.map-interface {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.map-container img,
.map-interface img {
  width: 100%;
  height: auto;
  display: block;
}

.pulse-dot,
.pulsing-dot {
  width: 20px;
  height: 20px;
  background: var(--secondary-color);
  border-radius: 50%;
  position: relative;
  animation: pulse 2s infinite;
  box-shadow: 0 0 0 0 rgba(255, 111, 0, 0.7);
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(255, 111, 0, 0.7);
  }
  70% {
    box-shadow: 0 0 0 20px rgba(255, 111, 0, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(255, 111, 0, 0);
  }
}

.pulsing-icon {
  animation: pulseScale 2s ease-in-out infinite;
}

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

/* === FILTER PANEL === */
.filter-panel {
  background: var(--text-light);
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: var(--shadow-md);
  margin-bottom: 2rem;
}

.filter-panel .bi-funnel {
  color: var(--primary-color) !important;
  margin-right: 0.5rem;
}

.route-filter {
  display: flex;
  align-items: center;
  margin-bottom: 1rem;
}

.route-checkbox {
  margin-right: 0.75rem;
  cursor: pointer;
}

.route-color-indicator {
  width: 20px;
  height: 20px;
  border-radius: 4px;
  margin-right: 0.5rem;
  border: 2px solid var(--primary-color);
}

/* === ZOOM CONTROLS === */
.zoom-controls {
  position: absolute;
  top: 20px;
  right: 20px;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  z-index: 10;
}

.zoom-btn {
  width: 40px;
  height: 40px;
  background: var(--text-light);
  border: none;
  border-radius: 8px;
  box-shadow: var(--shadow-md);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-base);
  color: var(--primary-color) !important;
  font-size: 1.2rem;
}

.zoom-btn:hover {
  background: var(--primary-color);
  color: var(--text-light) !important;
  transform: scale(1.1);
}

/* === LEGEND === */
.legend {
  background: var(--text-light);
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: var(--shadow-md);
  margin-top: 2rem;
}

.legend-item {
  display: flex;
  align-items: center;
  margin-bottom: 1rem;
}

.legend-item:last-child {
  margin-bottom: 0;
}

.vessel-icon,
.animated-vessel {
  width: 30px;
  height: 30px;
  margin-right: 1rem;
  border-radius: 50%;
  background: var(--secondary-color);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-light) !important;
}

/* === SIDE PANEL === */
.side-panel {
  position: fixed;
  top: 0;
  right: -400px;
  width: 400px;
  height: 100vh;
  background: var(--text-light);
  box-shadow: var(--shadow-lg);
  z-index: 1060;
  transition: right 0.3s ease-in-out;
  overflow-y: auto;
}

.side-panel.open {
  right: 0;
}

.panel-header {
  background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
  padding: 1.5rem;
  color: var(--text-light) !important;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.panel-header h3 {
  color: var(--text-light) !important;
  margin: 0 !important;
}

.panel-close {
  background: transparent;
  border: none;
  color: var(--text-light) !important;
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.5rem;
  transition: var(--transition-base);
}

.panel-close:hover {
  transform: rotate(90deg);
}

.panel-content {
  padding: 2rem;
}

/* === TIMELINE SECTION === */
.timeline-section {
  position: relative;
  padding: 4rem 0;
}

.timeline-section::before {
  content: '';
  position: absolute;
  left: 50px;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, var(--primary-color), var(--secondary-color));
}

.timeline-section .row {
  position: relative;
  margin-bottom: 3rem;
}

.timeline-section .rounded-circle {
  width: 60px;
  height: 60px;
  background: var(--secondary-color);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-light) !important;
  font-size: 1.5rem;
  font-weight: 700;
  box-shadow: var(--shadow-md);
  position: relative;
  z-index: 2;
}

/* === PARALLAX SECTIONS === */
.parallax-section,
.parallax-header {
  background-attachment: fixed;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  position: relative;
  min-height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.parallax-section::before,
.parallax-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(13, 71, 161, 0.8), rgba(255, 111, 0, 0.6));
}

.parallax-section .container,
.parallax-header .container {
  position: relative;
  z-index: 2;
}

.parallax-section h1,
.parallax-section h2,
.parallax-section h3,
.parallax-header h1,
.parallax-header h2,
.parallax-header h3 {
  color: var(--text-light) !important;
}

/* === FORMS === */
.form-label {
  color: var(--text-dark) !important;
  font-weight: 600 !important;
  margin-bottom: 0.5rem !important;
}

.form-control,
.form-control-lg,
.form-select {
  border: 2px solid #dee2e6 !important;
  border-radius: 8px !important;
  padding: 0.75rem 1rem !important;
  transition: var(--transition-base);
  color: var(--text-dark) !important;
  background: var(--text-light) !important;
}

.form-control:focus,
.form-control-lg:focus,
.form-select:focus {
  border-color: var(--primary-color) !important;
  box-shadow: 0 0 0 0.25rem rgba(13, 71, 161, 0.25) !important;
  outline: none !important;
}

.form-control-lg {
  padding: 1rem 1.25rem !important;
  font-size: 1.1rem !important;
}

.form-check-input {
  width: 1.25rem;
  height: 1.25rem;
  border: 2px solid var(--primary-color) !important;
  cursor: pointer;
  transition: var(--transition-base);
}

.form-check-input:checked {
  background-color: var(--secondary-color) !important;
  border-color: var(--secondary-color) !important;
}

.form-check-input:focus {
  box-shadow: 0 0 0 0.25rem rgba(255, 111, 0, 0.25) !important;
}

.form-check-label {
  color: var(--text-dark) !important;
  cursor: pointer;
  margin-left: 0.5rem;
}

/* === CARDS === */
.card {
  border: none !important;
  border-radius: 12px !important;
  box-shadow: var(--shadow-md) !important;
  transition: var(--transition-base);
  overflow: hidden;
}

.card:hover {
  box-shadow: var(--shadow-lg) !important;
  transform: translateY(-5px);
}

.card-body {
  padding: 2rem !important;
}

.card-title {
  color: var(--primary-color) !important;
  font-weight: 700 !important;
  margin-bottom: 1rem !important;
}

/* === BADGES === */
.badge {
  border-radius: 6px !important;
  padding: 0.5rem 1rem !important;
  font-weight: 600 !important;
  font-size: 0.9rem !important;
}

.badge.bg-primary {
  background: var(--primary-color) !important;
  color: var(--text-light) !important;
}

.badge.bg-secondary {
  background: var(--secondary-color) !important;
  color: var(--text-light) !important;
}

.badge.bg-success {
  background: #28a745 !important;
  color: var(--text-light) !important;
}

/* === PROGRESS BARS === */
.progress {
  height: 1.5rem !important;
  border-radius: 8px !important;
  background-color: #e9ecef !important;
  overflow: hidden;
}

.progress-bar {
  background: linear-gradient(90deg, var(--primary-color), var(--secondary-color)) !important;
  transition: width 1s ease-in-out;
  font-weight: 600 !important;
}

/* === ALERTS === */
.alert {
  border: none !important;
  border-radius: 8px !important;
  padding: 1rem 1.5rem !important;
  font-weight: 500 !important;
}

.alert-success {
  background: rgba(40, 167, 69, 0.1) !important;
  color: #155724 !important;
  border-left: 4px solid #28a745 !important;
}

.alert .bi {
  margin-right: 0.5rem;
  font-size: 1.2rem;
}

/* === ACCORDION === */
.accordion {
  border-radius: 12px;
  overflow: hidden;
}

.accordion-item {
  border: none !important;
  margin-bottom: 1rem;
  border-radius: 8px !important;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.accordion-header {
  margin: 0;
}

.accordion-button {
  background: var(--text-light) !important;
  color: var(--primary-color) !important;
  font-weight: 600 !important;
  padding: 1.25rem 1.5rem !important;
  border: none !important;
  transition: var(--transition-base);
}

.accordion-button:not(.collapsed) {
  background: linear-gradient(135deg, var(--primary-color), var(--primary-light)) !important;
  color: var(--text-light) !important;
  box-shadow: none !important;
}

.accordion-button:focus {
  box-shadow: none !important;
  border: none !important;
}

.accordion-button::after {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%230D47A1'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e") !important;
}

.accordion-button:not(.collapsed)::after {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23ffffff'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e") !important;
}

.accordion-body {
  padding: 1.5rem !important;
  background: var(--text-light) !important;
  color: var(--text-dark) !important;
}

/* === PRIVACY/CONTENT SECTIONS === */
.privacy-container,
.content-section {
  padding: 4rem 0;
}

.toc-sidebar {
  position: sticky;
  top: 100px;
  max-height: calc(100vh - 120px);
  overflow-y: auto;
  padding: 1.5rem;
  background: var(--text-light);
  border-radius: 12px;
  box-shadow: var(--shadow-md);
}

.toc-list {
  list-style: none;
  padding: 0;
}

.toc-link {
  display: block;
  padding: 0.5rem 1rem;
  color: var(--text-dark) !important;
  text-decoration: none !important;
  border-left: 3px solid transparent;
  transition: var(--transition-base);
  font-weight: 500;
}

.toc-link:hover,
.toc-link.active {
  color: var(--primary-color) !important;
  border-left-color: var(--secondary-color);
  background: rgba(13, 71, 161, 0.05);
  padding-left: 1.25rem;
}

.last-updated {
  color: var(--text-muted) !important;
  font-size: 0.9rem;
  font-style: italic;
}

.anchor-target {
  scroll-margin-top: 100px;
}

/* === FOOTER === */
footer {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-color) 100%);
  color: var(--text-light) !important;
  padding: 3rem 0 1rem;
  margin-top: 4rem;
}

footer h3,
footer h4,
footer h5,
footer .footer-heading {
  color: var(--text-light) !important;
  margin-bottom: 1rem !important;
  font-weight: 700 !important;
}

footer p,
footer li,
footer a {
  color: rgba(255, 255, 255, 0.9) !important;
}

footer .list-unstyled li {
  margin-bottom: 0.5rem;
}

footer a {
  text-decoration: none !important;
  transition: var(--transition-base);
  display: inline-block;
}

footer a:hover {
  color: var(--secondary-color) !important;
  transform: translateX(5px);
}

footer .bi {
  color: var(--secondary-color) !important;
  margin-right: 0.5rem;
}

footer .bi-linkedin:hover,
footer .bi-twitter:hover,
footer .bi-facebook:hover {
  color: var(--text-light) !important;
  transform: scale(1.2);
}

/* === UTILITY CLASSES === */
.shadow-sm {
  box-shadow: var(--shadow-sm) !important;
}

.shadow {
  box-shadow: var(--shadow-md) !important;
}

.shadow-lg {
  box-shadow: var(--shadow-lg) !important;
}

.bg-white {
  background: var(--text-light) !important;
}

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

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

.rounded {
  border-radius: 8px !important;
}

.rounded-circle {
  border-radius: 50% !important;
}

.fw-bold {
  font-weight: 700 !important;
}

.fw-semibold {
  font-weight: 600 !important;
}

.opacity-75 {
  opacity: 0.75 !important;
}

/* === BOOTSTRAP ICONS === */
.bi {
  display: inline-block;
  vertical-align: middle;
}

.bi-water,
.bi-compass,
.bi-shield-check,
.bi-clock,
.bi-house-check,
.bi-info-circle,
.bi-check-circle,
.bi-clock-fill,
.bi-headset,
.bi-truck,
.bi-check-circle-fill {
  color: var(--secondary-color) !important;
}

/* === RESPONSIVE DESIGN === */

/* Large Devices */
@media (max-width: 1200px) {
  .display-3 {
    font-size: 3rem !important;
  }
  
  .display-4 {
    font-size: 2.5rem !important;
  }
  
  .display-5 {
    font-size: 2rem !important;
  }
}

/* Medium Devices */
@media (max-width: 992px) {
  .navbar-collapse {
    background: rgba(13, 71, 161, 0.98);
    padding: 1rem;
    border-radius: 8px;
    margin-top: 1rem;
    box-shadow: var(--shadow-lg);
  }
  
  .nav-link {
    padding: 0.75rem 1rem !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }
  
  .nav-link:last-child {
    border-bottom: none;
  }
  
  .hero-section,
  .hero-container {
    min-height: auto;
    padding: 6rem 0 4rem;
  }
  
  .display-3 {
    font-size: 2.5rem !important;
  }
  
  .display-4 {
    font-size: 2rem !important;
  }
  
  .display-5 {
    font-size: 1.75rem !important;
  }
  
  .lead {
    font-size: 1.1rem !important;
  }
  
  .floating-cta {
    bottom: 20px;
    right: 20px;
  }
  
  .side-panel {
    width: 100%;
    right: -100%;
  }
  
  .timeline-section::before {
    left: 30px;
  }
  
  .toc-sidebar {
    position: static;
    margin-bottom: 2rem;
  }
}

/* Small Devices */
@media (max-width: 768px) {
  .navbar-brand {
    font-size: 1.5rem !important;
  }
  
  .hero-section,
  .hero-container {
    padding: 5rem 0 3rem;
  }
  
  .display-3 {
    font-size: 2rem !important;
  }
  
  .display-4 {
    font-size: 1.75rem !important;
  }
  
  .display-5 {
    font-size: 1.5rem !important;
  }
  
  .lead {
    font-size: 1rem !important;
  }
  
  .btn {
    padding: 0.65rem 1.5rem !important;
    font-size: 0.9rem !important;
  }
  
  .btn-lg {
    padding: 0.85rem 2rem !important;
    font-size: 1rem !important;
  }
  
  .stat-card,
  .stat-tile {
    padding: 1.5rem !important;
    margin-bottom: 1rem;
  }
  
  .service-card {
    margin-bottom: 1.5rem;
  }
  
  .testimonial-card {
    margin: 1rem;
    padding: 2rem 1.5rem !important;
  }
  
  .carousel-control-prev,
  .carousel-control-next {
    width: 40px !important;
    height: 40px !important;
  }
  
  .carousel-control-prev {
    left: 10px !important;
  }
  
  .carousel-control-next {
    right: 10px !important;
  }
  
  .floating-cta {
    bottom: 15px;
    right: 15px;
  }
  
  .parallax-section,
  .parallax-header {
    background-attachment: scroll;
    min-height: 300px;
  }
  
  .card-body {
    padding: 1.5rem !important;
  }
  
  footer {
    text-align: center;
  }
  
  footer .col-lg-2,
  footer .col-lg-3 {
    margin-bottom: 2rem;
  }
}

/* Extra Small Devices */
@media (max-width: 576px) {
  html {
    font-size: 14px;
  }
  
  .container-fluid {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }
  
  .navbar {
    padding: 0.75rem 0 !important;
  }
  
  .navbar-brand {
    font-size: 1.25rem !important;
  }
  
  .hero-section,
  .hero-container {
    padding: 4rem 0 2rem;
  }
  
  .display-3 {
    font-size: 1.75rem !important;
  }
  
  .display-4 {
    font-size: 1.5rem !important;
  }
  
  .display-5 {
    font-size: 1.25rem !important;
  }
  
  h1 {
    font-size: 1.75rem !important;
  }
  
  h2 {
    font-size: 1.5rem !important;
  }
  
  h3 {
    font-size: 1.25rem !important;
  }
  
  .btn {
    padding: 0.6rem 1.25rem !important;
    font-size: 0.85rem !important;
  }
  
  .btn-lg {
    padding: 0.75rem 1.75rem !important;
    font-size: 0.95rem !important;
  }
  
  .stat-card h3,
  .stat-tile h3 {
    font-size: 2rem !important;
  }
  
  .form-control,
  .form-select {
    padding: 0.65rem 0.85rem !important;
    font-size: 0.95rem !important;
  }
  
  .zoom-controls {
    top: 10px;
    right: 10px;
  }
  
  .zoom-btn {
    width: 35px;
    height: 35px;
    font-size: 1rem;
  }
}

/* Print Styles */
@media print {
  .navbar,
  .floating-cta,
  .zoom-controls,
  .filter-panel,
  .carousel-control-prev,
  .carousel-control-next,
  footer {
    display: none !important;
  }
  
  body {
    background: white !important;
    color: black !important;
  }
  
  .hero-section,
  .hero-container {
    background: white !important;
    min-height: auto !important;
    page-break-after: always;
  }
  
  .card,
  .service-card,
  .stat-card {
    box-shadow: none !important;
    border: 1px solid #ddd !important;
    page-break-inside: avoid;
  }
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

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

.slide-in-left {
  animation: slideInLeft 0.6s ease-out;
}

.slide-in-right {
  animation: slideInRight 0.6s ease-out;
}

/* Smooth Scrolling for all links */
a[href^="#"] {
  scroll-behavior: smooth;
}

/* Focus Visible for Accessibility */
*:focus-visible {
  outline: 3px solid var(--secondary-color) !important;
  outline-offset: 2px !important;
}

/* Selection Colors */
::selection {
  background: var(--secondary-color);
  color: var(--text-light);
}

::-moz-selection {
  background: var(--secondary-color);
  color: var(--text-light);
}

/* Scrollbar Styling */
::-webkit-scrollbar {
  width: 12px;
  height: 12px;
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
  background: var(--primary-color);
  border-radius: 6px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--primary-dark);
}

/* Loading State */
.loading {
  position: relative;
  pointer-events: none;
  opacity: 0.6;
}

.loading::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 30px;
  height: 30px;
  margin: -15px 0 0 -15px;
  border: 3px solid var(--text-light);
  border-top-color: var(--secondary-color);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

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