/* Ember Warmth Architecture Studio Theme - Complete CSS */

/* ===== ROOT VARIABLES ===== */
:root {
  --primary-color: #D84315;
  --secondary-color: #8D6E63;
  --primary-dark: #BF360C;
  --primary-light: #FF6E40;
  --secondary-dark: #6D4C41;
  --secondary-light: #A1887F;
  --dark: #212529;
  --light: #F5F5F5;
  --white: #FFFFFF;
  --gray: #6C757D;
  --gray-light: #E9ECEF;
  --transition: all 0.3s ease;
  --shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
  --shadow-lg: 0 1rem 3rem rgba(0, 0, 0, 0.175);
  --shadow-sm: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
}

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

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

html {
  scroll-behavior: smooth;
}

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4, h5, h6,
.display-1, .display-2, .display-3, .display-4, .display-5 {
  font-weight: 700;
  line-height: 1.2;
  color: var(--dark);
}

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

.text-white h1, .text-white h2, .text-white h3, .text-white h4, .text-white h5, .text-white h6,
.text-white .display-1, .text-white .display-2, .text-white .display-3, .text-white .display-4, .text-white .display-5 {
  color: var(--white) !important;
}

/* ===== NAVBAR ===== */
.navbar {
  padding: 1rem 0;
  transition: var(--transition);
  z-index: 1000;
}

.navbar-dark {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-color) 100%) !important;
}

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

.navbar.sticky-top {
  box-shadow: var(--shadow);
}

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

.navbar-brand:hover {
  color: var(--primary-light) !important;
  transform: scale(1.05);
}

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

.navbar-light .navbar-brand {
  color: var(--primary-color) !important;
}

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

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

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

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

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

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

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

.navbar-light .nav-link:hover,
.navbar-light .nav-link.active {
  color: var(--primary-color) !important;
  background-color: rgba(216, 67, 21, 0.1) !important;
}

/* ===== BUTTONS ===== */
.btn {
  border: none;
  padding: 0.75rem 1.5rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.2);
  transition: var(--transition);
  z-index: -1;
}

.btn:hover::before {
  left: 0;
}

.btn-lg {
  padding: 1rem 2rem;
  font-size: 1.1rem;
}

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

.btn-primary,
.btn.btn-lg.px-5.py-3 {
  background-color: var(--primary-color) !important;
  color: var(--white) !important;
  border: 2px solid var(--primary-color) !important;
}

.btn-primary:hover,
.btn.btn-lg.px-5.py-3:hover {
  background-color: var(--primary-dark) !important;
  border-color: var(--primary-dark) !important;
  color: var(--white) !important;
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

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

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

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

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

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

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

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

.btn-dark:hover {
  background-color: #000 !important;
  color: var(--white) !important;
}

/* ===== CAROUSEL ===== */
.carousel {
  position: relative;
  overflow: hidden;
}

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

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

.carousel-inner {
  min-height: 100vh;
}

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

.carousel-item img {
  object-fit: cover;
  filter: brightness(0.6);
  transition: var(--transition);
}

.carousel-item:hover img {
  filter: brightness(0.7);
  transform: scale(1.05);
}

.carousel-caption {
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  padding: 2rem;
  text-align: left;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.3) 100%);
}

.carousel-caption .display-1 {
  font-size: 4rem;
  font-weight: 800;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5);
  color: var(--white) !important;
  animation: slideInLeft 1s ease-out;
}

.carousel-caption .lead,
.carousel-caption .fs-3,
.carousel-caption .fs-4 {
  text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.5);
  color: var(--white) !important;
  animation: slideInLeft 1.2s ease-out;
}

.carousel-caption .display-2 {
  font-size: 3.5rem;
  color: var(--white) !important;
  animation: slideInLeft 1s ease-out;
}

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

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

.carousel-control-prev,
.carousel-control-next {
  width: 5%;
  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: var(--primary-color);
  border-radius: 50%;
  padding: 0.5rem;
}

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

/* ===== CARDS ===== */
.card {
  border: none;
  border-radius: 0.5rem;
  overflow: hidden;
  transition: var(--transition);
  background-color: var(--white);
  box-shadow: var(--shadow-sm);
}

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

.card-body {
  padding: 2rem;
}

/* ===== PORTFOLIO ===== */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
}

.portfolio-item {
  position: relative;
  overflow: hidden;
  border-radius: 0.5rem;
  cursor: pointer;
  height: 400px;
}

.portfolio-card {
  width: 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
}

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

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

.portfolio-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.2) 0%, rgba(216, 67, 21, 0.9) 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 2rem;
  opacity: 0;
  transition: opacity 0.4s ease;
}

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

.portfolio-overlay h3,
.portfolio-overlay p {
  color: var(--white) !important;
  transform: translateY(20px);
  transition: transform 0.4s ease 0.1s;
}

.portfolio-item:hover .portfolio-overlay h3,
.portfolio-item:hover .portfolio-overlay p {
  transform: translateY(0);
}

.view-project {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.4s ease 0.2s;
}

.portfolio-item:hover .view-project {
  opacity: 1;
  transform: translateY(0);
}

/* ===== BADGES ===== */
.badge {
  padding: 0.5rem 1rem;
  font-weight: 600;
  border-radius: 2rem;
  font-size: 0.875rem;
}

/* ===== FILTER BUTTONS ===== */
.filter-btn {
  margin: 0.25rem;
  transition: var(--transition);
}

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

/* ===== FORMS ===== */
.form-control,
.form-select {
  border: 2px solid var(--gray-light);
  padding: 0.75rem 1rem;
  transition: var(--transition);
  border-radius: 0.375rem;
}

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

.form-control-lg,
.form-select-lg {
  padding: 1rem 1.25rem;
  font-size: 1.125rem;
}

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

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

.form-check-input {
  width: 1.25rem;
  height: 1.25rem;
  border: 2px solid var(--gray-light);
  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.25) !important;
}

.form-check-label {
  margin-left: 0.5rem;
}

.form-range {
  height: 0.5rem;
}

.form-range::-webkit-slider-thumb {
  background-color: var(--primary-color);
}

.form-range::-moz-range-thumb {
  background-color: var(--primary-color);
}

.invalid-feedback {
  display: none;
  color: #dc3545;
  font-size: 0.875rem;
  margin-top: 0.25rem;
}

.was-validated .form-control:invalid ~ .invalid-feedback {
  display: block;
}

/* ===== ALERTS ===== */
.alert {
  border: none;
  border-radius: 0.5rem;
  padding: 1rem 1.5rem;
}

.alert-success {
  background-color: #d4edda;
  color: #155724;
}

/* ===== ACCORDION ===== */
.accordion-item {
  border: 1px solid var(--gray-light);
  margin-bottom: 1rem;
  border-radius: 0.5rem !important;
  overflow: hidden;
}

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

.accordion-button {
  background-color: var(--white);
  color: var(--dark);
  font-weight: 600;
  padding: 1.25rem 1.5rem;
  transition: var(--transition);
}

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

.accordion-button:focus {
  box-shadow: none;
  border-color: var(--primary-color);
}

.accordion-button::after {
  transition: var(--transition);
}

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

.accordion-body {
  padding: 1.5rem;
  background-color: var(--light);
}

/* ===== SHADOWS ===== */
.shadow-sm {
  box-shadow: var(--shadow-sm) !important;
}

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

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

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

.border-bottom {
  border-bottom: 1px solid var(--gray-light) !important;
}

.border-start {
  border-left: 3px solid var(--primary-color) !important;
}

.border-end {
  border-right: 1px solid var(--gray-light) !important;
}

.border-3 {
  border-width: 3px !important;
}

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

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

/* ===== IMAGES ===== */
.img-fluid {
  max-width: 100%;
  height: auto;
  transition: var(--transition);
}

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

.m-3 {
  margin: 1.5rem !important;
}

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

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

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

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

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

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

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

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

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

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

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

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

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

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

/* ===== PROGRESS BAR ===== */
.progress {
  height: 1rem;
  border-radius: 0.5rem;
  background-color: var(--gray-light);
}

.progress-bar {
  background-color: var(--primary-color);
  transition: width 1s ease;
}

/* ===== MODAL ===== */
.modal-content {
  border: none;
  border-radius: 0.5rem;
}

.modal-header {
  border-bottom: 1px solid var(--gray-light);
  padding: 1.5rem;
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
  color: var(--white);
}

.modal-header h5 {
  color: var(--white) !important;
}

.modal-body {
  padding: 2rem;
}

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

.btn-close:focus {
  box-shadow: none;
}

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

.bi-check-circle-fill,
.bi-geo-alt-fill,
.bi-telephone-fill,
.bi-envelope-fill,
.bi-facebook,
.bi-instagram,
.bi-linkedin,
.bi-award-fill,
.bi-house-check-fill,
.bi-tree-fill,
.bi-lightning-charge-fill {
  color: var(--primary-color);
}

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

/* ===== ANIMATIONS ===== */
@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 fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

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

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

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

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

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) {
  .navbar-expand-lg .navbar-nav {
    flex-direction: row;
  }
  
  .navbar-expand-lg .navbar-collapse {
    display: flex !important;
  }
  
  .flex-lg-row-reverse {
    flex-direction: row-reverse !important;
  }
  
  .text-lg-end {
    text-align: right !important;
  }
  
  .ps-lg-4 {
    padding-left: 2rem !important;
  }
  
  .ps-lg-5 {
    padding-left: 3rem !important;
  }
  
  .mt-lg-0 {
    margin-top: 0 !important;
  }
  
  .mb-lg-0 {
    margin-bottom: 0 !important;
  }
  
  .order-lg-1 {
    order: 1 !important;
  }
  
  .order-lg-2 {
    order: 2 !important;
  }
  
  .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-1 {
    margin-left: 8.333333%;
  }
  
  .offset-lg-2 {
    margin-left: 16.666667%;
  }
  
  .p-lg-5 {
    padding: 3rem !important;
  }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) {
  .col-md-3 {
    flex: 0 0 auto;
    width: 25%;
  }
  
  .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;
  }
  
  .p-md-5 {
    padding: 3rem !important;
  }
}

/* Small devices (landscape phones, 576px and up) */
@media (max-width: 991px) {
  .navbar-collapse {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-color) 100%);
    padding: 1rem;
    margin-top: 1rem;
    border-radius: 0.5rem;
  }
  
  .nav-item {
    margin: 0.25rem 0;
  }
  
  .carousel-caption .display-1 {
    font-size: 2.5rem;
  }
  
  .carousel-caption .display-2 {
    font-size: 2rem;
  }
  
  .display-1 {
    font-size: 3rem !important;
  }
  
  .display-2 {
    font-size: 2.5rem !important;
  }
  
  .display-3 {
    font-size: 2rem !important;
  }
  
  .display-4 {
    font-size: 1.75rem !important;
  }
  
  .display-5 {
    font-size: 1.5rem !important;
  }
  
  .col-12 {
    width: 100%;
  }
  
  .order-1 {
    order: 1 !important;
  }
  
  .order-2 {
    order: 2 !important;
  }
}

@media (max-width: 767px) {
  .carousel-item {
    min-height: 500px;
  }
  
  .carousel-caption {
    padding: 1rem;
  }
  
  .btn-lg {
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
  }
  
  .portfolio-grid {
    grid-template-columns: 1fr;
  }
  
  .py-5 {
    padding-top: 3rem !important;
    padding-bottom: 3rem !important;
  }
}

@media (max-width: 576px) {
  .container {
    padding-left: 1rem;
    padding-right: 1rem;
  }
  
  .carousel-caption .display-1 {
    font-size: 2rem;
  }
  
  .carousel-caption .display-2 {
    font-size: 1.75rem;
  }
  
  .fs-3 {
    font-size: 1.25rem !important;
  }
  
  .fs-4 {
    font-size: 1.125rem !important;
  }
  
  .fs-5 {
    font-size: 1rem !important;
  }
  
  .btn-group {
    flex-direction: column;
    width: 100%;
  }
  
  .filter-btn {
    width: 100%;
  }
}

/* ===== HOVER EFFECTS ===== */
a {
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  opacity: 0.8;
}

.hover-lift {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

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

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

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

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

/* ===== LOADING ANIMATION ===== */
.loading {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: var(--white);
  animation: spin 1s ease-in-out infinite;
}

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

/* ===== PRINT STYLES ===== */
@media print {
  .navbar,
  .carousel-control-prev,
  .carousel-control-next,
  .carousel-indicators,
  .btn,
  footer {
    display: none !important;
  }
}