/* Midnight Copper Architecture Studio - Custom Styles */

/* ===== Root Variables ===== */
:root {
  --primary-color: #2C3E50;
  --secondary-color: #E67E22;
  --copper-light: #F39C12;
  --copper-dark: #D35400;
  --dark-overlay: rgba(44, 62, 80, 0.85);
  --light-overlay: rgba(255, 255, 255, 0.95);
  --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-fast: all 0.2s ease;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.15);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.2);
  --shadow-copper: 0 8px 32px rgba(230, 126, 34, 0.3);
}

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

body {
  font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  color: var(--primary-color) !important;
  background-color: #f8f9fa;
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6,
.display-2, .display-3, .display-4, .display-5 {
  font-weight: 700 !important;
  letter-spacing: -0.02em;
  color: var(--primary-color) !important;
}

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

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

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

/* ===== Navigation ===== */
.navbar {
  background: linear-gradient(135deg, var(--primary-color) 0%, rgba(44, 62, 80, 0.95) 100%) !important;
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-md);
  transition: var(--transition-smooth);
  z-index: 1030 !important;
}

.navbar.sticky-top,
.navbar.position-fixed {
  animation: slideDown 0.5s ease-out;
}

@keyframes slideDown {
  from {
    transform: translateY(-100%);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

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

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

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

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

.navbar-toggler:hover {
  border-color: var(--secondary-color) !important;
  background-color: rgba(230, 126, 34, 0.1) !important;
}

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

.navbar-nav {
  gap: 0.5rem;
}

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

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

.nav-link:hover,
.nav-link.active {
  color: #ffffff !important;
  background-color: rgba(230, 126, 34, 0.15) !important;
}

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

.nav-link.active {
  background-color: rgba(230, 126, 34, 0.25) !important;
  font-weight: 600 !important;
}

/* ===== Hero Section ===== */
.carousel,
.carousel.slide,
.carousel.carousel-fade {
  background: linear-gradient(135deg, var(--primary-color) 0%, #1a252f 100%);
}

.carousel-item {
  transition: opacity 1.5s ease-in-out !important;
  background: linear-gradient(135deg, rgba(44, 62, 80, 0.8) 0%, rgba(26, 37, 47, 0.9) 100%);
}

.carousel-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at center, transparent 0%, rgba(0, 0, 0, 0.4) 100%);
  z-index: 1;
}

.carousel-item > * {
  position: relative;
  z-index: 2;
}

.position-absolute.top-50.start-50.translate-middle {
  z-index: 10 !important;
}

.display-2 {
  font-size: clamp(2.5rem, 5vw, 4rem) !important;
  animation: fadeInUp 1s ease-out;
  text-shadow: 2px 4px 8px rgba(0, 0, 0, 0.3);
}

.lead,
.fs-4,
.fs-5 {
  color: rgba(255, 255, 255, 0.95) !important;
  animation: fadeInUp 1s ease-out 0.3s both;
  text-shadow: 1px 2px 4px rgba(0, 0, 0, 0.2);
}

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

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

.btn::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
  z-index: -1;
}

.btn:hover::before {
  width: 300px;
  height: 300px;
}

.btn-primary,
.btn.bg-primary {
  background: linear-gradient(135deg, var(--secondary-color) 0%, var(--copper-dark) 100%) !important;
  color: #ffffff !important;
  box-shadow: var(--shadow-copper);
}

.btn-primary:hover,
.btn.bg-primary:hover {
  background: linear-gradient(135deg, var(--copper-light) 0%, var(--secondary-color) 100%) !important;
  color: #ffffff !important;
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(230, 126, 34, 0.4) !important;
}

.btn-secondary {
  background: linear-gradient(135deg, var(--primary-color) 0%, #1a252f 100%) !important;
  color: #ffffff !important;
  box-shadow: var(--shadow-md);
}

.btn-secondary:hover {
  background: linear-gradient(135deg, #1a252f 0%, var(--primary-color) 100%) !important;
  color: #ffffff !important;
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(44, 62, 80, 0.3) !important;
}

.btn-outline-light {
  border: 2px solid #ffffff !important;
  color: #ffffff !important;
  background: transparent !important;
}

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

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

.btn-light:hover {
  background: transparent !important;
  color: #ffffff !important;
  border-color: #ffffff !important;
  transform: translateY(-3px);
}

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

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

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

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

.card.shadow,
.card.shadow-sm,
.card.shadow-lg {
  box-shadow: var(--shadow-md) !important;
}

.card:hover.shadow,
.card:hover.shadow-sm,
.card:hover.shadow-lg {
  box-shadow: var(--shadow-lg) !important;
}

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

.card-body.p-4 {
  padding: 2.5rem !important;
}

.card-title,
.card-body .h3,
.card-body .h4,
.card-body .h5 {
  color: var(--primary-color) !important;
  margin-bottom: 1rem !important;
}

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

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

.portfolio-item {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  background: #ffffff;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-smooth);
}

.portfolio-item:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

.portfolio-card {
  position: relative;
  overflow: hidden;
}

.portfolio-card img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  transition: var(--transition-smooth);
}

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

.portfolio-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(44, 62, 80, 0.95) 0%, rgba(230, 126, 34, 0.95) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: var(--transition-smooth);
  padding: 2rem;
}

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

.portfolio-overlay.flex-column {
  flex-direction: column;
}

.portfolio-overlay * {
  color: #ffffff !important;
  transform: translateY(20px);
  transition: var(--transition-smooth);
}

.portfolio-item:hover .portfolio-overlay * {
  transform: translateY(0);
}

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

/* ===== Forms ===== */
.needs-validation .form-label,
.form-label {
  color: var(--primary-color) !important;
  font-weight: 600 !important;
  margin-bottom: 0.5rem !important;
}

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

.form-control,
.form-select {
  border: 2px solid #e0e0e0 !important;
  border-radius: 8px !important;
  padding: 0.75rem 1rem !important;
  transition: var(--transition-fast) !important;
  background: #ffffff !important;
  color: var(--primary-color) !important;
}

.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 !important;
}

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

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

.was-validated .form-control:invalid ~ .invalid-feedback,
.form-control.is-invalid ~ .invalid-feedback {
  display: block !important;
}

.form-check-input {
  width: 1.25rem !important;
  height: 1.25rem !important;
  border: 2px solid #dee2e6 !important;
  border-radius: 4px !important;
  cursor: pointer !important;
}

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

.form-check-input:focus {
  box-shadow: 0 0 0 0.2rem rgba(230, 126, 34, 0.25) !important;
}

.form-check-label {
  color: var(--primary-color) !important;
  margin-left: 0.5rem !important;
  cursor: pointer !important;
}

/* ===== Images ===== */
.img-fluid {
  max-width: 100% !important;
  height: auto !important;
  border-radius: 12px;
  transition: var(--transition-smooth);
}

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

.img-fluid:hover {
  transform: scale(1.02);
}

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

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

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

/* ===== Icons ===== */
.bi,
[class^="bi-"],
[class*=" bi-"] {
  display: inline-block;
  vertical-align: middle;
  color: inherit;
}

.bi-geo-alt-fill,
.bi-telephone-fill,
.bi-envelope-fill,
.bi-telephone,
.bi-envelope,
.bi-geo-alt {
  color: var(--secondary-color) !important;
}

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

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

.bi-facebook,
.bi-instagram,
.bi-linkedin {
  font-size: 1.5rem !important;
  color: #ffffff !important;
  transition: var(--transition-fast);
}

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

/* ===== Sections ===== */
section,
.py-5 {
  padding: 5rem 0 !important;
}

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

.py-3 {
  padding: 2rem 0 !important;
}

.py-2 {
  padding: 1.5rem 0 !important;
}

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

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

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

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

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

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

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

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

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

.section-divider {
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, var(--secondary-color), var(--copper-light));
  border: none;
  margin: 2rem auto;
  border-radius: 2px;
}

/* ===== Timeline Section ===== */
.timeline-section {
  position: relative;
  padding: 4rem 0;
}

.timeline-section::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--secondary-color);
  transform: translateX(-50%);
}

/* ===== Privacy Hero ===== */
.privacy-hero {
  background: linear-gradient(135deg, var(--primary-color) 0%, #1a252f 100%);
  padding: 6rem 0 4rem !important;
  position: relative;
  overflow: hidden;
}

.privacy-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at top right, rgba(230, 126, 34, 0.1), transparent 50%);
}

.privacy-hero * {
  color: #ffffff !important;
  position: relative;
  z-index: 1;
}

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

.privacy-section {
  margin-bottom: 3rem;
}

.last-updated {
  color: var(--secondary-color) !important;
  font-style: italic;
  padding: 1rem;
  background: rgba(230, 126, 34, 0.1);
  border-radius: 8px;
  border-left: 4px solid var(--secondary-color);
}

/* ===== Contact Highlight ===== */
.contact-highlight {
  background: linear-gradient(135deg, var(--primary-color) 0%, #1a252f 100%);
  padding: 4rem 2rem;
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
}

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

.contact-highlight .btn-primary {
  background: var(--secondary-color) !important;
}

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

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

/* ===== Background Utilities ===== */
.bg-primary {
  background: linear-gradient(135deg, var(--primary-color) 0%, #1a252f 100%) !important;
}

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

.bg-white {
  background: #ffffff !important;
}

.line-art-bg {
  position: relative;
  overflow: hidden;
}

.line-art-bg::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: 
    repeating-linear-gradient(90deg, transparent, transparent 50px, rgba(230, 126, 34, 0.05) 50px, rgba(230, 126, 34, 0.05) 51px),
    repeating-linear-gradient(0deg, transparent, transparent 50px, rgba(44, 62, 80, 0.05) 50px, rgba(44, 62, 80, 0.05) 51px);
  pointer-events: none;
}

/* ===== Footer ===== */
footer {
  background: linear-gradient(135deg, var(--primary-color) 0%, #1a252f 100%);
  color: #ffffff !important;
  padding: 4rem 0 2rem !important;
  margin-top: 6rem;
}

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

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

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

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

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

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

footer .border-top {
  border-top: 1px solid rgba(255, 255, 255, 0.1) !important;
}

footer .border-secondary {
  border-color: rgba(230, 126, 34, 0.3) !important;
}

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

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

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

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

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

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

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

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

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

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

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

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

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

.vh-100 {
  height: 100vh !important;
  min-height: 500px;
}

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

.opacity-25 {
  opacity: 0.25 !important;
}

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

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

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

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

.g-3 {
  --bs-gutter-x: 1rem !important;
  --bs-gutter-y: 1rem !important;
}

.g-4 {
  --bs-gutter-x: 1.5rem !important;
  --bs-gutter-y: 1.5rem !important;
}

.g-5 {
  --bs-gutter-x: 3rem !important;
  --bs-gutter-y: 3rem !important;
}

.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-4x3 {
  --bs-aspect-ratio: 75%;
}

/* ===== Animations ===== */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

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

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

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

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

/* ===== Responsive Design ===== */
@media (max-width: 991.98px) {
  .navbar-collapse {
    background: rgba(44, 62, 80, 0.98);
    padding: 1.5rem;
    border-radius: 8px;
    margin-top: 1rem;
    box-shadow: var(--shadow-md);
  }

  .navbar-nav {
    gap: 0.5rem !important;
  }

  .nav-link {
    padding: 0.75rem 1rem !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;
  }

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

  .px-4,
  .px-5 {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }

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

  .vh-100 {
    min-height: 600px !important;
  }

  .position-sticky {
    position: relative !important;
    top: 0 !important;
  }

  .order-lg-1,
  .order-lg-2 {
    order: 0 !important;
  }

  .col-lg-5,
  .col-lg-6,
  .col-lg-7,
  .col-lg-8,
  .col-lg-10 {
    width: 100% !important;
  }

  .offset-lg-1,
  .offset-lg-2 {
    margin-left: 0 !important;
  }

  .ps-lg-4,
  .ps-lg-5 {
    padding-left: 0 !important;
  }

  .pe-lg-4 {
    padding-right: 0 !important;
  }

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

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

  .flex-lg-row-reverse {
    flex-direction: column !important;
  }

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

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

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

  .portfolio-masonry {
    grid-template-columns: 1fr;
  }

  .timeline-section::before {
    left: 30px;
  }
}

@media (max-width: 767.98px) {
  .display-2 {
    font-size: 2rem !important;
  }

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

  .fs-5 {
    font-size: 0.95rem !important;
  }

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

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

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

  .privacy-content {
    padding: 1.5rem;
  }

  .contact-highlight {
    padding: 2rem 1rem;
  }

  .col-md-3,
  .col-md-4,
  .col-md-6,
  .col-md-9 {
    width: 100% !important;
    margin-bottom: 1rem !important;
  }

  .text-md-start,
  .text-md-end {
    text-align: center !important;
  }

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

@media (max-width: 575.98px) {
  .navbar-brand {
    font-size: 1.25rem !important;
  }

  .display-2 {
    font-size: 1.75rem !important;
  }

  .btn-lg {
    padding: 0.75rem 1.5rem !important;
    font-size: 0.95rem !important;
  }

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

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

  .col-6 {
    width: 100% !important;
  }

  .filter-btn {
    padding: 0.5rem 1rem !important;
    font-size: 0.85rem !important;
  }
}

/* ===== Print Styles ===== */
@media print {
  .navbar,
  .btn,
  footer {
    display: none !important;
  }

  body {
    background: #ffffff !important;
    color: #000000 !important;
  }

  .card {
    box-shadow: none !important;
    border: 1px solid #dee2e6 !important;
  }
}

/* ===== Accessibility ===== */
*:focus-visible {
  outline: 3px solid var(--secondary-color) !important;
  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;
}

/* ===== Smooth Scrolling ===== */
html {
  scroll-behavior: smooth;
}

/* ===== Selection ===== */
::selection {
  background: var(--secondary-color);
  color: #ffffff;
}

::-moz-selection {
  background: var(--secondary-color);
  color: #ffffff;
}

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

::-webkit-scrollbar-track {
  background: #f1f1f1;
}

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

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

/* ===== Loading States ===== */
.loading {
  position: relative;
  pointer-events: none;
  opacity: 0.6;
}

.loading::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 30px;
  height: 30px;
  margin: -15px 0 0 -15px;
  border: 3px solid var(--secondary-color);
  border-radius: 50%;
  border-top-color: transparent;
  animation: spinner 0.8s linear infinite;
}

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