/* Midnight Amber Architecture Studio Theme */

:root {
  --primary-color: #2C3E50;
  --secondary-color: #E67E22;
  --dark-bg: #1a252f;
  --light-bg: #f8f9fa;
  --text-light: #ffffff;
  --text-dark: #2C3E50;
  --accent-gold: #f39c12;
  --transition-speed: 0.3s;
}

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

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

/* Navbar Styles */
.navbar {
  background: linear-gradient(135deg, var(--primary-color) 0%, #1a252f 100%) !important;
  padding: 1rem 0;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
  transition: all var(--transition-speed) ease;
  z-index: 1000;
}

.navbar.fixed-top {
  backdrop-filter: blur(10px);
}

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

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

.navbar-dark .navbar-nav .nav-link {
  color: rgba(255, 255, 255, 0.9) !important;
  padding: 0.5rem 1.2rem !important;
  margin: 0 0.3rem;
  font-weight: 500;
  text-transform: uppercase;
  font-size: 0.95rem;
  letter-spacing: 1px;
  transition: all var(--transition-speed);
  position: relative;
}

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

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

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

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

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

/* Hero Section */
.position-relative.overflow-hidden {
  min-height: 100vh;
  background: linear-gradient(135deg, var(--primary-color) 0%, #34495e 50%, var(--dark-bg) 100%);
  position: relative;
  display: flex;
  align-items: center;
  padding-top: 80px;
}

.position-relative.overflow-hidden::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 600"><rect fill="%232C3E50" width="1200" height="600"/><g fill-opacity="0.05"><polygon fill="%23E67E22" points="1200 0 800 600 1200 600"/><polygon points="0 0 400 600 0 600"/></g></svg>');
  background-size: cover;
  opacity: 0.3;
  animation: heroPattern 20s ease-in-out infinite;
}

@keyframes heroPattern {
  0%, 100% { transform: scale(1) rotate(0deg); }
  50% { transform: scale(1.1) rotate(2deg); }
}

.position-absolute.w-100.h-100 {
  z-index: 1;
}

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

.display-1 {
  font-size: clamp(2.5rem, 8vw, 5rem) !important;
  font-weight: 800 !important;
  color: var(--text-light) !important;
  text-shadow: 2px 2px 20px rgba(0, 0, 0, 0.5);
  margin-bottom: 1.5rem !important;
  line-height: 1.1 !important;
  letter-spacing: -1px;
}

.display-3 {
  font-size: clamp(2rem, 5vw, 3.5rem) !important;
  font-weight: 700 !important;
  color: var(--primary-color) !important;
}

.display-4 {
  font-size: clamp(1.8rem, 4vw, 2.5rem) !important;
  font-weight: 700 !important;
}

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

.display-6 {
  font-size: clamp(1.2rem, 2.5vw, 1.5rem) !important;
  font-weight: 600 !important;
}

.lead {
  font-size: clamp(1.1rem, 2vw, 1.5rem) !important;
  color: rgba(255, 255, 255, 0.95) !important;
  font-weight: 300;
  line-height: 1.8;
  text-shadow: 1px 1px 10px rgba(0, 0, 0, 0.3);
}

/* Buttons */
.btn {
  border-radius: 50px !important;
  font-weight: 600 !important;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all var(--transition-speed) ease !important;
  border: none !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-lg {
  padding: 1rem 2.5rem !important;
  font-size: 1.1rem !important;
}

.btn-primary {
  background: linear-gradient(135deg, var(--secondary-color) 0%, #d35400 100%) !important;
  color: var(--text-light) !important;
  box-shadow: 0 4px 15px rgba(230, 126, 34, 0.4);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #d35400 0%, var(--secondary-color) 100%) !important;
  transform: translateY(-3px);
  box-shadow: 0 6px 25px rgba(230, 126, 34, 0.6) !important;
  color: var(--text-light) !important;
}

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

.btn-outline-dark:hover {
  background: var(--primary-color) !important;
  color: var(--text-light) !important;
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(44, 62, 80, 0.4);
}

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

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

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

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

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

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

/* Filter Buttons */
.btn-group .filter-btn {
  border-radius: 25px !important;
  margin: 0 0.25rem !important;
  padding: 0.6rem 1.5rem !important;
  font-size: 0.9rem !important;
}

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

/* Images */
.img-fluid {
  border-radius: 10px;
  transition: all var(--transition-speed) ease;
}

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

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

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

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

/* Cards */
.card {
  border-radius: 15px !important;
  transition: all var(--transition-speed) ease;
  overflow: hidden;
  border: none !important;
}

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

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

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

/* Portfolio Items */
.portfolio-item {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  cursor: pointer;
  transition: all var(--transition-speed) ease;
}

.portfolio-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(44, 62, 80, 0.9) 0%, rgba(230, 126, 34, 0.9) 100%);
  opacity: 0;
  transition: all var(--transition-speed) ease;
  z-index: 1;
}

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

.portfolio-item:hover {
  transform: scale(1.05);
}

.portfolio-item img {
  transition: all var(--transition-speed) ease;
}

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

.m-3 {
  margin: 1.5rem !important;
}

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

.ms-2 {
  margin-left: 1rem !important;
}

.ms-1 {
  margin-left: 0.5rem !important;
}

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

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

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

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

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

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

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

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

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

.text-uppercase {
  text-transform: uppercase !important;
}

/* Typography */
.h1, .h2, .h3, .h4, .h5, .h6, h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  color: var(--primary-color);
}

.h2, h2 {
  font-size: clamp(1.8rem, 4vw, 2.5rem) !important;
}

.h3, h3 {
  font-size: clamp(1.5rem, 3vw, 2rem) !important;
}

.h4, h4 {
  font-size: clamp(1.3rem, 2.5vw, 1.75rem) !important;
}

.h5, h5 {
  font-size: clamp(1.1rem, 2vw, 1.5rem) !important;
}

.h6, h6 {
  font-size: clamp(1rem, 1.5vw, 1.25rem) !important;
}

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

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

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

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

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

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

.small {
  font-size: 0.875rem !important;
}

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

.text-decoration-none:hover {
  color: var(--secondary-color) !important;
}

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

/* Borders */
.border-top {
  border-top: 1px solid #dee2e6 !important;
}

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

/* Rounded */
.rounded {
  border-radius: 10px !important;
}

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

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

/* Forms */
.form-control {
  border: 2px solid #e0e0e0 !important;
  border-radius: 8px !important;
  padding: 0.75rem 1rem !important;
  font-size: 1rem !important;
  transition: all var(--transition-speed) ease !important;
}

.form-control: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-select {
  border: 2px solid #e0e0e0 !important;
  border-radius: 8px !important;
  padding: 0.75rem 1rem !important;
  font-size: 1rem !important;
  transition: all var(--transition-speed) ease !important;
}

.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-label {
  font-weight: 600 !important;
  color: var(--primary-color) !important;
  margin-bottom: 0.5rem !important;
}

.form-check-input {
  border: 2px solid #e0e0e0 !important;
  transition: all var(--transition-speed) ease !important;
}

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

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

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

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

.bi-telephone-fill,
.bi-envelope-fill,
.bi-geo-alt-fill,
.bi-send,
.bi-calendar-check,
.bi-telephone,
.bi-envelope,
.bi-geo-alt,
.bi-house-door,
.bi-check-circle-fill,
.bi-building,
.bi-tree,
.bi-grid-3x3,
.bi-tools,
.bi-file-earmark-text,
.bi-award-fill,
.bi-house-heart-fill,
.bi-tree-fill,
.bi-globe-americas,
.bi-sun-fill,
.bi-wind,
.bi-droplet-fill,
.bi-recycle,
.bi-lightning-fill,
.bi-flower1,
.bi-arrow-right,
.bi-file-earmark-pdf-fill,
.bi-download,
.bi-graph-up,
.bi-calculator,
.bi-journal-text {
  color: var(--secondary-color);
  transition: all var(--transition-speed) ease;
}

/* Badge */
.badge {
  background: var(--secondary-color) !important;
  color: var(--text-light) !important;
  padding: 0.5rem 1rem !important;
  border-radius: 25px !important;
  font-weight: 600 !important;
  font-size: 0.85rem !important;
  letter-spacing: 1px;
}

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

/* Text Alignment */
.text-center {
  text-align: center !important;
}

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

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

.text-md-end {
  text-align: left !important;
}

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

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

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

/* Object Fit */
.object-fit-cover {
  object-fit: cover !important;
}

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

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

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

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

.fade-in-up {
  animation: fadeInUp 0.8s ease-out forwards;
}

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

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

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

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

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

/* Responsive Design */
@media (max-width: 991.98px) {
  .navbar-collapse {
    background: rgba(26, 37, 47, 0.98);
    padding: 1rem;
    border-radius: 10px;
    margin-top: 1rem;
  }
  
  .navbar-nav {
    text-align: center;
  }
  
  .navbar-dark .navbar-nav .nav-link {
    padding: 0.8rem 1rem !important;
  }
  
  .display-1 {
    font-size: 2.5rem !important;
  }
  
  .text-lg-end {
    text-align: center !important;
  }
  
  .text-md-start,
  .text-md-end {
    text-align: center !important;
  }
  
  .flex-lg-row-reverse {
    flex-direction: column !important;
  }
  
  .order-lg-2 {
    order: 2;
  }
  
  .order-lg-1 {
    order: 1;
  }
  
  .position-sticky {
    position: relative !important;
  }
  
  .flex-sm-row {
    flex-direction: row !important;
  }
}

@media (max-width: 767.98px) {
  .container-fluid {
    padding-left: 1rem;
    padding-right: 1rem;
  }
  
  .px-4 {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }
  
  .px-5 {
    padding-left: 1.5rem !important;
    padding-right: 1.5rem !important;
  }
  
  .py-5 {
    padding-top: 3rem !important;
    padding-bottom: 3rem !important;
  }
  
  .btn-lg {
    padding: 0.8rem 2rem !important;
    font-size: 1rem !important;
  }
  
  .g-4 {
    --bs-gutter-x: 1.5rem;
    --bs-gutter-y: 1.5rem;
  }
  
  .col-md-6,
  .col-md-4,
  .col-md-3,
  .col-md-5,
  .col-md-7 {
    margin-bottom: 1.5rem;
  }
  
  .flex-sm-row {
    flex-direction: column !important;
  }
}

@media (max-width: 575.98px) {
  .display-1 {
    font-size: 2rem !important;
  }
  
  .lead {
    font-size: 1.1rem !important;
  }
  
  .btn-group {
    flex-direction: column;
    width: 100%;
  }
  
  .filter-btn {
    width: 100%;
    margin-bottom: 0.5rem !important;
  }
}

/* Grid System Overrides */
.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;
}

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

::-webkit-scrollbar-track {
  background: var(--primary-color);
}

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

::-webkit-scrollbar-thumb:hover {
  background: #d35400;
}

/* Loading Animation */
.loading {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: var(--text-light);
  animation: spin 1s ease-in-out infinite;
}

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

/* Accessibility */
a:focus,
button:focus,
input:focus,
select:focus,
textarea:focus {
  outline: 2px solid var(--secondary-color);
  outline-offset: 2px;
}

/* Print Styles */
@media print {
  .navbar,
  .btn,
  .navbar-toggler {
    display: none !important;
  }
  
  body {
    color: #000;
  }
}