/* ===================================
   INDUSTRIAL RED & CHARCOAL THEME
   Architecture Studio CSS
   Primary: #D32F2F (Industrial Red)
   Secondary: #424242 (Charcoal)
   =================================== */

:root {
  --primary-color: #D32F2F;
  --secondary-color: #424242;
  --dark-bg: #1a1a1a;
  --light-gray: #f5f5f5;
  --text-dark: #212121;
  --text-light: #757575;
  --white: #ffffff;
  --transition: all 0.3s ease;
}

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

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

/* ===================================
   TYPOGRAPHY
   =================================== */
.display-1, .display-2, .display-3, .display-4, .display-5 {
  font-weight: 700 !important;
  letter-spacing: -0.02em;
  color: var(--text-dark) !important;
}

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

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

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

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

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

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

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

.lead {
  font-size: 1.25rem;
  font-weight: 300;
}

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

/* ===================================
   NAVIGATION BAR
   =================================== */
.navbar {
  background-color: var(--secondary-color) !important;
  padding: 1rem 0;
  transition: var(--transition);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.navbar.fixed-top {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1030;
}

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

.navbar-brand {
  color: var(--white) !important;
  font-size: 1.5rem;
  font-weight: 700 !important;
  letter-spacing: -0.02em;
  transition: var(--transition);
}

.navbar-brand:hover {
  color: var(--primary-color) !important;
  transform: translateY(-2px);
}

.navbar-toggler {
  border-color: var(--primary-color) !important;
  padding: 0.5rem;
}

.navbar-toggler:focus {
  box-shadow: 0 0 0 0.2rem rgba(211, 47, 47, 0.3) !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;
}

.navbar-nav {
  align-items: center;
}

.navbar-nav.ms-auto {
  margin-left: auto !important;
}

.nav-item {
  margin: 0 0.5rem;
}

.nav-link {
  color: var(--light-gray) !important;
  font-weight: 500;
  padding: 0.5rem 1rem !important;
  position: relative;
  transition: var(--transition);
  text-decoration: none !important;
}

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

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

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

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

.hero-section.min-vh-100 {
  min-height: 100vh !important;
}

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

.overflow-hidden {
  overflow: hidden !important;
}

.video-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.3;
  z-index: 1;
}

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

.w-100 {
  width: 100% !important;
}

.h-100 {
  height: 100% !important;
}

.object-fit-cover {
  object-fit: cover !important;
}

.sparks-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 2;
}

.spark {
  position: absolute;
  width: 3px;
  height: 3px;
  background-color: var(--primary-color);
  border-radius: 50%;
  animation: sparkle 3s infinite;
  box-shadow: 0 0 10px var(--primary-color);
}

@keyframes sparkle {
  0%, 100% {
    opacity: 0;
    transform: scale(0) translateY(0);
  }
  50% {
    opacity: 1;
    transform: scale(1) translateY(-20px);
  }
}

.hero-section .container {
  position: relative;
  z-index: 3;
}

.hero-section .display-1 {
  color: var(--white) !important;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
  animation: fadeInUp 1s ease-out;
}

.hero-section .lead {
  color: var(--light-gray) !important;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
  animation: fadeInUp 1.2s ease-out;
}

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

/* ===================================
   BUTTONS
   =================================== */
.btn {
  font-weight: 600 !important;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-radius: 0 !important;
  transition: var(--transition);
  border: 2px solid transparent;
  text-decoration: none !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.btn-primary,
.btn.btn-primary {
  background-color: var(--primary-color) !important;
  border-color: var(--primary-color) !important;
  color: var(--white) !important;
}

.btn-primary:hover,
.btn.btn-primary:hover {
  background-color: #b71c1c !important;
  border-color: #b71c1c !important;
  color: var(--white) !important;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(211, 47, 47, 0.3) !important;
}

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

.btn-outline-primary:hover,
.btn.btn-outline-primary:hover {
  background-color: var(--primary-color) !important;
  border-color: var(--primary-color) !important;
  color: var(--white) !important;
  transform: translateY(-2px);
}

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

.btn-secondary:hover,
.btn.btn-secondary:hover {
  background-color: #303030 !important;
  border-color: #303030 !important;
  color: var(--white) !important;
  transform: translateY(-2px);
}

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

.btn-light:hover,
.btn.btn-light:hover {
  background-color: var(--light-gray) !important;
  border-color: var(--light-gray) !important;
  color: var(--text-dark) !important;
  transform: translateY(-2px);
}

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

.btn:focus,
.btn:active {
  box-shadow: 0 0 0 0.2rem rgba(211, 47, 47, 0.3) !important;
}

.px-5 {
  padding-left: 3rem !important;
  padding-right: 3rem !important;
}

.py-3 {
  padding-top: 1rem !important;
  padding-bottom: 1rem !important;
}

/* ===================================
   CARDS
   =================================== */
.card {
  border-radius: 0 !important;
  transition: var(--transition);
  background-color: var(--white) !important;
  overflow: hidden;
}

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

.card.shadow-sm {
  box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075) !important;
}

.card.shadow-lg {
  box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.175) !important;
}

.card:hover {
  transform: translateY(-10px);
  box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.3) !important;
}

.card-img-top {
  height: 250px;
  object-fit: cover;
  transition: var(--transition);
}

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

.card-body {
  padding: 2rem !important;
  background-color: var(--white) !important;
}

.card-body h3,
.card-body h4,
.card-body h5 {
  color: var(--text-dark) !important;
  font-weight: 700;
}

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

.card-header {
  background-color: var(--secondary-color) !important;
  color: var(--white) !important;
  border-bottom: 3px solid var(--primary-color) !important;
  padding: 1rem 1.5rem !important;
  font-weight: 700;
}

.card-footer {
  background-color: var(--light-gray) !important;
  border-top: 1px solid #dee2e6 !important;
  padding: 1rem 1.5rem !important;
}

/* ===================================
   SERVICE CARDS
   =================================== */
.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin: 2rem 0;
}

.service-card {
  position: relative;
  height: 400px;
  perspective: 1000px;
  cursor: pointer;
}

.service-front,
.service-back {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  transition: transform 0.6s;
  border-radius: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 2rem;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.service-front {
  background: linear-gradient(135deg, var(--secondary-color) 0%, var(--dark-bg) 100%);
  color: var(--white) !important;
}

.service-back {
  background-color: var(--primary-color) !important;
  color: var(--white) !important;
  transform: rotateY(180deg);
}

.service-card:hover .service-front {
  transform: rotateY(-180deg);
}

.service-card:hover .service-back {
  transform: rotateY(0);
}

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

.service-back .service-icon {
  color: var(--white) !important;
}

.service-tagline {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--white) !important;
}

.service-back p {
  color: var(--white) !important;
  text-align: center;
}

/* ===================================
   COMPARISON CARDS
   =================================== */
.comparison-card {
  background-color: var(--white);
  border-radius: 0;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.before-after-container {
  position: relative;
  width: 100%;
  height: 400px;
  overflow: hidden;
}

.before-after-container img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.after-image {
  clip-path: polygon(50% 0, 100% 0, 100% 100%, 50% 100%);
  transition: var(--transition);
}

.comparison-slider {
  position: absolute;
  top: 0;
  left: 50%;
  width: 4px;
  height: 100%;
  background-color: var(--primary-color);
  cursor: ew-resize;
  z-index: 10;
}

.comparison-slider::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 40px;
  height: 40px;
  background-color: var(--primary-color);
  border-radius: 50%;
  border: 3px solid var(--white);
}

/* ===================================
   GALLERY
   =================================== */
.gallery-masonry {
  column-count: 3;
  column-gap: 1.5rem;
}

.gallery-item {
  break-inside: avoid;
  margin-bottom: 1.5rem;
}

.gallery-card {
  position: relative;
  overflow: hidden;
  border-radius: 0;
  cursor: pointer;
}

.gallery-card img {
  width: 100%;
  display: block;
  transition: var(--transition);
}

.gallery-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(211, 47, 47, 0.9);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: var(--transition);
}

.gallery-card:hover .gallery-overlay {
  opacity: 1;
}

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

.gallery-overlay h5,
.gallery-overlay p {
  color: var(--white) !important;
  margin: 0.5rem 0;
}

/* ===================================
   TIMELINE
   =================================== */
.timeline-container {
  position: relative;
  padding: 2rem 0;
}

.timeline-item {
  position: relative;
  padding: 2rem 0 2rem 3rem;
  border-left: 3px solid var(--primary-color);
  margin-left: 2rem;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -10px;
  top: 2rem;
  width: 18px;
  height: 18px;
  background-color: var(--primary-color);
  border-radius: 50%;
  border: 3px solid var(--white);
  box-shadow: 0 0 0 3px var(--primary-color);
}

.timeline-item h3 {
  color: var(--text-dark) !important;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.timeline-item p {
  color: var(--text-light) !important;
}

/* ===================================
   ACCORDION
   =================================== */
.accordion {
  border-radius: 0 !important;
}

.accordion-item {
  border: 1px solid #dee2e6 !important;
  border-radius: 0 !important;
  margin-bottom: 1rem;
}

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

.accordion-button {
  background-color: var(--light-gray) !important;
  color: var(--text-dark) !important;
  font-weight: 700;
  border-radius: 0 !important;
  padding: 1.25rem 1.5rem !important;
  transition: var(--transition);
}

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

.accordion-button:focus {
  box-shadow: 0 0 0 0.2rem rgba(211, 47, 47, 0.3) !important;
  border-color: var(--primary-color) !important;
}

.accordion-button::after {
  filter: brightness(0) saturate(100%);
}

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

.accordion-collapse {
  border-top: 3px solid var(--primary-color);
}

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

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

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

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

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

textarea.form-control {
  min-height: 150px;
  resize: vertical;
}

/* ===================================
   ALERTS & BADGES
   =================================== */
.alert {
  border-radius: 0 !important;
  border-left: 4px solid;
  padding: 1rem 1.5rem !important;
  margin-bottom: 1rem;
}

.alert-danger {
  background-color: #ffebee !important;
  border-color: var(--primary-color) !important;
  color: #c62828 !important;
}

.alert-warning {
  background-color: #fff3e0 !important;
  border-color: #ff9800 !important;
  color: #e65100 !important;
}

.alert-info {
  background-color: #e3f2fd !important;
  border-color: #2196f3 !important;
  color: #0d47a1 !important;
}

.badge {
  padding: 0.5rem 1rem !important;
  font-weight: 600 !important;
  border-radius: 0 !important;
  text-transform: uppercase;
  font-size: 0.75rem !important;
}

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

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

/* ===================================
   EMERGENCY BANNER
   =================================== */
.emergency-banner {
  background: linear-gradient(135deg, var(--primary-color) 0%, #b71c1c 100%);
  color: var(--white) !important;
  padding: 1.5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.emergency-banner::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  animation: shimmer 2s infinite;
}

@keyframes shimmer {
  0% {
    left: -100%;
  }
  100% {
    left: 100%;
  }
}

.emergency-banner h4,
.emergency-banner p,
.emergency-banner a {
  color: var(--white) !important;
}

.emergency-banner .btn {
  background-color: var(--white) !important;
  color: var(--primary-color) !important;
  border-color: var(--white) !important;
}

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

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

.list-group {
  border-radius: 0 !important;
}

.list-group-flush {
  border-radius: 0 !important;
}

.list-group-item {
  background-color: var(--white) !important;
  border: 1px solid #dee2e6 !important;
  border-radius: 0 !important;
  padding: 1rem 1.5rem !important;
  color: var(--text-dark) !important;
}

.list-group-item-action {
  cursor: pointer;
  transition: var(--transition);
}

.list-group-item-action:hover {
  background-color: var(--light-gray) !important;
  color: var(--primary-color) !important;
  border-left: 4px solid var(--primary-color);
}

.list-group-item-action.active {
  background-color: var(--secondary-color) !important;
  color: var(--white) !important;
  border-color: var(--secondary-color) !important;
}

/* ===================================
   MODAL
   =================================== */
.modal {
  z-index: 1055 !important;
}

.modal.fade .modal-dialog {
  transition: transform 0.3s ease-out;
}

.modal-dialog {
  margin: 1.75rem auto;
}

.modal-dialog-centered {
  display: flex;
  align-items: center;
  min-height: calc(100% - 3.5rem);
}

.modal-xl {
  max-width: 1140px !important;
}

.modal-content {
  border-radius: 0 !important;
  border: none !important;
  background-color: var(--white) !important;
}

.modal-header {
  background-color: var(--secondary-color) !important;
  color: var(--white) !important;
  border-bottom: 3px solid var(--primary-color) !important;
  padding: 1.5rem !important;
}

.modal-header h5 {
  color: var(--white) !important;
  font-weight: 700;
}

.modal-body {
  padding: 2rem !important;
  background-color: var(--white) !important;
}

.modal-body.p-0 {
  padding: 0 !important;
}

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

.btn-close:hover,
.btn-close-white:hover {
  opacity: 0.75 !important;
}

/* ===================================
   FILTER BUTTONS
   =================================== */
.filter-btn {
  background-color: transparent !important;
  border: 2px solid var(--secondary-color) !important;
  color: var(--secondary-color) !important;
  padding: 0.5rem 1.5rem !important;
  margin: 0.25rem;
  transition: var(--transition);
  cursor: pointer;
}

.filter-btn:hover,
.filter-btn.active {
  background-color: var(--primary-color) !important;
  border-color: var(--primary-color) !important;
  color: var(--white) !important;
}

/* ===================================
   UTILITIES
   =================================== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

.container-fluid {
  width: 100%;
  padding-right: 15px;
  padding-left: 15px;
  margin-right: auto;
  margin-left: auto;
}

.row {
  display: flex;
  flex-wrap: wrap;
  margin-right: -15px;
  margin-left: -15px;
}

.g-0 {
  margin-right: 0 !important;
  margin-left: 0 !important;
}

.g-0 > * {
  padding-right: 0 !important;
  padding-left: 0 !important;
}

.g-3 {
  gap: 1rem !important;
}

.g-4 {
  gap: 1.5rem !important;
}

.gap-2 {
  gap: 0.5rem !important;
}

.gap-3 {
  gap: 1rem !important;
}

.gap-4 {
  gap: 1.5rem !important;
}

.d-flex {
  display: flex !important;
}

.d-inline-block {
  display: inline-block !important;
}

.d-block {
  display: block !important;
}

.d-none {
  display: none !important;
}

.flex-column {
  flex-direction: column !important;
}

.flex-wrap {
  flex-wrap: wrap !important;
}

.flex-shrink-0 {
  flex-shrink: 0 !important;
}

.flex-grow-1 {
  flex-grow: 1 !important;
}

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

.align-items-stretch {
  align-items: stretch !important;
}

.justify-content-center {
  justify-content: center !important;
}

.justify-content-between {
  justify-content: space-between !important;
}

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

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

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

.text-uppercase {
  text-transform: uppercase !important;
}

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

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

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

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

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

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

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

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

.img-fluid {
  max-width: 100%;
  height: auto;
}

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

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

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

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

/* Padding utilities */
.p-0 { padding: 0 !important; }
.p-3 { padding: 1rem !important; }
.p-4 { padding: 1.5rem !important; }
.p-5 { padding: 3rem !important; }

.pt-3 { padding-top: 1rem !important; }
.pt-4 { padding-top: 1.5rem !important; }
.pt-5 { padding-top: 3rem !important; }

.pb-4 { padding-bottom: 1.5rem !important; }

.ps-4 { padding-left: 1.5rem !important; }
.ps-5 { padding-left: 3rem !important; }
.ps-lg-5 { padding-left: 3rem !important; }

.pe-lg-5 { padding-right: 3rem !important; }

.px-4 { padding-left: 1.5rem !important; padding-right: 1.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; }

/* Margin utilities */
.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-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; }

.ms-2 { margin-left: 0.5rem !important; }
.ms-3 { margin-left: 1rem !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; }

/* Font sizes */
.fs-1 { font-size: 2.5rem !important; }
.fs-3 { font-size: 1.75rem !important; }
.fs-4 { font-size: 1.5rem !important; }
.fs-5 { font-size: 1.25rem !important; }

.small {
  font-size: 0.875rem !important;
}

/* ===================================
   BOOTSTRAP ICONS
   =================================== */
.bi {
  display: inline-block;
  font-style: normal;
  font-variant: normal;
  text-rendering: auto;
  line-height: 1;
  vertical-align: middle;
}

/* ===================================
   ANIMATIONS
   =================================== */
.fade-in-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

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

.pulse {
  animation: pulse 2s infinite;
}

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

/* Grid columns */
.col-12 { flex: 0 0 100%; max-width: 100%; }
.col-6 { flex: 0 0 50%; max-width: 50%; }

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) {
  .col-lg-2 { flex: 0 0 16.666667%; max-width: 16.666667%; }
  .col-lg-3 { flex: 0 0 25%; max-width: 25%; }
  .col-lg-4 { flex: 0 0 33.333333%; max-width: 33.333333%; }
  .col-lg-5 { flex: 0 0 41.666667%; max-width: 41.666667%; }
  .col-lg-6 { flex: 0 0 50%; max-width: 50%; }
  .col-lg-7 { flex: 0 0 58.333333%; max-width: 58.333333%; }
  .col-lg-8 { flex: 0 0 66.666667%; max-width: 66.666667%; }
  .col-lg-9 { flex: 0 0 75%; max-width: 75%; }
  .col-lg-10 { flex: 0 0 83.333333%; max-width: 83.333333%; }
  
  .d-lg-block { display: block !important; }
  .d-lg-none { display: none !important; }
  
  .text-lg-start { text-align: left !important; }
  .text-lg-end { text-align: right !important; }
  
  .order-lg-1 { order: 1 !important; }
  .order-lg-2 { order: 2 !important; }
  
  .gallery-masonry {
    column-count: 3;
  }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) {
  .col-md-3 { flex: 0 0 25%; max-width: 25%; }
  .col-md-4 { flex: 0 0 33.333333%; max-width: 33.333333%; }
  .col-md-6 { flex: 0 0 50%; max-width: 50%; }
  .col-md-12 { flex: 0 0 100%; max-width: 100%; }
  
  .text-md-start { text-align: left !important; }
  .text-md-end { text-align: right !important; }
}

/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) {
  .col-sm-6 { flex: 0 0 50%; max-width: 50%; }
}

/* Mobile devices (less than 768px) */
@media (max-width: 767px) {
  .navbar-nav {
    padding: 1rem 0;
  }
  
  .nav-item {
    margin: 0.5rem 0;
  }
  
  .hero-section {
    min-height: 70vh;
    padding-top: 100px;
  }
  
  .hero-section .display-1 {
    font-size: 2.5rem !important;
  }
  
  .hero-section .lead {
    font-size: 1.1rem !important;
  }
  
  .btn-lg {
    padding: 0.75rem 1.5rem !important;
    font-size: 1rem !important;
  }
  
  .service-grid {
    grid-template-columns: 1fr;
  }
  
  .gallery-masonry {
    column-count: 1;
  }
  
  .timeline-item {
    padding-left: 2rem;
  }
  
  .card-img-top {
    height: 200px;
  }
  
  .display-3 {
    font-size: 2.5rem !important;
  }
  
  .display-4 {
    font-size: 2rem !important;
  }
  
  .display-5 {
    font-size: 1.75rem !important;
  }
  
  .ps-lg-5,
  .pe-lg-5 {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }
  
  .py-5 {
    padding-top: 2rem !important;
    padding-bottom: 2rem !important;
  }
  
  .order-lg-2 {
    order: 1 !important;
  }
  
  .order-lg-1 {
    order: 2 !important;
  }
}

/* Tablet devices (768px to 991px) */
@media (min-width: 768px) and (max-width: 991px) {
  .gallery-masonry {
    column-count: 2;
  }
  
  .service-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ===================================
   SCROLLBAR STYLING
   =================================== */
::-webkit-scrollbar {
  width: 10px;
}

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

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

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

/* ===================================
   SELECTION
   =================================== */
::selection {
  background-color: var(--primary-color);
  color: var(--white);
}

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

/* ===================================
   FOOTER
   =================================== */
footer {
  background-color: var(--secondary-color) !important;
  color: var(--light-gray) !important;
  padding: 3rem 0 1rem;
  margin-top: 4rem;
}

footer h5 {
  color: var(--white) !important;
  font-weight: 700;
  margin-bottom: 1rem;
  text-transform: uppercase;
}

footer p,
footer a {
  color: var(--light-gray) !important;
  text-decoration: none !important;
  transition: var(--transition);
}

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

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

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

/* ===================================
   LOADING SPINNER
   =================================== */
.spinner-border {
  display: inline-block;
  width: 2rem;
  height: 2rem;
  vertical-align: text-bottom;
  border: 0.25em solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: spinner-border 0.75s linear infinite;
}

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

/* ===================================
   PRINT STYLES
   =================================== */
@media print {
  .navbar,
  .btn,
  .modal,
  footer {
    display: none !important;
  }
  
  body {
    background-color: white !important;
    color: black !important;
  }
  
  .card,
  .timeline-item {
    break-inside: avoid;
  }
}