/* Midnight Gold Architecture Studio - Custom Styles */

/* ===== CSS Variables ===== */
:root {
  --primary-color: #2C3E50;
  --secondary-color: #E8B547;
  --dark-bg: #1a252f;
  --light-bg: #f8f9fa;
  --text-dark: #2C3E50;
  --text-light: #ffffff;
  --gold-gradient: linear-gradient(135deg, #E8B547 0%, #d4a043 100%);
  --dark-gradient: linear-gradient(135deg, #2C3E50 0%, #1a252f 100%);
  --transition-smooth: all 0.3s ease;
  --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 Styles ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

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

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  color: var(--primary-color);
}

a {
  text-decoration: none;
  transition: var(--transition-smooth);
}

/* ===== Navigation Bar ===== */
.navbar {
  background: rgba(26, 37, 47, 0.95) !important;
  backdrop-filter: blur(10px);
  padding: 1rem 0;
  box-shadow: var(--shadow-md);
  transition: var(--transition-smooth);
}

.navbar.scrolled {
  background: rgba(26, 37, 47, 0.98) !important;
  box-shadow: var(--shadow-lg);
}

.navbar-brand {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--text-light) !important;
  letter-spacing: 1px;
  transition: var(--transition-smooth);
}

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

.navbar-dark .navbar-nav .nav-link {
  color: rgba(255, 255, 255, 0.9) !important;
  font-weight: 500;
  padding: 0.5rem 1.2rem !important;
  margin: 0 0.2rem;
  border-radius: 4px;
  transition: var(--transition-smooth);
  position: relative;
}

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

.navbar-dark .navbar-nav .nav-link:hover,
.navbar-dark .navbar-nav .nav-link.active {
  color: var(--secondary-color) !important;
  background: rgba(232, 181, 71, 0.1);
}

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

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

.navbar-toggler:focus {
  box-shadow: 0 0 0 0.2rem rgba(232, 181, 71, 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='%23E8B547' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
}

/* ===== Buttons ===== */
.btn {
  font-weight: 600;
  letter-spacing: 0.5px;
  border-radius: 8px;
  transition: var(--transition-smooth);
  border: 2px solid transparent;
  text-transform: uppercase;
  font-size: 0.9rem;
}

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

.btn-sm {
  padding: 0.5rem 1.5rem !important;
  font-size: 0.85rem;
}

.btn-primary {
  background: var(--secondary-color) !important;
  border-color: var(--secondary-color) !important;
  color: var(--primary-color) !important;
  box-shadow: 0 4px 12px rgba(232, 181, 71, 0.3);
}

.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active {
  background: #d4a043 !important;
  border-color: #d4a043 !important;
  color: var(--primary-color) !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(232, 181, 71, 0.4);
}

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

.btn-secondary:hover,
.btn-secondary:focus,
.btn-secondary:active {
  background: #1a252f !important;
  border-color: #1a252f !important;
  color: var(--text-light) !important;
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

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

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

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

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

/* ===== Hero Section ===== */
.position-relative {
  overflow: hidden;
}

.hero-section {
  min-height: 100vh;
  background: linear-gradient(135deg, var(--primary-color) 0%, #1a252f 100%);
  position: relative;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('data:image/svg+xml,%3Csvg width="60" height="60" viewBox="0 0 60 60" xmlns="http://www.w3.org/2000/svg"%3E%3Cg fill="none" fill-rule="evenodd"%3E%3Cg fill="%23E8B547" fill-opacity="0.05"%3E%3Cpath d="M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z"/%3E%3C/g%3E%3C/g%3E%3C/svg%3E');
  opacity: 0.3;
  animation: patternMove 60s linear infinite;
}

@keyframes patternMove {
  0% { transform: translate(0, 0); }
  100% { transform: translate(60px, 60px); }
}

.display-1 {
  font-size: clamp(2.5rem, 8vw, 5rem);
  color: var(--text-light) !important;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
  animation: fadeInUp 1s ease-out;
}

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

.display-4 {
  font-size: clamp(1.8rem, 5vw, 3rem);
  color: var(--primary-color) !important;
}

.display-5 {
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  color: var(--primary-color) !important;
}

.display-6 {
  font-size: clamp(1.2rem, 3vw, 2rem);
  color: var(--primary-color) !important;
}

.lead {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: rgba(255, 255, 255, 0.9) !important;
  animation: fadeInUp 1s ease-out 0.3s both;
}

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

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

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

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

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

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

/* ===== Cards ===== */
.card {
  border: none !important;
  border-radius: 12px;
  overflow: hidden;
  transition: var(--transition-smooth);
  height: 100%;
  background: #ffffff;
}

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

.card-body {
  padding: 2rem;
}

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

.card-text {
  color: #6c757d;
  line-height: 1.7;
}

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

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

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

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

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

/* ===== Background Colors ===== */
.bg-white {
  background-color: #ffffff !important;
}

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

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

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

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

/* ===== Images ===== */
.img-fluid {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: var(--shadow-md);
  transition: var(--transition-smooth);
}

.img-fluid:hover {
  transform: scale(1.02);
  box-shadow: var(--shadow-lg);
}

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

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

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

/* ===== Portfolio Filter ===== */
.filter-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin-bottom: 3rem;
}

.filter-btn {
  background: transparent;
  border: 2px solid var(--primary-color);
  color: var(--primary-color) !important;
  padding: 0.75rem 2rem;
  border-radius: 50px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-smooth);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-size: 0.9rem;
}

.filter-btn:hover,
.filter-btn.active {
  background: var(--secondary-color) !important;
  border-color: var(--secondary-color) !important;
  color: var(--primary-color) !important;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(232, 181, 71, 0.3);
}

.portfolio-item {
  opacity: 1;
  transform: scale(1);
  transition: all 0.5s ease;
  display: block;
}

.portfolio-item.hide {
  opacity: 0;
  transform: scale(0.8);
  display: none;
}

.residential,
.commercial,
.sustainable,
.heritage,
.urban {
  position: relative;
}

/* ===== Badge ===== */
.badge {
  padding: 0.5rem 1rem;
  font-weight: 600;
  border-radius: 6px;
  font-size: 0.75rem;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

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

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

/* ===== Forms ===== */
.form-label {
  font-weight: 600;
  color: var(--primary-color);
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
}

.form-control,
.form-select {
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  padding: 0.75rem 1rem;
  font-size: 1rem;
  transition: var(--transition-smooth);
  background-color: #ffffff;
  color: var(--text-dark);
}

.form-control:focus,
.form-select:focus {
  border-color: var(--secondary-color) !important;
  box-shadow: 0 0 0 0.2rem rgba(232, 181, 71, 0.25) !important;
  background-color: #ffffff;
  color: var(--text-dark);
}

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

.form-check-input {
  width: 1.2rem;
  height: 1.2rem;
  border: 2px solid #e0e0e0;
  border-radius: 4px;
  cursor: pointer;
}

.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.2rem rgba(232, 181, 71, 0.25) !important;
}

.form-check-label {
  margin-left: 0.5rem;
  cursor: pointer;
  color: var(--text-dark);
}

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

.modal-content {
  border-radius: 16px;
  border: none;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
  overflow: hidden;
}

.modal-header {
  background: var(--dark-gradient);
  border-bottom: none;
  padding: 2rem;
  color: var(--text-light);
}

.modal-header .btn-close {
  filter: invert(1) grayscale(100%) brightness(200%);
  opacity: 0.8;
}

.modal-header .btn-close:hover {
  opacity: 1;
}

.modal-body {
  padding: 2rem;
  max-height: 70vh;
  overflow-y: auto;
}

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

.modal-dialog {
  max-width: 800px;
}

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

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

.modal-dialog-scrollable .modal-body {
  overflow-y: auto;
}

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

.fs-1 { font-size: 2.5rem !important; }
.fs-2 { font-size: 2rem !important; }
.fs-4 { font-size: 1.5rem !important; }
.fs-5 { font-size: 1.25rem !important; }

/* ===== Spacing Utilities ===== */
.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; }
.px-4 { padding-left: 1.5rem !important; padding-right: 1.5rem !important; }
.px-5 { padding-left: 3rem !important; padding-right: 3rem !important; }
.p-3 { padding: 1rem !important; }
.p-4 { padding: 1.5rem !important; }
.p-5 { padding: 3rem !important; }
.ps-3 { padding-left: 1rem !important; }
.ps-4 { padding-left: 1.5rem !important; }
.ps-5 { padding-left: 3rem !important; }
.ps-lg-5 { padding-left: 3rem !important; }
.pe-lg-4 { padding-right: 1.5rem !important; }
.pt-4 { padding-top: 1.5rem !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; }
.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; }
.my-4 { margin-top: 1.5rem !important; margin-bottom: 1.5rem !important; }
.me-1 { margin-right: 0.25rem !important; }
.me-2 { margin-right: 0.5rem !important; }
.me-3 { margin-right: 1rem !important; }
.me-4 { margin-right: 1.5rem !important; }
.ms-2 { margin-left: 0.5rem !important; }
.ms-4 { margin-left: 1.5rem !important; }
.ms-auto { margin-left: auto !important; }
.m-3 { margin: 1rem !important; }
.mx-auto { margin-left: auto !important; margin-right: auto !important; }

/* ===== Gap Utilities ===== */
.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; }

/* ===== Flexbox Utilities ===== */
.d-flex { display: flex !important; }
.d-block { display: block !important; }
.flex-column { flex-direction: column !important; }
.flex-row { flex-direction: row !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-start { align-items: flex-start !important; }
.align-self-start { align-self: flex-start !important; }
.justify-content-center { justify-content: center !important; }
.justify-content-end { justify-content: flex-end !important; }
.justify-content-between { justify-content: space-between !important; }
.justify-content-lg-end { justify-content: flex-end !important; }

/* ===== Position Utilities ===== */
.position-relative { position: relative !important; }
.position-absolute { position: absolute !important; }
.position-sticky { position: sticky !important; }
.sticky-top { position: sticky !important; top: 0 !important; z-index: 1020; }
.top-0 { top: 0 !important; }
.bottom-0 { bottom: 0 !important; }
.start-0 { left: 0 !important; }
.end-0 { right: 0 !important; }
.fixed-top { position: fixed !important; top: 0 !important; right: 0 !important; left: 0 !important; z-index: 1030; }

/* ===== Width & Height Utilities ===== */
.w-100 { width: 100% !important; }
.h-100 { height: 100% !important; }

/* ===== Text Utilities ===== */
.text-center { text-align: center !important; }
.text-uppercase { text-transform: uppercase !important; }
.text-decoration-none { text-decoration: none !important; }
.text-md-start { text-align: left !important; }
.text-md-end { text-align: right !important; }
.text-lg-end { text-align: right !important; }
.fw-bold { font-weight: 700 !important; }
.fst-italic { font-style: italic !important; }

/* ===== Other Utilities ===== */
.overflow-hidden { overflow: hidden !important; }
.border-0 { border: none !important; }
.border-top { border-top: 1px solid #dee2e6 !important; }
.border-start { border-left: 4px solid var(--secondary-color) !important; }
.border-3 { border-width: 3px !important; }
.opacity-25 { opacity: 0.25 !important; }
.opacity-75 { opacity: 0.75 !important; }
.h3 { font-size: 1.75rem !important; }
.h4 { font-size: 1.5rem !important; }
.h5 { font-size: 1.25rem !important; }
.h6 { font-size: 1rem !important; }
.small { font-size: 0.875rem !important; }
.list-unstyled { list-style: none !important; padding-left: 0 !important; }

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

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

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

.ratio-21x9 {
  --bs-aspect-ratio: 42.857143%;
}

/* ===== Order Utilities ===== */
.order-lg-1 { order: 1 !important; }
.order-lg-2 { order: 2 !important; }

/* ===== Footer ===== */
footer {
  background: var(--dark-gradient);
  color: rgba(255, 255, 255, 0.8);
  padding: 4rem 0 2rem;
}

footer a {
  color: rgba(255, 255, 255, 0.7) !important;
  transition: var(--transition-smooth);
}

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

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

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

/* ===== Scroll to Top Button ===== */
#scrollToTop {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--secondary-color);
  color: var(--primary-color);
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition-smooth);
  z-index: 1000;
  box-shadow: 0 4px 12px rgba(232, 181, 71, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
}

#scrollToTop.show {
  opacity: 1;
  visibility: visible;
}

#scrollToTop:hover {
  background: #d4a043;
  transform: translateY(-5px);
  box-shadow: 0 6px 20px rgba(232, 181, 71, 0.5);
}

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

/* ===== Responsive Design ===== */
@media (max-width: 991.98px) {
  .navbar-collapse {
    background: rgba(26, 37, 47, 0.98);
    padding: 1.5rem;
    border-radius: 8px;
    margin-top: 1rem;
    box-shadow: var(--shadow-lg);
  }
  
  .navbar-nav {
    gap: 0.5rem;
  }
  
  .display-1 {
    font-size: 3rem;
  }
  
  .display-3 {
    font-size: 2.5rem;
  }
  
  .display-4 {
    font-size: 2rem;
  }
  
  .btn-lg {
    padding: 0.875rem 2rem !important;
  }
  
  .py-5 {
    padding-top: 2rem !important;
    padding-bottom: 2rem !important;
  }
  
  .ps-lg-5 {
    padding-left: 1rem !important;
  }
  
  .pe-lg-4 {
    padding-right: 1rem !important;
  }
  
  .text-lg-end {
    text-align: center !important;
  }
  
  .justify-content-lg-end {
    justify-content: center !important;
  }
  
  .order-lg-1,
  .order-lg-2 {
    order: 0 !important;
  }
  
  .mb-lg-0 {
    margin-bottom: 1.5rem !important;
  }
}

@media (max-width: 767.98px) {
  .display-1 {
    font-size: 2.5rem;
  }
  
  .display-3 {
    font-size: 2rem;
  }
  
  .fs-4 {
    font-size: 1.25rem !important;
  }
  
  .px-4 {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }
  
  .gap-3 {
    gap: 0.75rem !important;
  }
  
  .btn-lg {
    padding: 0.75rem 1.5rem !important;
    font-size: 0.9rem;
  }
  
  .card-body {
    padding: 1.5rem;
  }
  
  .filter-btn {
    padding: 0.6rem 1.5rem;
    font-size: 0.85rem;
  }
  
  .modal-body {
    padding: 1.5rem;
  }
  
  .flex-sm-row {
    flex-direction: row !important;
  }
  
  #scrollToTop {
    width: 45px;
    height: 45px;
    bottom: 20px;
    right: 20px;
    font-size: 1.25rem;
  }
}

@media (max-width: 575.98px) {
  .navbar-brand {
    font-size: 1.5rem;
  }
  
  .display-1 {
    font-size: 2rem;
  }
  
  .display-3 {
    font-size: 1.75rem;
  }
  
  .display-4 {
    font-size: 1.5rem;
  }
  
  .fs-1 {
    font-size: 2rem !important;
  }
  
  .fs-2 {
    font-size: 1.5rem !important;
  }
  
  .py-5 {
    padding-top: 1.5rem !important;
    padding-bottom: 1.5rem !important;
  }
  
  .btn-lg {
    padding: 0.625rem 1.25rem !important;
    font-size: 0.85rem;
    width: 100%;
  }
  
  .gap-3 {
    gap: 0.5rem !important;
  }
  
  .filter-buttons {
    gap: 0.5rem;
  }
  
  .filter-btn {
    padding: 0.5rem 1rem;
    font-size: 0.8rem;
    flex: 1 1 calc(50% - 0.5rem);
  }
  
  .modal-dialog {
    margin: 0.5rem;
  }
  
  .flex-column {
    flex-direction: column !important;
  }
}

/* ===== Print Styles ===== */
@media print {
  .navbar,
  .btn,
  #scrollToTop,
  .filter-buttons {
    display: none !important;
  }
  
  body {
    background: white;
    color: black;
  }
  
  .card {
    break-inside: avoid;
  }
}

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

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

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

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

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

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

/* ===== Focus Visible ===== */
*:focus-visible {
  outline: 2px solid var(--secondary-color);
  outline-offset: 2px;
}

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

/* ===== Smooth Transitions ===== */
* {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

html {
  scroll-behavior: smooth;
}

/* ===== Additional Custom Styles ===== */
.container-fluid {
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

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

.row > * {
  padding-left: 0.75rem;
  padding-right: 0.75rem;
}

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

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

/* ===== Text Gradient ===== */
.text-gradient {
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ===== Backdrop Blur ===== */
.backdrop-blur {
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

/* ===== Custom Container Max Widths ===== */
@media (min-width: 1400px) {
  .container,
  .container-lg,
  .container-md,
  .container-sm,
  .container-xl,
  .container-xxl {
    max-width: 1320px;
  }
}