/* Ember Steel Architecture Studio - Custom Styles */

/* ===== CSS Variables ===== */
:root {
  --primary-color: #D84315;
  --secondary-color: #37474F;
  --dark-bg: #1a1a1a;
  --light-bg: #f8f9fa;
  --text-dark: #212529;
  --text-light: #ffffff;
  --transition-speed: 0.3s;
  --box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  --box-shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.2);
}

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

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

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

/* ===== Typography ===== */
.display-1, .display-2, .display-3, .display-4, .display-5, .display-6 {
  font-weight: 700 !important;
  letter-spacing: -0.02em;
}

.h1, .h2, .h3, .h4, .h5, .h6, h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  color: var(--secondary-color);
}

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

/* ===== Navbar Styles ===== */
.navbar {
  background: linear-gradient(135deg, var(--secondary-color) 0%, rgba(55, 71, 79, 0.95) 100%) !important;
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  padding: 1rem 0;
  transition: all var(--transition-speed) ease;
}

.navbar.fixed-top {
  z-index: 1030;
}

.navbar-dark .navbar-brand {
  color: var(--text-light) !important;
  font-size: 1.5rem;
  font-weight: 700 !important;
  letter-spacing: 0.5px;
  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;
  font-weight: 500;
  padding: 0.5rem 1rem !important;
  margin: 0 0.25rem;
  border-radius: 4px;
  transition: all var(--transition-speed) ease;
  position: relative;
}

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

.navbar-dark .navbar-nav .nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80%;
  height: 2px;
  background-color: var(--text-light);
}

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

.navbar-toggler:focus {
  box-shadow: 0 0 0 0.2rem rgba(216, 67, 21, 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 ===== */
.position-relative.overflow-hidden {
  min-height: 100vh;
  background: linear-gradient(135deg, var(--secondary-color) 0%, #263238 50%, var(--dark-bg) 100%);
  position: relative;
}

.position-relative.overflow-hidden::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 600"><path d="M0,300 Q300,100 600,300 T1200,300 L1200,600 L0,600 Z" fill="rgba(216,67,21,0.1)"/></svg>') no-repeat bottom center;
  background-size: cover;
  opacity: 0.3;
  animation: waveAnimation 20s ease-in-out infinite;
}

@keyframes waveAnimation {
  0%, 100% { transform: translateX(0) scaleY(1); }
  50% { transform: translateX(-50px) scaleY(1.1); }
}

.position-relative .text-white {
  color: var(--text-light) !important;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
  z-index: 2;
}

.position-relative .display-3 {
  animation: fadeInUp 1s ease-out;
  font-size: clamp(2rem, 5vw, 3.5rem);
}

.position-relative .lead {
  animation: fadeInUp 1.2s ease-out;
  color: rgba(255, 255, 255, 0.95) !important;
}

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

/* ===== Buttons ===== */
.btn {
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-radius: 50px;
  transition: all var(--transition-speed) ease;
  border: none;
  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: 1rem;
}

.btn-primary,
.btn[style*="background-color"] {
  background-color: var(--primary-color) !important;
  color: var(--text-light) !important;
  box-shadow: 0 4px 15px rgba(216, 67, 21, 0.4);
}

.btn-primary:hover,
.btn[style*="background-color"]:hover {
  background-color: #BF360C !important;
  color: var(--text-light) !important;
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(216, 67, 21, 0.6);
}

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

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

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

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

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

.btn-close,
.btn-close-white {
  background-color: var(--primary-color) !important;
  opacity: 1 !important;
  border-radius: 50%;
  padding: 0.5rem;
}

.btn-close:hover,
.btn-close-white:hover {
  transform: rotate(90deg);
  background-color: #BF360C !important;
}

.btn-group .btn {
  border-radius: 50px !important;
  margin: 0 0.25rem;
}

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

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

/* ===== Cards ===== */
.card {
  border: none !important;
  border-radius: 12px;
  overflow: hidden;
  transition: all var(--transition-speed) ease;
  background-color: var(--text-light);
}

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

.card-header {
  background: linear-gradient(135deg, var(--secondary-color) 0%, #263238 100%) !important;
  color: var(--text-light) !important;
  font-weight: 600;
  border: none !important;
  padding: 1.25rem;
}

.card-body {
  padding: 1.5rem;
}

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

.card-text {
  color: var(--text-dark);
  line-height: 1.8;
}

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

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

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

/* ===== Service Cards with Flip Effect ===== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  padding: 2rem 0;
}

.service-card-flip {
  perspective: 1000px;
  height: 350px;
  position: relative;
}

.service-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transition: transform 0.8s;
  transform-style: preserve-3d;
}

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

.service-card-front,
.service-card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 2rem;
  box-shadow: var(--box-shadow-lg);
}

.service-card-front {
  background: linear-gradient(135deg, var(--secondary-color) 0%, #263238 100%);
  color: var(--text-light) !important;
}

.service-card-back {
  background: linear-gradient(135deg, var(--primary-color) 0%, #BF360C 100%);
  color: var(--text-light) !important;
  transform: rotateY(180deg);
}

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

.service-card-front .service-icon {
  color: var(--primary-color);
}

.service-card-back .service-icon {
  color: var(--text-light);
}

.service-card-front h3,
.service-card-back h3 {
  color: var(--text-light) !important;
  margin-bottom: 1rem;
}

.service-card-back p {
  color: rgba(255, 255, 255, 0.95) !important;
  text-align: center;
}

/* ===== Timeline Section ===== */
.timeline-section {
  position: relative;
  padding: 3rem 0;
}

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

.timeline-item::before {
  content: '';
  position: absolute;
  left: -9px;
  top: 0;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background-color: var(--primary-color);
  box-shadow: 0 0 0 4px var(--text-light), 0 0 0 6px var(--primary-color);
}

.timeline-item:last-child {
  border-left-color: transparent;
}

.timeline-item .h5 {
  color: var(--primary-color) !important;
  font-weight: 700;
}

/* ===== Masonry Grid ===== */
.masonry-grid {
  column-count: 3;
  column-gap: 1.5rem;
}

.masonry-item {
  break-inside: avoid;
  margin-bottom: 1.5rem;
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: var(--box-shadow);
  transition: all var(--transition-speed) ease;
}

.masonry-item:hover {
  transform: scale(1.03);
  box-shadow: var(--box-shadow-lg);
}

.workshop-photo {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
}

.workshop-photo img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.5s ease;
}

.workshop-photo:hover img {
  transform: scale(1.1);
}

.photo-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, transparent 50%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.5rem;
  opacity: 0;
  transition: opacity var(--transition-speed) ease;
}

.workshop-photo:hover .photo-overlay {
  opacity: 1;
}

.photo-overlay p,
.photo-overlay .small {
  color: var(--text-light) !important;
  margin: 0;
}

@media (max-width: 991px) {
  .masonry-grid {
    column-count: 2;
  }
}

@media (max-width: 576px) {
  .masonry-grid {
    column-count: 1;
  }
}

/* ===== Gallery ===== */
.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  cursor: pointer;
  height: 300px;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.gallery-item:hover img {
  transform: scale(1.15);
}

.gallery-trigger {
  cursor: pointer;
  transition: all var(--transition-speed) ease;
}

.gallery-trigger:hover {
  opacity: 0.8;
}

/* ===== Before/After Slider ===== */
.before-after-slider {
  position: relative;
  width: 100%;
  height: 400px;
  overflow: hidden;
  border-radius: 12px;
}

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

.after-image {
  clip-path: inset(0 50% 0 0);
  transition: clip-path 0.3s ease;
}

.slider-handle {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 50px;
  height: 50px;
  background-color: var(--primary-color);
  border-radius: 50%;
  cursor: ew-resize;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-light);
  font-size: 1.5rem;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  z-index: 10;
}

.slider-handle::before {
  content: '';
  position: absolute;
  width: 2px;
  height: 400px;
  background-color: var(--primary-color);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: -1;
}

/* ===== Forms ===== */
.needs-validation {
  position: relative;
}

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

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

.form-control:focus,
.form-select:focus {
  border-color: var(--primary-color) !important;
  box-shadow: 0 0 0 0.2rem rgba(216, 67, 21, 0.25) !important;
  outline: none;
}

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

.form-control.is-valid,
.form-select.is-valid {
  border-color: #28a745 !important;
}

.form-control.is-invalid,
.form-select.is-invalid {
  border-color: #dc3545 !important;
}

.valid-feedback {
  color: #28a745 !important;
  font-size: 0.875rem;
  margin-top: 0.25rem;
}

.invalid-feedback {
  color: #dc3545 !important;
  font-size: 0.875rem;
  margin-top: 0.25rem;
}

.form-check-input {
  width: 1.25rem;
  height: 1.25rem;
  border: 2px solid #e0e0e0;
  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(216, 67, 21, 0.25) !important;
}

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

/* ===== Alerts ===== */
.alert {
  border: none;
  border-radius: 8px;
  padding: 1rem 1.25rem;
  animation: slideInDown 0.5s ease;
}

.alert-success {
  background-color: #d4edda !important;
  color: #155724 !important;
  border-left: 4px solid #28a745;
}

@keyframes slideInDown {
  from {
    transform: translateY(-20px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

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

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

.modal-header {
  background: linear-gradient(135deg, var(--secondary-color) 0%, #263238 100%);
  color: var(--text-light) !important;
  border: none;
  padding: 1.5rem;
}

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

.modal-body {
  padding: 2rem;
  background-color: var(--light-bg);
}

.modal-footer {
  border: none;
  padding: 1.5rem;
  background-color: var(--light-bg);
}

.modal-backdrop {
  background-color: rgba(0, 0, 0, 0.7);
}

.modal-dialog-centered {
  display: flex;
  align-items: center;
}

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

/* ===== Accordion ===== */
.accordion {
  border-radius: 12px;
  overflow: hidden;
}

.accordion-item {
  border: none !important;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1) !important;
  background-color: var(--text-light);
}

.accordion-item:last-child {
  border-bottom: none !important;
}

.accordion-header {
  margin: 0;
}

.accordion-button {
  background-color: var(--light-bg) !important;
  color: var(--secondary-color) !important;
  font-weight: 600;
  padding: 1.25rem 1.5rem;
  border: none;
  transition: all var(--transition-speed) ease;
}

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

.accordion-button:focus {
  box-shadow: 0 0 0 0.2rem rgba(216, 67, 21, 0.25) !important;
  border: none;
}

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

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

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

.accordion-collapse {
  border: none;
}

/* ===== Badges ===== */
.badge {
  padding: 0.5rem 1rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.875rem;
  letter-spacing: 0.5px;
}

.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(--text-light) !important;
}

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

.bi-geo-alt-fill,
.bi-telephone-fill,
.bi-envelope-fill,
.bi-gear-fill,
.bi-check-circle-fill,
.bi-send-fill,
.bi-clock-fill,
.bi-info-circle-fill,
.bi-award-fill,
.bi-chat-dots-fill,
.bi-calendar-check-fill,
.bi-cpu,
.bi-hourglass-split,
.bi-speedometer2,
.bi-gear-wide-connected,
.bi-hammer,
.bi-calendar-check,
.bi-arrows-expand {
  color: var(--primary-color);
}

/* ===== Utility Classes ===== */
.text-white {
  color: var(--text-light) !important;
}

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

.position-fixed {
  position: fixed !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;
}

.start-50 {
  left: 50% !important;
}

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

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

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

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

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

.max-w-600 {
  max-width: 600px !important;
}

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

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

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

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

/* ===== Sidebar Navigation ===== */
.sidebar-nav {
  position: sticky;
  top: 100px;
  background-color: var(--light-bg);
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: var(--box-shadow);
}

.sidebar-nav .nav {
  flex-direction: column;
}

.sidebar-nav .nav-link {
  color: var(--secondary-color) !important;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  margin-bottom: 0.5rem;
  transition: all var(--transition-speed) ease;
  font-weight: 500;
}

.sidebar-nav .nav-link:hover,
.sidebar-nav .nav-link.active {
  background-color: var(--primary-color) !important;
  color: var(--text-light) !important;
  transform: translateX(5px);
}

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

.list-unstyled li {
  padding: 0.5rem 0;
  color: var(--text-dark);
}

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

.pt-4 { padding-top: 1.5rem !important; }
.pt-5 { padding-top: 3rem !important; }
.pb-3 { padding-bottom: 1rem !important; }
.pb-4 { padding-bottom: 1.5rem !important; }
.py-0 { padding-top: 0 !important; padding-bottom: 0 !important; }
.py-2 { padding-top: 0.5rem !important; padding-bottom: 0.5rem !important; }
.py-3 { padding-top: 1rem !important; padding-bottom: 1rem !important; }
.py-4 { padding-top: 1.5rem !important; padding-bottom: 1.5rem !important; }
.py-5 { padding-top: 3rem !important; padding-bottom: 3rem !important; }
.px-4 { padding-left: 1.5rem !important; padding-right: 1.5rem !important; }
.px-5 { padding-left: 3rem !important; padding-right: 3rem !important; }
.ps-3 { padding-left: 1rem !important; }
.ps-4 { padding-left: 1.5rem !important; }

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

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

/* ===== Responsive Grid System ===== */
.row {
  display: flex;
  flex-wrap: wrap;
  margin-left: -0.75rem;
  margin-right: -0.75rem;
}

.container,
.container-fluid {
  width: 100%;
  padding-left: 0.75rem;
  padding-right: 0.75rem;
  margin-left: auto;
  margin-right: auto;
}

.container {
  max-width: 1200px;
}

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

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

/* ===== Responsive Design ===== */
@media (min-width: 576px) {
  .col-sm-6 { flex: 0 0 50%; max-width: 50%; }
}

@media (min-width: 768px) {
  .container { max-width: 720px; }
  .col-md-3 { flex: 0 0 25%; max-width: 25%; }
  .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%; }
  .col-md-8 { flex: 0 0 66.666667%; max-width: 66.666667%; }
  
  .text-md-start { text-align: left !important; }
  .text-md-end { text-align: right !important; }
  .d-md-block { display: block !important; }
}

@media (min-width: 992px) {
  .container { max-width: 960px; }
  .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-12 { flex: 0 0 100%; max-width: 100%; }
  
  .order-lg-1 { order: 1; }
  .order-lg-2 { order: 2; }
  
  .px-lg-4 { padding-left: 1.5rem !important; padding-right: 1.5rem !important; }
  .px-lg-5 { padding-left: 3rem !important; padding-right: 3rem !important; }
  .py-lg-5 { padding-top: 3rem !important; padding-bottom: 3rem !important; }
  .mb-lg-0 { margin-bottom: 0 !important; }
  .text-lg-end { text-align: right !important; }
  
  .p-lg-4 { padding: 1.5rem !important; }
}

@media (min-width: 1200px) {
  .container { max-width: 1140px; }
  .col-xl-7 { flex: 0 0 58.333333%; max-width: 58.333333%; }
}

/* ===== Mobile Optimizations ===== */
@media (max-width: 991px) {
  .navbar-collapse {
    background-color: var(--secondary-color);
    padding: 1rem;
    border-radius: 8px;
    margin-top: 1rem;
  }
  
  .navbar-nav {
    gap: 0.5rem;
  }
  
  .display-3 {
    font-size: 2rem !important;
  }
  
  .display-4 {
    font-size: 1.75rem !important;
  }
  
  .display-5 {
    font-size: 1.5rem !important;
  }
  
  .display-6 {
    font-size: 1.25rem !important;
  }
  
  .btn-lg {
    padding: 0.75rem 1.5rem !important;
  }
  
  .p-5 {
    padding: 2rem !important;
  }
  
  .py-5 {
    padding-top: 2rem !important;
    padding-bottom: 2rem !important;
  }
  
  .modal-body {
    padding: 1.5rem;
  }
}

@media (max-width: 576px) {
  .display-3 {
    font-size: 1.75rem !important;
  }
  
  .lead {
    font-size: 1.1rem;
  }
  
  .btn {
    font-size: 0.875rem;
  }
  
  .p-4 {
    padding: 1rem !important;
  }
  
  .p-5 {
    padding: 1.5rem !important;
  }
  
  .card-body {
    padding: 1rem;
  }
  
  .before-after-slider {
    height: 250px;
  }
  
  .gallery-item {
    height: 200px;
  }
}

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

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

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

::-webkit-scrollbar-thumb:hover {
  background: #BF360C;
}

/* ===== Print Styles ===== */
@media print {
  .navbar,
  .btn,
  .modal,
  .navbar-toggler,
  .sticky-top {
    display: none !important;
  }
  
  body {
    background: white !important;
    color: black !important;
  }
}

/* ===== Animations ===== */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideInLeft {
  from {
    transform: translateX(-50px);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes slideInRight {
  from {
    transform: translateX(50px);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

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

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

.animate-slideInLeft {
  animation: slideInLeft 0.8s ease-out;
}

.animate-slideInRight {
  animation: slideInRight 0.8s ease-out;
}

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

a:focus,
button:focus,
.btn:focus,
.form-control:focus {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
}

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

.loading::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 30px;
  height: 30px;
  margin: -15px 0 0 -15px;
  border: 3px solid var(--light-bg);
  border-top-color: var(--primary-color);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}