/* Midnight Amber Architecture Studio - Custom Styles */

/* ========================================
   ROOT VARIABLES & RESETS
   ======================================== */
:root {
  --primary-color: #2C3E50;
  --secondary-color: #E67E22;
  --dark-bg: #1a252f;
  --light-bg: #f8f9fa;
  --text-dark: #2C3E50;
  --text-light: #ffffff;
  --accent-amber: #F39C12;
  --hover-amber: #D68910;
  --gradient-dark: linear-gradient(135deg, #2C3E50 0%, #1a252f 100%);
  --gradient-amber: linear-gradient(135deg, #E67E22 0%, #F39C12 100%);
  --shadow-sm: 0 2px 4px rgba(0,0,0,0.1);
  --shadow-md: 0 4px 6px rgba(0,0,0,0.15);
  --shadow-lg: 0 10px 25px rgba(0,0,0,0.2);
  --transition-base: all 0.3s ease;
  --transition-slow: all 0.5s ease;
}

* {
  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) !important;
  background-color: #ffffff;
  line-height: 1.7;
  overflow-x: hidden;
}

/* ========================================
   TYPOGRAPHY
   ======================================== */
.display-1,
.display-2,
.display-3,
.display-4,
.display-5,
.display-6 {
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-dark) !important;
}

.text-white,
.text-white * {
  color: #ffffff !important;
}

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

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

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

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

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

.fst-italic {
  font-style: italic;
}

.text-uppercase {
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* ========================================
   NAVIGATION BAR
   ======================================== */
.navbar {
  padding: 1rem 0;
  transition: var(--transition-base);
  background: var(--gradient-dark) !important;
  box-shadow: var(--shadow-md);
}

.navbar.fixed-top {
  z-index: 1030;
}

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

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

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

.navbar-toggler {
  border-color: rgba(255, 255, 255, 0.3) !important;
  padding: 0.5rem 0.75rem;
}

.navbar-toggler:focus {
  box-shadow: 0 0 0 0.2rem rgba(230, 126, 34, 0.5);
}

.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, 0.8%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.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;
  position: relative;
  transition: var(--transition-base);
  border-radius: 4px;
}

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

.nav-link:hover,
.nav-link.active {
  color: var(--secondary-color) !important;
  background-color: rgba(230, 126, 34, 0.1) !important;
}

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

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

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

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

.carousel {
  height: 100%;
}

.carousel.slide {
  height: 90vh;
}

.carousel-fade .carousel-item {
  opacity: 0;
  transition-duration: 1s;
  transition-property: opacity;
}

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

.carousel-inner {
  height: 100%;
}

.carousel-item {
  height: 90vh;
  background: var(--gradient-dark);
  position: relative;
}

.carousel-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(44, 62, 80, 0.6);
  z-index: 1;
}

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

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

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

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

.carousel-caption {
  z-index: 2;
  bottom: 50% !important;
  transform: translateY(50%);
  left: 10%;
  right: auto;
  text-align: left;
}

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

.flex-column {
  flex-direction: column !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;
}

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

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

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

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

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

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

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

/* ========================================
   BUTTONS
   ======================================== */
.btn {
  padding: 0.75rem 2rem;
  font-weight: 600;
  border-radius: 50px;
  transition: var(--transition-base);
  border: 2px solid transparent;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-size: 0.9rem;
}

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

.btn-sm {
  padding: 0.5rem 1.5rem;
  font-size: 0.85rem;
}

.btn-primary {
  background: var(--gradient-amber) !important;
  border-color: var(--secondary-color) !important;
  color: #ffffff !important;
  box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
  background: var(--primary-color) !important;
  border-color: var(--primary-color) !important;
  color: #ffffff !important;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

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

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

.btn-close {
  opacity: 0.8;
}

.btn-close:hover {
  opacity: 1;
}

/* ========================================
   CONTAINERS & LAYOUT
   ======================================== */
.container,
.container-fluid {
  padding-left: 15px;
  padding-right: 15px;
}

.py-2 { padding-top: 0.5rem !important; padding-bottom: 0.5rem !important; }
.py-3 { padding-top: 1rem !important; padding-bottom: 1rem !important; }
.py-4 { padding-top: 1.5rem !important; padding-bottom: 1.5rem !important; }
.py-5 { padding-top: 3rem !important; padding-bottom: 3rem !important; }

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

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

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

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

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

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

.m-0 { margin: 0 !important; }
.mb-0 { margin-bottom: 0 !important; }
.mb-1 { margin-bottom: 0.25rem !important; }
.mb-2 { margin-bottom: 0.5rem !important; }
.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; }

.mt-2 { margin-top: 0.5rem !important; }
.mt-3 { margin-top: 1rem !important; }
.mt-4 { margin-top: 1.5rem !important; }
.mt-lg-0 { margin-top: 0 !important; }
.mt-lg-5 { margin-top: 3rem !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; }

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

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

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

/* ========================================
   GRID SYSTEM
   ======================================== */
.row {
  display: flex;
  flex-wrap: wrap;
  margin-left: -15px;
  margin-right: -15px;
}

.g-0 {
  margin-left: 0;
  margin-right: 0;
}

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

.g-3 {
  margin-left: -0.5rem;
  margin-right: -0.5rem;
}

.g-3 > * {
  padding-left: 0.5rem;
  padding-right: 0.5rem;
  margin-bottom: 1rem;
}

.g-4 {
  margin-left: -0.75rem;
  margin-right: -0.75rem;
}

.g-4 > * {
  padding-left: 0.75rem;
  padding-right: 0.75rem;
  margin-bottom: 1.5rem;
}

.col,
.col-6,
.col-12,
.col-md-3,
.col-md-4,
.col-md-6,
.col-lg-2,
.col-lg-3,
.col-lg-4,
.col-lg-5,
.col-lg-6,
.col-lg-7,
.col-lg-8,
.col-lg-10 {
  padding-left: 15px;
  padding-right: 15px;
  width: 100%;
}

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

/* ========================================
   CARDS
   ======================================== */
.card {
  border-radius: 12px;
  overflow: hidden;
  transition: var(--transition-base);
  border: 1px solid rgba(0,0,0,0.1);
  height: 100%;
  background: #ffffff;
}

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

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

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

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

.card-body {
  padding: 1.5rem;
}

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

.card-text {
  color: #6c757d !important;
  line-height: 1.6;
}

/* Service Cards */
.service-card {
  background: #ffffff;
  padding: 2rem;
  border-radius: 12px;
  transition: var(--transition-base);
  border: 2px solid transparent;
  height: 100%;
}

.service-card:hover {
  border-color: var(--secondary-color);
  box-shadow: var(--shadow-lg);
  transform: translateY(-10px);
}

.service-icon {
  width: 70px;
  height: 70px;
  background: var(--gradient-amber);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  font-size: 2rem;
  color: #ffffff !important;
  transition: var(--transition-base);
}

.service-card:hover .service-icon {
  transform: rotate(360deg) scale(1.1);
}

/* Project Cards */
.project-card {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  cursor: pointer;
  height: 350px;
}

.project-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-slow);
}

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

.project-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--gradient-dark);
  opacity: 0;
  transition: var(--transition-base);
  z-index: 1;
}

.project-card:hover::before {
  opacity: 0.85;
}

.project-item {
  margin-bottom: 30px;
}

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

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

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

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

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

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

/* ========================================
   BACKGROUNDS
   ======================================== */
.bg-white {
  background-color: #ffffff !important;
}

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

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

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

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

/* ========================================
   OPACITY
   ======================================== */
.opacity-25 {
  opacity: 0.25 !important;
}

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

.opacity-90 {
  opacity: 0.9 !important;
}

/* ========================================
   BORDERS
   ======================================== */
.border {
  border: 1px solid #dee2e6 !important;
}

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

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

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

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

/* ========================================
   FORMS
   ======================================== */
.form-label {
  font-weight: 600;
  color: var(--text-dark) !important;
  margin-bottom: 0.5rem;
  display: block;
}

.form-control,
.form-select {
  padding: 0.75rem 1rem;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  font-size: 1rem;
  transition: var(--transition-base);
  background-color: #ffffff;
  color: var(--text-dark) !important;
  width: 100%;
}

.form-control:focus,
.form-select:focus {
  border-color: var(--secondary-color) !important;
  box-shadow: 0 0 0 0.2rem rgba(230, 126, 34, 0.25) !important;
  outline: none;
}

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

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

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

.bi::before {
  display: inline-block;
}

/* Icon specific styles */
.bi-tree::before { content: "🌲"; }
.bi-people::before { content: "👥"; }
.bi-lightbulb::before { content: "💡"; }
.bi-house-door::before { content: "🏠"; }
.bi-building::before { content: "🏢"; }
.bi-map::before { content: "🗺️"; }
.bi-sun::before { content: "☀️"; }
.bi-palette::before { content: "🎨"; }
.bi-kanban::before { content: "📋"; }
.bi-geo-alt::before,
.bi-geo-alt-fill::before { content: "📍"; }
.bi-telephone::before,
.bi-telephone-fill::before { content: "📞"; }
.bi-envelope::before,
.bi-envelope-fill::before { content: "✉️"; }
.bi-instagram::before { content: "📷"; }
.bi-linkedin::before { content: "💼"; }
.bi-facebook::before { content: "📘"; }
.bi-chat-dots-fill::before { content: "💬"; }
.bi-calendar-check-fill::before { content: "📅"; }
.bi-droplet::before { content: "💧"; }
.bi-recycle::before { content: "♻️"; }

/* ========================================
   TEXT UTILITIES
   ======================================== */
.text-center {
  text-align: center !important;
}

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

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

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

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

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

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

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

/* ========================================
   BADGES
   ======================================== */
.badge {
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-weight: 600;
  font-size: 0.85rem;
  background: var(--secondary-color) !important;
  color: #ffffff !important;
}

/* ========================================
   SPECIAL SECTIONS
   ======================================== */

/* About Section */
.about-section {
  background: var(--light-bg);
}

/* Services Section */
.services-section {
  background: #ffffff;
}

/* Projects Section */
.projects-section {
  background: var(--light-bg);
}

/* Contact Section */
.contact-section {
  background: var(--primary-color);
  color: #ffffff !important;
}

.contact-section * {
  color: #ffffff !important;
}

.contact-box {
  background: rgba(255, 255, 255, 0.1);
  padding: 2rem;
  border-radius: 12px;
  backdrop-filter: blur(10px);
}

/* Privacy Hero */
.privacy-hero {
  background: var(--gradient-dark);
  padding: 100px 0 50px;
  color: #ffffff !important;
}

.content-wrapper {
  max-width: 900px;
  margin: 0 auto;
}

.privacy-content {
  background: #ffffff;
  padding: 3rem;
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
}

.last-updated {
  color: #6c757d !important;
  font-style: italic;
  margin-top: 2rem;
}

/* Sidebar Navigation */
.sidebar-nav {
  position: sticky;
  top: 100px;
}

.sidebar-nav .nav-link {
  color: var(--text-dark) !important;
  padding: 0.5rem 1rem;
  border-left: 3px solid transparent;
  transition: var(--transition-base);
}

.sidebar-nav .nav-link:hover,
.sidebar-nav .nav-link.active {
  color: var(--secondary-color) !important;
  border-left-color: var(--secondary-color);
  background: rgba(230, 126, 34, 0.1);
}

/* ========================================
   FOOTER
   ======================================== */
footer {
  background: var(--primary-color);
  color: rgba(255, 255, 255, 0.8) !important;
  padding: 3rem 0 1rem;
}

footer * {
  color: rgba(255, 255, 255, 0.8) !important;
}

footer h5,
footer .h4 {
  color: #ffffff !important;
  font-weight: 700;
  margin-bottom: 1.5rem;
}

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

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

.copyright {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 2rem;
  margin-top: 2rem;
  color: rgba(255, 255, 255, 0.6) !important;
}

.copyright * {
  color: rgba(255, 255, 255, 0.6) !important;
}

/* ========================================
   FILTER BUTTONS
   ======================================== */
.filter-btn {
  padding: 0.5rem 1.5rem;
  margin: 0.25rem;
  border: 2px solid var(--primary-color);
  background: transparent;
  color: var(--primary-color) !important;
  border-radius: 25px;
  transition: var(--transition-base);
  cursor: pointer;
  font-weight: 600;
}

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

/* ========================================
   MODAL
   ======================================== */
.modal {
  z-index: 1050;
}

.modal.fade .modal-dialog {
  transition: transform 0.3s ease-out;
  transform: scale(0.8);
}

.modal.show .modal-dialog {
  transform: scale(1);
}

.modal-dialog {
  max-width: 800px;
}

.modal-lg {
  max-width: 900px;
}

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

.modal-content {
  border-radius: 12px;
  border: none;
  box-shadow: var(--shadow-lg);
}

.modal-header {
  background: var(--gradient-dark);
  color: #ffffff !important;
  border-radius: 12px 12px 0 0;
  padding: 1.5rem;
}

.modal-header * {
  color: #ffffff !important;
}

.modal-title {
  font-weight: 700;
}

.modal-body {
  padding: 2rem;
}

/* ========================================
   HOVER EFFECTS
   ======================================== */
.hover-lift {
  transition: var(--transition-base);
}

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

/* ========================================
   ANIMATIONS
   ======================================== */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  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);
  }
}

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

.animate-fade-in {
  animation: fadeIn 0.6s ease-out;
}

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

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

/* ========================================
   LIGHTBOX
   ======================================== */
.lightbox-trigger {
  cursor: pointer;
  position: relative;
}

.lightbox-trigger::after {
  content: '🔍';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 3rem;
  opacity: 0;
  transition: var(--transition-base);
  z-index: 2;
}

.lightbox-trigger:hover::after {
  opacity: 1;
}

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

/* ========================================
   MEDIA QUERIES - TABLETS
   ======================================== */
@media (min-width: 768px) {
  .col-md-3 { flex: 0 0 25%; max-width: 25%; }
  .col-md-4 { flex: 0 0 33.333%; max-width: 33.333%; }
  .col-md-6 { flex: 0 0 50%; max-width: 50%; }
  
  .text-md-start { text-align: left !important; }
  .text-md-end { text-align: right !important; }
  
  .mb-md-0 { margin-bottom: 0 !important; }
}

/* ========================================
   MEDIA QUERIES - DESKTOP
   ======================================== */
@media (min-width: 992px) {
  .navbar-expand-lg .navbar-nav {
    flex-direction: row;
  }
  
  .navbar-expand-lg .navbar-collapse {
    display: flex !important;
  }
  
  .col-lg-2 { flex: 0 0 16.666%; max-width: 16.666%; }
  .col-lg-3 { flex: 0 0 25%; max-width: 25%; }
  .col-lg-4 { flex: 0 0 33.333%; max-width: 33.333%; }
  .col-lg-5 { flex: 0 0 41.666%; max-width: 41.666%; }
  .col-lg-6 { flex: 0 0 50%; max-width: 50%; }
  .col-lg-7 { flex: 0 0 58.333%; max-width: 58.333%; }
  .col-lg-8 { flex: 0 0 66.666%; max-width: 66.666%; }
  .col-lg-10 { flex: 0 0 83.333%; max-width: 83.333%; }
  
  .offset-lg-1 { margin-left: 8.333%; }
  .offset-lg-2 { margin-left: 16.666%; }
  .offset-lg-3 { margin-left: 25%; }
  
  .order-lg-1 { order: 1; }
  .order-lg-2 { order: 2; }
  
  .text-lg-end { text-align: right !important; }
  
  .mb-lg-0 { margin-bottom: 0 !important; }
  .mt-lg-0 { margin-top: 0 !important; }
  .mt-lg-5 { margin-top: 3rem !important; }
  
  .ps-lg-5 { padding-left: 3rem !important; }
  .pe-lg-5 { padding-right: 3rem !important; }
}

/* ========================================
   MOBILE OPTIMIZATION
   ======================================== */
@media (max-width: 991.98px) {
  .navbar-collapse {
    background: var(--primary-color);
    padding: 1rem;
    border-radius: 8px;
    margin-top: 1rem;
  }
  
  .nav-item {
    margin: 0.5rem 0;
  }
  
  .carousel-caption {
    left: 5%;
    right: 5%;
    text-align: center;
  }
  
  .display-1 {
    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;
  }
  
  .py-5 {
    padding-top: 2rem !important;
    padding-bottom: 2rem !important;
  }
  
  .px-5 {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }
}

@media (max-width: 767.98px) {
  .hero-slideshow {
    margin-top: 70px;
  }
  
  .carousel-item {
    height: 70vh;
  }
  
  .carousel.slide {
    height: 70vh;
  }
  
  .btn {
    padding: 0.6rem 1.5rem;
    font-size: 0.85rem;
  }
  
  .btn-lg {
    padding: 0.75rem 2rem;
    font-size: 0.9rem;
  }
  
  .card-body {
    padding: 1rem;
  }
  
  .service-card {
    padding: 1.5rem;
  }
  
  .privacy-content {
    padding: 1.5rem;
  }
  
  .modal-dialog {
    margin: 0.5rem;
  }
}

/* ========================================
   SMALL DEVICES
   ======================================== */
@media (max-width: 575.98px) {
  .display-1 {
    font-size: 2rem !important;
  }
  
  .display-3 {
    font-size: 1.75rem !important;
  }
  
  .fs-1 {
    font-size: 2rem !important;
  }
  
  .fs-2 {
    font-size: 1.5rem !important;
  }
  
  .project-card {
    height: 250px;
  }
  
  .col-6 {
    flex: 0 0 100%;
    max-width: 100%;
  }
}

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

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

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

/* ========================================
   UTILITY OVERRIDES
   ======================================== */
.small,
small {
  font-size: 0.875rem;
}

.h4,
h4 {
  font-size: 1.5rem;
  font-weight: 600;
}

/* Ensure all interactive elements have proper contrast */
a,
button,
.btn,
.nav-link,
.card-title {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Smooth scrolling for anchor links */
html[data-scroll-smooth] {
  scroll-behavior: smooth;
}

/* End of Midnight Amber Architecture Studio Styles */