/* Midnight Copper Architecture Studio - CSS */

/* ===== CSS Variables ===== */
:root {
  --primary-color: #2C3E50;
  --secondary-color: #E67E22;
  --copper-light: #F39C12;
  --copper-dark: #D35400;
  --dark-bg: #1A252F;
  --light-bg: #F8F9FA;
  --text-dark: #2C3E50;
  --text-light: #FFFFFF;
  --transition-speed: 0.3s;
  --shadow-sm: 0 2px 8px rgba(44, 62, 80, 0.1);
  --shadow-md: 0 4px 16px rgba(44, 62, 80, 0.15);
  --shadow-lg: 0 8px 32px rgba(44, 62, 80, 0.2);
}

/* ===== Global Resets & Base Styles ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

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

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

/* ===== Typography ===== */
h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6,
.display-1, .display-2, .display-3, .display-4, .display-5, .display-6 {
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-dark) !important;
  margin-bottom: 1rem;
}

.display-1 {
  font-size: clamp(2.5rem, 8vw, 5rem) !important;
  font-weight: 800 !important;
}

.display-3 {
  font-size: clamp(2rem, 5vw, 3.5rem) !important;
}

.display-4 {
  font-size: clamp(1.75rem, 4vw, 2.5rem) !important;
}

.display-5 {
  font-size: clamp(1.5rem, 3vw, 2rem) !important;
}

.display-6 {
  font-size: clamp(1.25rem, 2.5vw, 1.75rem) !important;
}

.lead {
  font-size: 1.15rem;
  font-weight: 400;
  color: var(--text-dark);
  opacity: 0.9;
}

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

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

.fs-4 {
  font-size: 1.25rem !important;
}

.fs-5 {
  font-size: 1.1rem !important;
}

.small {
  font-size: 0.875rem;
  opacity: 0.85;
}

/* ===== Navigation Bar ===== */
.navbar {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--dark-bg) 100%) !important;
  padding: 1rem 0;
  transition: all var(--transition-speed) ease;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
  z-index: 1050;
}

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

.navbar-dark .navbar-brand {
  color: var(--text-light) !important;
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 1px;
  transition: all var(--transition-speed) ease;
  text-transform: uppercase;
}

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

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

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

.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%23E67E22' 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 .nav-link {
  color: rgba(255, 255, 255, 0.9) !important;
  font-weight: 500;
  padding: 0.5rem 1rem !important;
  margin: 0 0.25rem;
  transition: all var(--transition-speed) ease;
  position: relative;
  text-transform: uppercase;
  font-size: 0.9rem;
  letter-spacing: 0.5px;
}

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

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

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

/* ===== Hero Section ===== */
.vh-100 {
  min-height: 100vh;
  position: relative;
}

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

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

.position-sticky {
  position: sticky !important;
  top: 80px;
}

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

.object-fit-cover {
  object-fit: cover;
  filter: brightness(0.4) contrast(1.1);
}

.text-white,
.text-white h1,
.text-white h2,
.text-white h3,
.text-white h4,
.text-white h5,
.text-white h6,
.text-white .display-1,
.text-white .display-2,
.text-white .display-3,
.text-white .display-4,
.text-white .display-5,
.text-white .display-6 {
  color: #FFFFFF !important;
}

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

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

/* ===== Buttons ===== */
.btn {
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-radius: 0.375rem;
  transition: all var(--transition-speed) ease;
  border: none;
  padding: 0.625rem 1.5rem;
  font-size: 0.9rem;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

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

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

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

.btn-sm {
  padding: 0.375rem 1rem !important;
  font-size: 0.8rem !important;
}

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

.btn-outline-light:hover {
  color: var(--primary-color) !important;
  background: var(--text-light) !important;
  border-color: var(--text-light) !important;
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(255, 255, 255, 0.3);
}

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

.btn-light:hover {
  background: transparent !important;
  color: var(--text-light) !important;
  border-color: var(--text-light) !important;
  transform: translateY(-3px);
}

.btn-link {
  color: var(--secondary-color) !important;
  text-decoration: none !important;
  font-weight: 600;
}

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

.filter-btn {
  background: transparent !important;
  color: var(--text-dark) !important;
  border: 2px solid var(--primary-color) !important;
  padding: 0.5rem 1.5rem !important;
  margin: 0.25rem;
  border-radius: 50px !important;
  transition: all var(--transition-speed) ease;
}

.filter-btn:hover,
.filter-btn.active {
  background: var(--secondary-color) !important;
  color: var(--text-light) !important;
  border-color: var(--secondary-color) !important;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(230, 126, 34, 0.3);
}

/* ===== Cards ===== */
.card {
  border: none !important;
  border-radius: 0.75rem;
  overflow: hidden;
  transition: all var(--transition-speed) ease;
  background: #FFFFFF;
  box-shadow: var(--shadow-sm);
}

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

.card-body {
  padding: 1.5rem;
}

.card-title {
  font-weight: 700;
  color: var(--text-dark) !important;
  margin-bottom: 0.75rem;
  font-size: 1.25rem;
}

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

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

/* ===== Portfolio Items ===== */
.portfolio-item {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  border-radius: 0.75rem;
  margin-bottom: 1.5rem;
}

.portfolio-img {
  transition: all 0.5s ease;
  width: 100%;
  height: 300px;
  object-fit: cover;
}

.portfolio-item:hover .portfolio-img {
  transform: scale(1.15);
  filter: brightness(0.6);
}

.portfolio-item .badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 10;
  font-size: 0.75rem;
  padding: 0.5rem 0.75rem;
  font-weight: 600;
}

.badge {
  border-radius: 50px;
  padding: 0.35rem 0.75rem;
  font-weight: 600;
  font-size: 0.75rem;
}

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

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

/* ===== Team Member Cards ===== */
.team-member-card {
  position: relative;
  overflow: hidden;
  border-radius: 0.75rem;
  height: 400px;
  cursor: pointer;
}

.team-member-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: all 0.5s ease;
}

.team-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(44, 62, 80, 0.95) 0%, rgba(44, 62, 80, 0.7) 50%, transparent 100%);
  padding: 2rem 1.5rem 1.5rem;
  transform: translateY(60%);
  transition: all 0.4s ease;
}

.team-member-card:hover .team-overlay {
  transform: translateY(0);
}

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

/* ===== Service Cards ===== */
.service-card {
  background: #FFFFFF;
  border-radius: 0.75rem;
  padding: 2rem;
  transition: all var(--transition-speed) ease;
  border: 2px solid transparent;
  height: 100%;
  box-shadow: var(--shadow-sm);
}

.service-card:hover {
  border-color: var(--secondary-color);
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  background: linear-gradient(135deg, #FFFFFF 0%, #FFF5EC 100%);
}

/* ===== Icons ===== */
.bi {
  display: inline-block;
  vertical-align: middle;
  line-height: 1;
}

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

.flex-shrink-0 .bi {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--secondary-color) 0%, var(--copper-dark) 100%);
  color: var(--text-light) !important;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  box-shadow: 0 4px 12px rgba(230, 126, 34, 0.3);
  transition: all var(--transition-speed) ease;
}

.service-card:hover .flex-shrink-0 .bi {
  transform: rotate(10deg) scale(1.1);
}

/* ===== Shadows ===== */
.shadow {
  box-shadow: var(--shadow-md) !important;
}

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

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

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

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

/* ===== Borders ===== */
.border {
  border: 1px solid #dee2e6 !important;
}

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

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

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

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

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

.form-control:focus,
.form-select:focus {
  border-color: var(--secondary-color);
  box-shadow: 0 0 0 0.25rem rgba(230, 126, 34, 0.15) !important;
  outline: none;
}

.form-label {
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
}

.form-check {
  padding-left: 1.75rem;
}

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

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

.form-check-input:focus {
  box-shadow: 0 0 0 0.25rem rgba(230, 126, 34, 0.15) !important;
}

.form-check-label {
  cursor: pointer;
  user-select: none;
  color: var(--text-dark);
}

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

.list-unstyled li {
  padding: 0.5rem 0;
}

/* ===== Spacing Utilities ===== */
.p-0 { padding: 0 !important; }
.p-2 { padding: 0.5rem !important; }
.p-3 { padding: 1rem !important; }
.p-4 { padding: 1.5rem !important; }
.p-5 { padding: 3rem !important; }

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

.py-0 { padding-top: 0 !important; padding-bottom: 0 !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; }

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

.m-0 { margin: 0 !important; }
.m-3 { margin: 1rem !important; }

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

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

.mt-0 { margin-top: 0 !important; }
.mt-1 { margin-top: 0.25rem !important; }
.mt-3 { margin-top: 1rem !important; }
.mt-4 { margin-top: 1.5rem !important; }
.mt-5 { margin-top: 3rem !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; }

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

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

/* ===== Text Utilities ===== */
.text-center { text-align: center !important; }
.text-end { text-align: end !important; }
.text-decoration-none { text-decoration: none !important; }

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

/* ===== Opacity ===== */
.opacity-10 { opacity: 0.1 !important; }
.opacity-25 { opacity: 0.25 !important; }
.opacity-50 { opacity: 0.5 !important; }
.opacity-75 { opacity: 0.75 !important; }

/* ===== Display & Flex ===== */
.d-none { display: none !important; }
.d-flex { display: flex !important; }

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

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

.justify-content-start { justify-content: flex-start !important; }
.justify-content-end { justify-content: flex-end !important; }
.justify-content-center { justify-content: center !important; }
.justify-content-between { justify-content: space-between !important; }

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

.modal.fade {
  transition: opacity 0.3s ease;
}

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

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

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

.modal-content {
  border: none;
  border-radius: 0.75rem;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
  background: var(--primary-color);
}

.modal-header {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding: 1.5rem;
  background: var(--primary-color);
}

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

.modal-body {
  padding: 0;
}

.btn-close,
.btn-close-white {
  opacity: 0.8;
  transition: all var(--transition-speed) ease;
  filter: brightness(0) invert(1);
}

.btn-close:hover,
.btn-close-white:hover {
  opacity: 1;
  transform: rotate(90deg);
}

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

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

@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%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

.animate-fade-in {
  animation: fadeIn 1s ease forwards;
}

.animate-fade-in-up {
  animation: fadeInUp 0.8s ease forwards;
}

.animate-slide-in-left {
  animation: slideInLeft 0.8s ease forwards;
}

.animate-slide-in-right {
  animation: slideInRight 0.8s ease forwards;
}

/* ===== Scroll Animations ===== */
.scroll-animate {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease;
}

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

/* ===== Chevron Down Animation ===== */
.bi-chevron-down {
  animation: pulse 2s ease-in-out infinite;
}

/* ===== Social Media Icons ===== */
.bi-facebook,
.bi-instagram,
.bi-linkedin,
.bi-twitter {
  font-size: 1.5rem;
  color: var(--text-light) !important;
  transition: all var(--transition-speed) ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
}

.bi-facebook:hover { background: #3b5998; transform: translateY(-3px); }
.bi-instagram:hover { background: linear-gradient(45deg, #f09433 0%,#e6683c 25%,#dc2743 50%,#cc2366 75%,#bc1888 100%); transform: translateY(-3px); }
.bi-linkedin:hover { background: #0077b5; transform: translateY(-3px); }
.bi-twitter:hover { background: #1da1f2; transform: translateY(-3px); }

/* ===== Responsive Typography ===== */
@media (max-width: 1200px) {
  html { font-size: 15px; }
}

@media (max-width: 992px) {
  html { font-size: 14px; }
  
  .navbar-nav { margin-top: 1rem; }
  .navbar-nav .nav-link { padding: 0.75rem 1rem !important; }
  
  .d-lg-block { display: block !important; }
  .order-lg-1 { order: 1; }
  .order-lg-2 { order: 2; }
  .flex-lg-row-reverse { flex-direction: row-reverse !important; }
  
  .col-lg-2 { flex: 0 0 auto; width: 16.666667%; }
  .col-lg-3 { flex: 0 0 auto; width: 25%; }
  .col-lg-4 { flex: 0 0 auto; width: 33.333333%; }
  .col-lg-5 { flex: 0 0 auto; width: 41.666667%; }
  .col-lg-6 { flex: 0 0 auto; width: 50%; }
  .col-lg-7 { flex: 0 0 auto; width: 58.333333%; }
  .col-lg-8 { flex: 0 0 auto; width: 66.666667%; }
  .col-lg-9 { flex: 0 0 auto; width: 75%; }
  .col-lg-10 { flex: 0 0 auto; width: 83.333333%; }
  
  .text-lg-end { text-align: end !important; }
  .mt-lg-0 { margin-top: 0 !important; }
  .mb-lg-0 { margin-bottom: 0 !important; }
}

@media (max-width: 768px) {
  .col-md-3 { flex: 0 0 auto; width: 25%; }
  .col-md-4 { flex: 0 0 auto; width: 33.333333%; }
  .col-md-6 { flex: 0 0 auto; width: 50%; }
  .col-md-8 { flex: 0 0 auto; width: 66.666667%; }
  .col-md-12 { flex: 0 0 auto; width: 100%; }
  
  .text-md-start { text-align: start !important; }
  .text-md-end { text-align: end !important; }
  .mb-md-0 { margin-bottom: 0 !important; }
}

@media (max-width: 576px) {
  .col-sm-6 { flex: 0 0 auto; width: 50%; }
  .col-6 { flex: 0 0 auto; width: 50%; }
  .col-12 { flex: 0 0 auto; width: 100%; }
  
  .display-1 { font-size: 2.5rem !important; }
  .display-3 { font-size: 2rem !important; }
  .display-4 { font-size: 1.75rem !important; }
  
  .px-4 { padding-left: 1rem !important; padding-right: 1rem !important; }
  .py-5 { padding-top: 2rem !important; padding-bottom: 2rem !important; }
  .p-5 { padding: 2rem !important; }
  
  .team-member-card { height: 350px; }
  .portfolio-img { height: 200px; }
}

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

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

::-webkit-scrollbar-thumb {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(135deg, var(--secondary-color) 0%, var(--copper-dark) 100%);
}

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

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

/* ===== Additional Utilities ===== */
.w-100 { width: 100% !important; }
.h-100 { height: 100% !important; }
.h1 { font-size: 2.5rem !important; }
.h3 { font-size: 1.75rem !important; }
.h4 { font-size: 1.5rem !important; }
.h5 { font-size: 1.25rem !important; }
.h6 { font-size: 1rem !important; }

.container {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 15px;
}

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

.row {
  display: flex;
  flex-wrap: wrap;
  margin-right: -0.75rem;
  margin-left: -0.75rem;
}

[class^="col-"] {
  padding-right: 0.75rem;
  padding-left: 0.75rem;
}

.col-1 { flex: 0 0 auto; width: 8.333333%; }

.start-0 { left: 0 !important; }
.start-50 { left: 50% !important; }
.end-0 { right: 0 !important; }
.top-0 { top: 0 !important; }
.top-50 { top: 50% !important; }
.bottom-0 { bottom: 0 !important; }

.translate-middle {
  transform: translate(-50%, -50%) !important;
}

.translate-middle-x {
  transform: translateX(-50%) !important;
}

/* ===== Focus Styles ===== */
a:focus,
button:focus,
.btn:focus {
  outline: 2px solid var(--secondary-color);
  outline-offset: 2px;
}

/* ===== Image Optimization ===== */
img {
  max-width: 100%;
  height: auto;
  display: block;
}

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

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

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

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

.loading::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 40px;
  height: 40px;
  border: 4px solid var(--light-bg);
  border-top-color: var(--secondary-color);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: translate(-50%, -50%) rotate(360deg); }
}