/* Midnight Fortress Architecture Studio - Custom Styles */

:root {
  --primary-color: #1A237E;
  --secondary-color: #FFC107;
  --dark-navy: #0D1444;
  --light-navy: #283593;
  --accent-amber: #FFD54F;
  --text-light: #E8EAF6;
  --shadow-color: rgba(26, 35, 126, 0.3);
  --gradient-dark: linear-gradient(135deg, #0D1444 0%, #1A237E 100%);
  --gradient-light: linear-gradient(135deg, #283593 0%, #3949AB 100%);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  color: #333;
  background-color: #f8f9fa;
  overflow-x: hidden;
}

/* Navbar Styles */
.navbar {
  background: var(--gradient-dark) !important;
  box-shadow: 0 4px 20px var(--shadow-color);
  padding: 1rem 0;
  transition: all 0.3s ease;
}

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

.navbar-brand {
  color: var(--secondary-color) !important;
  font-size: 1.5rem;
  font-weight: 700;
  transition: transform 0.3s ease;
}

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

.navbar-brand .bi {
  margin-right: 0.5rem;
  font-size: 1.8rem;
  vertical-align: middle;
}

.navbar-dark .navbar-nav .nav-link {
  color: var(--text-light) !important;
  font-weight: 500;
  padding: 0.5rem 1rem !important;
  margin: 0 0.25rem;
  border-radius: 5px;
  transition: all 0.3s ease;
  position: relative;
}

.navbar-dark .navbar-nav .nav-link:hover,
.navbar-dark .navbar-nav .nav-link.active {
  background-color: var(--light-navy) !important;
  color: var(--secondary-color) !important;
  transform: translateY(-2px);
}

.navbar-dark .navbar-nav .nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60%;
  height: 3px;
  background-color: var(--secondary-color);
  border-radius: 2px;
}

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

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

/* Hero Section */
.hero-section {
  background: var(--gradient-dark);
  min-height: 100vh;
  position: relative;
  padding: 120px 0 80px;
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="%231A237E" fill-opacity="0.3" d="M0,96L48,112C96,128,192,160,288,160C384,160,480,128,576,122.7C672,117,768,139,864,138.7C960,139,1056,117,1152,96C1248,75,1344,53,1392,42.7L1440,32L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>');
  background-size: cover;
  opacity: 0.3;
  animation: waveAnimation 20s ease-in-out infinite;
}

@keyframes waveAnimation {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(-50px); }
}

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

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

.hero-section .display-2 {
  color: #ffffff !important;
  font-weight: 800;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5);
  margin-bottom: 1.5rem;
}

.hero-section .display-6 {
  color: var(--secondary-color) !important;
  font-weight: 600;
  text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.3);
}

.hero-section .lead {
  color: var(--text-light) !important;
  font-size: 1.2rem;
  line-height: 1.8;
  margin-bottom: 2rem;
}

.hero-section .bi {
  margin-right: 0.5rem;
  vertical-align: middle;
}

/* Emergency CTA */
.emergency-cta {
  background: rgba(255, 193, 7, 0.15) !important;
  border: 2px solid var(--secondary-color);
  border-radius: 12px;
  backdrop-filter: blur(10px);
  animation: pulse 2s infinite;
  transition: all 0.3s ease;
}

.emergency-cta:hover {
  background: rgba(255, 193, 7, 0.25) !important;
  transform: scale(1.02);
  box-shadow: 0 8px 30px rgba(255, 193, 7, 0.4);
}

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

.warning-lights {
  animation: blink 1.5s infinite;
}

@keyframes blink {
  0%, 50%, 100% { opacity: 1; }
  25%, 75% { opacity: 0.5; }
}

.emergency-cta .bi-exclamation-triangle-fill {
  color: var(--secondary-color) !important;
  font-size: 2rem;
}

.emergency-cta .h4 {
  color: #ffffff !important;
  font-weight: 700;
}

/* Buttons */
.btn {
  border-radius: 8px;
  padding: 0.75rem 2rem;
  font-weight: 600;
  transition: all 0.3s ease;
  border: 2px solid transparent;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.btn-lg {
  padding: 1rem 2.5rem;
  font-size: 1.1rem;
}

.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
}

.btn-light {
  background-color: #ffffff !important;
  color: var(--primary-color) !important;
  border: 2px solid #ffffff !important;
}

.btn-light:hover {
  background-color: var(--secondary-color) !important;
  color: var(--primary-color) !important;
  border-color: var(--secondary-color) !important;
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(255, 193, 7, 0.4);
}

.btn-outline-light {
  color: #ffffff !important;
  border: 2px solid #ffffff !important;
  background-color: transparent !important;
}

.btn-outline-light:hover {
  background-color: #ffffff !important;
  color: var(--primary-color) !important;
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(255, 255, 255, 0.3);
}

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

.btn-outline-primary:hover {
  background-color: var(--primary-color) !important;
  color: #ffffff !important;
  transform: translateY(-3px);
  box-shadow: 0 10px 25px var(--shadow-color);
}

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

.btn-outline-secondary:hover {
  background-color: var(--secondary-color) !important;
  color: var(--primary-color) !important;
  transform: translateY(-3px);
}

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

.btn-link {
  color: var(--primary-color) !important;
  text-decoration: none !important;
}

.btn-link:hover {
  color: var(--secondary-color) !important;
  text-decoration: underline !important;
}

/* Badge Showcase */
.badge-showcase {
  position: relative;
  z-index: 2;
}

.stat-box {
  background: rgba(255, 255, 255, 0.1) !important;
  backdrop-filter: blur(10px);
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: 15px;
  transition: all 0.3s ease;
  color: #ffffff !important;
}

.stat-box:hover {
  background: rgba(255, 255, 255, 0.2) !important;
  transform: translateY(-10px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
  border-color: var(--secondary-color);
}

.stat-box .bi {
  font-size: 3rem;
  color: var(--secondary-color) !important;
  margin-bottom: 1rem;
  display: inline-block;
  animation: float 3s ease-in-out infinite;
}

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

.stat-box .h4 {
  color: #ffffff !important;
  font-weight: 700;
  margin-top: 1rem;
}

.stat-box .small {
  color: var(--text-light) !important;
  font-size: 0.9rem;
}

/* Service Cards */
.service-card {
  background: #ffffff;
  border-radius: 15px;
  padding: 2.5rem 2rem;
  transition: all 0.4s ease;
  border: 2px solid #e0e0e0;
  height: 100%;
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 5px;
  background: var(--gradient-light);
  transform: scaleX(0);
  transition: transform 0.4s ease;
}

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

.service-card:hover {
  transform: translateY(-15px);
  box-shadow: 0 20px 50px var(--shadow-color);
  border-color: var(--primary-color);
}

.service-card .bi {
  font-size: 3.5rem;
  color: var(--primary-color) !important;
  margin-bottom: 1.5rem;
  display: inline-block;
  transition: all 0.3s ease;
}

.service-card:hover .bi {
  color: var(--secondary-color) !important;
  transform: scale(1.1) rotate(5deg);
}

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

.service-card p {
  color: #666 !important;
  line-height: 1.8;
  margin-bottom: 1.5rem;
}

.service-card .btn {
  margin-top: auto;
}

/* Cards */
.card {
  border: none !important;
  border-radius: 15px;
  overflow: hidden;
  transition: all 0.3s ease;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

.card-img-top {
  transition: transform 0.5s ease;
}

.card:hover .card-img-top {
  transform: scale(1.1);
}

.card-body {
  padding: 2rem;
}

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

.card-text {
  color: #666 !important;
  line-height: 1.8;
}

.card-header {
  background-color: var(--primary-color) !important;
  color: #ffffff !important;
  font-weight: 700;
  padding: 1.25rem;
  border: none !important;
}

.card-footer {
  background-color: #f8f9fa !important;
  border-top: 1px solid #dee2e6 !important;
  padding: 1.25rem;
}

/* Section Styling */
section {
  padding: 80px 0;
  position: relative;
}

section .display-4,
section .display-5 {
  color: var(--primary-color) !important;
  font-weight: 800;
  margin-bottom: 1rem;
  position: relative;
  display: inline-block;
}

section .display-4::after,
section .display-5::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 80px;
  height: 4px;
  background: var(--secondary-color);
  border-radius: 2px;
}

section .h3,
section .h5 {
  color: var(--primary-color) !important;
  font-weight: 700;
}

section .lead {
  color: #666 !important;
  font-size: 1.2rem;
  line-height: 1.8;
}

.bg-light {
  background-color: #f8f9fa !important;
}

/* Images */
.img-fluid {
  max-width: 100%;
  height: auto;
  transition: transform 0.3s ease;
}

.img-fluid:hover {
  transform: scale(1.02);
}

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

.shadow {
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1) !important;
}

.shadow-lg {
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15) !important;
}

.shadow-sm {
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08) !important;
}

/* Badges */
.badge {
  padding: 0.5rem 1rem;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.85rem;
}

.bg-success {
  background-color: #28a745 !important;
  color: #ffffff !important;
}

.bg-warning {
  background-color: #ffc107 !important;
  color: #000000 !important;
}

.bg-danger {
  background-color: #dc3545 !important;
  color: #ffffff !important;
}

.bg-info {
  background-color: #17a2b8 !important;
  color: #ffffff !important;
}

.bg-secondary {
  background-color: #6c757d !important;
  color: #ffffff !important;
}

/* Lists */
.list-unstyled {
  padding-left: 0;
  list-style: none;
}

.list-unstyled li {
  padding: 0.5rem 0;
  color: #666;
  transition: all 0.2s ease;
}

.list-unstyled li:hover {
  color: var(--primary-color);
  padding-left: 5px;
}

.list-unstyled .bi {
  margin-right: 0.75rem;
  color: var(--secondary-color) !important;
}

.list-group-item {
  border: 1px solid #dee2e6;
  padding: 1rem 1.25rem;
  transition: all 0.3s ease;
}

.list-group-item:hover {
  background-color: #f8f9fa;
  border-color: var(--primary-color);
  transform: translateX(5px);
}

.list-group-item .bi {
  margin-right: 1rem;
  color: var(--primary-color) !important;
}

/* Carousel */
.carousel {
  border-radius: 15px;
  overflow: hidden;
}

.carousel-item {
  padding: 3rem;
  background: var(--gradient-dark);
  min-height: 400px;
  display: flex;
  align-items: center;
}

.carousel-item .bi-quote {
  font-size: 4rem;
  color: var(--secondary-color) !important;
  opacity: 0.3;
  margin-bottom: 1rem;
}

.carousel-item p {
  color: #ffffff !important;
  font-size: 1.3rem;
  line-height: 1.8;
  font-style: italic;
}

.carousel-control-prev,
.carousel-control-next {
  width: 5%;
  opacity: 1;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
  background-color: var(--secondary-color);
  border-radius: 50%;
  padding: 1.5rem;
}

.carousel-indicators button {
  background-color: var(--secondary-color) !important;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  margin: 0 5px;
}

/* Forms */
.form-label {
  color: var(--primary-color) !important;
  font-weight: 600;
  margin-bottom: 0.5rem;
  display: block;
}

.form-control,
.form-select {
  border: 2px solid #dee2e6;
  border-radius: 8px;
  padding: 0.75rem 1rem;
  transition: all 0.3s ease;
  background-color: #ffffff;
}

.form-control:focus,
.form-select:focus {
  border-color: var(--primary-color) !important;
  box-shadow: 0 0 0 0.2rem rgba(26, 35, 126, 0.25) !important;
  background-color: #ffffff;
}

.form-control::placeholder {
  color: #999;
}

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

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

.form-check-label {
  color: #666 !important;
  margin-left: 0.5rem;
  cursor: pointer;
}

/* Alerts */
.alert {
  border-radius: 10px;
  padding: 1.25rem;
  border: 2px solid transparent;
  margin-bottom: 1.5rem;
}

.alert .bi {
  margin-right: 0.75rem;
  font-size: 1.3rem;
}

.alert-warning {
  background-color: #fff3cd !important;
  border-color: var(--secondary-color) !important;
  color: #856404 !important;
}

/* Tables */
.table-responsive {
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.table {
  margin-bottom: 0;
  background-color: #ffffff;
}

.table thead {
  background-color: var(--primary-color) !important;
  color: #ffffff !important;
}

.table thead th {
  border: none !important;
  padding: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.table tbody tr {
  transition: all 0.2s ease;
}

.table tbody tr:hover {
  background-color: #f8f9fa;
  transform: scale(1.01);
}

.table tbody td {
  padding: 1rem;
  vertical-align: middle;
  border-color: #dee2e6 !important;
}

.table-bordered {
  border: 2px solid #dee2e6 !important;
}

/* Progress */
.progress {
  height: 25px;
  border-radius: 12px;
  background-color: #e9ecef;
  overflow: hidden;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.progress-bar {
  background: var(--gradient-light) !important;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: width 0.6s ease;
}

/* Accordion */
.accordion-item {
  border: 2px solid #dee2e6 !important;
  border-radius: 10px !important;
  margin-bottom: 1rem;
  overflow: hidden;
}

.accordion-header {
  margin-bottom: 0;
}

.accordion-button {
  background-color: #ffffff !important;
  color: var(--primary-color) !important;
  font-weight: 700;
  font-size: 1.1rem;
  padding: 1.25rem 1.5rem;
  border: none !important;
}

.accordion-button:not(.collapsed) {
  background-color: var(--primary-color) !important;
  color: #ffffff !important;
  box-shadow: none !important;
}

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

.accordion-button::after {
  filter: brightness(0) invert(1);
}

.accordion-button:not(.collapsed)::after {
  filter: brightness(0) invert(1);
}

.accordion-body {
  padding: 1.5rem;
  background-color: #f8f9fa;
  color: #666 !important;
  line-height: 1.8;
}

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

/* Input Groups */
.input-group {
  border-radius: 8px;
  overflow: hidden;
}

.input-group .form-control {
  border-radius: 0;
}

.input-group .btn {
  border-radius: 0;
}

/* Text Colors */
.text-white {
  color: #ffffff !important;
}

.text-white-50 {
  color: rgba(255, 255, 255, 0.5) !important;
}

.text-muted {
  color: #6c757d !important;
}

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

.text-danger {
  color: #dc3545 !important;
}

/* Social Links */
.social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 45px;
  height: 45px;
  background-color: var(--primary-color);
  color: #ffffff !important;
  border-radius: 50%;
  margin: 0 0.5rem;
  transition: all 0.3s ease;
  text-decoration: none !important;
}

.social-links a:hover {
  background-color: var(--secondary-color);
  color: var(--primary-color) !important;
  transform: translateY(-5px) rotate(5deg);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.social-links .bi {
  font-size: 1.3rem;
}

/* Footer */
footer {
  background: var(--gradient-dark);
  color: var(--text-light) !important;
  padding: 60px 0 20px;
  margin-top: 80px;
}

footer .h5 {
  color: var(--secondary-color) !important;
  font-weight: 700;
  margin-bottom: 1.5rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

footer p,
footer li,
footer a {
  color: var(--text-light) !important;
  line-height: 1.8;
}

footer a {
  text-decoration: none !important;
  transition: all 0.3s ease;
  display: inline-block;
}

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

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

footer .border-top {
  border-top: 1px solid rgba(255, 255, 255, 0.1) !important;
  margin-top: 3rem;
  padding-top: 2rem;
}

/* Before After Slider */
.before-after-slider {
  position: relative;
  width: 100%;
  height: 400px;
  overflow: hidden;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

/* Service Details */
.service-details {
  background-color: #ffffff;
  padding: 2rem;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  margin-top: 1rem;
}

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

.service-details p {
  color: #666 !important;
  line-height: 1.8;
}

/* Expand Text */
.expand-text {
  cursor: pointer;
  color: var(--primary-color) !important;
  font-weight: 600;
  transition: all 0.3s ease;
}

.expand-text:hover {
  color: var(--secondary-color) !important;
}

.expand-text .bi {
  transition: transform 0.3s ease;
  margin-left: 0.5rem;
}

.expand-text.active .bi {
  transform: rotate(180deg);
}

/* Ratio */
.ratio {
  position: relative;
  width: 100%;
}

.ratio::before {
  display: block;
  padding-top: var(--bs-aspect-ratio);
  content: "";
}

.ratio > * {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.ratio-16x9 {
  --bs-aspect-ratio: 56.25%;
}

/* Step Indicator */
.step-indicator {
  display: flex;
  justify-content: space-between;
  margin-bottom: 2rem;
}

.step-indicator .bi {
  font-size: 2.5rem;
  color: #dee2e6 !important;
  transition: all 0.3s ease;
}

.step-indicator .bi.active {
  color: var(--primary-color) !important;
  transform: scale(1.2);
}

.step-indicator .bi.completed {
  color: var(--secondary-color) !important;
}

/* Form Steps */
.form-step {
  display: none;
  animation: fadeIn 0.5s ease;
}

.form-step.active {
  display: block;
}

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

/* Position Utilities */
.position-relative {
  position: relative !important;
}

.position-absolute {
  position: absolute !important;
}

.position-fixed {
  position: fixed !important;
  z-index: 1030;
}

.position-sticky {
  position: sticky !important;
  top: 0;
  z-index: 1020;
}

.bottom-0 {
  bottom: 0 !important;
}

.end-0 {
  right: 0 !important;
}

/* Border Utilities */
.border-bottom {
  border-bottom: 1px solid #dee2e6 !important;
}

.border-top {
  border-top: 1px solid #dee2e6 !important;
}

.border-start {
  border-left: 4px solid var(--primary-color) !important;
}

.border-5 {
  border-width: 5px !important;
}

.border-0 {
  border: 0 !important;
}

/* Blockquote */
blockquote {
  padding: 1.5rem;
  background-color: #f8f9fa;
  border-left: 5px solid var(--secondary-color);
  border-radius: 0 10px 10px 0;
  margin: 2rem 0;
}

.blockquote-footer {
  color: #6c757d !important;
  font-size: 0.9rem;
  margin-top: 1rem;
}

.fst-italic {
  font-style: italic !important;
}

/* Responsive Design */
@media (max-width: 991.98px) {
  .navbar-collapse {
    background-color: rgba(13, 20, 68, 0.98);
    padding: 1rem;
    border-radius: 10px;
    margin-top: 1rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  }
  
  .navbar-nav .nav-link {
    padding: 0.75rem 1rem !important;
    margin: 0.25rem 0;
  }
  
  .hero-section {
    padding: 80px 0 60px;
    min-height: auto;
  }
  
  .hero-section .display-2 {
    font-size: 2.5rem;
  }
  
  .hero-section .display-6 {
    font-size: 1.5rem;
  }
  
  .emergency-cta {
    margin-top: 2rem;
  }
  
  .service-card {
    margin-bottom: 2rem;
  }
  
  section {
    padding: 60px 0;
  }
  
  .stat-box {
    margin-bottom: 1rem;
  }
}

@media (max-width: 767.98px) {
  .hero-section .display-2 {
    font-size: 2rem;
  }
  
  .display-4 {
    font-size: 2rem !important;
  }
  
  .display-5 {
    font-size: 1.5rem !important;
  }
  
  .btn {
    padding: 0.65rem 1.5rem;
    font-size: 0.95rem;
  }
  
  .carousel-item {
    padding: 2rem 1rem;
    min-height: 300px;
  }
  
  .service-card .bi {
    font-size: 2.5rem;
  }
  
  .social-links a {
    width: 40px;
    height: 40px;
    margin: 0 0.25rem;
  }
}

@media (max-width: 575.98px) {
  .hero-section .display-2 {
    font-size: 1.75rem;
  }
  
  .hero-section .lead {
    font-size: 1rem;
  }
  
  .emergency-cta {
    padding: 1.5rem !important;
  }
  
  .btn-lg {
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
  }
  
  section {
    padding: 40px 0;
  }
  
  .stat-box .bi {
    font-size: 2rem;
  }
  
  .stat-box .h4 {
    font-size: 1.25rem;
  }
}

/* Print Styles */
@media print {
  .navbar,
  .btn,
  footer,
  .carousel-control-prev,
  .carousel-control-next,
  .carousel-indicators {
    display: none !important;
  }
  
  body {
    background: white;
    color: black;
  }
  
  a {
    text-decoration: underline;
  }
}

/* Accessibility */
.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

/* Focus States */
*:focus {
  outline: 3px solid var(--secondary-color);
  outline-offset: 2px;
}

button:focus,
.btn:focus,
a:focus {
  outline: 3px solid var(--secondary-color);
  outline-offset: 2px;
}

/* Smooth Transitions */
* {
  transition: color 0.2s ease, background-color 0.2s ease;
}

/* Loading Animation */
.loading {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: #ffffff;
  animation: spin 1s ease-in-out infinite;
}

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

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

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

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

::-webkit-scrollbar-thumb:hover {
  background: var(--light-navy);
}

/* Selection */
::selection {
  background-color: var(--secondary-color);
  color: var(--primary-color);
}

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