/* Steel & Ember Architecture Studio - Custom Styles */

/* ===== ROOT VARIABLES ===== */
:root {
  --primary-color: #2E5266;
  --secondary-color: #B8860B;
  --dark-primary: #1a3340;
  --light-primary: #4a7690;
  --dark-secondary: #8a6508;
  --light-secondary: #d4a00d;
  --text-dark: #1a1a1a;
  --text-light: #f8f9fa;
  --overlay-dark: rgba(46, 82, 102, 0.85);
  --overlay-light: rgba(184, 134, 11, 0.85);
  --transition-smooth: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-fast: all 0.2s ease;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.15);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.2);
}

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

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

h1, h2, h3, h4, h5, h6, .display-1, .display-2, .display-3, .display-4 {
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-dark) !important;
}

a {
  transition: var(--transition-fast);
}

.text-white, .text-white-50 {
  color: #ffffff !important;
}

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

/* ===== NAVBAR ===== */
.navbar {
  background-color: var(--primary-color) !important;
  padding: 1rem 0;
  transition: var(--transition-smooth);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
  z-index: 1030;
}

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

.navbar-brand {
  color: #ffffff !important;
  font-size: 1.5rem;
  letter-spacing: 1px;
  transition: var(--transition-fast);
}

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

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

.navbar-dark .navbar-toggler {
  border-color: rgba(255, 255, 255, 0.3) !important;
  color: #ffffff !important;
}

.navbar-toggler:focus {
  box-shadow: 0 0 0 0.2rem rgba(184, 134, 11, 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;
}

.navbar-nav {
  align-items: center;
}

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

.nav-item {
  position: relative;
}

.nav-link {
  color: rgba(255, 255, 255, 0.9) !important;
  font-weight: 500;
  padding: 0.5rem 1rem !important;
  position: relative;
  transition: var(--transition-fast);
}

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

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

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

/* ===== HERO SLIDESHOW ===== */
.hero-slideshow {
  height: 100vh;
  min-height: 600px;
  margin-top: 0;
}

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

.carousel {
  height: 100%;
}

.carousel.slide,
.carousel.carousel-fade {
  height: 100%;
}

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

.carousel-item {
  height: 100%;
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--dark-primary) 100%);
}

.carousel-item::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to right, rgba(46, 82, 102, 0.8) 0%, rgba(46, 82, 102, 0.4) 100%);
  z-index: 1;
}

.carousel-item img {
  height: 100%;
  object-fit: cover;
  filter: brightness(0.7);
}

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

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

.carousel-caption {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 90%;
  max-width: 1200px;
  z-index: 2;
  text-align: left;
  padding: 2rem;
}

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

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

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

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

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

.carousel-caption h1,
.carousel-caption .display-2 {
  color: #ffffff !important;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5);
  animation: fadeInUp 1s ease-out;
  font-size: clamp(2rem, 5vw, 3.5rem) !important;
}

.carousel-caption p,
.carousel-caption .lead {
  color: #ffffff !important;
  text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.5);
  animation: fadeInUp 1s ease-out 0.2s both;
  max-width: 700px;
}

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

.carousel-caption .fs-5 {
  font-size: 1.25rem !important;
}

.carousel-caption .mb-4 {
  margin-bottom: 1.5rem !important;
}

.carousel-caption .mb-5 {
  margin-bottom: 3rem !important;
}

/* ===== BUTTONS ===== */
.btn {
  font-weight: 600;
  border-radius: 4px;
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
  border: 2px solid transparent;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

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

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

.btn-lg {
  padding: 0.75rem 2rem !important;
  font-size: 1.1rem;
}

.btn.px-5 {
  padding-left: 3rem !important;
  padding-right: 3rem !important;
}

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

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

.btn-primary:hover,
.btn-primary:focus {
  background-color: var(--dark-secondary) !important;
  border-color: var(--dark-secondary) !important;
  color: #ffffff !important;
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(184, 134, 11, 0.4) !important;
}

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

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

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

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

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

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

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

.btn-group .btn {
  margin: 0 0.25rem;
}

/* ===== SCROLL INDICATOR ===== */
.position-absolute.bottom-0.start-50.translate-middle-x {
  position: absolute !important;
  bottom: 2rem !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
  z-index: 3;
  animation: bounce 2s infinite;
}

.bi-chevron-down {
  font-size: 2rem;
  color: #ffffff !important;
  cursor: pointer;
  transition: var(--transition-fast);
}

.bi-chevron-down:hover {
  color: var(--secondary-color) !important;
  transform: translateY(5px);
}

/* ===== SECTIONS ===== */
section {
  padding: 5rem 0;
  position: relative;
}

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

.pt-5 {
  padding-top: 3rem !important;
}

.pb-3 {
  padding-bottom: 1rem !important;
}

.pb-4 {
  padding-bottom: 1.5rem !important;
}

.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: 1rem !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;
}

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

.ps-4 {
  padding-left: 1.5rem !important;
}

/* ===== CONTAINER & GRID ===== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

.container-fluid {
  width: 100%;
  padding: 0 1rem;
}

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

.row.g-0 {
  margin: 0 !important;
}

.row.g-0 > * {
  padding: 0 !important;
}

.row.g-3 {
  --bs-gutter-x: 1rem;
  --bs-gutter-y: 1rem;
}

.row.g-4 {
  --bs-gutter-x: 1.5rem;
  --bs-gutter-y: 1.5rem;
}

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

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

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

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

.justify-content-end {
  justify-content: flex-end !important;
}

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

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

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

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

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

.gap-4 {
  gap: 1.5rem !important;
}

/* ===== COLUMNS ===== */
[class*="col-"] {
  padding: 0 0.75rem;
  width: 100%;
}

.col-6 {
  width: 50%;
}

.col-12 {
  width: 100%;
}

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

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

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

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

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

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

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

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

/* ===== CARDS ===== */
.card {
  border-radius: 8px;
  transition: var(--transition-smooth);
  background-color: #ffffff;
  height: 100%;
}

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

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

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

.card-body {
  padding: 1.5rem;
}

.card-img-top {
  width: 100%;
  height: 250px;
  object-fit: cover;
  border-top-left-radius: 8px;
  border-top-right-radius: 8px;
}

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

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

.portfolio-card {
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.portfolio-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to top, var(--overlay-dark), transparent);
  opacity: 0;
  transition: var(--transition-smooth);
  z-index: 1;
}

.portfolio-card:hover::before {
  opacity: 1;
}

.portfolio-card .card-body {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  transform: translateY(100%);
  transition: var(--transition-smooth);
  z-index: 2;
  background: transparent;
  color: #ffffff !important;
}

.portfolio-card:hover .card-body {
  transform: translateY(0);
}

.portfolio-card .card-title,
.portfolio-card .card-text {
  color: #ffffff !important;
}

.service-card {
  position: relative;
  overflow: hidden;
  height: 100%;
  border-radius: 12px;
}

.service-image {
  position: relative;
  height: 300px;
  overflow: hidden;
}

.service-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-smooth);
}

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

.service-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, transparent, var(--overlay-dark));
  display: flex;
  align-items: flex-end;
  padding: 2rem;
  transition: var(--transition-smooth);
}

.service-content {
  padding: 2rem;
  background: #ffffff;
}

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

/* ===== PORTFOLIO FILTERS ===== */
.filter-btn {
  margin: 0.25rem;
  padding: 0.5rem 1.5rem;
}

.portfolio-item {
  transition: var(--transition-smooth);
  animation: fadeIn 0.5s ease-in;
}

.portfolio-item.hidden {
  display: none;
}

/* ===== BADGES ===== */
.badge {
  padding: 0.5rem 1rem;
  font-weight: 600;
  border-radius: 20px;
  background-color: var(--secondary-color) !important;
  color: #ffffff !important;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ===== BOOTSTRAP ICONS ===== */
.bi {
  vertical-align: middle;
  line-height: 1;
}

.bi-house-door,
.bi-building,
.bi-clock-history,
.bi-tree,
.bi-rulers,
.bi-hammer,
.bi-geo-alt,
.bi-telephone,
.bi-envelope,
.bi-arrow-right,
.bi-check-circle-fill,
.bi-arrow-right-circle,
.bi-leaf-fill,
.bi-palette,
.bi-lightbulb,
.bi-archive,
.bi-grid-3x3,
.bi-check2-square,
.bi-tools,
.bi-chat-dots,
.bi-send,
.bi-calendar-check,
.bi-file-earmark-text,
.bi-shield-check,
.bi-gear,
.bi-people,
.bi-lock,
.bi-cookie,
.bi-hand-thumbs-up,
.bi-camera,
.bi-link-45deg,
.bi-pencil-square {
  font-size: 1.5rem;
  color: var(--secondary-color);
}

.bi-geo-alt-fill,
.bi-telephone-fill,
.bi-envelope-fill {
  color: var(--secondary-color);
}

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

/* ===== TEXT UTILITIES ===== */
.text-uppercase {
  text-transform: uppercase !important;
  letter-spacing: 1px;
}

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

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

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

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

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

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

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

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

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

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

.display-3 {
  font-size: clamp(2rem, 4vw, 3rem) !important;
  font-weight: 700;
}

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

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

.small {
  font-size: 0.875rem;
  line-height: 1.5;
}

.h3 {
  font-size: 1.75rem;
  font-weight: 700;
}

.h4 {
  font-size: 1.5rem;
  font-weight: 700;
}

.h6 {
  font-size: 1rem;
  font-weight: 700;
}

/* ===== SPACING UTILITIES ===== */
.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: 3rem;
}

.mb-md-0 {
  margin-bottom: 1rem;
}

.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-lg-0 {
  margin-top: 1rem;
}

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

/* ===== BORDERS ===== */
.border-0 {
  border: none !important;
}

.border-start {
  border-left: 1px solid #dee2e6 !important;
}

.border-4 {
  border-width: 4px !important;
  border-color: var(--secondary-color) !important;
}

.border-top {
  border-top: 1px solid #dee2e6 !important;
}

.pt-3 {
  padding-top: 1rem !important;
}

/* ===== OPACITY ===== */
.opacity-25 {
  opacity: 0.25 !important;
}

.opacity-75 {
  opacity: 0.75 !important;
}

/* ===== BACKGROUND ===== */
.bg-light {
  background-color: #f8f9fa !important;
}

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

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

.position-sticky,
.sticky-top {
  position: sticky !important;
  top: 80px;
  z-index: 1020;
}

.sticky-lg-top {
  position: relative;
}

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

.top-50 {
  top: 50% !important;
}

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

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

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

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

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

/* ===== FORMS ===== */
.form-label {
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 0.5rem;
  display: block;
}

.form-control,
.form-select {
  padding: 0.75rem 1rem;
  border: 2px solid #e0e0e0;
  border-radius: 4px;
  transition: var(--transition-fast);
  font-size: 1rem;
  width: 100%;
  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(184, 134, 11, 0.25) !important;
  outline: none;
}

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

.form-check {
  display: flex;
  align-items: center;
  margin-bottom: 0.5rem;
}

.form-check-input {
  width: 1.25rem;
  height: 1.25rem;
  margin-right: 0.5rem;
  border: 2px solid #dee2e6;
  cursor: pointer;
}

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

.form-check-label {
  cursor: pointer;
  user-select: none;
}

/* ===== FOOTER ===== */
footer {
  background-color: var(--primary-color) !important;
  color: #ffffff;
  padding: 3rem 0 1rem;
}

footer h6,
footer .h6 {
  color: #ffffff !important;
  font-weight: 700;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

footer .list-unstyled {
  list-style: none;
  padding: 0;
}

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

footer a {
  color: rgba(255, 255, 255, 0.8) !important;
  text-decoration: none;
}

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

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

footer .bi-instagram,
footer .bi-linkedin,
footer .bi-facebook,
footer .bi-pinterest {
  font-size: 1.5rem;
  color: #ffffff;
  transition: var(--transition-fast);
}

footer .bi-instagram:hover,
footer .bi-linkedin:hover,
footer .bi-facebook:hover,
footer .bi-pinterest:hover {
  color: var(--secondary-color);
  transform: translateY(-3px);
}

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

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

.modal-dialog {
  max-width: 600px;
  margin: 1.75rem auto;
}

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

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

.modal-content {
  border-radius: 12px;
  border: none;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
  background-color: #ffffff;
}

.modal-header {
  border-bottom: 1px solid #e0e0e0;
  padding: 1.5rem;
  background-color: var(--primary-color);
  color: #ffffff;
  border-radius: 12px 12px 0 0;
}

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

.modal-body {
  padding: 2rem;
}

.modal-body.p-0 {
  padding: 0 !important;
}

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

/* ===== ORDER UTILITIES ===== */
.order-1 {
  order: 1 !important;
}

.order-2 {
  order: 2 !important;
}

.order-lg-1 {
  order: 1;
}

.order-lg-2 {
  order: 2;
}

.order-md-1 {
  order: 1;
}

.order-md-2 {
  order: 2;
}

/* ===== COLUMN OFFSETS ===== */
.offset-lg-1 {
  margin-left: 0;
}

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

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

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateY(0) translateX(-50%);
  }
  40% {
    transform: translateY(-20px) translateX(-50%);
  }
  60% {
    transform: translateY(-10px) translateX(-50%);
  }
}

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

/* ===== RESPONSIVE BREAKPOINTS ===== */

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

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) {
  .navbar-expand-lg .navbar-collapse {
    display: flex !important;
    flex-basis: auto;
  }
  
  .navbar-expand-lg .navbar-toggler {
    display: none;
  }
  
  .col-lg-2 {
    width: 16.666667%;
  }
  
  .col-lg-3 {
    width: 25%;
  }
  
  .col-lg-4 {
    width: 33.333333%;
  }
  
  .col-lg-5 {
    width: 41.666667%;
  }
  
  .col-lg-6 {
    width: 50%;
  }
  
  .col-lg-7 {
    width: 58.333333%;
  }
  
  .col-lg-8 {
    width: 66.666667%;
  }
  
  .col-lg-9 {
    width: 75%;
  }
  
  .col-lg-10 {
    width: 83.333333%;
  }
  
  .offset-lg-1 {
    margin-left: 8.333333%;
  }
  
  .order-lg-1 {
    order: 1 !important;
  }
  
  .order-lg-2 {
    order: 2 !important;
  }
  
  .text-lg-end {
    text-align: right !important;
  }
  
  .mb-lg-0 {
    margin-bottom: 0 !important;
  }
  
  .mt-lg-0 {
    margin-top: 0 !important;
  }
  
  .sticky-lg-top {
    position: sticky !important;
    top: 100px;
    z-index: 1020;
  }
  
  section {
    padding: 6rem 0;
  }
}

/* Mobile optimization */
@media (max-width: 767px) {
  .navbar-brand {
    font-size: 1.25rem;
  }
  
  .hero-slideshow {
    height: 80vh;
    min-height: 500px;
  }
  
  .carousel-caption {
    padding: 1rem;
  }
  
  .display-2 {
    font-size: 2rem !important;
  }
  
  .display-3 {
    font-size: 1.75rem !important;
  }
  
  .display-4 {
    font-size: 1.5rem !important;
  }
  
  section {
    padding: 3rem 0;
  }
  
  .btn-lg {
    padding: 0.6rem 1.5rem !important;
    font-size: 1rem;
  }
  
  .card-img-top {
    height: 200px;
  }
  
  .service-image {
    height: 250px;
  }
  
  .modal-dialog {
    margin: 0.5rem;
  }
}

/* Tablet optimization */
@media (min-width: 768px) and (max-width: 991px) {
  .hero-slideshow {
    height: 90vh;
  }
  
  .carousel-caption {
    padding: 1.5rem;
  }
}

/* ===== UTILITY CLASSES ===== */
.view-project {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: var(--transition-fast);
}

.view-project:hover {
  gap: 1rem;
}

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

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

/* ===== PRINT STYLES ===== */
@media print {
  .navbar,
  .btn,
  footer {
    display: none;
  }
  
  body {
    color: #000;
    background: #fff;
  }
}

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

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

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

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

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

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