/* Nordic Steel Architecture Studio - Complete CSS */

/* ===========================
   CSS VARIABLES & ROOT
   =========================== */
:root {
  --primary-color: #2E3440;
  --secondary-color: #88C0D0;
  --accent-color: #5E81AC;
  --light-gray: #ECEFF4;
  --medium-gray: #D8DEE9;
  --dark-gray: #4C566A;
  --white: #FFFFFF;
  --black: #1a1a1a;
  --text-dark: #2E3440;
  --text-light: #ECEFF4;
  --shadow: rgba(46, 52, 64, 0.1);
  --shadow-dark: rgba(46, 52, 64, 0.25);
  --transition-speed: 0.3s;
  --border-radius: 8px;
}

/* ===========================
   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) !important;
  background-color: var(--white) !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 {
  font-weight: 700 !important;
  color: var(--primary-color) !important;
  letter-spacing: -0.02em;
  line-height: 1.2 !important;
}

.lead {
  font-size: 1.25rem !important;
  font-weight: 400 !important;
  color: var(--dark-gray) !important;
}

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

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

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

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

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

.fs-6 {
  font-size: 1rem !important;
}

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

/* ===========================
   NAVBAR STYLES
   =========================== */
.navbar {
  background: linear-gradient(135deg, var(--primary-color) 0%, #3B4252 100%) !important;
  box-shadow: 0 4px 20px var(--shadow-dark) !important;
  transition: all var(--transition-speed) ease !important;
  padding: 1rem 0 !important;
  z-index: 1050 !important;
}

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

.navbar-dark .navbar-brand {
  color: var(--white) !important;
  font-size: 1.5rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.5px;
  transition: all var(--transition-speed) ease !important;
}

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

.navbar-toggler {
  border: 2px solid var(--white) !important;
  padding: 0.5rem 0.75rem !important;
  transition: all var(--transition-speed) ease !important;
}

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

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

.nav-item {
  margin: 0 0.25rem;
}

.nav-link {
  color: var(--light-gray) !important;
  font-weight: 500 !important;
  padding: 0.5rem 1rem !important;
  border-radius: var(--border-radius) !important;
  transition: all var(--transition-speed) ease !important;
  position: relative;
}

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

.nav-link:hover,
.nav-link:focus {
  color: var(--secondary-color) !important;
  background-color: rgba(136, 192, 208, 0.1) !important;
  transform: translateY(-2px);
}

.nav-link:hover::before {
  width: 80%;
}

.nav-link.active {
  color: var(--white) !important;
  background-color: var(--secondary-color) !important;
  box-shadow: 0 4px 12px rgba(136, 192, 208, 0.3) !important;
}

.nav-link.active::before {
  width: 0;
}

/* ===========================
   CAROUSEL STYLES
   =========================== */
.carousel {
  height: 100vh;
  min-height: 600px;
  position: relative;
}

.carousel.slide {
  transition: transform 0.6s ease-in-out;
}

.carousel-fade .carousel-item {
  opacity: 0;
  transition: opacity 1.5s ease-in-out;
}

.carousel-fade .carousel-item.active {
  opacity: 1;
}

.carousel-inner {
  height: 100%;
}

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

.carousel-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to bottom, rgba(46, 52, 64, 0.3) 0%, rgba(46, 52, 64, 0.7) 100%);
  z-index: 1;
}

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

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

.carousel-caption .display-2,
.carousel-caption .display-3 {
  color: var(--white) !important;
  text-shadow: 2px 4px 12px rgba(0, 0, 0, 0.5);
  animation: slideInUp 1s ease-out;
}

.carousel-caption .lead {
  color: var(--light-gray) !important;
  text-shadow: 1px 2px 8px rgba(0, 0, 0, 0.5);
  animation: slideInUp 1s ease-out 0.2s backwards;
  max-width: 600px;
}

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

/* ===========================
   BUTTONS
   =========================== */
.btn {
  padding: 0.75rem 2rem !important;
  border-radius: var(--border-radius) !important;
  font-weight: 600 !important;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: all var(--transition-speed) ease !important;
  border: none !important;
  position: relative;
  overflow: hidden;
}

.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: 1rem 2.5rem !important;
  font-size: 1.125rem !important;
}

.btn-primary {
  background: linear-gradient(135deg, var(--secondary-color) 0%, var(--accent-color) 100%) !important;
  color: var(--white) !important;
  box-shadow: 0 4px 15px rgba(136, 192, 208, 0.3) !important;
}

.btn-primary:hover,
.btn-primary:focus {
  background: linear-gradient(135deg, var(--accent-color) 0%, var(--secondary-color) 100%) !important;
  color: var(--white) !important;
  box-shadow: 0 6px 20px rgba(136, 192, 208, 0.5) !important;
  transform: translateY(-3px);
}

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

.btn-outline-dark:hover,
.btn-outline-dark:focus,
.btn-outline-dark.active {
  background-color: var(--primary-color) !important;
  color: var(--white) !important;
  border-color: var(--primary-color) !important;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px var(--shadow-dark) !important;
}

.btn-secondary {
  background-color: var(--primary-color) !important;
  color: var(--white) !important;
  box-shadow: 0 4px 15px var(--shadow-dark) !important;
}

.btn-secondary:hover,
.btn-secondary:focus {
  background-color: var(--dark-gray) !important;
  color: var(--white) !important;
  box-shadow: 0 6px 20px var(--shadow-dark) !important;
  transform: translateY(-3px);
}

/* ===========================
   CARDS
   =========================== */
.card {
  border-radius: var(--border-radius) !important;
  overflow: hidden;
  transition: all var(--transition-speed) ease !important;
  background-color: var(--white) !important;
  border: 1px solid var(--medium-gray) !important;
}

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

.card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 40px var(--shadow-dark) !important;
}

.card-img-top {
  border-radius: 0 !important;
  transition: transform var(--transition-speed) ease;
  height: 250px;
  object-fit: cover;
}

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

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

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

.card-text {
  color: var(--dark-gray) !important;
  line-height: 1.6;
}

/* ===========================
   PORTFOLIO STYLES
   =========================== */
.filter-controls {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 3rem;
  gap: 1rem;
}

.filter-btn {
  margin: 0.5rem;
  min-width: 120px;
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

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

.portfolio-item.hidden {
  opacity: 0;
  transform: scale(0.8);
  position: absolute;
  pointer-events: none;
}

.portfolio-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--border-radius);
  cursor: pointer;
  height: 400px;
}

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

.portfolio-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to bottom, rgba(46, 52, 64, 0.3) 0%, rgba(46, 52, 64, 0.95) 100%);
  opacity: 0;
  transition: opacity var(--transition-speed) ease;
  padding: 2rem;
  color: var(--white) !important;
}

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

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

.portfolio-overlay .h3,
.portfolio-overlay .h4 {
  color: var(--white) !important;
}

.badge {
  background-color: var(--secondary-color) !important;
  color: var(--primary-color) !important;
  padding: 0.5rem 1rem !important;
  font-weight: 600 !important;
  border-radius: 20px !important;
}

/* ===========================
   FORMS
   =========================== */
.form-label {
  font-weight: 600 !important;
  color: var(--primary-color) !important;
  margin-bottom: 0.5rem !important;
}

.form-control,
.form-select {
  padding: 0.75rem 1rem !important;
  border: 2px solid var(--medium-gray) !important;
  border-radius: var(--border-radius) !important;
  font-size: 1rem !important;
  transition: all var(--transition-speed) ease !important;
  background-color: var(--white) !important;
  color: var(--primary-color) !important;
}

.form-control:focus,
.form-select:focus {
  border-color: var(--secondary-color) !important;
  box-shadow: 0 0 0 0.25rem rgba(136, 192, 208, 0.25) !important;
  outline: none !important;
}

.form-control::placeholder {
  color: var(--dark-gray) !important;
  opacity: 0.6;
}

.form-check-input {
  width: 1.25rem !important;
  height: 1.25rem !important;
  border: 2px solid var(--medium-gray) !important;
  background-color: var(--white) !important;
  cursor: pointer;
}

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

.form-check-input:focus {
  box-shadow: 0 0 0 0.25rem rgba(136, 192, 208, 0.25) !important;
}

.form-check-label {
  color: var(--primary-color) !important;
  cursor: pointer;
  margin-left: 0.5rem;
}

/* ===========================
   ALERTS
   =========================== */
.alert {
  border-radius: var(--border-radius) !important;
  padding: 1rem 1.5rem !important;
  border: none !important;
  font-weight: 500 !important;
}

.alert-success {
  background-color: rgba(136, 192, 208, 0.2) !important;
  color: var(--primary-color) !important;
  border-left: 4px solid var(--secondary-color) !important;
}

/* ===========================
   ACCORDION
   =========================== */
.accordion {
  --bs-accordion-border-color: var(--medium-gray) !important;
  --bs-accordion-bg: var(--white) !important;
}

.accordion-item {
  border: 1px solid var(--medium-gray) !important;
  margin-bottom: 1rem !important;
  border-radius: var(--border-radius) !important;
  overflow: hidden;
}

.accordion-header {
  margin-bottom: 0;
}

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

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

.accordion-button:focus {
  box-shadow: 0 0 0 0.25rem rgba(136, 192, 208, 0.25) !important;
  border-color: var(--secondary-color) !important;
}

.accordion-button::after {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%232E3440'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e") !important;
}

.accordion-body {
  padding: 1.5rem !important;
  background-color: var(--white) !important;
  color: var(--dark-gray) !important;
  line-height: 1.8;
}

.accordion-collapse {
  border-top: 2px solid var(--medium-gray) !important;
}

/* ===========================
   UTILITY CLASSES
   =========================== */
.bg-light {
  background-color: var(--light-gray) !important;
}

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

.rounded {
  border-radius: var(--border-radius) !important;
}

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

.shadow {
  box-shadow: 0 4px 15px var(--shadow) !important;
}

.shadow-sm {
  box-shadow: 0 2px 8px var(--shadow) !important;
}

.shadow-lg {
  box-shadow: 0 8px 30px var(--shadow-dark) !important;
}

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

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

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

.position-sticky {
  position: sticky !important;
  top: 100px;
}

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

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

.list-unstyled {
  list-style: none !important;
  padding-left: 0 !important;
}

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

.bi-telephone-fill,
.bi-envelope-fill,
.bi-geo-alt-fill,
.bi-check-circle-fill,
.bi-arrow-right,
.bi-download,
.bi-info-circle,
.bi-shield-check,
.bi-people,
.bi-cookie,
.bi-lock,
.bi-hand-thumbs-up,
.bi-clock-history,
.bi-globe,
.bi-pencil-square,
.bi-chat-dots,
.bi-envelope,
.bi-telephone,
.bi-geo-alt,
.bi-train-front,
.bi-bus-front,
.bi-p-circle,
.bi-bicycle {
  color: var(--secondary-color) !important;
  font-size: 1.5rem;
}

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

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

.py-4 {
  padding-top: 2.5rem !important;
  padding-bottom: 2.5rem !important;
}

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

.my-5 {
  margin-top: 3rem !important;
  margin-bottom: 3rem !important;
}

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

.mt-5 {
  margin-top: 3rem !important;
}

.mt-4 {
  margin-top: 2.5rem !important;
}

.mt-3 {
  margin-top: 2rem !important;
}

.mt-2 {
  margin-top: 1rem !important;
}

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

.mb-4 {
  margin-bottom: 2.5rem !important;
}

.mb-3 {
  margin-bottom: 2rem !important;
}

.mb-2 {
  margin-bottom: 1rem !important;
}

.mb-1 {
  margin-bottom: 0.5rem !important;
}

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

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

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

.pt-4 {
  padding-top: 2.5rem !important;
}

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

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

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

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

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

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

/* ===========================
   CONTAINER & GRID
   =========================== */
.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 {
  --bs-gutter-x: 1.5rem;
  --bs-gutter-y: 0;
  display: flex;
  flex-wrap: wrap;
  margin-top: calc(-1 * var(--bs-gutter-y));
  margin-right: calc(-0.5 * var(--bs-gutter-x));
  margin-left: calc(-0.5 * var(--bs-gutter-x));
}

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

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

.g-5 {
  --bs-gutter-x: 3rem !important;
  --bs-gutter-y: 3rem !important;
}

.g-0 {
  --bs-gutter-x: 0 !important;
  --bs-gutter-y: 0 !important;
}

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

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

/* ===========================
   LINKS
   =========================== */
a {
  color: var(--secondary-color) !important;
  text-decoration: none;
  transition: all var(--transition-speed) ease;
}

a:hover,
a:focus {
  color: var(--accent-color) !important;
  text-decoration: underline;
}

/* ===========================
   FOOTER
   =========================== */
footer {
  background: linear-gradient(135deg, var(--primary-color) 0%, #3B4252 100%) !important;
  color: var(--light-gray) !important;
  padding: 3rem 0 1rem;
}

footer h5,
footer h6 {
  color: var(--white) !important;
  font-weight: 600 !important;
}

footer a {
  color: var(--light-gray) !important;
  transition: all var(--transition-speed) ease;
}

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

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

footer .bi {
  color: var(--secondary-color) !important;
  margin-right: 0.5rem;
}

/* ===========================
   RESPONSIVE DESIGN
   =========================== */
@media (max-width: 991.98px) {
  .navbar-collapse {
    background-color: rgba(46, 52, 64, 0.98);
    padding: 1.5rem;
    margin-top: 1rem;
    border-radius: var(--border-radius);
  }

  .navbar-nav {
    align-items: flex-start;
  }

  .nav-item {
    width: 100%;
    margin: 0.25rem 0;
  }

  .nav-link {
    width: 100%;
    padding: 0.75rem 1rem !important;
  }

  .carousel {
    height: 80vh;
    min-height: 500px;
  }

  .carousel-caption {
    padding: 0 1rem;
  }

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

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

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

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

  section {
    padding: 3rem 0;
  }

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

  .position-sticky {
    position: relative !important;
    top: 0;
  }

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

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

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

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

  .mt-lg-0 {
    margin-top: 1.5rem !important;
  }

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

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

@media (max-width: 767.98px) {
  .display-2 {
    font-size: 2rem !important;
  }

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

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

  .lead {
    font-size: 1.125rem !important;
  }

  .btn {
    padding: 0.625rem 1.5rem !important;
    font-size: 0.875rem !important;
  }

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

  .carousel {
    height: 70vh;
    min-height: 450px;
  }

  .portfolio-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .portfolio-card {
    height: 350px;
  }

  .card-img-top {
    height: 200px;
  }

  section {
    padding: 2rem 0;
  }

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

  .my-5 {
    margin-top: 2rem !important;
    margin-bottom: 2rem !important;
  }

  .px-4 {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }

  .p-5 {
    padding: 2rem !important;
  }

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

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

  .flex-md-row-reverse {
    flex-direction: column !important;
  }

  .col-md-6,
  .col-md-4 {
    width: 100%;
  }

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

  .ms-md-4 {
    margin-left: 0 !important;
  }

  .me-md-0 {
    margin-right: 0 !important;
  }
}

@media (max-width: 575.98px) {
  .carousel-caption .display-2 {
    font-size: 1.75rem !important;
  }

  .carousel-caption .lead {
    font-size: 1rem !important;
  }

  .filter-controls {
    flex-direction: column;
  }

  .filter-btn {
    width: 100%;
    max-width: 300px;
  }

  .accordion-button {
    font-size: 1rem !important;
    padding: 1rem !important;
  }

  .ms-4 {
    margin-left: 1rem !important;
  }

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

  footer {
    text-align: center;
  }

  footer .text-lg-end,
  footer .text-md-end {
    text-align: center !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 scaleIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

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

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

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

.animate-scale-in {
  animation: scaleIn 0.8s ease-out;
}

/* ===========================
   SCROLL BEHAVIOR
   =========================== */
.scroll-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, var(--secondary-color) 0%, var(--accent-color) 100%);
  color: var(--white) !important;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-speed) ease;
  z-index: 1000;
  box-shadow: 0 4px 15px var(--shadow-dark);
}

.scroll-to-top.visible {
  opacity: 1;
  visibility: visible;
}

.scroll-to-top:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 20px var(--shadow-dark);
}

/* ===========================
   LOADING SPINNER
   =========================== */
.spinner {
  width: 50px;
  height: 50px;
  border: 4px solid var(--light-gray);
  border-top-color: var(--secondary-color);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

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

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

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

::-webkit-scrollbar-thumb {
  background: var(--secondary-color);
  border-radius: 6px;
  transition: background var(--transition-speed) ease;
}

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

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

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

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

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

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

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

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

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

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

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

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

.flex-shrink-0 {
  flex-shrink: 0 !important;
}

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

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

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

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

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

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

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

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

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

.ms-auto {
  margin-left: auto !important;
}

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

.me-2 {
  margin-left: 0.5rem !important;
}

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

.me-4 {
  margin-right: 1.5rem !important;
}

.ms-md-4 {
  margin-left: 1.5rem !important;
}

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

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

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

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

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

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

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

/* ===========================
   PRINT STYLES
   =========================== */
@media print {
  .navbar,
  .btn,
  .filter-controls,
  .scroll-to-top {
    display: none !important;
  }

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

  a {
    text-decoration: underline !important;
  }
}