/* Architecture Studio - Charcoal & Amber Theme */
/* Custom Properties */
:root {
  --primary-color: #2C3E50;
  --secondary-color: #E67E22;
  --charcoal: #2C3E50;
  --charcoal-dark: #1a252f;
  --charcoal-light: #34495e;
  --amber: #E67E22;
  --amber-light: #f39c12;
  --amber-dark: #d35400;
  --white: #ffffff;
  --light-gray: #f8f9fa;
  --dark-gray: #2c3e50;
  --text-dark: #2C3E50;
  --text-light: #ffffff;
  --shadow: rgba(44, 62, 80, 0.1);
  --shadow-hover: rgba(44, 62, 80, 0.2);
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Global Styles */
* {
  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;
  line-height: 1.6;
  overflow-x: hidden;
  background-color: var(--white);
}

/* Typography */
h1, h2, h3, h4, h5, h6, .display-1, .display-2, .display-3, .display-4, .display-5 {
  font-weight: 700 !important;
  color: var(--charcoal) !important;
  letter-spacing: -0.02em;
  line-height: 1.2 !important;
}

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

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

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

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

.lead {
  font-size: clamp(1rem, 2vw, 1.25rem) !important;
  color: var(--charcoal-light) !important;
  font-weight: 400 !important;
}

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

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

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

/* Navbar */
.navbar {
  background-color: transparent !important;
  transition: var(--transition);
  z-index: 1000;
}

.navbar.scrolled {
  background-color: var(--charcoal) !important;
  box-shadow: 0 2px 20px var(--shadow);
}

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

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

.navbar-dark .nav-link {
  color: rgba(255, 255, 255, 0.9) !important;
  font-weight: 500 !important;
  font-size: 0.95rem !important;
  transition: var(--transition);
  position: relative;
  padding: 0.5rem 1rem !important;
}

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

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

.navbar-dark .nav-link:hover::after,
.navbar-dark .nav-link.active::after {
  width: 60%;
}

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

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

/* Buttons */
.btn {
  font-weight: 600 !important;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-radius: 0.375rem !important;
  transition: var(--transition);
  border: 2px solid transparent !important;
  padding: 0.75rem 2rem !important;
  font-size: 0.95rem !important;
}

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

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

.btn-primary:hover,
.btn.btn-primary:hover {
  background-color: var(--amber-dark) !important;
  border-color: var(--amber-dark) !important;
  color: var(--white) !important;
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(230, 126, 34, 0.3) !important;
}

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

.btn-secondary:hover,
.btn.btn-secondary:hover {
  background-color: var(--charcoal-dark) !important;
  border-color: var(--charcoal-dark) !important;
  color: var(--white) !important;
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(44, 62, 80, 0.3) !important;
}

.btn-outline-light {
  border-color: rgba(255, 255, 255, 0.5) !important;
  color: var(--white) !important;
  background-color: transparent !important;
}

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

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

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

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

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

/* Hero Section */
.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, var(--charcoal) 0%, var(--charcoal-light) 100%);
  overflow: hidden;
}

.hero-image {
  object-fit: cover;
  opacity: 0.2;
  z-index: 1;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(44, 62, 80, 0.95) 0%, rgba(44, 62, 80, 0.85) 100%);
  z-index: 2;
}

.hero-section .container {
  position: relative;
  z-index: 3;
}

.hero-section .display-2,
.hero-section .lead,
.hero-section h1,
.hero-section p {
  color: var(--white) !important;
}

.hero-section .lead {
  color: rgba(255, 255, 255, 0.9) !important;
}

/* Cards */
.card {
  border: none !important;
  border-radius: 0.75rem !important;
  transition: var(--transition);
  overflow: hidden;
  background-color: var(--white) !important;
}

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

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

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

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

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

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

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

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

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

.card-img-top {
  height: 250px;
  object-fit: cover;
}

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

.filter-btn {
  padding: 0.6rem 1.5rem !important;
  background-color: transparent !important;
  border: 2px solid var(--charcoal) !important;
  color: var(--charcoal) !important;
  border-radius: 2rem !important;
  font-weight: 600 !important;
  transition: var(--transition);
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-size: 0.85rem !important;
}

.filter-btn:hover,
.filter-btn.active {
  background-color: var(--amber) !important;
  border-color: var(--amber) !important;
  color: var(--white) !important;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(230, 126, 34, 0.3) !important;
}

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

.portfolio-item {
  opacity: 1;
  transition: var(--transition);
  animation: fadeIn 0.5s ease-in;
}

.portfolio-item.hidden {
  display: none;
  opacity: 0;
}

.portfolio-card {
  position: relative;
  border-radius: 0.75rem;
  overflow: hidden;
  height: 350px;
  cursor: pointer;
}

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

.portfolio-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to top, rgba(44, 62, 80, 0.95) 0%, rgba(44, 62, 80, 0.3) 50%, transparent 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 2rem;
  opacity: 0;
  transition: var(--transition);
}

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

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

.portfolio-overlay h4,
.portfolio-overlay h3,
.portfolio-overlay p,
.portfolio-overlay .badge {
  color: var(--white) !important;
  transform: translateY(20px);
  transition: var(--transition);
}

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

.badge {
  background-color: var(--amber) !important;
  color: var(--white) !important;
  padding: 0.5rem 1rem !important;
  border-radius: 2rem !important;
  font-weight: 600 !important;
  font-size: 0.75rem !important;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Timeline */
.timeline-wrapper {
  position: relative;
  padding: 3rem 0;
}

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

.timeline-wrapper .row {
  position: relative;
  margin-bottom: 3rem;
}

.timeline-wrapper .rounded-circle {
  width: 60px;
  height: 60px;
  background-color: var(--amber);
  border: 4px solid var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px var(--shadow);
  position: relative;
  z-index: 2;
}

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

/* Icons */
.bi {
  vertical-align: middle;
  transition: var(--transition);
}

.bi-star-fill,
.bi-award-fill,
.bi-check-circle-fill {
  color: var(--amber) !important;
}

.bi-building,
.bi-map,
.bi-clock-history,
.bi-tree,
.bi-people,
.bi-lightbulb,
.bi-arrow-repeat,
.bi-house-door,
.bi-palette,
.bi-bank,
.bi-award,
.bi-globe,
.bi-gear-fill,
.bi-people-fill {
  color: var(--charcoal) !important;
}

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

.bi-facebook,
.bi-instagram,
.bi-linkedin,
.bi-twitter,
.bi-behance {
  color: var(--white) !important;
  transition: var(--transition);
}

.btn .bi-facebook:hover {
  color: #1877f2 !important;
}

.btn .bi-instagram:hover {
  color: #e1306c !important;
}

.btn .bi-linkedin:hover {
  color: #0077b5 !important;
}

.btn .bi-twitter:hover {
  color: #1da1f2 !important;
}

.btn .bi-behance:hover {
  color: #1769ff !important;
}

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

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

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

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

.form-control,
.form-select {
  border: 2px solid #e0e0e0 !important;
  border-radius: 0.5rem !important;
  padding: 0.75rem 1rem !important;
  font-size: 1rem !important;
  transition: var(--transition);
  background-color: var(--white) !important;
  color: var(--charcoal) !important;
}

.form-control:focus,
.form-select:focus {
  border-color: var(--amber) !important;
  box-shadow: 0 0 0 0.25rem rgba(230, 126, 34, 0.15) !important;
  background-color: var(--white) !important;
}

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

.d-none {
  display: none !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;
}

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

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

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

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

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

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

.g-3 > * {
  padding: 0.75rem !important;
}

.g-4 > * {
  padding: 1.5rem !important;
}

.g-5 > * {
  padding: 3rem !important;
}

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

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

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

.shadow-sm {
  box-shadow: 0 0.125rem 0.25rem var(--shadow) !important;
}

.shadow {
  box-shadow: 0 0.5rem 1rem var(--shadow) !important;
}

.shadow-lg {
  box-shadow: 0 1rem 3rem var(--shadow-hover) !important;
}

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

.border-bottom {
  border-bottom: 1px solid #e0e0e0 !important;
}

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

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

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

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

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

.img-fluid {
  max-width: 100%;
  height: auto;
}

.list-unstyled {
  list-style: none !important;
  padding-left: 0 !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-21x9 {
  --bs-aspect-ratio: calc(9 / 21 * 100%);
}

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

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

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

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

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

.mt-auto {
  margin-top: auto !important;
}

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

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

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

.py-0 { padding-top: 0 !important; padding-bottom: 0 !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; }

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

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

.m-3 { margin: 1rem !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; }

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

.ms-2 { margin-left: 0.5rem !important; }
.ms-4 { margin-left: 1.5rem !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; }
.mx-auto { margin-left: auto !important; margin-right: auto !important; }

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

/* 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 slideInUp {
  from {
    opacity: 0;
    transform: translateY(50px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.animate-on-scroll {
  opacity: 0;
  transition: var(--transition);
}

.animate-on-scroll.animated {
  animation: fadeIn 0.8s ease forwards;
}

.slide-in-left {
  opacity: 0;
}

.slide-in-left.animated {
  animation: slideInLeft 0.8s ease forwards;
}

.slide-in-right {
  opacity: 0;
}

.slide-in-right.animated {
  animation: slideInRight 0.8s ease forwards;
}

.slide-in-up {
  opacity: 0;
}

.slide-in-up.animated {
  animation: slideInUp 0.8s ease forwards;
}

.scale-in {
  opacity: 0;
}

.scale-in.animated {
  animation: scaleIn 0.6s ease forwards;
}

/* Hover Effects */
.hover-lift {
  transition: var(--transition);
}

.hover-lift:hover {
  transform: translateY(-5px);
}

.hover-zoom {
  overflow: hidden;
  transition: var(--transition);
}

.hover-zoom img {
  transition: var(--transition);
}

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

.hover-glow:hover {
  box-shadow: 0 0 25px rgba(230, 126, 34, 0.4) !important;
}

/* Small Text */
.small {
  font-size: 0.875rem !important;
  color: var(--charcoal-light) !important;
}

.h5 {
  font-size: 1.25rem !important;
}

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

/* Responsive */
@media (max-width: 991.98px) {
  section {
    padding: 3rem 0;
  }
  
  .py-5 {
    padding-top: 3rem !important;
    padding-bottom: 3rem !important;
  }
  
  .my-5 {
    margin-top: 3rem !important;
    margin-bottom: 3rem !important;
  }
  
  .display-2 {
    font-size: 2.5rem !important;
  }
  
  .display-3 {
    font-size: 2rem !important;
  }
  
  .display-4 {
    font-size: 1.75rem !important;
  }
  
  .display-5 {
    font-size: 1.5rem !important;
  }
  
  .navbar-collapse {
    background-color: var(--charcoal);
    padding: 1rem;
    border-radius: 0.5rem;
    margin-top: 1rem;
  }
  
  .portfolio-grid {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
  }
  
  .timeline-wrapper::before {
    left: 30px;
  }
  
  .timeline-wrapper .rounded-circle {
    width: 50px;
    height: 50px;
  }
  
  .btn-lg {
    padding: 0.875rem 2rem !important;
  }
  
  .mb-lg-0 {
    margin-bottom: 0 !important;
  }
  
  .col-lg-2,
  .col-lg-3,
  .col-lg-4,
  .col-lg-5,
  .col-lg-6,
  .col-lg-7,
  .col-lg-8,
  .col-lg-10,
  .col-lg-12 {
    flex: 0 0 100%;
    max-width: 100%;
  }
  
  .offset-lg-1,
  .offset-lg-2 {
    margin-left: 0;
  }
  
  .ps-lg-4,
  .ps-lg-5 {
    padding-left: 0 !important;
  }
  
  .pe-lg-4 {
    padding-right: 0 !important;
  }
  
  .text-lg-end {
    text-align: left !important;
  }
  
  .mt-lg-0 {
    margin-top: 0 !important;
  }
  
  .justify-content-lg-end {
    justify-content: flex-start !important;
  }
  
  .flex-lg-row-reverse {
    flex-direction: column !important;
  }
  
  .order-lg-1,
  .order-lg-2 {
    order: 0;
  }
}

@media (max-width: 767.98px) {
  .hero-section {
    min-height: 80vh;
  }
  
  .btn {
    padding: 0.625rem 1.5rem !important;
    font-size: 0.875rem !important;
  }
  
  .card-body {
    padding: 1.5rem !important;
  }
  
  .portfolio-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .filter-buttons {
    gap: 0.5rem;
  }
  
  .filter-btn {
    padding: 0.5rem 1rem !important;
    font-size: 0.75rem !important;
  }
  
  .d-md-block {
    display: none !important;
  }
  
  .col-md-2,
  .col-md-3,
  .col-md-4,
  .col-md-5,
  .col-md-6,
  .col-md-7 {
    flex: 0 0 100%;
    max-width: 100%;
  }
  
  .text-md-end,
  .text-md-start {
    text-align: center !important;
  }
  
  .mb-md-0 {
    margin-bottom: 1rem !important;
  }
  
  .order-md-1,
  .order-md-2 {
    order: 0;
  }
  
  .p-md-5 {
    padding: 2rem !important;
  }
}

@media (max-width: 575.98px) {
  .hero-section {
    min-height: 70vh;
  }
  
  .px-4 {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }
  
  .px-5 {
    padding-left: 1.5rem !important;
    padding-right: 1.5rem !important;
  }
  
  .card-img-top {
    height: 200px;
  }
  
  .portfolio-card {
    height: 250px;
  }
  
  .timeline-wrapper .rounded-circle {
    width: 40px;
    height: 40px;
  }
  
  .fs-1 {
    font-size: 2rem !important;
  }
  
  .col-6 {
    flex: 0 0 100%;
    max-width: 100%;
  }
}

/* Print Styles */
@media print {
  .navbar,
  .btn,
  .filter-buttons,
  footer {
    display: none !important;
  }
  
  body {
    color: #000 !important;
    background: #fff !important;
  }
  
  .card {
    border: 1px solid #ddd !important;
    page-break-inside: avoid;
  }
}