/* Ember Charcoal Architecture Studio - Complete CSS */

/* ===========================
   ROOT VARIABLES & RESETS
   =========================== */
:root {
  --primary-color: #D84315;
  --primary-dark: #BF360C;
  --primary-light: #FF6E40;
  --secondary-color: #37474F;
  --secondary-dark: #263238;
  --secondary-light: #546E7A;
  --charcoal: #2C2C2C;
  --ember-glow: #FF5722;
  --light-gray: #F5F5F5;
  --white: #FFFFFF;
  --text-dark: #212121;
  --text-light: #757575;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  color: var(--text-dark) !important;
  background-color: var(--white) !important;
  line-height: 1.7;
  overflow-x: hidden;
}

/* ===========================
   TYPOGRAPHY
   =========================== */
h1, h2, h3, h4, h5, h6,
.display-1, .display-2, .display-3, .display-4, .display-5, .display-6 {
  font-weight: 700;
  line-height: 1.2;
  color: var(--charcoal) !important;
  letter-spacing: -0.02em;
}

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

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

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

.display-5 {
  font-size: clamp(1.5rem, 3vw, 2.5rem) !important;
}

.display-6 {
  font-size: clamp(1.25rem, 2.5vw, 2rem) !important;
}

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

.fs-1 { font-size: 3rem !important; }
.fs-3 { font-size: 1.75rem !important; }
.fs-4 { font-size: 1.5rem !important; }
.fs-5 { font-size: 1.25rem !important; }

/* ===========================
   NAVIGATION
   =========================== */
.navbar {
  background: linear-gradient(135deg, var(--secondary-color) 0%, var(--secondary-dark) 100%) !important;
  padding: 1rem 0 !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transition: var(--transition);
  position: sticky;
  top: 0;
  z-index: 1030;
}

.navbar.scrolled {
  padding: 0.5rem 0 !important;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

.navbar-dark {
  background-color: var(--secondary-color) !important;
}

.navbar-brand {
  font-size: 1.75rem !important;
  color: var(--white) !important;
  font-weight: 700 !important;
  letter-spacing: -0.03em;
  transition: var(--transition);
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

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

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

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

.navbar-toggler:focus {
  box-shadow: 0 0 0 0.25rem rgba(255, 255, 255, 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 {
  gap: 0.5rem;
}

.nav-item {
  position: relative;
}

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

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

.nav-link:hover,
.nav-link.active {
  color: var(--white) !important;
  background-color: rgba(255, 255, 255, 0.1) !important;
}

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

.nav-link.active {
  background-color: rgba(216, 67, 21, 0.2) !important;
  color: var(--white) !important;
}

/* ===========================
   BUTTONS
   =========================== */
.btn {
  font-weight: 600 !important;
  border-radius: 8px !important;
  padding: 0.75rem 1.5rem !important;
  transition: var(--transition) !important;
  border: none !important;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  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 2rem !important;
  font-size: 1.1rem !important;
}

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

.btn-primary {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%) !important;
  color: var(--white) !important;
  box-shadow: 0 4px 15px rgba(216, 67, 21, 0.4) !important;
}

.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-color) 100%) !important;
  color: var(--white) !important;
  box-shadow: 0 6px 20px rgba(216, 67, 21, 0.6) !important;
  transform: translateY(-3px);
}

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

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

.btn-light {
  background: var(--white) !important;
  color: var(--primary-color) !important;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1) !important;
}

.btn-light:hover {
  background: var(--light-gray) !important;
  color: var(--primary-dark) !important;
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15) !important;
}

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

.btn-outline-secondary:hover {
  background: var(--secondary-color) !important;
  color: var(--white) !important;
  transform: translateY(-3px);
}

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

.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: 100vh;
  min-height: 600px;
  position: relative;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.carousel-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(55, 71, 79, 0.85) 0%, rgba(44, 44, 44, 0.75) 100%);
  z-index: 1;
}

.carousel-caption {
  z-index: 2;
  top: 50%;
  transform: translateY(-50%);
  bottom: auto;
  text-align: center;
  padding: 2rem;
}

.carousel-caption h1,
.carousel-caption .display-2 {
  color: var(--white) !important;
  text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.5);
  margin-bottom: 1.5rem !important;
  animation: fadeInUp 1s ease-out;
}

.carousel-caption p,
.carousel-caption .lead {
  color: rgba(255, 255, 255, 0.95) !important;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
  max-width: 800px;
  margin: 0 auto 2rem;
  animation: fadeInUp 1.2s ease-out;
}

.carousel-caption .btn {
  animation: fadeInUp 1.4s ease-out;
}

.carousel-indicators {
  bottom: 30px;
  z-index: 3;
}

.carousel-indicators [data-bs-target] {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: var(--white);
  opacity: 0.5;
  transition: var(--transition);
  border: 2px solid var(--white);
}

.carousel-indicators .active {
  opacity: 1;
  background-color: var(--primary-color);
  transform: scale(1.2);
}

.carousel-control-prev,
.carousel-control-next {
  width: 5%;
  z-index: 3;
  opacity: 0.7;
  transition: var(--transition);
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
  opacity: 1;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
  width: 3rem;
  height: 3rem;
  background-color: rgba(216, 67, 21, 0.8);
  border-radius: 50%;
  padding: 0.75rem;
}

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

.card.shadow-sm {
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08) !important;
}

.card.shadow {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12) !important;
}

.card.shadow-lg {
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15) !important;
}

.card:hover {
  transform: translateY(-10px);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.2) !important;
}

.hover-shadow:hover {
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15) !important;
  transform: translateY(-5px);
}

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

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

.card-text {
  color: var(--text-light) !important;
  line-height: 1.7;
}

.card-img-top {
  height: 250px;
  object-fit: cover;
  transition: var(--transition);
}

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

.portfolio-card {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  cursor: pointer;
}

.portfolio-item {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
}

.portfolio-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(216, 67, 21, 0.95) 0%, rgba(55, 71, 79, 0.95) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: var(--transition);
  z-index: 2;
}

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

/* ===========================
   SECTIONS
   =========================== */
section {
  position: relative;
  overflow: hidden;
}

.py-5 {
  padding: 4rem 0 !important;
}

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

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

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

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

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

.mt-3 { margin-top: 1rem !important; }
.mt-4 { margin-top: 2rem !important; }
.mt-5 { margin-top: 3rem !important; }
.mb-2 { margin-bottom: 0.5rem !important; }
.mb-3 { margin-bottom: 1rem !important; }
.mb-4 { margin-bottom: 2rem !important; }
.mb-5 { margin-bottom: 3rem !important; }

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

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

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

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

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

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

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

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

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

.bi-house-door,
.bi-building,
.bi-tree,
.bi-layout-three-columns,
.bi-clipboard-check,
.bi-map,
.bi-check-circle-fill,
.bi-telephone-fill,
.bi-envelope-fill,
.bi-geo-alt-fill,
.bi-calendar-check,
.bi-calendar3,
.bi-clock,
.bi-signpost-2,
.bi-shield-check,
.bi-chat-dots,
.bi-credit-card,
.bi-graph-up,
.bi-sliders,
.bi-eye,
.bi-pencil,
.bi-trash,
.bi-x-circle,
.bi-download,
.bi-question-circle,
.bi-award-fill,
.bi-tree-fill,
.bi-lightning-charge-fill,
.bi-droplet-fill,
.bi-recycle,
.bi-house-heart-fill,
.bi-sun-fill,
.bi-flower1,
.bi-box-seam,
.bi-lightning-charge,
.bi-droplet-half,
.bi-heart-pulse,
.bi-info-circle-fill,
.bi-building-fill-check,
.bi-patch-check-fill,
.bi-globe-americas,
.bi-arrow-right {
  color: var(--primary-color) !important;
  transition: var(--transition);
}

.card:hover .bi,
.btn:hover .bi {
  transform: scale(1.1);
}

.fs-1.bi {
  font-size: 3rem !important;
  margin-bottom: 1rem;
}

/* ===========================
   FORMS
   =========================== */
.form-control,
.form-select {
  border: 2px solid #E0E0E0 !important;
  border-radius: 8px !important;
  padding: 0.75rem 1rem !important;
  transition: var(--transition) !important;
  background: var(--white) !important;
  color: var(--text-dark) !important;
}

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

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

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

.form-check-input {
  width: 1.25em;
  height: 1.25em;
  border: 2px solid #E0E0E0 !important;
  transition: var(--transition);
}

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

.form-check-input:focus {
  box-shadow: 0 0 0 0.25rem rgba(216, 67, 21, 0.15) !important;
}

.form-check-label {
  color: var(--text-dark) !important;
  margin-left: 0.5rem;
}

/* ===========================
   BADGES
   =========================== */
.badge {
  padding: 0.5rem 1rem !important;
  border-radius: 6px !important;
  font-weight: 600 !important;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  font-size: 0.75rem !important;
}

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

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

.progress-bar {
  background: linear-gradient(90deg, var(--primary-color) 0%, var(--primary-light) 100%) !important;
  border-radius: 10px !important;
  transition: width 1s ease-in-out !important;
}

/* ===========================
   ACCORDION
   =========================== */
.accordion {
  border: none !important;
}

.accordion-item {
  border: 1px solid #E0E0E0 !important;
  border-radius: 8px !important;
  margin-bottom: 1rem !important;
  overflow: hidden;
}

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

.accordion-button {
  background-color: var(--light-gray) !important;
  color: var(--charcoal) !important;
  font-weight: 600 !important;
  padding: 1.25rem 1.5rem !important;
  border: none !important;
  transition: var(--transition) !important;
}

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

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

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

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

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

.accordion-collapse {
  border: none !important;
}

/* ===========================
   TABLES
   =========================== */
.table-responsive {
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
}

.table {
  margin-bottom: 0 !important;
  background: var(--white) !important;
}

.table thead {
  background: linear-gradient(135deg, var(--secondary-color) 0%, var(--secondary-dark) 100%) !important;
  color: var(--white) !important;
}

.table thead th {
  border: none !important;
  padding: 1rem !important;
  font-weight: 600 !important;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--white) !important;
}

.table tbody td {
  padding: 1rem !important;
  vertical-align: middle;
  border-color: #E0E0E0 !important;
  color: var(--text-dark) !important;
}

.table-striped tbody tr:nth-of-type(odd) {
  background-color: rgba(245, 245, 245, 0.5) !important;
}

.table-bordered {
  border: 1px solid #E0E0E0 !important;
}

/* ===========================
   ALERTS
   =========================== */
.alert {
  border-radius: 8px !important;
  padding: 1rem 1.5rem !important;
  border: none !important;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08) !important;
}

.alert-success {
  background-color: #E8F5E9 !important;
  color: #2E7D32 !important;
}

.alert-danger {
  background-color: #FFEBEE !important;
  color: #C62828 !important;
}

.alert-warning {
  background-color: #FFF3E0 !important;
  color: #EF6C00 !important;
}

.alert-info {
  background-color: #E3F2FD !important;
  color: #1565C0 !important;
}

/* ===========================
   CALENDAR WIDGET
   =========================== */
.calendar-widget {
  background: var(--white);
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.calendar-widget .bi-calendar-check {
  font-size: 2rem;
  margin-bottom: 1rem;
}

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

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

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

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

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

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

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

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

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

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

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

.d-block {
  display: block !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-shrink-0 {
  flex-shrink: 0 !important;
}

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

.ps-lg-5 {
  padding-left: 3rem !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;
}

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

/* ===========================
   GRID SYSTEM
   =========================== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

.container-fluid {
  width: 100%;
  padding: 0 15px;
}

.row {
  display: flex;
  flex-wrap: wrap;
  margin: 0 -15px;
}

.g-0 {
  margin: 0;
}

.g-0 > * {
  padding: 0;
}

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

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

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

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

[class*='col-'] {
  padding: 0 15px;
}

.col-5 {
  flex: 0 0 41.666667%;
  max-width: 41.666667%;
}

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

.col-7 {
  flex: 0 0 58.333333%;
  max-width: 58.333333%;
}

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

/* ===========================
   FOOTER
   =========================== */
footer {
  background: linear-gradient(135deg, var(--secondary-dark) 0%, var(--charcoal) 100%);
  color: var(--white) !important;
  padding: 3rem 0 1.5rem;
}

footer h5,
footer .h5 {
  color: var(--white) !important;
  font-weight: 700;
  margin-bottom: 1.5rem;
  position: relative;
  padding-bottom: 0.75rem;
}

footer h5::after,
footer .h5::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 50px;
  height: 3px;
  background: var(--primary-color);
}

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

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

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

footer p {
  color: rgba(255, 255, 255, 0.7) !important;
}

/* ===========================
   FILTER BUTTONS
   =========================== */
.filter-btn {
  background: transparent;
  border: 2px solid var(--secondary-color) !important;
  color: var(--secondary-color) !important;
  padding: 0.5rem 1.5rem;
  border-radius: 50px;
  transition: var(--transition);
  font-weight: 600;
}

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

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

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

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

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

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

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

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

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

/* Medium devices (tablets, 768px and up) */
@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-6 {
    flex: 0 0 50%;
    max-width: 50%;
  }
  
  .col-md-8 {
    flex: 0 0 66.666667%;
    max-width: 66.666667%;
  }
  
  .text-md-start {
    text-align: left !important;
  }
  
  .text-md-end {
    text-align: right !important;
  }
  
  .mt-md-0 {
    margin-top: 0 !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 {
    flex-wrap: nowrap;
  }
  
  .navbar-expand-lg .navbar-collapse {
    display: flex !important;
  }
  
  .navbar-expand-lg .navbar-toggler {
    display: none;
  }
  
  .col-lg-2 {
    flex: 0 0 16.666667%;
    max-width: 16.666667%;
  }
  
  .col-lg-3 {
    flex: 0 0 25%;
    max-width: 25%;
  }
  
  .col-lg-4 {
    flex: 0 0 33.333333%;
    max-width: 33.333333%;
  }
  
  .col-lg-5 {
    flex: 0 0 41.666667%;
    max-width: 41.666667%;
  }
  
  .col-lg-6 {
    flex: 0 0 50%;
    max-width: 50%;
  }
  
  .col-lg-7 {
    flex: 0 0 58.333333%;
    max-width: 58.333333%;
  }
  
  .col-lg-8 {
    flex: 0 0 66.666667%;
    max-width: 66.666667%;
  }
  
  .col-lg-9 {
    flex: 0 0 75%;
    max-width: 75%;
  }
  
  .col-lg-10 {
    flex: 0 0 83.333333%;
    max-width: 83.333333%;
  }
  
  .mt-lg-0 {
    margin-top: 0 !important;
  }
  
  .mb-lg-0 {
    margin-bottom: 0 !important;
  }
  
  .text-lg-end {
    text-align: right !important;
  }
  
  .ps-lg-5 {
    padding-left: 3rem !important;
  }
}

/* Mobile optimizations */
@media (max-width: 991px) {
  .navbar-collapse {
    background: var(--secondary-dark);
    padding: 1rem;
    margin-top: 1rem;
    border-radius: 8px;
  }
  
  .nav-link {
    padding: 0.75rem 1rem !important;
    margin: 0.25rem 0;
  }
  
  .carousel-caption {
    padding: 1rem;
  }
  
  .carousel-caption h1,
  .carousel-caption .display-2 {
    font-size: 2rem !important;
  }
  
  .carousel-caption p {
    font-size: 1rem !important;
  }
  
  .display-3 {
    font-size: 2rem !important;
  }
  
  .display-4 {
    font-size: 1.75rem !important;
  }
  
  .display-5 {
    font-size: 1.5rem !important;
  }
  
  .btn {
    padding: 0.625rem 1.25rem !important;
    font-size: 0.9rem !important;
  }
  
  .py-5 {
    padding: 2.5rem 0 !important;
  }
  
  .card-body {
    padding: 1.5rem !important;
  }
}

@media (max-width: 767px) {
  .carousel-item {
    height: 70vh;
    min-height: 500px;
  }
  
  .carousel-control-prev,
  .carousel-control-next {
    width: 10%;
  }
  
  .carousel-control-prev-icon,
  .carousel-control-next-icon {
    width: 2rem;
    height: 2rem;
  }
}

@media (max-width: 575px) {
  .btn-lg {
    padding: 0.75rem 1.5rem !important;
    font-size: 1rem !important;
  }
  
  .px-5 {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }
  
  .carousel-caption {
    bottom: 10px;
  }
}

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

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

.scroll-to-top:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 20px rgba(216, 67, 21, 0.6);
}

/* ===========================
   PRELOADER
   =========================== */
.preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: opacity 0.5s ease-out;
}

.preloader.hidden {
  opacity: 0;
  pointer-events: none;
}

.preloader-spinner {
  width: 60px;
  height: 60px;
  border: 4px solid var(--light-gray);
  border-top-color: var(--primary-color);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

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

/* ===========================
   ADDITIONAL ENHANCEMENTS
   =========================== */

/* Selection color */
::selection {
  background: var(--primary-color);
  color: var(--white);
}

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

/* Scrollbar styling */
::-webkit-scrollbar {
  width: 10px;
}

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

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

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

/* Focus visible for accessibility */
*:focus-visible {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
}

/* Image loading effect */
img {
  transition: opacity 0.3s ease-in-out;
}

img[loading='lazy'] {
  opacity: 0;
}

img[loading='lazy'].loaded {
  opacity: 1;
}

/* Placeholder shimmer effect */
.placeholder-shimmer {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
  0% {
    background-position: -200% 0;
  }
  100% {
    background-position: 200% 0;
  }
}