/* Nordic Steel Architecture Studio - Custom Styles */

/* ===========================
   ROOT VARIABLES & RESET
   =========================== */
:root {
  --primary-color: #2E3440;
  --secondary-color: #88C0D0;
  --accent-light: #D8DEE9;
  --accent-dark: #3B4252;
  --white: #ECEFF4;
  --text-dark: #2E3440;
  --text-light: #D8DEE9;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --shadow-sm: 0 2px 8px rgba(46, 52, 64, 0.1);
  --shadow-md: 0 4px 16px rgba(46, 52, 64, 0.15);
  --shadow-lg: 0 8px 32px rgba(46, 52, 64, 0.2);
}

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

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

body {
  font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  color: var(--text-dark) !important;
  background-color: #F5F7FA !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 {
  font-weight: 700 !important;
  color: var(--primary-color) !important;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

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

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

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

.fs-4 {
  color: var(--text-light) !important;
  font-weight: 400 !important;
}

.fs-5 {
  color: var(--text-dark) !important;
  line-height: 1.8;
}

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

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

.text-white {
  color: #FFFFFF !important;
}

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

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

/* ===========================
   NAVIGATION
   =========================== */
.navbar {
  background-color: rgba(46, 52, 64, 0.95) !important;
  backdrop-filter: blur(10px);
  padding: 1rem 0 !important;
  transition: var(--transition);
  box-shadow: 0 2px 20px rgba(46, 52, 64, 0.3);
  z-index: 1000;
}

.navbar.fixed-top {
  position: fixed !important;
  top: 0;
  left: 0;
  right: 0;
}

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

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

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

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

.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%2388C0D0' 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(--text-light) !important;
  font-weight: 500 !important;
  padding: 0.5rem 1rem !important;
  position: relative;
  transition: var(--transition);
  text-transform: uppercase;
  font-size: 0.9rem;
  letter-spacing: 0.5px;
}

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

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

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

/* ===========================
   BUTTONS
   =========================== */
.btn {
  font-weight: 600 !important;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-radius: 0 !important;
  transition: var(--transition);
  border-width: 2px !important;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

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

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

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

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

.btn-light:hover {
  background-color: var(--secondary-color) !important;
  color: #FFFFFF !important;
  border-color: var(--secondary-color) !important;
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(136, 192, 208, 0.4);
}

.btn-outline-light {
  background-color: transparent !important;
  color: #FFFFFF !important;
  border-color: #FFFFFF !important;
}

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

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

.btn-outline-dark:hover {
  background-color: var(--primary-color) !important;
  color: #FFFFFF !important;
  border-color: var(--primary-color) !important;
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(46, 52, 64, 0.3);
}

.filter-btn {
  background-color: transparent !important;
  color: #FFFFFF !important;
  border-color: rgba(255, 255, 255, 0.3) !important;
  padding: 0.75rem 1.5rem !important;
  margin: 0.5rem !important;
}

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

/* ===========================
   HERO SLIDESHOW
   =========================== */
.hero-slideshow {
  height: 100vh;
  min-height: 600px;
  margin-top: 76px;
  position: relative;
}

.carousel {
  height: 100%;
}

.carousel-inner {
  height: 100%;
}

.carousel-item {
  height: 100%;
  background-color: var(--primary-color);
  position: relative;
}

.carousel-item::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(46, 52, 64, 0.8) 0%, rgba(46, 52, 64, 0.4) 100%);
  z-index: 1;
}

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

.carousel-caption {
  position: absolute !important;
  top: 50% !important;
  left: 0 !important;
  right: 0 !important;
  bottom: auto !important;
  transform: translateY(-50%);
  z-index: 2;
  text-align: left !important;
  padding: 0 5% !important;
}

.carousel-caption .display-3 {
  color: #FFFFFF !important;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.3);
  animation: fadeInUp 1s ease-out;
}

.carousel-caption .fs-4 {
  color: var(--accent-light) !important;
  text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.3);
  animation: fadeInUp 1s ease-out 0.3s both;
  max-width: 600px;
}

.carousel-caption .btn {
  animation: fadeInUp 1s ease-out 0.6s both;
}

.carousel-control-prev,
.carousel-control-next {
  width: 60px !important;
  height: 60px !important;
  background-color: rgba(136, 192, 208, 0.3) !important;
  border-radius: 50% !important;
  top: 50% !important;
  transform: translateY(-50%);
  transition: var(--transition);
  opacity: 0.8 !important;
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
  background-color: var(--secondary-color) !important;
  opacity: 1 !important;
}

.carousel-control-prev {
  left: 2rem !important;
}

.carousel-control-next {
  right: 2rem !important;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
  width: 30px !important;
  height: 30px !important;
}

/* Scroll Indicator */
.position-absolute.bottom-0 a {
  position: absolute;
  bottom: 3rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  color: #FFFFFF !important;
  animation: bounce 2s infinite;
}

.bi-chevron-down {
  font-size: 2rem;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

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

.container {
  position: relative;
  z-index: 1;
}

/* About Section */
.img-fluid {
  border-radius: 0 !important;
  transition: var(--transition);
}

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

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

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

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

/* Services Section */
.bg-dark {
  background-color: var(--primary-color) !important;
}

.text-center .display-4 {
  color: #FFFFFF !important;
  margin-bottom: 1rem;
}

.text-center .display-4::after {
  content: '';
  display: block;
  width: 80px;
  height: 3px;
  background-color: var(--secondary-color);
  margin: 1.5rem auto;
}

.g-0 .col-md-4 {
  border: 1px solid rgba(136, 192, 208, 0.2);
  transition: var(--transition);
  background-color: rgba(59, 66, 82, 0.5);
}

.g-0 .col-md-4:hover {
  background-color: rgba(136, 192, 208, 0.1);
  transform: translateY(-10px);
  border-color: var(--secondary-color);
}

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

.g-0 .col-md-4:hover .bi {
  transform: scale(1.2) rotate(5deg);
}

.bi-house-door,
.bi-building,
.bi-tree,
.bi-paint-bucket,
.bi-map,
.bi-camera-video {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.h4 {
  color: #FFFFFF !important;
  font-weight: 600 !important;
  margin-bottom: 1rem !important;
}

.col-md-4 p {
  color: var(--text-light) !important;
  font-size: 0.95rem;
}

/* Projects Section */
.portfolio-masonry {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.portfolio-item {
  position: relative;
  overflow: hidden;
  background-color: var(--primary-color);
  height: 350px;
  cursor: pointer;
  transition: var(--transition);
}

.portfolio-item.tall {
  grid-row: span 2;
  height: 720px;
}

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

.portfolio-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.portfolio-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to top, rgba(46, 52, 64, 0.95) 0%, rgba(46, 52, 64, 0.3) 50%, transparent 100%);
  opacity: 0;
  transition: var(--transition);
  display: flex;
  align-items: flex-end;
  padding: 2rem;
}

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

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

.portfolio-content h4 {
  color: #FFFFFF !important;
  margin-bottom: 0.5rem;
  transform: translateY(20px);
  transition: var(--transition) 0.3s 0.1s;
}

.portfolio-content p {
  color: var(--secondary-color) !important;
  margin-bottom: 0;
  transform: translateY(20px);
  transition: var(--transition) 0.3s 0.2s;
}

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

.badge {
  background-color: var(--secondary-color) !important;
  color: var(--primary-color) !important;
  padding: 0.5rem 1rem;
  font-weight: 600 !important;
  font-size: 0.8rem;
  border-radius: 0 !important;
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 2;
}

.bi-calendar3 {
  font-size: 0.9rem !important;
  margin-right: 0.5rem;
}

/* Process Section */
.min-vh-40 {
  min-height: 40vh;
}

.accordion {
  border: none !important;
}

.accordion-item {
  background-color: transparent !important;
  border: none !important;
  border-bottom: 1px solid rgba(46, 52, 64, 0.1) !important;
  margin-bottom: 1rem;
}

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

.accordion-button {
  background-color: transparent !important;
  color: var(--primary-color) !important;
  font-weight: 600 !important;
  font-size: 1.25rem !important;
  padding: 1.5rem 0 !important;
  border: none !important;
  box-shadow: none !important;
  align-items: center !important;
}

.accordion-button:not(.collapsed) {
  color: var(--secondary-color) !important;
  background-color: transparent !important;
}

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

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

.accordion-body {
  padding: 1rem 0 2rem 0 !important;
  color: var(--text-dark) !important;
  line-height: 1.8;
}

.rounded-circle {
  width: 60px;
  height: 60px;
  background-color: var(--secondary-color) !important;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.rounded-circle .fs-2 {
  color: var(--primary-color) !important;
  font-weight: 700 !important;
}

.bi-check-circle-fill {
  color: var(--secondary-color) !important;
  font-size: 1.25rem !important;
  margin-right: 0.75rem;
}

/* Capabilities Section */
.bi-palette,
.bi-box {
  font-size: 2.5rem !important;
  margin-bottom: 1rem;
}

/* Team Section */
.card {
  border: none !important;
  border-radius: 0 !important;
  overflow: hidden;
  transition: var(--transition);
  background-color: #FFFFFF !important;
}

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

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

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

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

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

.card-text {
  color: var(--text-dark) !important;
  font-size: 0.95rem;
  line-height: 1.6;
}

.card-text.text-muted {
  color: var(--secondary-color) !important;
  font-weight: 500 !important;
}

.card .bi {
  font-size: 1.25rem !important;
  margin: 0 0.5rem;
  color: var(--accent-dark) !important;
  transition: var(--transition);
}

.card .bi:hover {
  color: var(--secondary-color) !important;
  transform: scale(1.2);
}

/* Contact Section */
.py-5 {
  padding-top: 5rem !important;
  padding-bottom: 5rem !important;
}

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

.form-control,
.form-select {
  border: 2px solid rgba(46, 52, 64, 0.2) !important;
  border-radius: 0 !important;
  padding: 0.75rem 1rem !important;
  color: var(--text-dark) !important;
  background-color: #FFFFFF !important;
  transition: var(--transition);
}

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

.form-control::placeholder {
  color: #adb5bd !important;
}

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

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

.bi-telephone-fill,
.bi-envelope-fill,
.bi-geo-alt-fill {
  font-size: 1.5rem !important;
  color: var(--secondary-color) !important;
  margin-right: 1rem;
}

/* Footer */
footer {
  background-color: var(--primary-color) !important;
  color: var(--text-light) !important;
  padding: 4rem 0 2rem;
}

footer h5 {
  color: #FFFFFF !important;
  font-weight: 600 !important;
  margin-bottom: 1.5rem !important;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 1rem !important;
}

footer p,
footer a {
  color: var(--text-light) !important;
  font-size: 0.95rem;
  line-height: 2;
}

footer a {
  text-decoration: none !important;
  transition: var(--transition);
}

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

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

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

.bi-geo-alt,
.bi-telephone,
.bi-envelope {
  font-size: 1rem !important;
  margin-right: 0.75rem;
  color: var(--secondary-color) !important;
}

.bi-instagram,
.bi-linkedin,
.bi-facebook {
  font-size: 1.5rem !important;
  color: var(--text-light) !important;
  margin-right: 1rem;
  transition: var(--transition);
}

.bi-instagram:hover,
.bi-linkedin:hover,
.bi-facebook:hover {
  color: var(--secondary-color) !important;
  transform: translateY(-3px);
}

footer .border-top {
  border-color: rgba(136, 192, 208, 0.2) !important;
}

footer .text-md-end a {
  margin-left: 1rem;
}

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

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

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

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

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

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

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

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

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

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

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

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

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

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

.text-uppercase {
  text-transform: uppercase !important;
  letter-spacing: 0.5px;
}

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

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

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

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

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

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

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

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

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

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

.end-0 {
  right: 0 !important;
}

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

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

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

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

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

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

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

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateX(-50%) translateY(0);
  }
  40% {
    transform: translateX(-50%) translateY(-20px);
  }
  60% {
    transform: translateX(-50%) translateY(-10px);
  }
}

@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-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s 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-basis: auto;
  }
  
  .order-lg-1 {
    order: 1 !important;
  }
  
  .order-lg-2 {
    order: 2 !important;
  }
}

/* Medium devices (tablets, 768px and up) */
@media (max-width: 991.98px) {
  .navbar-collapse {
    background-color: rgba(46, 52, 64, 0.98);
    padding: 1rem;
    margin-top: 1rem;
    border-top: 2px solid var(--secondary-color);
  }
  
  .nav-item {
    margin: 0.5rem 0;
  }
  
  .gap-3 {
    gap: 0 !important;
  }
  
  .carousel-caption {
    padding: 0 2rem !important;
  }
  
  .carousel-control-prev,
  .carousel-control-next {
    width: 50px !important;
    height: 50px !important;
  }
  
  .carousel-control-prev {
    left: 1rem !important;
  }
  
  .carousel-control-next {
    right: 1rem !important;
  }
  
  .portfolio-masonry {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1rem;
  }
  
  .portfolio-item.wide {
    grid-column: span 1;
  }
  
  .portfolio-item.tall {
    grid-row: span 1;
    height: 350px;
  }
  
  section {
    padding: 3rem 0;
  }
  
  .display-3 {
    font-size: 2.5rem !important;
  }
  
  .display-4 {
    font-size: 2rem !important;
  }
  
  .order-md-1 {
    order: 1 !important;
  }
  
  .order-md-2 {
    order: 2 !important;
  }
}

/* Small devices (phones, 576px and up) */
@media (max-width: 767.98px) {
  .hero-slideshow {
    height: 80vh;
    min-height: 500px;
  }
  
  .carousel-caption .display-3 {
    font-size: 2rem !important;
  }
  
  .carousel-caption .fs-4 {
    font-size: 1rem !important;
  }
  
  .btn-lg {
    padding: 0.75rem 1.5rem !important;
    font-size: 0.9rem !important;
  }
  
  .px-4 {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }
  
  .px-5 {
    padding-left: 1.5rem !important;
    padding-right: 1.5rem !important;
  }
  
  .py-3 {
    padding-top: 0.75rem !important;
    padding-bottom: 0.75rem !important;
  }
  
  .portfolio-masonry {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .g-0 .col-md-4 {
    margin-bottom: 1rem;
  }
  
  .text-md-start {
    text-align: center !important;
  }
  
  .text-md-end {
    text-align: center !important;
  }
  
  .text-lg-end {
    text-align: center !important;
  }
  
  .mb-lg-0 {
    margin-bottom: 2rem !important;
  }
  
  .mt-lg-0 {
    margin-top: 1rem !important;
  }
  
  .offset-lg-1 {
    margin-left: 0 !important;
  }
  
  .offset-lg-2 {
    margin-left: 0 !important;
  }
  
  .ps-lg-5 {
    padding-left: 0 !important;
  }
  
  footer h5 {
    margin-top: 2rem !important;
  }
  
  footer .col-lg-3:first-child h5 {
    margin-top: 0 !important;
  }
}

/* Extra small devices (portrait phones, less than 576px) */
@media (max-width: 575.98px) {
  .container-fluid {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }
  
  .navbar-brand {
    font-size: 1.25rem !important;
  }
  
  .hero-slideshow {
    margin-top: 70px;
  }
  
  .carousel-caption {
    padding: 0 1rem !important;
  }
  
  .position-absolute.bottom-0 a {
    bottom: 2rem;
  }
  
  section {
    padding: 2rem 0;
  }
  
  .py-5 {
    padding-top: 3rem !important;
    padding-bottom: 3rem !important;
  }
  
  .mt-5 {
    margin-top: 2rem !important;
  }
  
  .mb-5 {
    margin-bottom: 2rem !important;
  }
  
  .pb-3 {
    padding-bottom: 1rem !important;
  }
  
  .pt-3 {
    padding-top: 1rem !important;
  }
  
  .p-4 {
    padding: 1.5rem !important;
  }
  
  .p-5 {
    padding: 2rem !important;
  }
  
  .card-img-top {
    height: 250px;
  }
  
  .accordion-button {
    font-size: 1.1rem !important;
    padding: 1rem 0 !important;
  }
  
  .rounded-circle {
    width: 50px;
    height: 50px;
  }
  
  .rounded-circle .fs-2 {
    font-size: 1.5rem !important;
  }
  
  .me-4 {
    margin-right: 1rem !important;
  }
}

/* ===========================
   PRINT STYLES
   =========================== */
@media print {
  .navbar,
  .btn,
  .carousel-control-prev,
  .carousel-control-next,
  footer {
    display: none !important;
  }
  
  body {
    background-color: white !important;
    color: black !important;
  }
  
  a {
    text-decoration: underline !important;
  }
}

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

.skip-to-content {
  position: absolute;
  top: -100px;
  left: 0;
  background: var(--secondary-color);
  color: var(--primary-color);
  padding: 1rem;
  text-decoration: none;
  z-index: 9999;
}

.skip-to-content:focus {
  top: 0;
}

/* Reduced motion for accessibility */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}