/* Racing Red & Carbon Architecture Studio Theme CSS */

/* ===== ROOT VARIABLES ===== */
:root {
  --primary-color: #D32F2F;
  --secondary-color: #212121;
  --accent-red: #FF1744;
  --carbon-dark: #1A1A1A;
  --carbon-light: #2A2A2A;
  --text-light: #FFFFFF;
  --text-muted: #B0B0B0;
  --shadow-sm: 0 2px 8px rgba(211, 47, 47, 0.1);
  --shadow-md: 0 4px 16px rgba(211, 47, 47, 0.2);
  --shadow-lg: 0 8px 32px rgba(211, 47, 47, 0.3);
  --transition-fast: 0.2s ease;
  --transition-normal: 0.4s ease;
  --transition-slow: 0.6s ease;
}

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

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

html {
  scroll-behavior: smooth;
}

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4, h5, h6, .display-1, .display-2, .display-3, .display-4, .display-5 {
  font-weight: 700 !important;
  color: var(--text-light) !important;
  letter-spacing: -0.02em;
}

.display-1 {
  font-size: clamp(2.5rem, 8vw, 6rem) !important;
  line-height: 1.1 !important;
}

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

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

.lead {
  font-size: clamp(1rem, 2vw, 1.25rem) !important;
  color: var(--text-muted) !important;
}

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

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

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

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

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

/* ===== NAVBAR STYLES ===== */
.navbar {
  background: linear-gradient(180deg, rgba(33, 33, 33, 0.95) 0%, rgba(33, 33, 33, 0.85) 100%) !important;
  backdrop-filter: blur(10px);
  border-bottom: 2px solid var(--primary-color);
  padding: 1rem 0 !important;
  transition: all var(--transition-normal);
  z-index: 1000;
}

.navbar.sticky-top {
  box-shadow: var(--shadow-lg);
}

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

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

.navbar-brand .fas,
.navbar-brand .bi {
  color: var(--primary-color) !important;
  animation: rotate 4s linear infinite;
}

@keyframes rotate {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.navbar-dark .navbar-nav .nav-link {
  color: var(--text-light) !important;
  font-weight: 600 !important;
  padding: 0.5rem 1.25rem !important;
  margin: 0 0.25rem;
  position: relative;
  transition: all var(--transition-fast);
  text-transform: uppercase;
  font-size: 0.9rem;
  letter-spacing: 0.5px;
}

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

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

.navbar-dark .navbar-nav .nav-link:hover,
.navbar-dark .navbar-nav .nav-link.active {
  color: var(--primary-color) !important;
  transform: translateY(-2px);
}

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

.navbar-toggler:focus {
  box-shadow: 0 0 0 0.2rem 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='%23D32F2F' 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(--carbon-dark) 0%, var(--secondary-color) 50%, #1A1A1A 100%);
  position: relative;
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: 
    repeating-linear-gradient(
      45deg,
      transparent,
      transparent 10px,
      rgba(211, 47, 47, 0.03) 10px,
      rgba(211, 47, 47, 0.03) 20px
    );
  z-index: 1;
}

.hero-section::after {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 60%;
  height: 200%;
  background: radial-gradient(circle, rgba(211, 47, 47, 0.15) 0%, transparent 70%);
  animation: pulse 8s ease-in-out infinite;
  z-index: 2;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 0.5; }
  50% { transform: scale(1.1); opacity: 0.8; }
}

.video-background {
  object-fit: cover;
  opacity: 0.15;
  z-index: 0;
}

.hero-section .container-fluid,
.hero-section .d-flex {
  position: relative;
  z-index: 10;
}

.hero-section .display-1 {
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.8);
  animation: fadeInUp 1s ease-out;
}

.hero-section .lead {
  text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.8);
  animation: fadeInUp 1.2s ease-out;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

@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: none !important;
  transition: all var(--transition-normal) !important;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: all var(--transition-normal);
  z-index: -1;
}

.btn:hover::before {
  left: 100%;
}

.cta-button {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-red) 100%) !important;
  color: var(--text-light) !important;
  padding: 1rem 2.5rem !important;
  font-size: 1.1rem !important;
  border-radius: 50px !important;
  box-shadow: 0 4px 20px rgba(211, 47, 47, 0.4) !important;
  animation: fadeInUp 1.4s ease-out;
}

.cta-button:hover {
  transform: translateY(-3px) scale(1.05) !important;
  box-shadow: 0 8px 30px rgba(211, 47, 47, 0.6) !important;
  color: var(--text-light) !important;
}

.cta-button:active {
  transform: translateY(-1px) scale(1.02) !important;
}

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

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

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

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

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

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

.filter-btn {
  background: var(--carbon-light) !important;
  color: var(--text-light) !important;
  border: 2px solid transparent !important;
  padding: 0.6rem 1.5rem !important;
  border-radius: 25px !important;
}

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

/* ===== CARDS ===== */
.service-card,
.card {
  background: linear-gradient(145deg, var(--carbon-light) 0%, var(--secondary-color) 100%) !important;
  border: 1px solid rgba(211, 47, 47, 0.2) !important;
  border-radius: 15px !important;
  transition: all var(--transition-normal) !important;
  height: 100%;
  overflow: hidden;
  position: relative;
}

.service-card::before,
.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(211, 47, 47, 0.1) 0%, transparent 100%);
  opacity: 0;
  transition: opacity var(--transition-normal);
  pointer-events: none;
}

.service-card:hover,
.card:hover,
.hover-lift:hover {
  transform: translateY(-10px) !important;
  box-shadow: var(--shadow-lg) !important;
  border-color: var(--primary-color) !important;
}

.service-card:hover::before,
.card:hover::before {
  opacity: 1;
}

.service-card .fas,
.service-card .bi {
  color: var(--primary-color) !important;
  margin-bottom: 1.5rem;
  transition: all var(--transition-normal);
}

.service-card:hover .fas,
.service-card:hover .bi {
  transform: scale(1.2) rotate(5deg);
  filter: drop-shadow(0 0 10px var(--primary-color));
}

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

.service-card p,
.card-text {
  color: var(--text-muted) !important;
  line-height: 1.7;
}

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

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

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

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

/* ===== BADGES ===== */
.badge {
  padding: 0.5rem 1rem !important;
  font-weight: 600 !important;
  border-radius: 20px !important;
  font-size: 0.85rem !important;
}

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

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

.before-after-badge {
  background: var(--primary-color) !important;
  color: var(--text-light) !important;
  box-shadow: var(--shadow-sm);
}

/* ===== GALLERY ===== */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
  padding: 1rem 0;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 15px;
  height: 350px;
}

.gallery-card {
  height: 100%;
  cursor: pointer;
  transition: all var(--transition-normal);
}

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

.gallery-card:hover .card-img-top {
  transform: scale(1.1);
  filter: brightness(0.8);
}

/* ===== FORMS ===== */
.form-floating,
.form-control,
.form-select {
  margin-bottom: 1rem;
}

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

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

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

.form-floating > label {
  color: var(--text-muted) !important;
}

.form-floating > .form-control:focus ~ label,
.form-floating > .form-control:not(:placeholder-shown) ~ label {
  color: var(--primary-color) !important;
}

.form-check-input {
  background-color: var(--carbon-light) !important;
  border: 2px solid rgba(211, 47, 47, 0.3) !important;
  cursor: pointer;
}

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

.form-check-input:focus {
  box-shadow: 0 0 0 0.2rem rgba(211, 47, 47, 0.25) !important;
}

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

.invalid-feedback {
  color: var(--accent-red) !important;
  font-weight: 600 !important;
  display: none;
}

.form-control.is-invalid ~ .invalid-feedback {
  display: block;
}

.form-control.is-invalid {
  border-color: var(--accent-red) !important;
}

/* ===== ALERTS ===== */
.alert {
  border-radius: 10px !important;
  border: none !important;
  padding: 1rem 1.5rem !important;
  font-weight: 600 !important;
}

.alert-success {
  background: linear-gradient(135deg, #2E7D32 0%, #43A047 100%) !important;
  color: var(--text-light) !important;
}

/* ===== ACCORDION ===== */
.accordion-item {
  background: var(--carbon-light) !important;
  border: 1px solid rgba(211, 47, 47, 0.2) !important;
  margin-bottom: 1rem !important;
  border-radius: 10px !important;
  overflow: hidden;
}

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

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

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

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

.accordion-body {
  background: var(--secondary-color) !important;
  color: var(--text-muted) !important;
  padding: 1.5rem !important;
  border-top: 1px solid rgba(211, 47, 47, 0.2) !important;
}

/* ===== MODAL ===== */
.modal-content {
  background: var(--secondary-color) !important;
  border: 2px solid var(--primary-color) !important;
  border-radius: 15px !important;
}

.modal-header {
  border-bottom: 1px solid rgba(211, 47, 47, 0.3) !important;
  padding: 1.5rem !important;
}

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

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

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

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

/* ===== BACKGROUND UTILITIES ===== */
.bg-light {
  background: linear-gradient(180deg, #F5F5F5 0%, #EEEEEE 100%) !important;
}

.bg-light h1, .bg-light h2, .bg-light h3, .bg-light h4, .bg-light h5, .bg-light h6,
.bg-light p, .bg-light .lead, .bg-light .text-muted {
  color: var(--secondary-color) !important;
}

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

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

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

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

.object-fit-cover {
  object-fit: cover;
  width: 100%;
  height: 100%;
}

/* ===== POSITIONING ===== */
.position-relative {
  position: relative !important;
}

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

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

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

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

.start-0 {
  left: 0 !important;
}

.end-0 {
  right: 0 !important;
}

/* ===== SPACING ===== */
.p-0 { padding: 0 !important; }
.p-3 { padding: 1rem !important; }
.p-4 { padding: 1.5rem !important; }
.p-5 { padding: 3rem !important; }
.p-md-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-3 { padding-top: 1rem !important; padding-bottom: 1rem !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; }

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

.m-2 { margin: 0.5rem !important; }
.mt-1 { margin-top: 0.25rem !important; }
.mt-3 { margin-top: 1rem !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; }
.mb-lg-0 { margin-bottom: 0 !important; }
.mb-md-0 { margin-bottom: 0 !important; }
.me-1 { margin-right: 0.25rem !important; }
.me-2 { margin-right: 0.5rem !important; }
.me-3 { margin-right: 1rem !important; }
.ms-2 { margin-left: 0.5rem !important; }
.ms-4 { margin-left: 1.5rem !important; }
.ms-auto { margin-left: auto !important; }
.ms-n3 { margin-left: -1rem !important; }
.my-4 { margin-top: 1.5rem !important; margin-bottom: 1.5rem !important; }
.my-5 { margin-top: 3rem !important; margin-bottom: 3rem !important; }

/* ===== FLEXBOX ===== */
.d-flex {
  display: flex !important;
}

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

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

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

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

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

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

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

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

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

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

/* ===== TEXT UTILITIES ===== */
.text-center {
  text-align: center !important;
}

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

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

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

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

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

/* ===== SIZING ===== */
.w-100 {
  width: 100% !important;
}

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

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

/* ===== OVERFLOW ===== */
.overflow-hidden {
  overflow: hidden !important;
}

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

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

.list-unstyled a {
  color: var(--text-muted) !important;
  text-decoration: none !important;
  transition: all var(--transition-fast) !important;
  display: inline-block;
}

.list-unstyled a:hover {
  color: var(--primary-color) !important;
  transform: translateX(5px) !important;
}

/* ===== NAV TABS ===== */
.nav {
  display: flex;
  flex-wrap: wrap;
  padding-left: 0;
  margin-bottom: 0;
  list-style: none;
}

.nav-link {
  display: block;
  padding: 0.5rem 1rem;
  color: var(--text-light) !important;
  text-decoration: none;
  transition: all var(--transition-fast);
}

/* ===== GRID SYSTEM ===== */
.container,
.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;
  margin-left: 0;
}

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

.g-3 {
  gap: 1rem;
}

.g-4 {
  gap: 1.5rem;
}

[class*="col-"] {
  padding-right: 15px;
  padding-left: 15px;
}

.col-12 {
  flex: 0 0 100%;
  max-width: 100%;
}

/* ===== FOOTER ===== */
footer {
  background: linear-gradient(180deg, var(--carbon-dark) 0%, #0A0A0A 100%) !important;
  border-top: 2px solid var(--primary-color);
  margin-top: 5rem;
}

footer h5, footer h6 {
  color: var(--text-light) !important;
  font-weight: 700 !important;
  margin-bottom: 1.5rem !important;
  text-transform: uppercase;
  letter-spacing: 1px;
}

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

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

footer .fab, footer .bi {
  font-size: 1.5rem;
  margin: 0 0.5rem;
  transition: all var(--transition-fast);
  color: var(--text-light) !important;
}

footer .fab:hover, footer .bi:hover {
  color: var(--primary-color) !important;
  transform: translateY(-3px) scale(1.2);
}

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

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

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

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

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 991.98px) {
  .navbar-collapse {
    background: rgba(33, 33, 33, 0.98);
    padding: 1rem;
    border-radius: 10px;
    margin-top: 1rem;
    border: 1px solid rgba(211, 47, 47, 0.3);
  }

  .navbar-nav .nav-link {
    padding: 0.75rem 1rem !important;
  }

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

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

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

  .hero-section {
    min-height: 80vh;
  }

  .service-card,
  .gallery-item {
    margin-bottom: 1.5rem;
  }

  .ps-lg-5 {
    padding-left: 1rem !important;
  }

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

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

  .mb-lg-0 {
    margin-bottom: 1.5rem !important;
  }

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

  .col-lg-2, .col-lg-3, .col-lg-4, .col-lg-5, .col-lg-6, .col-lg-7, .col-lg-8, .col-lg-9, .col-lg-10 {
    flex: 0 0 100%;
    max-width: 100%;
  }

  .offset-lg-2 {
    margin-left: 0;
  }

  .gallery-grid {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1rem;
  }
}

@media (min-width: 768px) {
  .col-md-4 {
    flex: 0 0 33.333333%;
    max-width: 33.333333%;
  }

  .col-md-5 {
    flex: 0 0 41.666667%;
    max-width: 41.666667%;
  }

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

  .col-md-7 {
    flex: 0 0 58.333333%;
    max-width: 58.333333%;
  }

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

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

  .mb-md-0 {
    margin-bottom: 0 !important;
  }

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

@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%;
  }

  .offset-lg-2 {
    margin-left: 16.666667%;
  }

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

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

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

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

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

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

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

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

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

/* ===== FOCUS STYLES ===== */
a:focus,
button:focus,
input:focus,
textarea:focus,
select:focus {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
}

/* ===== LOADING ANIMATION ===== */
@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.spinner {
  border: 4px solid rgba(211, 47, 47, 0.1);
  border-top: 4px solid var(--primary-color);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  animation: spin 1s linear infinite;
}

/* ===== PRINT STYLES ===== */
@media print {
  .navbar,
  .btn,
  footer {
    display: none !important;
  }

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