/* Forest & Gold Architecture Studio Theme */
/* Author: Studio Design System */
/* Color Palette: Forest Green (#2C5530) & Gold (#B8860B) */

:root {
  --forest-green: #2C5530;
  --gold: #B8860B;
  --dark-forest: #1a3320;
  --light-gold: #d4a017;
  --cream: #f5f2ed;
  --white: #ffffff;
  --text-dark: #2d2d2d;
  --shadow: rgba(44, 85, 48, 0.2);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

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

/* Typography */
h1, h2, h3, h4, h5, h6,
.display-2, .display-3, .display-4, .display-5 {
  font-weight: 700;
  color: var(--dark-forest) !important;
  letter-spacing: -0.5px;
}

.lead, .fs-4, .fs-5 {
  color: var(--text-dark) !important;
  line-height: 1.7;
}

/* Navigation Bar */
.navbar {
  background: linear-gradient(135deg, var(--forest-green) 0%, var(--dark-forest) 100%) !important;
  padding: 1rem 0;
  transition: all 0.3s ease;
  box-shadow: 0 2px 15px var(--shadow);
  z-index: 1050;
}

.navbar.scrolled {
  padding: 0.5rem 0;
  background: rgba(26, 51, 32, 0.98) !important;
  backdrop-filter: blur(10px);
}

.navbar-brand {
  color: var(--gold) !important;
  font-size: 1.75rem;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 2px;
}

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

.navbar-brand.fw-bold {
  font-weight: 800 !important;
}

.navbar-toggler {
  border-color: var(--gold) !important;
  padding: 0.5rem 0.75rem;
}

.navbar-toggler:focus {
  box-shadow: 0 0 0 0.25rem rgba(184, 134, 11, 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='%23B8860B' 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: var(--cream) !important;
  font-weight: 500;
  font-size: 1.05rem;
  padding: 0.5rem 1rem !important;
  transition: all 0.3s ease;
  position: relative;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

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

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

.nav-link:hover,
.nav-link.active {
  color: var(--gold) !important;
  transform: translateY(-2px);
}

/* Hero Slideshow */
.hero-slideshow {
  margin-top: 76px;
  height: 90vh;
  min-height: 600px;
  overflow: hidden;
}

.carousel.slide.carousel-fade {
  height: 100%;
}

.carousel-inner,
.carousel-item {
  height: 100%;
}

.carousel-item {
  transition: opacity 1.5s ease-in-out;
  background-color: var(--dark-forest);
}

.carousel-item img {
  object-fit: cover;
  height: 100%;
  width: 100%;
  opacity: 0.7;
  filter: brightness(0.8);
}

.carousel-caption {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(44, 85, 48, 0.7) 0%, rgba(26, 51, 32, 0.6) 100%);
  padding: 2rem;
  height: 100%;
}

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

.carousel-caption h1,
.carousel-caption .display-2,
.carousel-caption .display-3 {
  color: var(--gold) !important;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5);
  animation: fadeInUp 1s ease-out;
  font-weight: 800 !important;
}

.carousel-caption p,
.carousel-caption .lead {
  color: var(--cream) !important;
  text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.5);
  animation: fadeInUp 1.2s ease-out;
  max-width: 600px;
}

.carousel-control-prev,
.carousel-control-next {
  width: 5%;
  opacity: 0.8;
  transition: opacity 0.3s ease;
}

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

.carousel-control-prev-icon,
.carousel-control-next-icon {
  background-color: var(--gold);
  border-radius: 50%;
  padding: 2rem;
  background-size: 50%;
}

/* Buttons */
.btn {
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all 0.3s ease;
  border-radius: 0;
  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.1);
  transition: left 0.3s ease;
  z-index: -1;
}

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

.btn-lg {
  padding: 1rem 2.5rem !important;
  font-size: 1.1rem;
}

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

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

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

.btn-primary,
.carousel-caption .btn {
  background: var(--gold) !important;
  border: 2px solid var(--gold) !important;
  color: var(--white) !important;
  box-shadow: 0 4px 15px rgba(184, 134, 11, 0.3);
}

.btn-primary:hover,
.carousel-caption .btn:hover {
  background: var(--light-gold) !important;
  border-color: var(--light-gold) !important;
  color: var(--white) !important;
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(184, 134, 11, 0.4);
}

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

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

.btn-light {
  background: var(--cream) !important;
  border: 2px solid var(--cream) !important;
  color: var(--forest-green) !important;
}

.btn-light:hover {
  background: var(--white) !important;
  border-color: var(--white) !important;
  color: var(--forest-green) !important;
  transform: translateY(-3px);
}

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

.btn-outline-light:hover {
  background: var(--cream) !important;
  color: var(--forest-green) !important;
  transform: translateY(-3px);
}

.btn-sm {
  padding: 0.5rem 1.5rem !important;
  font-size: 0.9rem !important;
}

/* Sections */
section {
  position: relative;
  overflow: hidden;
}

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

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

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

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

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

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

/* Container */
.container,
.container-fluid {
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

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

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

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

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

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

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

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

/* Cards */
.card {
  border: none !important;
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.4s ease;
  background: var(--white);
  height: 100%;
}

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

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

.card-img-top {
  height: 250px;
  object-fit: cover;
  transition: transform 0.4s ease;
}

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

.card-body {
  padding: 1.5rem;
  background: var(--white);
}

.card-body.text-white {
  background: var(--forest-green) !important;
  color: var(--cream) !important;
}

.card-body.text-white .card-title,
.card-body.text-white h4 {
  color: var(--gold) !important;
}

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

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

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

/* Background Colors */
.bg-light {
  background-color: var(--cream) !important;
}

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

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

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

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

/* Grid */
.row {
  margin-left: -0.75rem;
  margin-right: -0.75rem;
}

.row > * {
  padding-left: 0.75rem;
  padding-right: 0.75rem;
}

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

.ps-0 {
  padding-left: 0 !important;
}

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

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

/* Display Utilities */
.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;
}

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

.fixed-top {
  position: fixed !important;
  top: 0;
  right: 0;
  left: 0;
  z-index: 1030;
}

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

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

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

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

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

/* Bootstrap Icons */
.bi {
  display: inline-block;
  vertical-align: middle;
  font-size: 1.25rem;
}

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

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

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

/* Forms */
.form-control,
.form-select {
  border: 2px solid #ddd !important;
  border-radius: 4px;
  padding: 0.75rem 1rem;
  font-size: 1rem;
  transition: all 0.3s ease;
  background-color: var(--white) !important;
  color: var(--text-dark) !important;
}

.form-control:focus,
.form-select:focus {
  border-color: var(--gold) !important;
  box-shadow: 0 0 0 0.25rem rgba(184, 134, 11, 0.25) !important;
  outline: none;
}

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

.form-check-input {
  border: 2px solid var(--forest-green) !important;
  width: 1.25rem;
  height: 1.25rem;
}

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

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

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

.needs-validation .form-control:invalid {
  border-color: #dc3545 !important;
}

.needs-validation .form-control:valid {
  border-color: #28a745 !important;
}

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

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

/* Links */
a {
  color: var(--gold);
  text-decoration: none;
  transition: all 0.3s ease;
}

a:hover {
  color: var(--light-gold);
  text-decoration: none;
}

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

/* Footer Links */
footer a {
  color: var(--cream) !important;
  transition: all 0.3s ease;
}

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

/* Accordion */
.accordion-item {
  border: 1px solid rgba(44, 85, 48, 0.2) !important;
  margin-bottom: 1rem;
  border-radius: 8px !important;
  overflow: hidden;
}

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

.accordion-button {
  background-color: var(--cream) !important;
  color: var(--forest-green) !important;
  font-weight: 600;
  padding: 1.25rem;
  border: none;
}

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

.accordion-button:focus {
  box-shadow: 0 0 0 0.25rem rgba(184, 134, 11, 0.25) !important;
  border-color: var(--gold) !important;
}

.accordion-button::after {
  filter: brightness(0) saturate(100%) invert(31%) sepia(15%) saturate(1653%) hue-rotate(81deg) brightness(93%) contrast(88%);
}

.accordion-button:not(.collapsed)::after {
  filter: brightness(0) saturate(100%) invert(61%) sepia(76%) saturate(433%) hue-rotate(6deg) brightness(88%) contrast(89%);
}

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

.accordion-collapse {
  border-top: 1px solid rgba(44, 85, 48, 0.2);
}

/* Alerts */
.alert {
  border-radius: 8px;
  padding: 1rem 1.5rem;
  margin-bottom: 1rem;
  border: none;
}

.alert-light {
  background-color: var(--cream) !important;
  color: var(--forest-green) !important;
  border: 2px solid var(--forest-green) !important;
}

/* Portfolio Filter */
.filter-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 3rem;
}

.filter-btn {
  padding: 0.75rem 2rem;
  background: transparent;
  border: 2px solid var(--forest-green) !important;
  color: var(--forest-green) !important;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  cursor: pointer;
  transition: all 0.3s ease;
  border-radius: 0;
}

.filter-btn:hover,
.filter-btn.active {
  background: var(--forest-green) !important;
  color: var(--white) !important;
  transform: translateY(-3px);
  box-shadow: 0 6px 20px var(--shadow);
}

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

.portfolio-item {
  opacity: 1;
  transition: all 0.5s ease;
  animation: fadeIn 0.5s ease;
}

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

.portfolio-item.large {
  grid-column: span 2;
  grid-row: span 2;
}

.portfolio-item.medium {
  grid-column: span 2;
}

.portfolio-card {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  height: 100%;
  min-height: 350px;
  cursor: pointer;
}

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

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

.portfolio-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(44, 85, 48, 0.9) 0%, rgba(184, 134, 11, 0.85) 100%);
  opacity: 0;
  transition: opacity 0.4s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

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

.portfolio-content {
  text-align: center;
  transform: translateY(20px);
  transition: transform 0.4s ease;
}

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

.portfolio-content h3 {
  color: var(--gold) !important;
  font-size: 1.75rem;
  margin-bottom: 0.5rem;
}

.portfolio-content p {
  color: var(--cream) !important;
  font-size: 1rem;
}

/* Ratio */
.ratio {
  position: relative;
  width: 100%;
}

.ratio::before {
  display: block;
  padding-top: var(--bs-aspect-ratio);
  content: "";
}

.ratio > * {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.ratio-16x9 {
  --bs-aspect-ratio: 56.25%;
}

/* Border */
.border {
  border: 1px solid rgba(44, 85, 48, 0.2) !important;
}

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

.border-bottom {
  border-bottom: 1px solid rgba(44, 85, 48, 0.2) !important;
}

.border-top {
  border-top: 1px solid rgba(44, 85, 48, 0.2) !important;
}

/* Opacity */
.opacity-75 {
  opacity: 0.75 !important;
}

/* Flex Utilities */
.flex-shrink-0 {
  flex-shrink: 0 !important;
}

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

/* Font Styles */
.fst-italic {
  font-style: italic !important;
}

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

/* Small Text */
.small {
  font-size: 0.875rem;
}

/* Privacy Content */
.privacy-content {
  max-width: 900px;
  margin: 0 auto;
}

.privacy-content h2 {
  color: var(--forest-green) !important;
  margin-top: 2rem;
  margin-bottom: 1rem;
}

.privacy-content h3 {
  color: var(--gold) !important;
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
}

/* Nav (Footer) */
.nav {
  display: flex;
  flex-wrap: wrap;
  padding-left: 0;
  margin-bottom: 0;
  list-style: none;
}

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

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

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

/* Scroll Animations */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease;
}

.fade-in.active {
  opacity: 1;
  transform: translateY(0);
}

.slide-in-left {
  opacity: 0;
  transform: translateX(-50px);
  transition: all 0.8s ease;
}

.slide-in-left.active {
  opacity: 1;
  transform: translateX(0);
}

.slide-in-right {
  opacity: 0;
  transform: translateX(50px);
  transition: all 0.8s ease;
}

.slide-in-right.active {
  opacity: 1;
  transform: translateX(0);
}

/* Responsive Design */
@media (max-width: 1199.98px) {
  .navbar-brand {
    font-size: 1.5rem;
  }
  
  .display-2 {
    font-size: 3rem !important;
  }
  
  .display-3 {
    font-size: 2.5rem !important;
  }
  
  .display-4 {
    font-size: 2rem !important;
  }
  
  .portfolio-grid {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
  }
  
  .portfolio-item.large,
  .portfolio-item.medium {
    grid-column: span 1;
    grid-row: span 1;
  }
}

@media (max-width: 991.98px) {
  .navbar-collapse {
    background: rgba(26, 51, 32, 0.98);
    padding: 1rem;
    margin-top: 1rem;
    border-radius: 8px;
  }
  
  .nav-item {
    margin: 0.25rem 0;
  }
  
  .nav-link {
    padding: 0.75rem 1rem !important;
  }
  
  .hero-slideshow {
    height: 70vh;
    min-height: 500px;
    margin-top: 70px;
  }
  
  .carousel-caption {
    padding: 1.5rem;
  }
  
  .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-lg-6,
  .col-lg-5,
  .col-lg-7,
  .col-lg-4,
  .col-lg-3,
  .col-lg-8,
  .col-lg-9,
  .col-lg-10,
  .col-lg-2 {
    width: 100%;
    margin-bottom: 2rem;
  }
  
  .mb-lg-0 {
    margin-bottom: 2rem !important;
  }
  
  .ps-lg-5,
  .pe-lg-5 {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }
  
  .text-lg-end {
    text-align: center !important;
  }
  
  .mt-lg-0 {
    margin-top: 1rem !important;
  }
  
  .order-lg-1 {
    order: 1;
  }
  
  .order-lg-2 {
    order: 2;
  }
  
  .offset-lg-1,
  .offset-lg-2,
  .offset-lg-3 {
    margin-left: 0 !important;
  }
  
  .position-sticky {
    position: relative !important;
  }
  
  .portfolio-grid {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
  }
}

@media (max-width: 767.98px) {
  html {
    font-size: 14px;
  }
  
  .navbar-brand {
    font-size: 1.25rem;
  }
  
  .hero-slideshow {
    height: 60vh;
    min-height: 400px;
    margin-top: 65px;
  }
  
  .carousel-caption {
    padding: 1rem;
  }
  
  .display-2 {
    font-size: 2rem !important;
  }
  
  .display-3 {
    font-size: 1.75rem !important;
  }
  
  .display-4 {
    font-size: 1.5rem !important;
  }
  
  .display-5 {
    font-size: 1.25rem !important;
  }
  
  .lead,
  .fs-4 {
    font-size: 1rem !important;
  }
  
  .fs-5 {
    font-size: 0.9rem !important;
  }
  
  .btn-lg {
    padding: 0.75rem 2rem !important;
    font-size: 1rem;
  }
  
  .py-5 {
    padding-top: 3rem !important;
    padding-bottom: 3rem !important;
  }
  
  .py-6 {
    padding-top: 3.5rem !important;
    padding-bottom: 3.5rem !important;
  }
  
  .col-md-6,
  .col-md-4,
  .col-md-3,
  .col-md-12 {
    width: 100%;
    margin-bottom: 1.5rem;
  }
  
  .mb-md-0 {
    margin-bottom: 1.5rem !important;
  }
  
  .text-md-start,
  .text-md-end {
    text-align: center !important;
  }
  
  .order-md-1 {
    order: 1;
  }
  
  .order-md-2 {
    order: 2;
  }
  
  .portfolio-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .portfolio-card {
    min-height: 300px;
  }
  
  .filter-buttons {
    gap: 0.5rem;
  }
  
  .filter-btn {
    padding: 0.5rem 1.5rem;
    font-size: 0.9rem;
  }
  
  .card-img-top {
    height: 200px;
  }
}

@media (max-width: 575.98px) {
  .container,
  .container-fluid {
    padding-left: 1rem;
    padding-right: 1rem;
  }
  
  .hero-slideshow {
    height: 50vh;
    min-height: 350px;
  }
  
  .carousel-caption h1 {
    font-size: 1.5rem !important;
  }
  
  .carousel-caption p {
    font-size: 0.9rem !important;
  }
  
  .btn {
    font-size: 0.9rem;
  }
  
  .btn.px-5 {
    padding-left: 2rem !important;
    padding-right: 2rem !important;
  }
  
  .col-sm-6 {
    width: 100%;
  }
  
  .col-6 {
    width: 50%;
  }
  
  .col-12 {
    width: 100%;
  }
}

/* Print Styles */
@media print {
  .navbar,
  .carousel-control-prev,
  .carousel-control-next,
  .btn,
  footer {
    display: none !important;
  }
  
  body {
    background: white;
    color: black;
  }
  
  .hero-slideshow {
    margin-top: 0;
    height: auto;
  }
}