/* Midnight Copper Architecture Studio Theme */
/* Primary Color: #2C3E50 | Secondary Color: #E67E22 */

:root {
  --primary-color: #2C3E50;
  --secondary-color: #E67E22;
  --primary-dark: #1a252f;
  --secondary-dark: #d35400;
  --copper-light: #f39c12;
  --midnight: #34495e;
  --light-bg: #ecf0f1;
  --transition-smooth: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

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

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

/* Typography */
.display-1, .display-3, .display-4, .display-5 {
  font-weight: 300;
  letter-spacing: -0.5px;
}

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

.fw-light {
  font-weight: 300 !important;
}

/* Navbar Styles */
.navbar {
  background: rgba(44, 62, 80, 0.95) !important;
  backdrop-filter: blur(10px);
  padding: 1rem 0;
  transition: var(--transition-smooth);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

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

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

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

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

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

.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='%23E67E22' 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-item {
  position: relative;
}

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

.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 {
  color: var(--secondary-color) !important;
}

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

.nav-link.active {
  color: var(--secondary-color) !important;
  font-weight: 600;
}

/* Hero Section */
.position-relative.overflow-hidden {
  min-height: 100vh;
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--midnight) 100%);
}

.position-absolute.top-0.start-0.w-100.h-100 {
  z-index: 1;
  opacity: 0.3;
}

.object-fit-cover {
  object-fit: cover;
  object-position: center;
}

.position-relative.overflow-hidden .container {
  position: relative;
  z-index: 2;
}

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

.display-1 {
  font-size: clamp(2.5rem, 8vw, 6rem);
  line-height: 1.1;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.fs-4 {
  font-size: clamp(1rem, 2vw, 1.5rem) !important;
}

.fs-5 {
  font-size: clamp(0.9rem, 1.5vw, 1.25rem) !important;
}

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

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

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

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

.btn-sm {
  padding: 0.5rem 1.25rem !important;
  font-size: 0.875rem;
}

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

.btn-primary:hover,
.btn-primary:focus {
  background-color: var(--secondary-dark) !important;
  border-color: var(--secondary-dark) !important;
  color: #ffffff !important;
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(230, 126, 34, 0.4) !important;
}

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

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

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

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

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

.btn-outline-secondary:hover {
  background-color: var(--secondary-color) !important;
  border-color: var(--secondary-color) !important;
  color: #ffffff !important;
}

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

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

.btn-secondary {
  background-color: #6c757d !important;
  border-color: #6c757d !important;
  color: #ffffff !important;
}

.btn-secondary:hover {
  background-color: #5a6268 !important;
  border-color: #545b62 !important;
  color: #ffffff !important;
}

.btn-close,
.btn-close-white {
  opacity: 1;
}

.btn-close:hover,
.btn-close-white:hover {
  opacity: 0.7;
}

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

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

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

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

/* Images */
.img-fluid {
  transition: var(--transition-smooth);
  max-width: 100%;
  height: auto;
}

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

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

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

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

.shadow-lg {
  box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.175) !important;
}

/* Cards */
.card {
  border: none;
  border-radius: 0;
  overflow: hidden;
  transition: var(--transition-smooth);
  background: #ffffff;
}

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

.card-body {
  padding: 2rem;
}

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

.card-text {
  color: #666;
  line-height: 1.8;
}

.card-footer {
  background: transparent;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
  padding: 1.5rem 2rem;
}

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

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

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

/* Project Cards */
.project-card {
  position: relative;
  overflow: hidden;
  height: 400px;
  cursor: pointer;
  background: var(--primary-color);
}

.project-card img {
  transition: var(--transition-smooth);
  opacity: 0.8;
}

.project-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%);
  opacity: 1;
  transition: var(--transition-smooth);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 2rem;
}

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

.project-card:hover .project-overlay {
  background: linear-gradient(to top, rgba(230, 126, 34, 0.95) 0%, rgba(44, 62, 80, 0.8) 100%);
}

/* Badges */
.badge {
  font-weight: 600;
  padding: 0.5rem 1rem !important;
  border-radius: 0;
  background-color: var(--secondary-color) !important;
  color: #ffffff !important;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.75rem;
}

/* Icons */
.bi, .fas, .fab {
  transition: var(--transition-smooth);
}

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

.bi-house-door,
.bi-building,
.bi-tree,
.bi-grid-3x3,
.bi-clock-history,
.bi-map,
.bi-telephone,
.bi-envelope,
.bi-check2,
.bi-calendar-check,
.bi-award,
.bi-geo-alt-fill,
.bi-arrow-right,
.bi-check-circle-fill,
.bi-geo-alt,
.bi-lightbulb,
.bi-arrow-repeat,
.bi-people,
.bi-graph-up,
.bi-linkedin,
.bi-instagram,
.bi-facebook {
  color: var(--secondary-color);
}

a:hover .bi,
a:hover .fas,
a:hover .fab {
  transform: scale(1.1);
  color: var(--secondary-dark) !important;
}

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

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

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

.bg-opacity-75 {
  opacity: 0.75;
}

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

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

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

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

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

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

/* Forms */
.form-label {
  font-weight: 600;
  color: var(--primary-color);
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  font-size: 0.875rem;
  letter-spacing: 0.5px;
}

.form-control,
.form-select {
  border: 2px solid #dee2e6;
  border-radius: 0;
  padding: 0.75rem 1rem;
  transition: var(--transition-smooth);
  background: #ffffff;
  color: var(--primary-color);
}

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

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

.form-check-input {
  border: 2px solid #dee2e6;
  border-radius: 0;
  cursor: pointer;
}

.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.25rem rgba(230, 126, 34, 0.25) !important;
}

.form-check-label {
  cursor: pointer;
  color: var(--primary-color);
}

/* Accordion */
.accordion {
  border-radius: 0;
}

.accordion-item {
  border: none;
  border-bottom: 1px solid #dee2e6;
  background: transparent;
}

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

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

.accordion-button:not(.collapsed) {
  background-color: var(--light-bg) !important;
  color: var(--secondary-color) !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='%232C3E50'%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");
}

.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='%23E67E22'%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");
}

.accordion-body {
  padding: 1.5rem 1.25rem;
  color: #666;
  line-height: 1.8;
}

.accordion-collapse {
  border: none;
}

/* Modal */
.modal {
  z-index: 1060;
}

.modal-content {
  border-radius: 0;
  border: none;
  box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.3);
}

.modal-header {
  background: var(--primary-color);
  color: #ffffff;
  border-bottom: none;
  padding: 1.5rem 2rem;
}

.modal-title {
  color: #ffffff !important;
  font-weight: 600;
}

.modal-body {
  padding: 2rem;
}

.modal-footer {
  border-top: 1px solid #dee2e6;
  padding: 1.5rem 2rem;
}

.modal-dialog-scrollable .modal-body {
  overflow-y: auto;
}

/* Timeline */
.timeline-item {
  position: relative;
  padding-left: 3rem;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  width: 3px;
  height: 100%;
  background: var(--secondary-color);
}

.timeline-item::after {
  content: '';
  position: absolute;
  left: -6px;
  top: 0;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: var(--secondary-color);
  border: 3px solid #ffffff;
  box-shadow: 0 0 0 3px var(--light-bg);
}

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

/* Filter Buttons */
.filter-btn {
  background: transparent;
  border: 2px solid var(--primary-color);
  color: var(--primary-color) !important;
  padding: 0.5rem 1.5rem;
  margin: 0.25rem;
  cursor: pointer;
  transition: var(--transition-smooth);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

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

/* Utilities */
.text-uppercase {
  text-transform: uppercase !important;
  letter-spacing: 1px;
}

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

.gap-2 {
  gap: 0.5rem !important;
}

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

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

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

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

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

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

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

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

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

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

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

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

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

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

.lead {
  font-size: 1.25rem;
  font-weight: 300;
  line-height: 1.8;
  color: #666;
}

.small {
  font-size: 0.875rem;
}

.h2, .h4, .h6 {
  font-weight: 600;
  color: var(--primary-color);
}

/* Links */
a {
  color: var(--secondary-color);
  text-decoration: none;
  transition: var(--transition-smooth);
}

a:hover {
  color: var(--secondary-dark);
  text-decoration: none;
}

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

a.text-white:hover {
  color: var(--secondary-color) !important;
}

a.text-dark {
  color: var(--primary-color) !important;
}

a.text-dark:hover {
  color: var(--secondary-color) !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 scaleIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

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

.slide-in-left {
  animation: slideInLeft 0.6s ease-out forwards;
}

.slide-in-right {
  animation: slideInRight 0.6s ease-out forwards;
}

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

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

.hover-lift:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

/* Responsive Design */
@media (max-width: 991.98px) {
  .navbar-collapse {
    background: rgba(44, 62, 80, 0.98);
    padding: 1rem;
    margin-top: 1rem;
    border-radius: 0.25rem;
  }
  
  .navbar-nav {
    gap: 0;
  }
  
  .nav-link {
    padding: 0.75rem 1rem !important;
  }
  
  .display-1 {
    font-size: 2.5rem;
  }
  
  .display-3 {
    font-size: 2rem;
  }
  
  .display-4 {
    font-size: 1.75rem;
  }
  
  .display-5 {
    font-size: 1.5rem;
  }
  
  .py-5 {
    padding-top: 3rem !important;
    padding-bottom: 3rem !important;
  }
  
  .project-card {
    height: 300px;
  }
  
  .col-lg-8, .col-lg-6, .col-lg-5, .col-lg-4, .col-lg-3, .col-lg-2,
  .col-lg-7, .col-lg-9, .col-lg-10, .col-lg-12 {
    margin-bottom: 2rem;
  }
  
  .offset-lg-1, .offset-lg-2, .offset-lg-3 {
    margin-left: 0;
  }
  
  .text-lg-start, .text-lg-end {
    text-align: center !important;
  }
  
  .flex-sm-row {
    flex-direction: row !important;
  }
  
  .order-lg-1, .order-lg-2 {
    order: 0;
  }
  
  .mt-lg-0 {
    margin-top: 0 !important;
  }
  
  .px-lg-5 {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }
  
  .ps-lg-5 {
    padding-left: 1rem !important;
  }
  
  .pe-lg-5 {
    padding-right: 1rem !important;
  }
  
  .d-lg-block {
    display: block !important;
  }
}

@media (max-width: 767.98px) {
  .col-md-6, .col-md-4, .col-md-8, .col-md-3 {
    margin-bottom: 1.5rem;
  }
  
  .btn-lg {
    padding: 0.75rem 2rem !important;
    font-size: 1rem;
  }
  
  .fs-1 {
    font-size: 2rem !important;
  }
  
  .card-body {
    padding: 1.5rem;
  }
  
  .timeline-item {
    padding-left: 2rem;
  }
}

@media (max-width: 575.98px) {
  .px-4 {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }
  
  .px-5 {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }
  
  .col-6 {
    flex: 0 0 100%;
    max-width: 100%;
  }
  
  .display-1 {
    font-size: 2rem;
  }
  
  .btn {
    width: 100%;
  }
  
  .gap-3 {
    gap: 0.5rem !important;
  }
  
  .flex-sm-row {
    flex-direction: column !important;
  }
}

/* Print Styles */
@media print {
  .navbar, .btn, .modal, .accordion-button::after {
    display: none !important;
  }
  
  body {
    color: #000;
  }
  
  a {
    text-decoration: underline;
  }
}

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

::-webkit-scrollbar-track {
  background: var(--light-bg);
}

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

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

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

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