/* ===================================
   Industrial Red & Charcoal Theme
   Architecture Studio CSS
   =================================== */

/* ============ ROOT VARIABLES ============ */
:root {
  --primary-color: #D32F2F;
  --secondary-color: #424242;
  --dark-bg: #1a1a1a;
  --light-text: #f5f5f5;
  --transition-speed: 0.3s;
  --border-radius: 8px;
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.15);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.25);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.35);
}

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

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  color: var(--secondary-color);
  background-color: #f8f9fa;
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
}

a {
  text-decoration: none !important;
  transition: all var(--transition-speed) ease;
}

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

/* ============ NAVIGATION ============ */
.navbar {
  background: linear-gradient(135deg, var(--secondary-color) 0%, var(--dark-bg) 100%) !important;
  padding: 1rem 0;
  box-shadow: var(--shadow-md);
  transition: all 0.3s ease;
}

.navbar.sticky-top {
  backdrop-filter: blur(10px);
  background: rgba(26, 26, 26, 0.95) !important;
}

.navbar-brand {
  font-size: 1.75rem !important;
  color: #ffffff !important;
  font-weight: 700 !important;
  letter-spacing: 1px;
  transition: all var(--transition-speed) ease;
}

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

.navbar-dark .navbar-nav .nav-link {
  color: rgba(255, 255, 255, 0.9) !important;
  padding: 0.5rem 1rem !important;
  margin: 0 0.25rem;
  border-radius: var(--border-radius);
  font-weight: 500 !important;
  transition: all var(--transition-speed) ease;
  position: relative;
}

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

.navbar-dark .navbar-nav .nav-link:hover {
  color: #ffffff !important;
  background-color: rgba(211, 47, 47, 0.15) !important;
}

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

.navbar-dark .navbar-nav .nav-link.active {
  color: #ffffff !important;
  background-color: var(--primary-color) !important;
  font-weight: 600 !important;
}

.navbar-toggler {
  border: 2px solid rgba(255, 255, 255, 0.8) !important;
  padding: 0.5rem 0.75rem;
}

.navbar-toggler:focus {
  box-shadow: 0 0 0 0.25rem rgba(211, 47, 47, 0.5) !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='rgba%28255, 255, 255, 1%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
}

/* ============ HERO SECTION ============ */
.hero-section {
  min-height: 100vh;
  background: linear-gradient(135deg, var(--dark-bg) 0%, var(--secondary-color) 50%, #1a1a1a 100%);
  position: relative;
  overflow: hidden;
  padding: 120px 0 80px;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    linear-gradient(45deg, transparent 30%, rgba(211, 47, 47, 0.1) 50%, transparent 70%),
    repeating-linear-gradient(90deg, transparent, transparent 2px, rgba(211, 47, 47, 0.03) 2px, rgba(211, 47, 47, 0.03) 4px);
  animation: heroPattern 20s linear infinite;
}

@keyframes heroPattern {
  0% { transform: translateX(0); }
  100% { transform: translateX(50px); }
}

.hero-section .text-white {
  color: #ffffff !important;
  position: relative;
  z-index: 2;
}

.hero-section .display-3 {
  font-size: clamp(2.5rem, 5vw, 4rem) !important;
  font-weight: 800 !important;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5);
  animation: fadeInUp 1s ease;
}

.hero-section .lead {
  font-size: clamp(1.1rem, 2vw, 1.4rem) !important;
  color: rgba(255, 255, 255, 0.95) !important;
  font-weight: 400 !important;
  text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.5);
  animation: fadeInUp 1s ease 0.2s both;
}

.hero-section .text-white-50 {
  color: rgba(255, 255, 255, 0.7) !important;
  text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.5);
}

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

/* ============ BUTTONS ============ */
.btn {
  font-weight: 600 !important;
  letter-spacing: 0.5px;
  border-radius: var(--border-radius) !important;
  transition: all var(--transition-speed) ease !important;
  border-width: 2px !important;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

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

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

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

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

.btn-outline-light:hover {
  color: var(--secondary-color) !important;
  background-color: #ffffff !important;
  border-color: #ffffff !important;
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

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

.btn-light:hover {
  background-color: var(--primary-color) !important;
  color: #ffffff !important;
  border-color: var(--primary-color) !important;
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

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

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

.btn-check:checked + .btn-outline-secondary {
  color: #ffffff !important;
  background-color: var(--primary-color) !important;
  border-color: var(--primary-color) !important;
}

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

.btn-secondary:hover {
  background-color: var(--primary-color) !important;
  border-color: var(--primary-color) !important;
  color: #ffffff !important;
}

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

.btn-danger,
.bg-danger {
  background-color: var(--primary-color) !important;
  color: #ffffff !important;
  border-color: var(--primary-color) !important;
}

.btn-danger:hover {
  background-color: #b71c1c !important;
  border-color: #b71c1c !important;
  color: #ffffff !important;
}

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

/* ============ CARDS ============ */
.card {
  border: none !important;
  border-radius: 12px !important;
  overflow: hidden;
  transition: all var(--transition-speed) ease;
  background-color: #ffffff !important;
  box-shadow: var(--shadow-sm);
}

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

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

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

.card-text {
  color: #666666 !important;
  font-size: 1rem !important;
  line-height: 1.7;
}

.service-card {
  position: relative;
  cursor: pointer;
  background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%) !important;
}

.service-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 0;
  background-color: var(--primary-color);
  transition: height var(--transition-speed) ease;
}

.service-card:hover::after {
  height: 100%;
}

.service-icon {
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--primary-color) 0%, #b71c1c 100%);
  border-radius: 50%;
  margin: 0 auto 1.5rem;
  transition: all var(--transition-speed) ease;
}

.service-card:hover .service-icon {
  transform: scale(1.1) rotate(360deg);
  box-shadow: 0 8px 24px rgba(211, 47, 47, 0.4);
}

.card-img-top {
  height: 200px;
  object-fit: cover;
  transition: transform 0.5s ease;
}

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

/* ============ ICONS ============ */
.bi {
  display: inline-block;
  vertical-align: middle;
  transition: all var(--transition-speed) ease;
}

.bi-telephone-fill,
.bi-geo-alt-fill,
.bi-tools,
.bi-award-fill,
.bi-chat-square-text-fill,
.bi-cpu-fill,
.bi-speedometer2,
.bi-gear-wide-connected,
.bi-disc-fill,
.bi-clipboard-check-fill,
.bi-lightning-charge-fill,
.bi-envelope-fill,
.bi-wrench-adjustable,
.bi-check-circle-fill,
.bi-chat-dots,
.bi-clock-history,
.bi-shield-check,
.bi-calendar-check,
.bi-send,
.bi-pc-display-horizontal,
.bi-disc,
.bi-cpu,
.bi-wrench-adjustable-circle,
.bi-chat-left-quote,
.bi-car-front,
.bi-person-vcard,
.bi-clipboard-check,
.bi-check-circle,
.bi-info-circle,
.bi-geo-alt,
.bi-map,
.bi-exclamation-triangle,
.bi-facebook,
.bi-instagram,
.bi-twitter,
.bi-telephone,
.bi-envelope {
  color: var(--primary-color);
}

.text-white .bi,
.btn-outline-light .bi,
.navbar-dark .bi,
.bg-danger .bi {
  color: #ffffff !important;
}

.fs-1 { font-size: 3rem !important; }
.fs-3 { font-size: 1.75rem !important; }
.fs-5 { font-size: 1.25rem !important; }

/* ============ SECTIONS ============ */
.py-5 {
  padding-top: 4rem !important;
  padding-bottom: 4rem !important;
}

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

.my-5 {
  margin-top: 4rem !important;
  margin-bottom: 4rem !important;
}

.my-4 {
  margin-top: 3rem !important;
  margin-bottom: 3rem !important;
}

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

.bg-black {
  background-color: #1a1a1a !important;
}

.bg-opacity-25 {
  opacity: 0.25 !important;
}

.bg-opacity-10 {
  opacity: 1 !important;
  background-color: rgba(211, 47, 47, 0.1) !important;
}

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

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

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

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

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

/* ============ TIMELINE SECTION ============ */
.timeline-section {
  position: relative;
  padding: 4rem 0;
  background: linear-gradient(to bottom, #f8f9fa 0%, #ffffff 100%);
}

.timeline-section::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 4px;
  background: linear-gradient(to bottom, var(--primary-color) 0%, var(--secondary-color) 100%);
  transform: translateX(-50%);
}

.badge {
  background-color: var(--primary-color) !important;
  color: #ffffff !important;
  font-weight: 600 !important;
  border-radius: 20px !important;
  padding: 0.5rem 1rem !important;
}

/* ============ FORMS ============ */
.form-control,
.form-select {
  border: 2px solid #e0e0e0 !important;
  border-radius: var(--border-radius) !important;
  padding: 0.75rem 1rem !important;
  font-size: 1rem !important;
  transition: all var(--transition-speed) ease !important;
  background-color: #ffffff !important;
  color: var(--secondary-color) !important;
}

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

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

.form-label {
  font-weight: 600 !important;
  color: var(--secondary-color) !important;
  margin-bottom: 0.5rem !important;
}

.form-check-input {
  border: 2px solid #e0e0e0 !important;
  transition: all var(--transition-speed) ease !important;
}

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

.form-check-input:focus {
  border-color: var(--primary-color) !important;
  box-shadow: 0 0 0 0.25rem rgba(211, 47, 47, 0.15) !important;
}

.form-check-label {
  color: var(--secondary-color) !important;
  font-weight: 500 !important;
}

.invalid-feedback {
  color: var(--primary-color) !important;
  font-weight: 500 !important;
  display: block !important;
  margin-top: 0.5rem !important;
}

.form-control.is-invalid,
.form-select.is-invalid {
  border-color: var(--primary-color) !important;
  background-image: none !important;
}

/* ============ IMAGES ============ */
.img-fluid {
  max-width: 100%;
  height: auto;
}

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

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

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

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

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

/* ============ ACCORDION ============ */
.accordion {
  --bs-accordion-border-color: #e0e0e0;
  --bs-accordion-border-radius: var(--border-radius);
}

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

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

.accordion-button {
  background-color: #f8f9fa !important;
  color: var(--secondary-color) !important;
  font-weight: 600 !important;
  padding: 1.25rem 1.5rem !important;
  border: none !important;
  transition: all var(--transition-speed) ease !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-color: transparent !important;
}

.accordion-button::after {
  filter: brightness(0) saturate(100%);
  transition: transform var(--transition-speed) ease;
}

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

.accordion-body {
  padding: 1.5rem !important;
  background-color: #ffffff !important;
  color: #666666 !important;
  line-height: 1.7;
}

.accordion-collapse {
  border: none !important;
}

/* ============ ALERTS ============ */
.alert {
  border: none !important;
  border-radius: var(--border-radius) !important;
  padding: 1.25rem 1.5rem !important;
  font-weight: 500 !important;
  box-shadow: var(--shadow-sm);
}

.alert-secondary {
  background-color: #f8f9fa !important;
  color: var(--secondary-color) !important;
  border-left: 4px solid var(--secondary-color) !important;
}

.alert-info {
  background-color: #e3f2fd !important;
  color: #0277bd !important;
  border-left: 4px solid #0277bd !important;
}

/* ============ MODAL ============ */
.modal {
  z-index: 1060;
}

.modal-content {
  border: none !important;
  border-radius: 12px !important;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.modal-header {
  background: linear-gradient(135deg, var(--secondary-color) 0%, var(--dark-bg) 100%) !important;
  color: #ffffff !important;
  padding: 1.5rem 2rem !important;
  border-bottom: none !important;
}

.modal-title {
  color: #ffffff !important;
  font-weight: 700 !important;
}

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

.modal-footer {
  border-top: 1px solid #e0e0e0 !important;
  padding: 1.5rem 2rem !important;
}

/* ============ UTILITY CLASSES ============ */
.text-decoration-none {
  text-decoration: none !important;
}

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

.mx-auto {
  margin-left: auto !important;
  margin-right: auto !important;
}

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

.g-0 { gap: 0 !important; }
.g-2 > * { padding: 0.5rem !important; }
.g-3 > * { padding: 1rem !important; }
.g-4 > * { padding: 1.5rem !important; }

.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; }

.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; }

.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; }

.ms-2 { margin-left: 0.5rem !important; }
.ms-3 { margin-left: 1rem !important; }
.ms-4 { margin-left: 1.5rem !important; }

.me-1 { margin-right: 0.25rem !important; }
.me-2 { margin-right: 0.5rem !important; }
.me-3 { margin-right: 1rem !important; }

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

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

.opacity-25 { opacity: 0.25 !important; }

/* ============ DISPLAY UTILITIES ============ */
.display-1 { font-size: clamp(3rem, 6vw, 6rem) !important; font-weight: 800 !important; }
.display-3 { font-size: clamp(2.5rem, 5vw, 4rem) !important; font-weight: 700 !important; }
.display-4 { font-size: clamp(2rem, 4vw, 3.5rem) !important; font-weight: 700 !important; }
.display-5 { font-size: clamp(1.75rem, 3vw, 3rem) !important; font-weight: 600 !important; }

.h3 { font-size: 1.75rem !important; }
.h4 { font-size: 1.5rem !important; }
.h5 { font-size: 1.25rem !important; }
.h6 { font-size: 1rem !important; }

.lead {
  font-size: 1.25rem !important;
  font-weight: 400 !important;
}

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

/* ============ FOOTER ============ */
footer {
  background: linear-gradient(135deg, var(--dark-bg) 0%, var(--secondary-color) 100%);
  color: rgba(255, 255, 255, 0.9) !important;
  padding: 3rem 0 1.5rem;
  margin-top: 4rem;
}

footer a {
  color: rgba(255, 255, 255, 0.8) !important;
  transition: all var(--transition-speed) ease;
  font-weight: 500 !important;
}

footer a:hover {
  color: #ffffff !important;
  transform: translateX(5px);
}

footer .bi {
  color: #ffffff !important;
  margin-right: 0.5rem;
}

footer h5,
footer h6 {
  color: #ffffff !important;
  font-weight: 700 !important;
  margin-bottom: 1.5rem !important;
}

/* ============ PRICING OVERLAY ============ */
.pricing-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(211, 47, 47, 0.9) 0%, rgba(66, 66, 66, 0.9) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity var(--transition-speed) ease;
}

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

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

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) {
  .d-lg-block {
    display: block !important;
  }
  
  .col-lg-2 { width: 16.666667% !important; }
  .col-lg-3 { width: 25% !important; }
  .col-lg-4 { width: 33.333333% !important; }
  .col-lg-5 { width: 41.666667% !important; }
  .col-lg-6 { width: 50% !important; }
  .col-lg-7 { width: 58.333333% !important; }
  .col-lg-8 { width: 66.666667% !important; }
  .col-lg-10 { width: 83.333333% !important; }
  
  .offset-lg-1 { margin-left: 8.333333% !important; }
  
  .order-lg-1 { order: 1 !important; }
  .order-lg-2 { order: 2 !important; }
  
  .mb-lg-0 { margin-bottom: 0 !important; }
  .mt-lg-0 { margin-top: 0 !important; }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) {
  .col-md-3 { width: 25% !important; }
  .col-md-4 { width: 33.333333% !important; }
  .col-md-6 { width: 50% !important; }
  .col-md-8 { width: 66.666667% !important; }
  
  .mb-md-0 { margin-bottom: 0 !important; }
  .mt-md-0 { margin-top: 0 !important; }
  
  .p-md-5 { padding: 3rem !important; }
  
  .text-md-start { text-align: left !important; }
  .text-md-end { text-align: right !important; }
}

/* Small devices (landscape phones, 576px and up) */
@media (max-width: 991px) {
  .navbar-collapse {
    background-color: rgba(26, 26, 26, 0.98);
    padding: 1rem;
    margin-top: 1rem;
    border-radius: var(--border-radius);
  }
  
  .navbar-nav {
    gap: 0.5rem;
  }
  
  .hero-section {
    padding: 100px 0 60px;
  }
  
  .display-3 {
    font-size: 2.5rem !important;
  }
  
  .btn-lg {
    padding: 0.875rem 2rem !important;
    font-size: 1rem !important;
  }
  
  .card-body {
    padding: 1.5rem !important;
  }
}

@media (max-width: 767px) {
  .col-6 { width: 50% !important; }
  .col-12 { width: 100% !important; }
  
  .py-5 {
    padding-top: 3rem !important;
    padding-bottom: 3rem !important;
  }
  
  .display-3 {
    font-size: 2rem !important;
  }
  
  .display-4,
  .display-5 {
    font-size: 1.75rem !important;
  }
  
  .lead {
    font-size: 1.1rem !important;
  }
  
  .btn-lg {
    padding: 0.75rem 1.5rem !important;
  }
  
  .modal-body,
  .modal-header,
  .modal-footer {
    padding: 1.25rem !important;
  }
}

/* Extra small devices (portrait phones, less than 576px) */
@media (max-width: 575px) {
  .container {
    padding-left: 1rem;
    padding-right: 1rem;
  }
  
  .hero-section {
    padding: 80px 0 40px;
  }
  
  .card {
    margin-bottom: 1.5rem;
  }
  
  .accordion-button,
  .accordion-body {
    padding: 1rem !important;
  }
  
  .service-icon {
    width: 60px;
    height: 60px;
  }
  
  .fs-1 { font-size: 2rem !important; }
  .fs-3 { font-size: 1.5rem !important; }
}

/* ============ 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);
  }
}

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

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

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

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

/* ============ SCROLL BEHAVIOR ============ */
html {
  scroll-behavior: smooth;
}

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

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

/* ============ CUSTOM SCROLLBAR ============ */
::-webkit-scrollbar {
  width: 12px;
}

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

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  border-radius: 6px;
  transition: background var(--transition-speed) ease;
}

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

/* ============ ACCESSIBILITY ============ */
.btn:focus,
.form-control:focus,
.form-select:focus,
.nav-link:focus {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
}

/* ============ PRINT STYLES ============ */
@media print {
  .navbar,
  .btn,
  footer {
    display: none !important;
  }
  
  body {
    background: white !important;
    color: black !important;
  }
  
  .card {
    box-shadow: none !important;
    border: 1px solid #ddd !important;
  }
}