/* Arctic Professional Architecture Studio - Custom Styles */

/* ===================== ROOT & VARIABLES ===================== */
:root {
  --primary-color: #2C3E50;
  --secondary-color: #3498DB;
  --light-arctic: #ECF0F1;
  --dark-arctic: #1a252f;
  --ice-white: #ffffff;
  --frost-blue: rgba(52, 152, 219, 0.1);
  --shadow-sm: 0 2px 4px rgba(44, 62, 80, 0.08);
  --shadow-md: 0 4px 12px rgba(44, 62, 80, 0.15);
  --shadow-lg: 0 8px 24px rgba(44, 62, 80, 0.2);
  --transition-base: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  color: var(--primary-color);
  line-height: 1.6;
  overflow-x: hidden;
  background-color: #fafbfc;
}

/* ===================== TYPOGRAPHY ===================== */
.display-3,
.display-4,
.display-5,
.display-6 {
  font-weight: 700 !important;
  letter-spacing: -0.02em;
  line-height: 1.2 !important;
  color: var(--primary-color) !important;
}

.text-white.display-3,
.text-white.display-4,
.text-white.display-5 {
  color: #ffffff !important;
}

.lead {
  font-size: 1.25rem;
  font-weight: 400;
  line-height: 1.7;
}

.h5, .h6, h5, h6 {
  font-weight: 600;
}

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

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

/* ===================== NAVIGATION ===================== */
.navbar {
  padding: 1.5rem 0;
  transition: var(--transition-base);
  z-index: 1000;
  background: linear-gradient(180deg, rgba(44, 62, 80, 0.95) 0%, rgba(44, 62, 80, 0.8) 100%) !important;
  backdrop-filter: blur(10px);
}

.navbar.sticky-top {
  box-shadow: var(--shadow-md);
  background: rgba(44, 62, 80, 0.98) !important;
}

.navbar-brand {
  font-size: 1.5rem !important;
  color: #ffffff !important;
  font-weight: 700 !important;
  letter-spacing: 0.5px;
  transition: var(--transition-base);
  text-transform: uppercase;
}

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

.navbar-dark .nav-link {
  color: rgba(255, 255, 255, 0.9) !important;
  font-weight: 500 !important;
  padding: 0.5rem 1rem !important;
  transition: var(--transition-base);
  position: relative;
  font-size: 0.95rem;
  letter-spacing: 0.3px;
}

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

.navbar-dark .nav-link:hover,
.navbar-dark .nav-link.active {
  color: #ffffff !important;
  background-color: rgba(52, 152, 219, 0.15) !important;
  border-radius: 6px;
}

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

.navbar-toggler {
  border: 2px solid rgba(255, 255, 255, 0.3) !important;
  padding: 0.5rem 0.75rem;
  background-color: rgba(52, 152, 219, 0.2) !important;
}

.navbar-toggler:focus {
  box-shadow: 0 0 0 0.25rem rgba(52, 152, 219, 0.3) !important;
}

.navbar-toggler-icon {
  filter: brightness(0) invert(1);
}

/* ===================== HERO SECTION ===================== */
.hero-section {
  min-height: 100vh;
  background: linear-gradient(135deg, #2C3E50 0%, #34495E 50%, #2C3E50 100%);
  position: relative;
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: 
    radial-gradient(circle at 20% 50%, rgba(52, 152, 219, 0.15) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(52, 152, 219, 0.1) 0%, transparent 50%);
  animation: heroGlow 8s ease-in-out infinite alternate;
}

@keyframes heroGlow {
  0% { opacity: 0.5; transform: scale(1); }
  100% { opacity: 1; transform: scale(1.05); }
}

.hero-section::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: repeating-linear-gradient(
    45deg,
    transparent,
    transparent 60px,
    rgba(255, 255, 255, 0.02) 60px,
    rgba(255, 255, 255, 0.02) 120px
  );
  animation: snowDrift 20s linear infinite;
  pointer-events: none;
}

@keyframes snowDrift {
  0% { transform: translate(0, 0); }
  100% { transform: translate(50px, 50px); }
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 150px 0 100px;
  animation: fadeInUp 1s ease-out;
}

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

.hero-content .display-3 {
  text-shadow: 2px 4px 8px rgba(0, 0, 0, 0.3);
  animation: fadeInUp 1s ease-out 0.2s both;
}

.hero-content .lead {
  text-shadow: 1px 2px 4px rgba(0, 0, 0, 0.2);
  animation: fadeInUp 1s ease-out 0.4s both;
  color: rgba(255, 255, 255, 0.95) !important;
}

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

/* ===================== BUTTONS ===================== */
.btn {
  font-weight: 600 !important;
  border-radius: 8px;
  transition: var(--transition-base);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border: 2px solid transparent !important;
  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 !important;
}

.btn-primary {
  background-color: var(--secondary-color) !important;
  border-color: var(--secondary-color) !important;
  color: #ffffff !important;
  box-shadow: 0 4px 12px rgba(52, 152, 219, 0.3);
}

.btn-primary:hover {
  background-color: #2980b9 !important;
  border-color: #2980b9 !important;
  color: #ffffff !important;
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(52, 152, 219, 0.4);
}

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

.btn-outline-primary:hover {
  background-color: var(--secondary-color) !important;
  border-color: var(--secondary-color) !important;
  color: #ffffff !important;
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(52, 152, 219, 0.3);
}

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

.btn-light:hover {
  background-color: var(--light-arctic) !important;
  border-color: var(--light-arctic) !important;
  color: var(--primary-color) !important;
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

.btn-outline-light {
  color: #ffffff !important;
  border-color: rgba(255, 255, 255, 0.8) !important;
  background-color: transparent !important;
}

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

.rounded-circle.btn {
  width: 45px;
  height: 45px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 !important;
}

/* ===================== CARDS ===================== */
.card {
  border: none !important;
  border-radius: 12px;
  transition: var(--transition-base);
  background-color: #ffffff;
  overflow: hidden;
}

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

.card-text {
  color: #666 !important;
  line-height: 1.7;
}

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

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

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

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

/* ===================== SERVICE CARDS ===================== */
.service-card {
  background: #ffffff;
  border-radius: 12px;
  transition: var(--transition-base);
  border: 1px solid rgba(52, 152, 219, 0.1);
  height: 100%;
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--secondary-color), #5DADE2);
  transform: scaleX(0);
  transition: var(--transition-base);
  transform-origin: left;
}

.service-card:hover::before {
  transform: scaleX(1);
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-lg);
  border-color: var(--secondary-color);
}

.service-card .bi {
  font-size: 3rem;
  color: var(--secondary-color);
  transition: var(--transition-base);
  display: inline-block;
}

.service-card:hover .bi {
  transform: scale(1.1) rotate(5deg);
}

/* ===================== PORTFOLIO ===================== */
.portfolio-item {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  cursor: pointer;
  transition: var(--transition-base);
}

.portfolio-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(44, 62, 80, 0.9), rgba(52, 152, 219, 0.8));
  opacity: 0;
  transition: var(--transition-base);
  z-index: 1;
}

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

.portfolio-item:hover {
  transform: translateY(-5px);
}

.portfolio-item img {
  transition: var(--transition-slow);
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.portfolio-item:hover img {
  transform: scale(1.1);
}

.filter-btn {
  padding: 0.6rem 1.5rem;
  border: 2px solid var(--primary-color);
  background-color: transparent;
  color: var(--primary-color) !important;
  border-radius: 25px;
  font-weight: 600;
  transition: var(--transition-base);
  cursor: pointer;
}

.filter-btn:hover,
.filter-btn.active {
  background-color: var(--secondary-color) !important;
  border-color: var(--secondary-color) !important;
  color: #ffffff !important;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(52, 152, 219, 0.3);
}

/* ===================== FORMS ===================== */
.form-control,
.form-select {
  border: 2px solid #e1e8ed;
  border-radius: 8px;
  padding: 0.75rem 1rem;
  transition: var(--transition-base);
  background-color: #ffffff;
  color: var(--primary-color) !important;
  font-size: 0.95rem;
}

.form-control:focus,
.form-select:focus {
  border-color: var(--secondary-color) !important;
  box-shadow: 0 0 0 0.25rem rgba(52, 152, 219, 0.15) !important;
  background-color: #ffffff;
  color: var(--primary-color) !important;
}

.form-control::placeholder {
  color: #95a5a6;
}

.form-label {
  color: var(--primary-color) !important;
  font-weight: 600;
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
}

.form-select-lg {
  padding: 0.875rem 1.125rem;
  font-size: 1rem;
}

.form-check-input {
  width: 1.25em;
  height: 1.25em;
  border: 2px solid #e1e8ed;
  cursor: pointer;
}

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

.form-check-input:focus {
  border-color: var(--secondary-color) !important;
  box-shadow: 0 0 0 0.25rem rgba(52, 152, 219, 0.15) !important;
}

.form-check-label {
  color: #666;
  cursor: pointer;
  margin-left: 0.5rem;
}

/* ===================== BADGES ===================== */
.badge {
  padding: 0.5rem 1rem;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.3px;
}

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

/* ===================== PROGRESS BARS ===================== */
.progress {
  height: 10px;
  border-radius: 10px;
  background-color: #e1e8ed;
  overflow: hidden;
}

.progress-bar {
  background: linear-gradient(90deg, var(--secondary-color), #5DADE2);
  border-radius: 10px;
  transition: width 1.5s ease-in-out;
}

/* ===================== MODAL ===================== */
.modal-content {
  border: none;
  border-radius: 16px;
  overflow: hidden;
  background-color: var(--primary-color);
}

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

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

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

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

.btn-close:focus {
  box-shadow: 0 0 0 0.25rem rgba(52, 152, 219, 0.25) !important;
}

/* ===================== CAROUSEL ===================== */
.carousel-item img {
  border-radius: 8px;
  width: 100%;
  height: auto;
  object-fit: cover;
}

.carousel-control-prev,
.carousel-control-next {
  width: 50px;
  height: 50px;
  background-color: rgba(44, 62, 80, 0.8);
  border-radius: 50%;
  top: 50%;
  transform: translateY(-50%);
  opacity: 0.8;
  transition: var(--transition-base);
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
  opacity: 1;
  background-color: var(--secondary-color);
}

.carousel-control-prev {
  left: 20px;
}

.carousel-control-next {
  right: 20px;
}

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

.bi-snow,
.bi-thermometer-snow,
.bi-lightbulb-fill,
.bi-award-fill,
.bi-droplet-fill,
.bi-brightness-high-fill,
.bi-tree-fill {
  color: var(--secondary-color);
}

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

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

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

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

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

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

/* ===================== TEXT UTILITIES ===================== */
.text-white {
  color: #ffffff !important;
}

.text-muted {
  color: #7f8c8d !important;
}

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

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

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

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

/* ===================== LINKS ===================== */
a {
  color: var(--secondary-color);
  text-decoration: none;
  transition: var(--transition-base);
}

a:hover {
  color: #2980b9;
  text-decoration: underline;
}

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

.text-white a:hover {
  color: var(--secondary-color) !important;
}

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

.list-unstyled li {
  padding: 0.5rem 0;
  transition: var(--transition-base);
}

.list-unstyled li:hover {
  padding-left: 10px;
  color: var(--secondary-color);
}

/* ===================== IMAGES ===================== */
.img-fluid {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
}

.card-img-top {
  border-radius: 12px 12px 0 0;
  width: 100%;
  height: 250px;
  object-fit: cover;
  transition: var(--transition-slow);
}

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

.rounded {
  border-radius: 8px !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%;
}

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

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

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

.sticky-lg-top {
  position: sticky !important;
  top: 20px;
  z-index: 1010;
}

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

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

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

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

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

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

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

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

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

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

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

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

.m-0 { margin: 0 !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; }

.ms-2 { margin-left: 0.5rem !important; }
.ms-4 { margin-left: 1.5rem !important; }
.ms-auto { margin-left: auto !important; }

.me-1 { margin-right: 0.25rem !important; }
.me-2 { margin-right: 0.5rem !important; }
.me-3 { margin-right: 1rem !important; }

.mx-auto { margin-left: auto !important; margin-right: auto !important; }
.my-4 { margin-top: 1.5rem !important; margin-bottom: 1.5rem !important; }
.my-5 { margin-top: 3rem !important; margin-bottom: 3rem !important; }

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

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

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

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

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

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

.flex-grow-1 {
  flex-grow: 1 !important;
}

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

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

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

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

/* ===================== GRID UTILITIES ===================== */
.container,
.container-fluid {
  width: 100%;
  padding-right: var(--bs-gutter-x, 0.75rem);
  padding-left: var(--bs-gutter-x, 0.75rem);
  margin-right: auto;
  margin-left: auto;
}

.row {
  display: flex;
  flex-wrap: wrap;
  margin-top: calc(-1 * var(--bs-gutter-y, 0));
  margin-right: calc(-0.5 * var(--bs-gutter-x, 1.5rem));
  margin-left: calc(-0.5 * var(--bs-gutter-x, 1.5rem));
}

.row > * {
  padding-right: calc(var(--bs-gutter-x, 1.5rem) * 0.5);
  padding-left: calc(var(--bs-gutter-x, 1.5rem) * 0.5);
  margin-top: var(--bs-gutter-y, 0);
}

.col-12 { flex: 0 0 auto; width: 100%; }
.col-6 { flex: 0 0 auto; width: 50%; }

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

/* ===================== HEIGHT UTILITIES ===================== */
.h-100 {
  height: 100% !important;
}

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

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

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

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

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

/* ===================== SCROLL ANIMATIONS ===================== */
.scroll-animate {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

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

/* ===================== RESPONSIVE DESIGN ===================== */

/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) {
  .col-sm-6 { flex: 0 0 auto; width: 50%; }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) {
  .col-md-4 { flex: 0 0 auto; width: 33.333333%; }
  .col-md-6 { flex: 0 0 auto; width: 50%; }
  
  .text-md-start { text-align: left !important; }
  .text-md-end { text-align: right !important; }
  
  .mb-md-0 { margin-bottom: 0 !important; }
  .mt-md-0 { margin-top: 0 !important; }
  
  .p-md-5 { padding: 3rem !important; }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) {
  .container {
    max-width: 960px;
  }
  
  .col-lg-2 { flex: 0 0 auto; width: 16.666667%; }
  .col-lg-3 { flex: 0 0 auto; width: 25%; }
  .col-lg-4 { flex: 0 0 auto; width: 33.333333%; }
  .col-lg-5 { flex: 0 0 auto; width: 41.666667%; }
  .col-lg-6 { flex: 0 0 auto; width: 50%; }
  .col-lg-7 { flex: 0 0 auto; width: 58.333333%; }
  .col-lg-8 { flex: 0 0 auto; width: 66.666667%; }
  .col-lg-9 { flex: 0 0 auto; width: 75%; }
  .col-lg-10 { flex: 0 0 auto; width: 83.333333%; }
  
  .offset-lg-2 { margin-left: 16.666667%; }
  
  .d-lg-block { display: block !important; }
  .d-lg-none { display: none !important; }
  
  .px-lg-5 { padding-left: 3rem !important; padding-right: 3rem !important; }
  .ps-lg-5 { padding-left: 3rem !important; }
  
  .mb-lg-0 { margin-bottom: 0 !important; }
  .mt-lg-0 { margin-top: 0 !important; }
  
  .text-lg-start { text-align: left !important; }
  .text-lg-end { text-align: right !important; }
  
  .order-lg-1 { order: 1 !important; }
  .order-lg-2 { order: 2 !important; }
  
  .navbar-expand-lg .navbar-nav {
    flex-direction: row;
  }
  
  .navbar-expand-lg .navbar-collapse {
    display: flex !important;
  }
  
  .navbar-expand-lg .navbar-toggler {
    display: none;
  }
}

/* Extra large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
  .container {
    max-width: 1140px;
  }
}

/* Extra extra large devices (larger desktops, 1400px and up) */
@media (min-width: 1400px) {
  .container {
    max-width: 1320px;
  }
}

/* Mobile specific styles */
@media (max-width: 991.98px) {
  .hero-content {
    padding: 120px 0 80px;
  }
  
  .display-3 {
    font-size: 2.5rem !important;
  }
  
  .display-4 {
    font-size: 2rem !important;
  }
  
  .display-5 {
    font-size: 1.75rem !important;
  }
  
  .navbar-collapse {
    background-color: rgba(44, 62, 80, 0.98);
    padding: 1rem;
    border-radius: 8px;
    margin-top: 1rem;
  }
  
  .btn-lg {
    padding: 0.875rem 2rem !important;
    font-size: 0.95rem !important;
  }
  
  .service-card {
    margin-bottom: 1.5rem;
  }
  
  .px-4 {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }
}

@media (max-width: 767.98px) {
  .display-3 {
    font-size: 2rem !important;
  }
  
  .lead {
    font-size: 1.1rem;
  }
  
  .py-5 {
    padding-top: 2rem !important;
    padding-bottom: 2rem !important;
  }
  
  .card-body {
    padding: 1.5rem;
  }
}

/* ===================== PRINT STYLES ===================== */
@media print {
  .navbar,
  .btn,
  .modal,
  .carousel-control-prev,
  .carousel-control-next {
    display: none !important;
  }
  
  body {
    background: white;
    color: black;
  }
  
  .card {
    border: 1px solid #ddd;
    page-break-inside: avoid;
  }
}

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

:focus-visible {
  outline: 3px solid var(--secondary-color);
  outline-offset: 3px;
}

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

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

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

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

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

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

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

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

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

/* ===================== UTILITY CLASSES ===================== */
.text-center {
  text-align: center !important;
}

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

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

.small {
  font-size: 0.875rem;
}

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

.cursor-pointer {
  cursor: pointer;
}

/* ===================== HOVER EFFECTS ===================== */
.hover-lift {
  transition: var(--transition-base);
}

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

.hover-scale {
  transition: var(--transition-base);
}

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

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

@media (max-width: 767.98px) {
  section {
    padding: 3rem 0;
  }
}