/* Racing Red & Carbon Architecture Studio Theme */

/* Root Variables */
:root {
  --primary-color: #D32F2F;
  --secondary-color: #212121;
  --accent-color: #FF5252;
  --dark-bg: #0A0A0A;
  --carbon-bg: #1A1A1A;
  --light-text: #FFFFFF;
  --gray-text: #B0B0B0;
  --success-color: #4CAF50;
  --warning-color: #FFC107;
  --danger-color: #D32F2F;
  --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --carbon-pattern: linear-gradient(45deg, #1a1a1a 25%, transparent 25%, transparent 75%, #1a1a1a 75%, #1a1a1a),
                    linear-gradient(45deg, #1a1a1a 25%, transparent 25%, transparent 75%, #1a1a1a 75%, #1a1a1a);
}

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

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

/* Carbon Fiber Background Pattern */
.bg-carbon {
  background: var(--carbon-pattern);
  background-size: 20px 20px, 20px 20px;
  background-position: 0 0, 10px 10px;
  background-color: var(--carbon-bg);
}

/* Navigation Styles */
.navbar {
  background: rgba(10, 10, 10, 0.95) !important;
  backdrop-filter: blur(10px);
  border-bottom: 2px solid var(--primary-color);
  transition: var(--transition-smooth);
  padding: 1rem 0 !important;
}

.navbar.scrolled {
  background: rgba(10, 10, 10, 0.98) !important;
  box-shadow: 0 4px 20px rgba(211, 47, 47, 0.3);
}

.navbar-brand {
  color: var(--light-text) !important;
  font-size: 1.8rem !important;
  font-weight: 800 !important;
  letter-spacing: -0.5px;
  position: relative;
  padding-left: 15px;
}

.navbar-brand::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 5px;
  height: 30px;
  background: var(--primary-color);
  box-shadow: 0 0 10px var(--primary-color);
}

.navbar-dark .navbar-toggler {
  border-color: var(--primary-color) !important;
  color: var(--primary-color) !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='%23D32F2F' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
}

.nav-link {
  color: var(--gray-text) !important;
  font-weight: 500 !important;
  font-size: 0.95rem !important;
  padding: 0.5rem 1.2rem !important;
  margin: 0 0.2rem;
  position: relative;
  transition: var(--transition-smooth) !important;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

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

.nav-link:hover,
.nav-link.active {
  color: var(--primary-color) !important;
}

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

/* Hero Section */
.hero-section {
  min-height: 100vh;
  background: linear-gradient(135deg, var(--dark-bg) 0%, var(--secondary-color) 100%);
  position: relative;
  display: flex;
  align-items: center;
  padding-top: 80px;
}

.hero-video-container {
  top: 0;
  left: 0;
  z-index: 0;
  opacity: 0.15;
  filter: grayscale(100%) contrast(150%);
}

.hero-video-container::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(211, 47, 47, 0.3) 0%, rgba(10, 10, 10, 0.8) 100%);
}

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

.hero-content .display-2 {
  font-weight: 900 !important;
  color: var(--light-text) !important;
  line-height: 1.2 !important;
  margin-bottom: 1.5rem !important;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-content .display-2::first-line {
  color: var(--primary-color) !important;
}

.hero-content .lead {
  font-size: 1.4rem !important;
  color: var(--gray-text) !important;
  font-weight: 400 !important;
  margin-bottom: 2rem !important;
}

/* Buttons */
.btn {
  border-radius: 0 !important;
  font-weight: 600 !important;
  text-transform: uppercase !important;
  letter-spacing: 1px !important;
  transition: var(--transition-smooth) !important;
  position: relative;
  overflow: hidden;
  border-width: 2px !important;
}

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

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

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

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

.btn-outline-light:hover {
  background: var(--primary-color) !important;
  border-color: var(--primary-color) !important;
  color: var(--light-text) !important;
  box-shadow: 0 0 20px rgba(211, 47, 47, 0.5) !important;
}

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

.btn-outline-dark:hover {
  background: var(--primary-color) !important;
  border-color: var(--primary-color) !important;
  color: var(--light-text) !important;
  box-shadow: 0 0 20px rgba(211, 47, 47, 0.5) !important;
}

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

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

.btn-outline-secondary {
  border-color: var(--gray-text) !important;
  color: var(--gray-text) !important;
  background: transparent !important;
}

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

.btn-sm {
  padding: 0.4rem 1rem !important;
  font-size: 0.85rem !important;
}

/* Scroll Indicator */
.bi-chevron-down {
  font-size: 2rem;
  color: var(--primary-color) !important;
  animation: bounce 2s infinite;
  cursor: pointer;
}

/* Stats Section */
.py-5 {
  padding: 4rem 0 !important;
}

.text-center {
  text-align: center !important;
}

.col-md-3,
.col-6 {
  transition: var(--transition-smooth);
}

.p-3 {
  padding: 1.5rem !important;
}

.bi-award-fill,
.bi-tools,
.bi-speedometer2,
.bi-shield-check,
.bi-lightning-charge-fill,
.bi-cpu-fill,
.bi-gear-wide-connected,
.bi-wrench-adjustable,
.bi-disc-fill,
.bi-clipboard-check-fill,
.bi-patch-check-fill,
.bi-star-fill,
.bi-geo-alt-fill,
.bi-telephone-fill,
.bi-envelope-fill,
.bi-check-circle-fill,
.bi-gear-fill,
.bi-laptop,
.bi-chat-square-quote-fill,
.bi-clock-history,
.bi-people-fill,
.bi-circle,
.bi-clipboard-check,
.bi-disc,
.bi-arrows-collapse,
.bi-lightning-charge,
.bi-thermometer-half,
.bi-info-circle,
.bi-file-earmark-text,
.bi-download,
.bi-clipboard-data,
.bi-graph-up,
.bi-exclamation-triangle,
.bi-check2,
.bi-exclamation-triangle-fill,
.bi-send-fill,
.bi-clock-fill,
.bi-map,
.bi-chat-quote-fill,
.bi-chevron-right,
.bi-wrench-adjustable-circle,
.bi-cookie,
.bi-lock-fill,
.bi-calendar-check,
.bi-printer,
.bi-database,
.bi-gear,
.bi-share,
.bi-shield-lock,
.bi-server,
.bi-person-badge,
.bi-person-check,
.bi-eye,
.bi-pencil,
.bi-trash,
.bi-envelope-slash,
.bi-file-earmark-arrow-down,
.bi-globe,
.bi-hourglass-split {
  color: var(--primary-color) !important;
  font-size: 3rem;
  margin-bottom: 1rem;
  filter: drop-shadow(0 0 10px rgba(211, 47, 47, 0.3));
}

.display-2,
.display-3,
.display-4,
.display-5,
.display-6 {
  font-weight: 800 !important;
  color: var(--light-text) !important;
}

.h4,
h4 {
  color: var(--light-text) !important;
  font-weight: 700 !important;
}

.mb-2,
.mb-3,
.mb-4,
.mb-5 {
  color: var(--light-text) !important;
}

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

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

/* Badge */
.badge {
  background: var(--primary-color) !important;
  color: var(--light-text) !important;
  font-weight: 600 !important;
  padding: 0.5rem 1rem !important;
  font-size: 0.85rem !important;
  letter-spacing: 1px !important;
  text-transform: uppercase !important;
  border-radius: 0 !important;
}

/* Cards */
.card {
  background: var(--carbon-bg) !important;
  border: 1px solid rgba(211, 47, 47, 0.2) !important;
  border-radius: 0 !important;
  transition: var(--transition-smooth) !important;
  overflow: hidden;
  position: relative;
}

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

.card:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 30px rgba(211, 47, 47, 0.3) !important;
  border-color: var(--primary-color) !important;
}

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

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

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

.card-text {
  color: var(--gray-text) !important;
  line-height: 1.8 !important;
}

/* Service Card */
.service-card {
  background: var(--carbon-bg) !important;
  padding: 2rem;
  border: 1px solid rgba(211, 47, 47, 0.2);
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
}

.service-card::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 100px;
  height: 100px;
  background: radial-gradient(circle, rgba(211, 47, 47, 0.1) 0%, transparent 70%);
  transform: translate(50%, -50%);
  transition: var(--transition-smooth);
}

.service-card:hover {
  border-color: var(--primary-color);
  box-shadow: 0 5px 20px rgba(211, 47, 47, 0.2);
}

.service-card:hover::after {
  width: 200px;
  height: 200px;
}

.service-details {
  margin-top: 1rem;
}

/* Team Card */
.team-card {
  position: relative;
  overflow: hidden;
  border-radius: 0 !important;
}

.team-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to top, rgba(10, 10, 10, 0.95) 0%, transparent 60%);
  transition: var(--transition-smooth);
}

.team-card:hover .team-overlay {
  background: linear-gradient(to top, rgba(211, 47, 47, 0.9) 0%, rgba(10, 10, 10, 0.7) 60%);
}

.team-hover {
  transform: translateY(20px);
  opacity: 0;
  transition: var(--transition-smooth);
}

.team-card:hover .team-hover {
  transform: translateY(0);
  opacity: 1;
}

/* Diagnostic Area Card */
.diagnostic-area-card {
  background: var(--carbon-bg);
  padding: 2rem;
  border: 2px solid rgba(211, 47, 47, 0.2) !important;
  transition: var(--transition-smooth);
  cursor: pointer;
}

.diagnostic-area-card:hover {
  border-color: var(--primary-color) !important;
  background: rgba(211, 47, 47, 0.1);
  transform: scale(1.02);
}

/* Timeline */
.timeline-container {
  position: relative;
  padding-left: 40px;
}

.milestone-item {
  position: relative;
  padding-bottom: 2rem;
}

.milestone-marker {
  position: absolute;
  left: -40px;
  top: 0;
  width: 20px;
  height: 20px;
  background: var(--primary-color);
  border-radius: 50%;
  border: 3px solid var(--dark-bg);
  box-shadow: 0 0 15px rgba(211, 47, 47, 0.5);
}

.milestone-line {
  position: absolute;
  left: -31px;
  top: 20px;
  width: 2px;
  height: calc(100% - 20px);
  background: linear-gradient(to bottom, var(--primary-color) 0%, transparent 100%);
}

/* Images */
.img-fluid {
  border-radius: 0 !important;
  transition: var(--transition-smooth);
}

.img-fluid:hover {
  transform: scale(1.05);
  filter: brightness(1.1);
}

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

.shadow-sm {
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3) !important;
}

.shadow-lg {
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.6) !important;
}

/* Hover Lift Effect */
.hover-lift {
  transition: var(--transition-smooth);
}

.hover-lift:hover {
  transform: translateY(-5px);
}

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

.form-control,
.form-select {
  background: var(--secondary-color) !important;
  border: 1px solid rgba(211, 47, 47, 0.3) !important;
  color: var(--light-text) !important;
  border-radius: 0 !important;
  padding: 0.75rem 1rem !important;
  transition: var(--transition-smooth) !important;
}

.form-control:focus,
.form-select:focus {
  background: var(--carbon-bg) !important;
  border-color: var(--primary-color) !important;
  color: var(--light-text) !important;
  box-shadow: 0 0 0 0.2rem rgba(211, 47, 47, 0.25) !important;
  outline: none !important;
}

.form-control::placeholder {
  color: var(--gray-text) !important;
}

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

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

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

.form-check-label {
  color: var(--light-text) !important;
}

.form-switch .form-check-input {
  border-radius: 2rem !important;
}

/* Calendar Widget */
.calendar-widget {
  background: var(--carbon-bg);
  padding: 1.5rem;
  border: 1px solid rgba(211, 47, 47, 0.2);
}

/* Modal */
.modal-content {
  background: var(--carbon-bg) !important;
  border: 2px solid var(--primary-color) !important;
  border-radius: 0 !important;
}

.modal-header {
  border-bottom: 1px solid rgba(211, 47, 47, 0.3) !important;
  background: var(--secondary-color) !important;
}

.modal-body {
  color: var(--light-text) !important;
}

.btn-close,
.btn-close-white {
  filter: invert(1) !important;
  opacity: 1 !important;
}

.btn-close:hover,
.btn-close-white:hover {
  filter: invert(1) brightness(0.7) !important;
}

/* Alerts */
.alert {
  border-radius: 0 !important;
  border-left: 4px solid !important;
  border-color: var(--primary-color) !important;
}

.alert-warning {
  background: rgba(255, 193, 7, 0.1) !important;
  color: var(--warning-color) !important;
  border-left-color: var(--warning-color) !important;
}

.alert-info {
  background: rgba(33, 150, 243, 0.1) !important;
  color: #2196F3 !important;
  border-left-color: #2196F3 !important;
}

.alert-success {
  background: rgba(76, 175, 80, 0.1) !important;
  color: var(--success-color) !important;
  border-left-color: var(--success-color) !important;
}

/* Tables */
.table-responsive {
  background: var(--carbon-bg);
  border-radius: 0;
}

.table {
  color: var(--light-text) !important;
  margin-bottom: 0 !important;
}

.table-bordered {
  border-color: rgba(211, 47, 47, 0.2) !important;
}

.table th,
.table td {
  border-color: rgba(211, 47, 47, 0.2) !important;
  padding: 1rem !important;
}

.table thead th {
  background: var(--secondary-color) !important;
  color: var(--primary-color) !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: 1px !important;
  font-size: 0.9rem !important;
}

.bg-danger {
  background: rgba(211, 47, 47, 0.2) !important;
}

.bg-success {
  background: rgba(76, 175, 80, 0.2) !important;
}

/* Accordion */
.accordion {
  background: transparent !important;
}

.accordion-item {
  background: var(--carbon-bg) !important;
  border: 1px solid rgba(211, 47, 47, 0.2) !important;
  border-radius: 0 !important;
  margin-bottom: 1rem !important;
}

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

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

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

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

.accordion-button::after {
  filter: invert(1) !important;
}

.accordion-collapse {
  border-top: 1px solid rgba(211, 47, 47, 0.2) !important;
}

.accordion-body {
  background: var(--carbon-bg) !important;
  color: var(--gray-text) !important;
  padding: 1.5rem !important;
}

/* List */
.list-unstyled {
  padding-left: 0 !important;
  list-style: none !important;
}

.list-unstyled li {
  padding: 0.5rem 0 !important;
  color: var(--gray-text) !important;
}

/* Links */
a {
  color: var(--primary-color) !important;
  text-decoration: none !important;
  transition: var(--transition-smooth) !important;
}

a:hover {
  color: var(--accent-color) !important;
  text-decoration: none !important;
}

.text-decoration-none {
  text-decoration: none !important;
}

/* Background Colors */
.bg-light {
  background: var(--carbon-bg) !important;
}

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

/* Text Colors */
.text-warning {
  color: var(--warning-color) !important;
}

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

.text-start {
  text-align: start !important;
}

.text-end {
  text-align: end !important;
}

/* Rounded Circle */
.rounded-circle {
  border-radius: 50% !important;
  border: 3px solid var(--primary-color);
}

.rounded {
  border-radius: 0.25rem !important;
}

/* Position Fixed */
.position-fixed {
  position: fixed !important;
  z-index: 1040;
}

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

/* Cookie Banner */
.position-fixed.bottom-0 {
  background: var(--secondary-color);
  border-top: 2px solid var(--primary-color);
  box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.5);
}

/* Footer */
footer {
  background: var(--secondary-color);
  border-top: 2px solid var(--primary-color);
  padding: 3rem 0 1rem;
  margin-top: 4rem;
}

footer h5 {
  color: var(--primary-color) !important;
  font-weight: 700 !important;
  margin-bottom: 1.5rem !important;
}

footer p,
footer li,
footer a {
  color: var(--gray-text) !important;
}

footer a:hover {
  color: var(--primary-color) !important;
}

/* Spacing Utilities */
.p-0 { padding: 0 !important; }
.p-3 { padding: 1rem !important; }
.p-4 { padding: 1.5rem !important; }
.p-5 { padding: 3rem !important; }
.px-3 { padding-left: 1rem !important; padding-right: 1rem !important; }
.px-4 { padding-left: 1.5rem !important; padding-right: 1.5rem !important; }
.px-5 { padding-left: 3rem !important; padding-right: 3rem !important; }
.py-2 { padding-top: 0.5rem !important; padding-bottom: 0.5rem !important; }
.py-3 { padding-top: 1rem !important; padding-bottom: 1rem !important; }
.py-4 { padding-top: 1.5rem !important; padding-bottom: 1.5rem !important; }
.py-5 { padding-top: 3rem !important; padding-bottom: 3rem !important; }
.pb-2 { padding-bottom: 0.5rem !important; }
.pb-3 { padding-bottom: 1rem !important; }
.pb-4 { padding-bottom: 1.5rem !important; }
.pt-5 { padding-top: 3rem !important; }
.ps-5 { padding-left: 3rem !important; }

.m-0 { margin: 0 !important; }
.mb-0 { margin-bottom: 0 !important; }
.mb-1 { margin-bottom: 0.25rem !important; }
.mb-2 { margin-bottom: 0.5rem !important; }
.mb-3 { margin-bottom: 1rem !important; }
.mb-4 { margin-bottom: 1.5rem !important; }
.mb-5 { margin-bottom: 3rem !important; }
.mb-lg-0 { margin-bottom: 0 !important; }
.mb-md-0 { margin-bottom: 0 !important; }
.mt-2 { margin-top: 0.5rem !important; }
.mt-3 { margin-top: 1rem !important; }
.mt-4 { margin-top: 1.5rem !important; }
.mt-5 { margin-top: 3rem !important; }
.mt-lg-0 { margin-top: 0 !important; }
.mt-md-0 { margin-top: 0 !important; }
.ms-2 { margin-left: 0.5rem !important; }
.ms-4 { margin-left: 1.5rem !important; }
.ms-auto { margin-left: auto !important; }
.me-1 { margin-right: 0.25rem !important; }
.me-2 { margin-right: 0.5rem !important; }
.me-3 { margin-right: 1rem !important; }
.my-4 { margin-top: 1.5rem !important; margin-bottom: 1.5rem !important; }
.my-5 { margin-top: 3rem !important; margin-bottom: 3rem !important; }
.mx-auto { margin-left: auto !important; margin-right: auto !important; }

/* Gap Utilities */
.gap-2 { gap: 0.5rem !important; }
.gap-3 { gap: 1rem !important; }
.gap-4 { gap: 1.5rem !important; }

/* Grid */
.g-0 { --bs-gutter-x: 0 !important; --bs-gutter-y: 0 !important; }
.g-2 { --bs-gutter-x: 0.5rem !important; --bs-gutter-y: 0.5rem !important; }
.g-3 { --bs-gutter-x: 1rem !important; --bs-gutter-y: 1rem !important; }
.g-4 { --bs-gutter-x: 1.5rem !important; --bs-gutter-y: 1.5rem !important; }
.g-5 { --bs-gutter-x: 3rem !important; --bs-gutter-y: 3rem !important; }

/* Font Sizes */
.fs-2 { font-size: 2rem !important; }
.fs-3 { font-size: 1.75rem !important; }
.fs-5 { font-size: 1.25rem !important; }

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

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-15px);
  }
  60% {
    transform: translateY(-7px);
  }
}

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

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

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(211, 47, 47, 0.7);
  }
  70% {
    box-shadow: 0 0 0 15px rgba(211, 47, 47, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(211, 47, 47, 0);
  }
}

.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.animate-on-scroll.animated {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive Design */
@media (max-width: 991px) {
  .navbar-collapse {
    background: rgba(10, 10, 10, 0.98);
    padding: 1.5rem;
    margin-top: 1rem;
    border: 1px solid var(--primary-color);
  }

  .nav-link {
    padding: 0.75rem 1rem !important;
    border-bottom: 1px solid rgba(211, 47, 47, 0.2);
  }

  .nav-link:last-child {
    border-bottom: none;
  }

  .hero-content .display-2 {
    font-size: 2.5rem !important;
  }

  .hero-content .lead {
    font-size: 1.1rem !important;
  }

  .order-lg-2 {
    order: 1;
  }

  .order-lg-1 {
    order: 2;
  }
}

@media (max-width: 767px) {
  .display-2 {
    font-size: 2rem !important;
  }

  .display-3 {
    font-size: 2.5rem !important;
  }

  .display-4 {
    font-size: 2rem !important;
  }

  .display-5 {
    font-size: 1.75rem !important;
  }

  .display-6 {
    font-size: 1.5rem !important;
  }

  .btn-lg {
    padding: 0.75rem 1.5rem !important;
    font-size: 0.9rem !important;
  }

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

  .text-md-start {
    text-align: start !important;
  }

  .text-md-end {
    text-align: end !important;
  }

  .col-6 {
    flex: 0 0 50%;
    max-width: 50%;
  }
}

@media (max-width: 575px) {
  .hero-content .display-2 {
    font-size: 1.75rem !important;
  }

  .hero-content .lead {
    font-size: 1rem !important;
  }

  .btn-lg {
    padding: 0.6rem 1.25rem !important;
    font-size: 0.85rem !important;
  }

  .px-4 {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }

  .py-5 {
    padding-top: 2rem !important;
    padding-bottom: 2rem !important;
  }

  .bi-award-fill,
  .bi-tools,
  .bi-speedometer2,
  .bi-shield-check {
    font-size: 2rem;
  }
}

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

  body {
    background: white !important;
    color: black !important;
  }

  .card {
    border: 1px solid #000 !important;
    page-break-inside: avoid;
  }
}

/* Utility Classes */
.d-none { display: none !important; }
.d-inline-block { display: inline-block !important; }
.d-flex { display: flex !important; }
.flex-column { flex-direction: column !important; }
.flex-wrap { flex-wrap: wrap !important; }
.align-items-center { align-items: center !important; }
.align-items-start { align-items: flex-start !important; }
.justify-content-center { justify-content: center !important; }
.justify-content-between { justify-content: space-between !important; }
.justify-content-end { justify-content: flex-end !important; }
.w-100 { width: 100% !important; }
.h-100 { height: 100% !important; }
.position-relative { position: relative !important; }
.position-absolute { position: absolute !important; }
.overflow-hidden { overflow: hidden !important; }
.border { border: 1px solid rgba(211, 47, 47, 0.2) !important; }
.border-0 { border: 0 !important; }
.fw-bold { font-weight: 700 !important; }

/* Container */
.container,
.container-fluid {
  width: 100%;
  padding-right: var(--bs-gutter-x, 0.75rem);
  padding-left: var(--bs-gutter-x, 0.75rem);
  margin-right: auto;
  margin-left: auto;
}

/* Loading Animation */
.loading {
  position: relative;
  pointer-events: none;
}

.loading::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 30px;
  height: 30px;
  margin: -15px 0 0 -15px;
  border: 3px solid rgba(211, 47, 47, 0.3);
  border-top-color: var(--primary-color);
  border-radius: 50%;
  animation: spinner 0.8s linear infinite;
}

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

/* Scroll to Top Button */
.scroll-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background: var(--primary-color);
  color: var(--light-text) !important;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition-smooth);
  z-index: 1000;
  box-shadow: 0 4px 15px rgba(211, 47, 47, 0.4);
}

.scroll-to-top.show {
  opacity: 1;
  visibility: visible;
}

.scroll-to-top:hover {
  background: var(--accent-color);
  transform: translateY(-5px);
  box-shadow: 0 6px 20px rgba(211, 47, 47, 0.6);
}

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

::-webkit-scrollbar-track {
  background: var(--secondary-color);
}

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

::-webkit-scrollbar-thumb:hover {
  background: var(--accent-color);
}

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

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