/* Nordic Stone & Sage Architecture Studio - Complete CSS */

/* ===========================
   ROOT VARIABLES & RESETS
   =========================== */
:root {
  --primary-color: #2E3440;
  --secondary-color: #88C999;
  --light-bg: #ECEFF4;
  --dark-text: #2E3440;
  --light-text: #D8DEE9;
  --accent-sage: #88C999;
  --accent-stone: #4C566A;
  --white: #ffffff;
  --shadow: rgba(46, 52, 64, 0.15);
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

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

/* ===========================
   TYPOGRAPHY
   =========================== */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  color: var(--primary-color) !important;
}

.display-1, .display-2, .display-3, .display-4, .display-5, .display-6 {
  font-weight: 800;
  letter-spacing: -0.02em;
}

.lead {
  font-size: 1.25rem;
  font-weight: 400;
  color: var(--accent-stone);
}

.text-white, .text-white h1, .text-white h2, .text-white h3, .text-white h4, .text-white h5, .text-white h6 {
  color: var(--white) !important;
}

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

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

/* ===========================
   HERO SLIDESHOW
   =========================== */
.hero-slideshow {
  position: relative;
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-stone) 100%);
}

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

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

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

.slideshow-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

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

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

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

.slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1.5s ease-in-out;
  background-size: cover;
  background-position: center;
}

.slide::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(46, 52, 64, 0.7) 0%, rgba(76, 86, 106, 0.5) 100%);
  z-index: 1;
}

.slide.active {
  opacity: 1;
  z-index: 2;
}

.slide img {
  width: 100%;
  height: 100%;
}

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

/* ===========================
   NAVIGATION
   =========================== */
.navbar {
  position: relative;
  z-index: 1000;
  transition: var(--transition);
  background-color: transparent !important;
}

.navbar.scrolled {
  background-color: var(--primary-color) !important;
  box-shadow: 0 2px 20px var(--shadow);
}

.navbar-expand-lg {
  flex-wrap: nowrap;
}

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

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

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

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

.py-0 {
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}

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

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

.px-0 {
  padding-right: 0 !important;
  padding-left: 0 !important;
}

.navbar-brand {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  transition: var(--transition);
}

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

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

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

.navbar-toggler {
  border: none !important;
  padding: 0.5rem;
}

.bg-light {
  background-color: #f8f9fa !important;
}

.navbar-toggler-icon {
  width: 1.5em;
  height: 1.5em;
}

.collapse {
  transition: height 0.35s ease;
}

.navbar-collapse {
  flex-basis: 100%;
  flex-grow: 1;
  align-items: center;
}

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

.navbar-nav {
  display: flex;
  flex-direction: row;
  padding-left: 0;
  margin-bottom: 0;
  list-style: none;
}

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

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

.nav-item {
  position: relative;
}

.nav-link {
  color: var(--white) !important;
  font-weight: 500;
  padding: 0.5rem 1rem;
  transition: var(--transition);
  position: relative;
  text-decoration: none;
}

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

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

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

/* ===========================
   HERO CONTENT
   =========================== */
.hero-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 10;
  width: 90%;
  max-width: 1200px;
}

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

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

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

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

.display-1 {
  font-size: calc(3rem + 3.5vw) !important;
  animation: fadeInUp 1s ease-out;
}

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

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

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

/* ===========================
   BUTTONS
   =========================== */
.btn {
  display: inline-block;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  vertical-align: middle;
  cursor: pointer;
  user-select: none;
  border: 2px solid transparent;
  padding: 0.75rem 2rem;
  font-size: 1rem;
  line-height: 1.5;
  border-radius: 50px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.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;
  z-index: -1;
}

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

.btn-lg {
  padding: 1rem 2.5rem;
  font-size: 1.125rem;
  border-radius: 50px;
}

.btn-sm {
  padding: 0.5rem 1.25rem;
  font-size: 0.875rem;
  border-radius: 50px;
}

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

.btn-primary:hover {
  background-color: #6fb885 !important;
  border-color: #6fb885 !important;
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(136, 201, 153, 0.3);
}

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

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

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

.btn-outline-dark:hover {
  background-color: var(--primary-color) !important;
  border-color: var(--primary-color) !important;
  color: var(--white) !important;
  transform: translateY(-2px);
}

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

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

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

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

.ms-5 {
  margin-left: 3rem !important;
}

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

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

/* ===========================
   SECTIONS
   =========================== */
.py-5 {
  padding-top: 3rem !important;
  padding-bottom: 3rem !important;
}

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

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

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

.container {
  width: 100%;
  padding-right: var(--bs-gutter-x, 0.75rem);
  padding-left: var(--bs-gutter-x, 0.75rem);
  margin-right: auto;
  margin-left: auto;
  max-width: 1200px;
}

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

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

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

.col-lg-6, .col-lg-5, .col-lg-4, .col-lg-3, .col-lg-2, .col-lg-7, .col-lg-8, .col-lg-10, .col-md-6, .col-md-4, .col-md-3, .col-md-5, .col-md-7, .col-sm-6, .col-6, .col-12 {
  position: relative;
  width: 100%;
  padding-right: 0.75rem;
  padding-left: 0.75rem;
}

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

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

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

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

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

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

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

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

.shadow {
  box-shadow: 0 10px 40px var(--shadow) !important;
}

.shadow-sm {
  box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075) !important;
}

.shadow-lg {
  box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.175) !important;
}

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

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

.display-4 {
  font-size: calc(2rem + 2.5vw) !important;
}

.display-5 {
  font-size: calc(1.5rem + 2vw) !important;
}

.display-3 {
  font-size: calc(2.5rem + 3vw) !important;
}

.display-6 {
  font-size: calc(1.375rem + 1.5vw) !important;
}

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

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

/* ===========================
   GRID SYSTEM
   =========================== */
.g-4 {
  gap: 1.5rem !important;
}

.g-5 {
  gap: 3rem !important;
}

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

.g-0 {
  gap: 0 !important;
}

/* ===========================
   CARDS
   =========================== */
.card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  word-wrap: break-word;
  background-color: var(--white);
  background-clip: border-box;
  border: 1px solid rgba(0, 0, 0, 0.05);
  border-radius: 12px;
  transition: var(--transition);
  overflow: hidden;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 60px var(--shadow);
}

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

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

.card-body {
  flex: 1 1 auto;
  padding: 1.5rem;
}

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

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

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

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

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

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

.h5 {
  font-size: 1.25rem !important;
  font-weight: 700;
}

.card-img-top {
  width: 100%;
  height: auto;
  border-top-left-radius: calc(12px - 1px);
  border-top-right-radius: calc(12px - 1px);
  transition: var(--transition);
}

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

/* ===========================
   BACKGROUND UTILITIES
   =========================== */
.bg-white {
  background-color: var(--white) !important;
}

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

/* ===========================
   PORTFOLIO SECTION
   =========================== */
.filter-btn {
  background-color: transparent !important;
  border: 2px solid var(--primary-color) !important;
  color: var(--primary-color) !important;
  padding: 0.75rem 2rem;
  margin: 0.5rem;
  border-radius: 50px;
  font-weight: 600;
  transition: var(--transition);
  cursor: pointer;
}

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

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

.portfolio-item {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  transition: var(--transition);
  opacity: 1;
  transform: scale(1);
}

.portfolio-item.hidden {
  opacity: 0;
  transform: scale(0.8);
  height: 0;
  margin: 0;
  padding: 0;
}

.portfolio-card {
  position: relative;
  height: 400px;
  background-size: cover;
  background-position: center;
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
}

.portfolio-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(180deg, transparent 0%, rgba(46, 52, 64, 0.9) 100%);
  opacity: 0.8;
  transition: var(--transition);
}

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

.portfolio-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 2rem;
  transform: translateY(20px);
  opacity: 1;
  transition: var(--transition);
  z-index: 2;
}

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

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

.badge {
  display: inline-block;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1;
  color: var(--white) !important;
  background-color: var(--secondary-color);
  border-radius: 50px;
  text-align: center;
  white-space: nowrap;
  vertical-align: baseline;
}

/* Portfolio Categories */
.heritage,
.residential,
.commercial,
.sustainable,
.urban {
  transition: var(--transition);
}

/* ===========================
   MODAL
   =========================== */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1055;
  display: none;
  width: 100%;
  height: 100%;
  overflow-x: hidden;
  overflow-y: auto;
  outline: 0;
}

.modal.fade {
  transition: opacity 0.15s linear;
}

.modal.show {
  display: block;
}

.modal-dialog {
  position: relative;
  width: auto;
  margin: 0.5rem;
  pointer-events: none;
}

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

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

.modal-dialog-scrollable {
  height: calc(100% - 1rem);
}

.modal-content {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  pointer-events: auto;
  background-color: var(--white);
  background-clip: padding-box;
  border: 1px solid rgba(0, 0, 0, 0.2);
  border-radius: 16px;
  outline: 0;
}

.modal-header {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem;
  border-bottom: 1px solid #dee2e6;
  border-top-left-radius: 16px;
  border-top-right-radius: 16px;
  background-color: var(--primary-color);
}

.modal-title {
  margin-bottom: 0;
  line-height: 1.5;
  color: var(--white) !important;
}

.btn-close {
  box-sizing: content-box;
  width: 1em;
  height: 1em;
  padding: 0.25em;
  color: #000;
  background: transparent;
  border: 0;
  border-radius: 0.25rem;
  opacity: 0.5;
  cursor: pointer;
}

.btn-close-white {
  filter: invert(1) grayscale(100%) brightness(200%);
}

.modal-body {
  position: relative;
  flex: 1 1 auto;
  padding: 2rem;
}

.modal-footer {
  display: flex;
  flex-wrap: wrap;
  flex-shrink: 0;
  align-items: center;
  justify-content: flex-end;
  padding: 1.5rem;
  border-top: 1px solid #dee2e6;
  border-bottom-right-radius: 16px;
  border-bottom-left-radius: 16px;
}

/* ===========================
   UTILITIES
   =========================== */
.min-vh-50 {
  min-height: 50vh !important;
}

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

/* ===========================
   BOOTSTRAP ICONS
   =========================== */
.bi {
  display: inline-block;
  vertical-align: -0.125em;
  fill: currentColor;
}

.bi-geo-alt-fill,
.bi-telephone-fill,
.bi-clock-fill,
.bi-chat-dots-fill,
.bi-linkedin,
.bi-instagram,
.bi-facebook,
.bi-twitter,
.bi-lightbulb-fill,
.bi-calendar-check,
.bi-camera-video,
.bi-envelope-open,
.bi-envelope-fill,
.bi-lightning-charge-fill,
.bi-droplet-fill,
.bi-tree-fill,
.bi-award-fill,
.bi-patch-check-fill,
.bi-star-fill,
.bi-shield-fill-check,
.bi-globe-americas,
.bi-sun-fill,
.bi-check-circle-fill,
.bi-thermometer-half,
.bi-wind,
.bi-moisture,
.bi-water,
.bi-graph-up-arrow,
.bi-people-fill,
.bi-building-check {
  font-size: 1.5rem;
  color: var(--secondary-color);
}

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

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

a {
  color: var(--primary-color);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--secondary-color);
}

/* ===========================
   SMALL TEXT
   =========================== */
.small {
  font-size: 0.875rem;
}

/* ===========================
   OFFSET COLUMNS
   =========================== */
.offset-lg-1 {
  margin-left: 8.333333%;
}

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

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

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

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

.form-control,
.form-select {
  display: block;
  width: 100%;
  padding: 0.75rem 1rem;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.5;
  color: var(--dark-text);
  background-color: var(--white);
  background-clip: padding-box;
  border: 2px solid #e0e0e0;
  appearance: none;
  border-radius: 8px;
  transition: var(--transition);
}

.form-control:focus,
.form-select:focus {
  color: var(--dark-text);
  background-color: var(--white);
  border-color: var(--secondary-color);
  outline: 0;
  box-shadow: 0 0 0 0.25rem rgba(136, 201, 153, 0.25);
}

textarea.form-control {
  min-height: 120px;
  resize: vertical;
}

/* ===========================
   ACCORDION
   =========================== */
.accordion {
  --bs-accordion-bg: var(--white);
  --bs-accordion-border-color: #dee2e6;
  --bs-accordion-border-width: 1px;
  --bs-accordion-border-radius: 12px;
  --bs-accordion-inner-border-radius: 12px;
}

.accordion-item {
  background-color: var(--white);
  border: 1px solid rgba(0, 0, 0, 0.125);
  margin-bottom: 1rem;
  border-radius: 12px !important;
  overflow: hidden;
}

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

.accordion-button {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
  padding: 1.5rem;
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--primary-color) !important;
  text-align: left;
  background-color: var(--white);
  border: 0;
  border-radius: 0;
  overflow-anchor: none;
  transition: var(--transition);
  cursor: pointer;
}

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

.accordion-button:hover {
  background-color: #f8f9fa;
}

.accordion-button.collapsed {
  background-color: var(--white);
}

.accordion-collapse {
  border: 0;
}

.accordion-collapse.show {
  display: block;
}

.accordion-body {
  padding: 1.5rem;
  color: var(--accent-stone);
}

/* ===========================
   PROGRESS BAR
   =========================== */
.progress {
  display: flex;
  height: 8px;
  overflow: hidden;
  font-size: 0.75rem;
  background-color: #e9ecef;
  border-radius: 50px;
}

.progress-bar {
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
  color: var(--white);
  text-align: center;
  white-space: nowrap;
  background-color: var(--secondary-color);
  transition: width 0.6s ease;
  border-radius: 50px;
}

/* ===========================
   NAVBAR DARK THEME
   =========================== */
.navbar-dark {
  background-color: var(--primary-color) !important;
}

.navbar-dark .navbar-brand,
.navbar-dark .navbar-nav .nav-link {
  color: var(--white) !important;
}

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

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

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

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

.animate-fadeInUp {
  animation: fadeInUp 1s ease-out;
}

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

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

/* ===========================
   RESPONSIVE MEDIA QUERIES
   =========================== */
@media (min-width: 576px) {
  .col-sm-6 {
    flex: 0 0 50%;
    max-width: 50%;
  }
  
  .container {
    max-width: 540px;
  }
}

@media (min-width: 768px) {
  .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%;
  }
  
  .container {
    max-width: 720px;
  }
  
  .text-md-start {
    text-align: left !important;
  }
  
  .text-md-end {
    text-align: right !important;
  }
  
  .mb-md-0 {
    margin-bottom: 0 !important;
  }
}

@media (min-width: 992px) {
  .col-lg-2 {
    flex: 0 0 16.666667%;
    max-width: 16.666667%;
  }
  
  .col-lg-3 {
    flex: 0 0 25%;
    max-width: 25%;
  }
  
  .col-lg-4 {
    flex: 0 0 33.333333%;
    max-width: 33.333333%;
  }
  
  .col-lg-5 {
    flex: 0 0 41.666667%;
    max-width: 41.666667%;
  }
  
  .col-lg-6 {
    flex: 0 0 50%;
    max-width: 50%;
  }
  
  .col-lg-7 {
    flex: 0 0 58.333333%;
    max-width: 58.333333%;
  }
  
  .col-lg-8 {
    flex: 0 0 66.666667%;
    max-width: 66.666667%;
  }
  
  .col-lg-10 {
    flex: 0 0 83.333333%;
    max-width: 83.333333%;
  }
  
  .container {
    max-width: 960px;
  }
  
  .navbar-expand-lg .navbar-nav {
    flex-direction: row;
  }
  
  .navbar-expand-lg .navbar-collapse {
    display: flex !important;
    flex-basis: auto;
  }
  
  .navbar-expand-lg .navbar-toggler {
    display: none;
  }
  
  .text-lg-end {
    text-align: right !important;
  }
  
  .mb-lg-0 {
    margin-bottom: 0 !important;
  }
  
  .ps-lg-5 {
    padding-left: 3rem !important;
  }
  
  .order-lg-1 {
    order: 1 !important;
  }
  
  .order-lg-2 {
    order: 2 !important;
  }
  
  .offset-lg-1 {
    margin-left: 8.333333%;
  }
}

@media (min-width: 1200px) {
  .container {
    max-width: 1140px;
  }
}

@media (min-width: 1400px) {
  .container {
    max-width: 1320px;
  }
}

/* Mobile Optimizations */
@media (max-width: 991px) {
  .navbar-collapse {
    background-color: var(--primary-color);
    padding: 1rem;
    border-radius: 8px;
    margin-top: 1rem;
  }
  
  .navbar-nav {
    flex-direction: column;
    gap: 0.5rem !important;
  }
  
  .hero-content {
    width: 95%;
    padding: 1rem;
  }
  
  .display-1 {
    font-size: 2.5rem !important;
  }
  
  .display-3 {
    font-size: 2rem !important;
  }
  
  .display-4 {
    font-size: 1.75rem !important;
  }
  
  .fs-3 {
    font-size: 1.25rem !important;
  }
  
  .portfolio-grid {
    grid-template-columns: 1fr;
  }
  
  .px-5 {
    padding-right: 1rem !important;
    padding-left: 1rem !important;
  }
}

@media (max-width: 576px) {
  .btn-lg {
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
  }
  
  .display-1 {
    font-size: 2rem !important;
  }
  
  .portfolio-card {
    height: 300px;
  }
  
  .card-body {
    padding: 1rem;
  }
  
  .py-5 {
    padding-top: 2rem !important;
    padding-bottom: 2rem !important;
  }
}

/* ===========================
   ACCESSIBILITY
   =========================== */
:focus-visible {
  outline: 3px solid var(--secondary-color);
  outline-offset: 2px;
}

.btn:focus-visible,
.nav-link:focus-visible,
.form-control:focus-visible {
  outline: 3px solid var(--secondary-color);
  outline-offset: 2px;
}

/* ===========================
   PRINT STYLES
   =========================== */
@media print {
  .navbar,
  .btn,
  .modal,
  .hero-slideshow {
    display: none !important;
  }
  
  body {
    font-size: 12pt;
    line-height: 1.5;
    color: #000;
    background: #fff;
  }
  
  .container {
    max-width: 100%;
  }
}

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

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

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

::-webkit-scrollbar-thumb:hover {
  background: #6fb885;
}

/* ===========================
   LOADING STATES
   =========================== */
.loading {
  opacity: 0.6;
  pointer-events: none;
  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-bg);
  border-top-color: var(--secondary-color);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

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

/* ===========================
   THEME SPECIFIC ENHANCEMENTS
   =========================== */
.nordic-texture {
  background-image: linear-gradient(30deg, #f8f9fa 12%, transparent 12.5%, transparent 87%, #f8f9fa 87.5%, #f8f9fa),
    linear-gradient(150deg, #f8f9fa 12%, transparent 12.5%, transparent 87%, #f8f9fa 87.5%, #f8f9fa);
  background-size: 80px 140px;
  background-position: 0 0, 40px 70px;
}

.sage-gradient {
  background: linear-gradient(135deg, var(--secondary-color) 0%, #a8d5b7 100%);
}

.stone-gradient {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-stone) 100%);
}