/* Midnight Sage Architecture Studio - Custom Styles */

:root {
  --primary-color: #2C3E50;
  --secondary-color: #E8B04B;
  --primary-dark: #1a252f;
  --secondary-dark: #d4a043;
  --sage-green: #7d9b8c;
  --light-sage: #a8c4b5;
  --midnight-blue: #1e2838;
  --warm-white: #fdfbf7;
  --text-dark: #2C3E50;
  --text-light: #f8f9fa;
}

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

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

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

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

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

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

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

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

.navbar.scrolled {
  background: linear-gradient(135deg, var(--primary-dark) 0%, #0f1419 100%) !important;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
  padding: 0.5rem 0;
}

.navbar-brand {
  font-size: 1.5rem;
  color: var(--secondary-color) !important;
  font-weight: 700 !important;
  letter-spacing: 1px;
  transition: all 0.3s ease;
  text-transform: uppercase;
}

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

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

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
  color: var(--secondary-color) !important;
  transform: translateY(-2px);
}

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

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

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

.navbar-toggler:focus {
  box-shadow: 0 0 0 0.2rem rgba(232, 176, 75, 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='%23E8B04B' 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-relative {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--midnight-blue) 70%, var(--sage-green) 100%);
  overflow: hidden;
}

.position-relative::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  opacity: 0.3;
  animation: patternMove 30s linear infinite;
}

@keyframes patternMove {
  0% { transform: translate(0, 0); }
  100% { transform: translate(60px, 60px); }
}

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

.text-center.text-white {
  position: relative;
  z-index: 2;
  animation: fadeInUp 1s ease-out;
}

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

.display-1 {
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
  color: #ffffff !important;
  margin-bottom: 1.5rem;
}

.lead.text-white {
  color: rgba(255, 255, 255, 0.95) !important;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
  max-width: 700px;
}

/* Buttons */
.btn {
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-radius: 50px;
  transition: all 0.3s ease;
  border: none;
  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 {
  background: var(--secondary-color) !important;
  color: var(--primary-color) !important;
  border: 2px solid var(--secondary-color) !important;
  box-shadow: 0 4px 15px rgba(232, 176, 75, 0.3);
  font-weight: 700 !important;
}

.btn-lg:hover {
  background: var(--secondary-dark) !important;
  color: #ffffff !important;
  transform: translateY(-3px);
  box-shadow: 0 6px 25px rgba(232, 176, 75, 0.5);
}

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

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

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

.filter-btn {
  background: transparent !important;
  color: var(--primary-color) !important;
  border: 2px solid var(--primary-color) !important;
  margin: 0.25rem;
  font-weight: 600 !important;
}

.filter-btn:hover,
.filter-btn.active {
  background: var(--primary-color) !important;
  color: #ffffff !important;
  border-color: var(--primary-color) !important;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(44, 62, 80, 0.2);
}

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

.py-lg-0 {
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}

.container {
  max-width: 1200px;
}

.container-fluid {
  padding-left: 2rem;
  padding-right: 2rem;
}

/* Images */
.img-fluid {
  border-radius: 8px;
  transition: all 0.3s ease;
}

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

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

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

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

.object-fit-cover {
  object-fit: cover;
  width: 100%;
  height: 100%;
}

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

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

.bi-lightbulb,
.bi-tree,
.bi-people,
.bi-compass,
.bi-award-fill,
.bi-lightning-fill,
.bi-house-door,
.bi-building,
.bi-bank,
.bi-hammer,
.bi-leaf,
.bi-brightness-high-fill,
.bi-map,
.bi-grid-3x3,
.bi-rulers {
  transition: all 0.3s ease;
}

.bi:hover {
  transform: scale(1.1) rotate(5deg);
}

/* Cards */
.card {
  border: none !important;
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.3s ease;
  background: #ffffff;
}

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

.card-body {
  padding: 2rem;
}

.card-img-top {
  height: 250px;
  object-fit: cover;
  transition: all 0.3s ease;
}

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

.bg-light {
  background-color: #f8f9fa !important;
}

.bg-dark {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--midnight-blue) 100%) !important;
  color: #ffffff !important;
}

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

/* Project Items */
.project-item {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
  height: 350px;
}

.project-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to bottom, transparent 0%, rgba(44, 62, 80, 0.8) 100%);
  z-index: 1;
  transition: all 0.3s ease;
}

.project-item:hover::before {
  background: linear-gradient(to bottom, transparent 0%, rgba(44, 62, 80, 0.95) 100%);
}

.project-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

.project-item .position-absolute {
  z-index: 2;
}

.project-item .badge {
  background: var(--secondary-color) !important;
  color: var(--primary-color) !important;
  font-weight: 600;
  padding: 0.5rem 1rem;
  font-size: 0.85rem;
  border-radius: 20px;
}

/* Badges */
.badge {
  padding: 0.5rem 1rem;
  font-weight: 600;
  border-radius: 20px;
}

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

.form-control,
.form-select {
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  padding: 0.75rem 1rem;
  transition: all 0.3s ease;
  background: #ffffff !important;
  color: var(--primary-color) !important;
}

.form-control:focus,
.form-select:focus {
  border-color: var(--secondary-color) !important;
  box-shadow: 0 0 0 0.2rem rgba(232, 176, 75, 0.25) !important;
  background: #ffffff !important;
}

.form-check-input {
  border: 2px solid var(--primary-color);
  width: 1.5rem;
  height: 1.5rem;
}

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

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

/* Modal */
.modal-content {
  border-radius: 15px;
  border: none;
  overflow: hidden;
}

.modal-header {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--midnight-blue) 100%);
  color: #ffffff !important;
  border-bottom: none;
  padding: 1.5rem 2rem;
}

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

.modal-body {
  padding: 2rem;
}

.btn-close,
.btn-close-white {
  filter: brightness(0) invert(1);
}

/* Utility Classes */
.rounded {
  border-radius: 8px !important;
}

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

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

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

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

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

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

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

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

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

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

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

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

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

.flex-column {
  flex-direction: column !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-between {
  justify-content: space-between !important;
}

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

.flex-shrink-0 {
  flex-shrink: 0 !important;
}

.flex-grow-1 {
  flex-grow: 1 !important;
}

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

.mt-lg-0 {
  margin-top: 0 !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;
}

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

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

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

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

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

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

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

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

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

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

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

.ps-lg-5 {
  padding-left: 3rem !important;
}

.pe-lg-5 {
  padding-right: 3rem !important;
}

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

/* Font Sizes */
.fs-1 {
  font-size: calc(1.375rem + 1.5vw) !important;
}

.fs-3 {
  font-size: calc(1.3rem + 0.6vw) !important;
}

.fs-4 {
  font-size: calc(1.275rem + 0.3vw) !important;
}

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

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

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

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

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

/* Scroll Reveal Animation */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease-out;
}

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

/* Footer */
footer {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--midnight-blue) 100%);
  color: rgba(255, 255, 255, 0.9) !important;
}

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

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

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

/* Social Icons */
.bi-linkedin,
.bi-instagram,
.bi-facebook {
  font-size: 1.5rem;
  transition: all 0.3s ease;
}

.bi-linkedin:hover {
  color: #0077b5 !important;
  transform: scale(1.2);
}

.bi-instagram:hover {
  color: #e4405f !important;
  transform: scale(1.2);
}

.bi-facebook:hover {
  color: #1877f2 !important;
  transform: scale(1.2);
}

/* Responsive Design */
@media (max-width: 991.98px) {
  .navbar-collapse {
    background: linear-gradient(135deg, var(--primary-dark) 0%, #0f1419 100%);
    padding: 1rem;
    margin-top: 1rem;
    border-radius: 8px;
  }

  .navbar-nav .nav-link {
    padding: 0.75rem 1rem !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }

  .navbar-nav .nav-link:last-child {
    border-bottom: none;
  }

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

  .lead {
    font-size: 1.1rem;
  }

  .btn-lg {
    padding: 0.75rem 2rem !important;
  }

  .container-fluid {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .py-5 {
    padding: 2.5rem 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;
  }

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

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

  .project-item {
    height: 280px;
  }

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

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

  .order-lg-1,
  .order-lg-2 {
    order: 0;
  }

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

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

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

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

@media (max-width: 767.98px) {
  .col-md-4,
  .col-md-6,
  .col-md-8 {
    flex: 0 0 100%;
    max-width: 100%;
  }

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

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

  .card-body {
    padding: 1.5rem;
  }

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

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

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

@media (max-width: 575.98px) {
  .col-6 {
    flex: 0 0 100%;
    max-width: 100%;
  }

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

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

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

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

  .btn-lg {
    padding: 0.6rem 1.25rem !important;
  }

  .project-item {
    height: 250px;
  }
}

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

  body {
    color: #000;
    background: #fff;
  }
}

/* Accessibility */
.btn:focus,
.form-control:focus,
.form-select:focus,
.nav-link:focus {
  outline: 2px solid var(--secondary-color);
  outline-offset: 2px;
}

/* 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: #fff;
  animation: spin 1s ease-in-out infinite;
}

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

/* Smooth Transitions */
* {
  transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out, border-color 0.15s ease-in-out;
}

a,
button,
.btn,
.nav-link,
.card {
  transition: all 0.3s ease;
}

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

::-webkit-scrollbar-track {
  background: var(--warm-white);
}

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

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

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

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