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

:root {
  --primary-color: #2C3E50;
  --secondary-color: #E67E22;
  --accent-copper: #D97016;
  --dark-navy: #1a252f;
  --light-gray: #ECF0F1;
  --text-dark: #2C3E50;
  --text-light: #ffffff;
  --transition: all 0.3s ease;
}

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

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

/* Typography */
.display-1, .display-2, .display-3, .display-4, .display-5, .display-6 {
  font-weight: 700;
  color: var(--text-dark) !important;
  letter-spacing: -0.5px;
}

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

.fs-5 {
  line-height: 1.8;
}

/* Hero Carousel */
.hero-carousel-wrapper {
  position: relative;
  height: 100vh;
  overflow: hidden;
}

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

.carousel {
  height: 100%;
}

.carousel-fade .carousel-item {
  opacity: 0;
  transition: opacity 1.5s ease-in-out;
}

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

.carousel-inner {
  height: 100%;
}

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

.carousel-item::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(44, 62, 80, 0.85) 0%, rgba(230, 126, 34, 0.45) 100%);
  z-index: 1;
}

.carousel-item img.d-block.w-100 {
  height: 100%;
  object-fit: cover;
  filter: brightness(0.7);
}

.carousel-indicators {
  z-index: 3;
  bottom: 30px;
}

.carousel-indicators button {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: var(--secondary-color) !important;
  border: 2px solid var(--text-light) !important;
  opacity: 0.5;
  transition: var(--transition);
}

.carousel-indicators button.active {
  opacity: 1;
  transform: scale(1.3);
}

.carousel-caption-overlay {
  z-index: 2;
  width: 100%;
  height: 100%;
}

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

.navbar.scrolled {
  background: rgba(44, 62, 80, 0.98) !important;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(10px);
}

.navbar-dark {
  padding: 1rem 0;
}

.navbar-brand {
  color: var(--text-light) !important;
  font-size: 1.8rem !important;
  font-weight: 700 !important;
  letter-spacing: 1px;
  transition: var(--transition);
}

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

.navbar-nav {
  gap: 1rem;
}

.nav-link {
  color: var(--text-light) !important;
  font-weight: 500 !important;
  font-size: 1rem !important;
  padding: 0.5rem 1rem !important;
  position: relative;
  transition: var(--transition);
}

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

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

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

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

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

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

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

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

.btn-primary:hover {
  background-color: var(--accent-copper) !important;
  border-color: var(--accent-copper) !important;
  color: var(--text-light) !important;
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(230, 126, 34, 0.3);
}

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

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

.btn-outline-light {
  border: 2px solid var(--text-light) !important;
  color: var(--text-light) !important;
  background-color: transparent !important;
}

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

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

.btn-outline-secondary:hover {
  background-color: var(--secondary-color) !important;
  color: var(--text-light) !important;
  transform: translateY(-3px);
}

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

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

/* Hero Caption */
.carousel-caption-overlay .text-center {
  animation: fadeInUp 1s ease-out;
}

.carousel-caption-overlay .display-2 {
  color: var(--text-light) !important;
  font-size: 4rem !important;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5);
  margin-bottom: 2rem !important;
}

.carousel-caption-overlay .lead {
  color: var(--light-gray) !important;
  font-size: 1.5rem !important;
  text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.5);
}

/* Cards */
.card {
  border-radius: 0 !important;
  overflow: hidden;
  transition: var(--transition);
  border: none !important;
}

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

.card-body {
  padding: 2rem;
}

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

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

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

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

/* Shadow Utilities */
.shadow {
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1) !important;
}

.shadow-sm {
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08) !important;
}

.shadow-lg {
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15) !important;
}

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

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

/* Text Colors */
.text-white {
  color: var(--text-light) !important;
}

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

.text-muted {
  color: #95a5a6 !important;
}

.text-danger {
  color: #e74c3c !important;
}

.text-warning {
  color: #f39c12 !important;
}

.text-success {
  color: #27ae60 !important;
}

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

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

.bg-danger {
  background-color: #e74c3c !important;
}

.bg-warning {
  background-color: #f39c12 !important;
}

.bg-success {
  background-color: #27ae60 !important;
}

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

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

.project-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(44, 62, 80, 0.95) 0%, rgba(230, 126, 34, 0.85) 100%);
  opacity: 0;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 2rem;
  color: var(--text-light) !important;
}

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

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

.project-overlay h3,
.project-overlay h5,
.project-overlay p {
  color: var(--text-light) !important;
  transform: translateY(20px);
  opacity: 0;
  transition: var(--transition);
}

.project-card:hover .project-overlay h3,
.project-card:hover .project-overlay h5,
.project-card:hover .project-overlay p {
  transform: translateY(0);
  opacity: 1;
}

.project-card:hover .project-overlay h3 {
  transition-delay: 0.1s;
}

.project-card:hover .project-overlay p {
  transition-delay: 0.2s;
}

.project-card:hover .project-overlay .btn {
  transition-delay: 0.3s;
}

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

.portfolio-item {
  position: relative;
  overflow: hidden;
  border-radius: 0;
}

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

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

/* Badges */
.badge {
  padding: 0.5rem 1rem;
  font-weight: 600;
  font-size: 0.875rem;
  background-color: var(--secondary-color) !important;
  color: var(--text-light) !important;
  border-radius: 0;
}

/* Filter Buttons */
.filter-btn {
  margin: 0.5rem;
  padding: 0.75rem 1.5rem;
  background-color: transparent !important;
  color: var(--primary-color) !important;
  border: 2px solid var(--primary-color) !important;
  cursor: pointer;
  transition: var(--transition);
}

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

.year-filter {
  padding: 0.5rem 1rem;
  background-color: var(--light-gray) !important;
  color: var(--primary-color) !important;
  border: none !important;
  cursor: pointer;
  transition: var(--transition);
}

.year-filter:hover,
.year-filter.active {
  background-color: var(--primary-color) !important;
  color: var(--text-light) !important;
}

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

.form-control,
.form-select {
  border: 2px solid var(--light-gray) !important;
  border-radius: 0 !important;
  padding: 0.75rem 1rem;
  font-size: 1rem;
  transition: var(--transition);
  background-color: #ffffff !important;
  color: var(--text-dark) !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;
  background-color: #ffffff !important;
  color: var(--text-dark) !important;
}

.form-check-input {
  border: 2px solid var(--light-gray) !important;
  border-radius: 0 !important;
  width: 1.25rem;
  height: 1.25rem;
  cursor: pointer;
}

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

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

/* Contact Hero */
.contact-hero {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--dark-navy) 100%);
  padding: 5rem 0;
  color: var(--text-light) !important;
}

.contact-hero h1,
.contact-hero h2,
.contact-hero h3,
.contact-hero p {
  color: var(--text-light) !important;
}

/* Alert */
.alert {
  border-radius: 0;
  border: none;
  padding: 1rem 1.5rem;
  font-weight: 500;
}

.alert-success {
  background-color: #27ae60 !important;
  color: var(--text-light) !important;
}

.alert-danger {
  background-color: #e74c3c !important;
  color: var(--text-light) !important;
}

.alert-warning {
  background-color: #f39c12 !important;
  color: var(--text-light) !important;
}

/* Progress Bar */
.progress {
  height: 2rem;
  border-radius: 0;
  background-color: var(--light-gray) !important;
}

.progress-bar {
  background-color: var(--secondary-color) !important;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: width 1.5s ease;
}

/* Icons */
.bi {
  display: inline-block;
  vertical-align: middle;
}

.bi-geo-alt-fill,
.bi-telephone-fill,
.bi-envelope-fill,
.bi-clock-fill,
.bi-eye,
.bi-pencil,
.bi-trash,
.bi-file-earmark-arrow-down,
.bi-info-circle,
.bi-telephone,
.bi-envelope,
.bi-geo-alt,
.bi-globe2,
.bi-sun-fill,
.bi-droplet-fill,
.bi-tree-fill,
.bi-lightning-charge-fill,
.bi-instagram,
.bi-linkedin,
.bi-facebook,
.bi-recycle,
.bi-lightning-charge,
.bi-award,
.bi-tree,
.bi-patch-check-fill,
.bi-building,
.bi-globe,
.bi-graph-up,
.bi-droplet,
.bi-bricks,
.bi-columns,
.bi-door-open,
.bi-circle,
.bi-award-fill,
.bi-lightning-fill {
  color: var(--secondary-color) !important;
}

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

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

.list-unstyled li {
  padding: 0.5rem 0;
  color: var(--text-dark) !important;
}

/* Ratio */
.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-16x9 {
  --bs-aspect-ratio: 56.25%;
}

/* Sticky Navigation */
.sticky-top {
  position: sticky;
  top: 0;
  z-index: 1020;
}

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

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

footer h3,
footer h4,
footer h5,
footer p,
footer a,
footer li {
  color: var(--text-light) !important;
}

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

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

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

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

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

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

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

.pb-3 {
  padding-bottom: 1rem !important;
}

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

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

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

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

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

.p-0 {
  padding: 0 !important;
}

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

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

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

.mt-2 {
  margin-top: 0.5rem !important;
}

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

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

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

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

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

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

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

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

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

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

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

.ms-4 {
  margin-left: 1.5rem !important;
}

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

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

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

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

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

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

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

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

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

/* Scroll Animations */
.scroll-reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.scroll-reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* Text Decoration */
.text-decoration-none {
  text-decoration: none !important;
}

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

/* Display Utilities */
.d-block {
  display: block !important;
}

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

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

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

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

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

.justify-content-between {
  justify-content: space-between !important;
}

/* Gap Utilities */
.gap-2 {
  gap: 0.5rem !important;
}

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

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

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

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

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

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

.position-absolute {
  position: absolute !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;
}

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

/* Responsive Design */
@media (max-width: 991.98px) {
  .navbar-collapse {
    background-color: rgba(44, 62, 80, 0.98);
    padding: 1rem;
    margin-top: 1rem;
    border-radius: 0;
  }
  
  .navbar-nav {
    gap: 0.5rem;
  }
  
  .carousel-caption-overlay .display-2 {
    font-size: 2.5rem !important;
  }
  
  .display-1 {
    font-size: 3rem !important;
  }
  
  .display-3 {
    font-size: 2.5rem !important;
  }
  
  .display-4 {
    font-size: 2rem !important;
  }
  
  .project-card {
    height: 300px;
  }
  
  .btn-lg {
    padding: 0.875rem 2rem !important;
    font-size: 1rem !important;
  }
  
  .ps-lg-5 {
    padding-left: 1rem !important;
  }
  
  .pe-lg-4 {
    padding-right: 1rem !important;
  }
  
  .pe-lg-5 {
    padding-right: 1rem !important;
  }
  
  .mb-lg-0 {
    margin-bottom: 1rem !important;
  }
  
  .mt-lg-0 {
    margin-top: 0 !important;
  }
  
  .masonry-grid {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1rem;
  }
}

@media (max-width: 767.98px) {
  .carousel-caption-overlay .display-2 {
    font-size: 2rem !important;
  }
  
  .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;
  }
  
  .px-5 {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }
  
  .py-5 {
    padding-top: 2rem !important;
    padding-bottom: 2rem !important;
  }
  
  .btn-lg {
    padding: 0.75rem 1.5rem !important;
    font-size: 0.95rem !important;
  }
  
  .card-body {
    padding: 1.5rem;
  }
  
  .project-card {
    height: 250px;
  }
  
  .masonry-grid {
    grid-template-columns: 1fr;
  }
  
  .text-md-start {
    text-align: left !important;
  }
  
  .text-md-end {
    text-align: right !important;
  }
  
  .mb-md-0 {
    margin-bottom: 0 !important;
  }
}

@media (max-width: 575.98px) {
  .carousel-caption-overlay .display-2 {
    font-size: 1.75rem !important;
  }
  
  .lead {
    font-size: 1rem !important;
  }
  
  .btn-lg {
    padding: 0.625rem 1.25rem !important;
    font-size: 0.9rem !important;
  }
  
  .fs-5 {
    font-size: 1rem !important;
  }
  
  .project-card {
    height: 200px;
  }
  
  .flex-sm-row {
    flex-direction: row !important;
  }
}

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