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

:root {
  --primary: #2C3E50;
  --secondary: #E67E22;
  --accent: #d35400;
  --dark: #1a252f;
  --light: #ecf0f1;
  --white: #ffffff;
  --text-dark: #2c3e50;
  --text-light: #7f8c8d;
}

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

html {
  scroll-behavior: smooth;
}

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

/* Navigation */
.navbar {
  background: linear-gradient(135deg, var(--primary) 0%, var(--dark) 100%) !important;
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
  padding: 1rem 0;
}

.navbar.scrolled {
  background: rgba(44, 62, 80, 0.98) !important;
  padding: 0.5rem 0;
}

.navbar-brand {
  color: var(--white) !important;
  font-size: 1.8rem;
  letter-spacing: 1px;
  transition: all 0.3s ease;
}

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

.navbar-nav .nav-link {
  color: rgba(255, 255, 255, 0.9) !important;
  font-weight: 500;
  padding: 0.5rem 1rem !important;
  margin: 0 0.25rem;
  transition: all 0.3s ease;
  position: relative;
  border-radius: 5px;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
  color: var(--white) !important;
  background: rgba(230, 126, 34, 0.2) !important;
  transform: translateY(-2px);
}

.navbar-nav .nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 30px;
  height: 3px;
  background: var(--secondary);
  border-radius: 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.3) !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;
}

/* Hero Section */
.vh-100 {
  min-height: 100vh;
}

.position-relative .position-absolute img {
  filter: brightness(0.5);
  transition: all 0.5s ease;
}

.position-relative:hover .position-absolute img {
  filter: brightness(0.6);
  transform: scale(1.05);
}

.display-2 {
  font-weight: 800;
  text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.5);
  animation: fadeInUp 1s ease;
  color: var(--white) !important;
}

.display-3 {
  font-weight: 700;
  color: var(--primary) !important;
}

.display-4 {
  font-weight: 700;
  color: var(--primary) !important;
}

.display-5 {
  font-weight: 700;
  color: var(--primary) !important;
}

.fs-4 {
  color: rgba(255, 255, 255, 0.95) !important;
  text-shadow: 1px 1px 5px rgba(0, 0, 0, 0.5);
  animation: fadeInUp 1.2s ease;
}

.fs-5 {
  color: var(--text-light) !important;
}

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

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

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

/* Buttons */
.btn {
  border-radius: 8px;
  font-weight: 600;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 1px;
  border: none;
}

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

.btn:first-child {
  background: var(--secondary) !important;
  color: var(--white) !important;
  box-shadow: 0 5px 15px rgba(230, 126, 34, 0.4);
}

.btn:first-child:hover {
  background: var(--accent) !important;
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(230, 126, 34, 0.5);
  color: var(--white) !important;
}

.btn:last-child {
  background: transparent !important;
  color: var(--white) !important;
  border: 2px solid var(--white) !important;
}

.btn:last-child:hover {
  background: var(--white) !important;
  color: var(--primary) !important;
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(255, 255, 255, 0.3);
}

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

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

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

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

.filter-btn {
  margin: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: 30px;
}

/* Animation for bounce */
@keyframes bounce {
  0%, 100% {
    transform: translateY(0) translateX(-50%);
  }
  50% {
    transform: translateY(-15px) translateX(-50%);
  }
}

.animate-bounce {
  animation: bounce 2s infinite;
}

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

.bi-chevron-down {
  color: var(--white) !important;
}

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

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

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

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

/* Badges */
.badge {
  background: linear-gradient(135deg, var(--secondary), var(--accent)) !important;
  color: var(--white) !important;
  padding: 0.5rem 1.5rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-radius: 30px;
  font-size: 0.85rem;
}

/* Cards & Grid Items */
.p-4 {
  padding: 2rem !important;
}

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

.g-4 > .col-md-6,
.g-4 > [class*="col-"] {
  background: var(--white);
  border-radius: 12px;
  transition: all 0.4s ease;
  border: 1px solid rgba(44, 62, 80, 0.1);
  cursor: pointer;
}

.g-4 > .col-md-6:hover,
.g-4 > [class*="col-"]:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 40px rgba(44, 62, 80, 0.15);
  border-color: var(--secondary);
}

.bi-house-door,
.bi-building,
.bi-leaf,
.bi-map,
.bi-box,
.bi-clock-history,
.bi-telephone,
.bi-envelope,
.bi-geo-alt,
.bi-facebook,
.bi-instagram,
.bi-linkedin,
.bi-twitter,
.bi-check-circle-fill,
.bi-tree,
.bi-layout-three-columns,
.bi-hourglass-split,
.bi-sun,
.bi-hammer,
.bi-lightning-charge,
.bi-people,
.bi-arrow-right,
.bi-graph-up,
.bi-droplet,
.bi-car-front-fill,
.bi-train-front-fill,
.bi-info-circle,
.bi-wrench-adjustable,
.bi-shield-check,
.bi-cookie,
.bi-hand-thumbs-up,
.bi-link-45deg,
.bi-pencil-square,
.bi-telephone-fill,
.bi-envelope-fill,
.bi-geo-alt-fill,
.bi-calendar3,
.bi-rulers,
.bi-check2 {
  color: var(--secondary) !important;
  transition: all 0.3s ease;
}

.col-md-6:hover .bi,
[class*="col-"]:hover .bi {
  transform: scale(1.1) rotate(5deg);
}

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

.portfolio-item {
  position: relative;
  overflow: hidden;
  border-radius: 15px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  transition: all 0.4s ease;
  background: var(--white);
}

.portfolio-item.large {
  grid-column: span 2;
  grid-row: span 2;
}

.portfolio-item.medium {
  grid-column: span 1;
  grid-row: span 2;
}

.portfolio-item:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 40px rgba(44, 62, 80, 0.2);
}

.portfolio-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: all 0.5s ease;
}

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

.portfolio-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(44, 62, 80, 0.95), rgba(230, 126, 34, 0.85));
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: all 0.4s ease;
}

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

.portfolio-content {
  text-align: center;
  color: var(--white) !important;
  padding: 2rem;
  transform: translateY(20px);
  transition: all 0.4s ease;
}

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

.portfolio-content h3,
.portfolio-content .h3 {
  color: var(--white) !important;
  margin-bottom: 1rem;
}

.portfolio-content p {
  color: rgba(255, 255, 255, 0.9) !important;
}

/* Images */
.object-fit-cover {
  object-fit: cover;
}

.img-fluid {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
}

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

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

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

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

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

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

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

/* Opacity */
.opacity-10 {
  opacity: 0.1 !important;
}

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

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

.list-unstyled li {
  margin-bottom: 0.75rem;
  transition: all 0.3s ease;
}

.list-unstyled li:hover {
  color: var(--secondary) !important;
  transform: translateX(5px);
}

.list-unstyled a {
  color: var(--text-light) !important;
  text-decoration: none !important;
  transition: all 0.3s ease;
}

.list-unstyled a:hover {
  color: var(--secondary) !important;
}

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

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

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

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

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

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

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

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

.small {
  font-size: 0.875rem;
}

.h3, .h4, .h5, .h6 {
  color: var(--primary) !important;
  font-weight: 600;
}

/* Accordion */
.accordion {
  --bs-accordion-bg: transparent;
  --bs-accordion-border-color: rgba(44, 62, 80, 0.1);
}

.accordion-item {
  background: var(--white);
  border-radius: 12px !important;
  margin-bottom: 1rem;
  border: 1px solid rgba(44, 62, 80, 0.1) !important;
  overflow: hidden;
}

.accordion-button {
  background: var(--white) !important;
  color: var(--primary) !important;
  font-weight: 600;
  font-size: 1.1rem;
  padding: 1.5rem !important;
  box-shadow: none !important;
  border: none !important;
}

.accordion-button:not(.collapsed) {
  background: linear-gradient(135deg, var(--primary), var(--dark)) !important;
  color: var(--white) !important;
}

.accordion-button::after {
  filter: brightness(0) invert(0.3);
}

.accordion-button:not(.collapsed)::after {
  filter: brightness(0) invert(1);
}

.accordion-body {
  padding: 1.5rem;
  color: var(--text-light) !important;
  background: var(--white);
}

.accordion-collapse {
  border: none !important;
}

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

.form-control,
.form-select {
  border: 2px solid rgba(44, 62, 80, 0.15);
  border-radius: 8px;
  padding: 0.75rem 1rem;
  transition: all 0.3s ease;
  color: var(--text-dark) !important;
  background: var(--white) !important;
}

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

.form-check-input {
  border: 2px solid rgba(44, 62, 80, 0.3);
  width: 1.25rem;
  height: 1.25rem;
  cursor: pointer;
}

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

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

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

/* Border Utilities */
.border {
  border: 1px solid rgba(44, 62, 80, 0.1) !important;
}

.border-top {
  border-top: 1px solid rgba(44, 62, 80, 0.1) !important;
}

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

/* Sticky Top */
.sticky-top {
  position: sticky;
  top: 80px;
  z-index: 100;
}

/* Social Icons */
.bi-facebook,
.bi-instagram,
.bi-linkedin,
.bi-twitter {
  font-size: 1.5rem;
  padding: 0.75rem;
  border-radius: 50%;
  background: rgba(230, 126, 34, 0.1);
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
}

.bi-facebook:hover,
.bi-instagram:hover,
.bi-linkedin:hover,
.bi-twitter:hover {
  background: var(--secondary) !important;
  color: var(--white) !important;
  transform: translateY(-5px) rotate(10deg);
}

/* Success Colors */
.text-success {
  color: #27ae60 !important;
}

/* Responsive Images Grid */
.g-3,
.g-4,
.g-5 {
  margin: 0 !important;
}

/* Custom Spacing */
.gap-2 {
  gap: 0.5rem !important;
}

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

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

/* Flexbox Utilities */
.d-flex {
  display: flex !important;
}

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

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

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

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

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

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

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

.flex-shrink-0 {
  flex-shrink: 0 !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;
}

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

.align-top {
  vertical-align: top !important;
}

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

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

.fixed-top {
  position: fixed !important;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1030;
}

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

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

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

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

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

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

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

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

/* Width & Height */
.w-100 {
  width: 100% !important;
}

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

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

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

/* Footer */
footer {
  background: linear-gradient(135deg, var(--dark), var(--primary));
  color: rgba(255, 255, 255, 0.8) !important;
}

footer h5,
footer .h5,
footer h6,
footer .h6 {
  color: var(--white) !important;
}

footer a {
  color: rgba(255, 255, 255, 0.7) !important;
  transition: all 0.3s ease;
}

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

/* 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);
  }
}

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

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

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

/* Scroll Animations */
.scroll-animate {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease;
}

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

/* Loading Animation */
.loading {
  position: relative;
  pointer-events: none;
}

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

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

/* Mobile Responsive */
@media (max-width: 991.98px) {
  .navbar-collapse {
    background: rgba(44, 62, 80, 0.98);
    padding: 1rem;
    margin-top: 1rem;
    border-radius: 10px;
  }
  
  .navbar-nav {
    gap: 0.5rem !important;
  }
  
  .display-2 {
    font-size: 2.5rem;
  }
  
  .portfolio-item.large,
  .portfolio-item.medium {
    grid-column: span 1;
    grid-row: span 1;
  }
  
  .px-4 {
    padding-left: 1.5rem !important;
    padding-right: 1.5rem !important;
  }
  
  .py-5 {
    padding-top: 3rem !important;
    padding-bottom: 3rem !important;
  }
  
  .d-lg-block {
    display: none !important;
  }
  
  .ps-lg-5,
  .pe-lg-5 {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }
  
  .text-md-end {
    text-align: center !important;
  }
  
  .text-md-start {
    text-align: center !important;
  }
  
  .flex-lg-row-reverse {
    flex-direction: column !important;
  }
  
  .ms-lg-auto {
    margin-left: 0 !important;
  }
}

@media (max-width: 767.98px) {
  .display-2 {
    font-size: 2rem;
  }
  
  .display-3 {
    font-size: 2rem;
  }
  
  .display-4 {
    font-size: 1.75rem;
  }
  
  .btn-lg {
    padding: 0.75rem 1.5rem !important;
  }
  
  .portfolio-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .col-md-6,
  .col-md-4,
  .col-md-3,
  .col-md-8 {
    margin-bottom: 1rem;
  }
  
  .flex-sm-row {
    flex-direction: column !important;
  }
  
  .mb-md-0 {
    margin-bottom: 1rem !important;
  }
}

@media (max-width: 575.98px) {
  .container-fluid {
    padding-left: 1rem;
    padding-right: 1rem;
  }
  
  .col-sm-6,
  .col-6 {
    flex: 0 0 100%;
    max-width: 100%;
  }
  
  .gap-3 {
    gap: 0.5rem !important;
  }
  
  .p-5 {
    padding: 2rem !important;
  }
  
  .fs-1 {
    font-size: 2rem !important;
  }
  
  .fs-2 {
    font-size: 1.5rem !important;
  }
}

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