/* Dark Forest Industrial Architecture Studio Theme */

:root {
  --primary-color: #2E7D32;
  --secondary-color: #424242;
  --dark-forest: #1a1a1a;
  --forest-green: #2E7D32;
  --industrial-gray: #424242;
  --light-gray: #e0e0e0;
  --accent-gold: #c9a961;
  --transition-speed: 0.3s;
}

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

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: #1a1a1a !important;
  color: #e0e0e0 !important;
  overflow-x: hidden;
  line-height: 1.6;
}

/* Navbar Styles */
.navbar {
  background: rgba(26, 26, 26, 0.95) !important;
  backdrop-filter: blur(10px);
  transition: all var(--transition-speed) ease;
  border-bottom: 1px solid rgba(46, 125, 50, 0.3);
  padding: 1rem 0;
}

.navbar.sticky-top {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.navbar-dark {
  background-color: rgba(26, 26, 26, 0.98) !important;
}

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

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

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

.navbar-toggler {
  border-color: #2E7D32 !important;
  padding: 0.5rem 0.75rem;
}

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

.nav-link {
  color: #e0e0e0 !important;
  font-weight: 500 !important;
  margin: 0 0.5rem;
  padding: 0.5rem 1rem !important;
  position: relative;
  transition: all var(--transition-speed) ease;
  text-transform: uppercase;
  font-size: 0.9rem;
  letter-spacing: 1px;
}

.nav-link:hover {
  color: #2E7D32 !important;
  transform: translateY(-2px);
}

.nav-link.active {
  color: #2E7D32 !important;
  font-weight: 600 !important;
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60%;
  height: 2px;
  background: linear-gradient(90deg, transparent, #2E7D32, transparent);
  animation: slideIn 0.3s ease;
}

@keyframes slideIn {
  from {
    width: 0;
  }
  to {
    width: 60%;
  }
}

/* Hero Section */
.vh-100 {
  min-height: 100vh !important;
  position: relative;
}

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

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

.overflow-hidden {
  overflow: hidden !important;
}

.display-1 {
  font-size: clamp(2.5rem, 8vw, 5.5rem) !important;
  font-weight: 700 !important;
  line-height: 1.2 !important;
  text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.7);
  animation: fadeInUp 1s ease;
}

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

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

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

.display-6 {
  font-size: clamp(1.25rem, 3vw, 2rem) !important;
  font-weight: 700 !important;
}

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

.text-light {
  color: #e0e0e0 !important;
}

.text-muted {
  color: #9e9e9e !important;
}

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

.lead {
  font-size: 1.25rem !important;
  font-weight: 300 !important;
}

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

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

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

/* Buttons */
.btn {
  border-radius: 0 !important;
  font-weight: 600 !important;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all var(--transition-speed) ease;
  position: relative;
  overflow: hidden;
  border: 2px solid transparent !important;
}

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

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

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

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

.btn-primary {
  background-color: #2E7D32 !important;
  color: #ffffff !important;
  border-color: #2E7D32 !important;
}

.btn-primary:hover {
  background-color: #1b5e20 !important;
  border-color: #1b5e20 !important;
  color: #ffffff !important;
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(46, 125, 50, 0.4) !important;
}

.btn-outline-primary {
  background-color: transparent !important;
  color: #2E7D32 !important;
  border-color: #2E7D32 !important;
}

.btn-outline-primary:hover {
  background-color: #2E7D32 !important;
  color: #ffffff !important;
  border-color: #2E7D32 !important;
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(46, 125, 50, 0.4) !important;
}

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

.btn-secondary:hover {
  background-color: #616161 !important;
  border-color: #616161 !important;
  color: #ffffff !important;
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(66, 66, 66, 0.4) !important;
}

.btn-dark {
  background-color: #1a1a1a !important;
  color: #e0e0e0 !important;
  border-color: #424242 !important;
}

.btn-dark:hover {
  background-color: #424242 !important;
  border-color: #2E7D32 !important;
  color: #ffffff !important;
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(46, 125, 50, 0.3) !important;
}

.btn-light {
  background-color: #e0e0e0 !important;
  color: #1a1a1a !important;
  border-color: #e0e0e0 !important;
}

.btn-light:hover {
  background-color: #2E7D32 !important;
  border-color: #2E7D32 !important;
  color: #ffffff !important;
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(46, 125, 50, 0.4) !important;
}

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

.btn-outline-light:hover {
  background-color: #e0e0e0 !important;
  color: #1a1a1a !important;
  border-color: #e0e0e0 !important;
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(224, 224, 224, 0.3) !important;
}

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

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

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

/* Backgrounds */
.bg-dark {
  background-color: #1a1a1a !important;
}

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

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

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

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

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

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

.pb-4 {
  padding-bottom: 2.5rem !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;
}

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

/* Portfolio Section */
.filter-btn {
  background-color: transparent !important;
  color: #e0e0e0 !important;
  border: 2px solid #424242 !important;
  padding: 0.75rem 2rem !important;
  margin: 0.5rem !important;
  cursor: pointer;
  transition: all var(--transition-speed) ease;
}

.filter-btn:hover,
.filter-btn.active {
  background-color: #2E7D32 !important;
  color: #ffffff !important;
  border-color: #2E7D32 !important;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(46, 125, 50, 0.3) !important;
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.portfolio-item {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  border-radius: 0;
  transition: all var(--transition-speed) ease;
  animation: fadeIn 0.6s ease;
}

.portfolio-item.hide {
  display: none;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.portfolio-card {
  position: relative;
  height: 400px;
  overflow: hidden;
  border: 1px solid #424242;
}

.portfolio-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

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

.portfolio-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to top, rgba(26, 26, 26, 0.95), transparent);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 2rem;
  opacity: 0;
  transition: opacity var(--transition-speed) ease;
}

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

/* Cards */
.card {
  background-color: #1a1a1a !important;
  border: 1px solid #424242 !important;
  border-radius: 0 !important;
  transition: all var(--transition-speed) ease;
  overflow: hidden;
}

.card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 50px rgba(46, 125, 50, 0.2) !important;
  border-color: #2E7D32 !important;
}

.card-body {
  padding: 2rem !important;
  background-color: #1a1a1a !important;
}

.card-title {
  color: #e0e0e0 !important;
  font-weight: 700 !important;
  margin-bottom: 1rem !important;
}

.card-img-top {
  border-bottom: 2px solid #424242;
  transition: transform 0.6s ease;
}

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

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

/* Badges */
.badge {
  background-color: #2E7D32 !important;
  color: #ffffff !important;
  padding: 0.5rem 1rem !important;
  font-weight: 600 !important;
  letter-spacing: 0.5px;
  border-radius: 0 !important;
}

.badge:hover {
  background-color: #1b5e20 !important;
}

/* Borders */
.border {
  border: 1px solid #424242 !important;
}

.border-secondary {
  border-color: #424242 !important;
}

/* Forms */
.form-control,
.form-select {
  background-color: rgba(66, 66, 66, 0.3) !important;
  border: 2px solid #424242 !important;
  color: #e0e0e0 !important;
  padding: 0.75rem 1rem !important;
  border-radius: 0 !important;
  transition: all var(--transition-speed) ease;
}

.form-control:focus,
.form-select:focus {
  background-color: rgba(66, 66, 66, 0.5) !important;
  border-color: #2E7D32 !important;
  color: #ffffff !important;
  box-shadow: 0 0 0 0.25rem rgba(46, 125, 50, 0.25) !important;
}

.form-control::placeholder {
  color: #9e9e9e !important;
}

.form-label {
  color: #e0e0e0 !important;
  font-weight: 600 !important;
  margin-bottom: 0.5rem !important;
  text-transform: uppercase;
  font-size: 0.875rem;
  letter-spacing: 1px;
}

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

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

/* Links */
a {
  color: #2E7D32 !important;
  text-decoration: none !important;
  transition: all var(--transition-speed) ease;
}

a:hover {
  color: #4caf50 !important;
  text-decoration: underline !important;
}

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

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

/* Icons */
.bi {
  display: inline-block;
  vertical-align: -0.125em;
  fill: currentColor;
}

.bi-geo-alt-fill,
.bi-telephone-fill,
.bi-envelope-fill,
.bi-geo-alt,
.bi-telephone,
.bi-envelope,
.bi-calendar3,
.bi-images,
.bi-facebook,
.bi-instagram,
.bi-linkedin,
.bi-twitter {
  font-size: 1.5rem;
  color: #2E7D32 !important;
}

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

.d-block {
  display: block !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-end {
  align-items: flex-end !important;
}

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

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

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

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

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

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

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

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

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

.g-2 {
  --bs-gutter-x: 0.5rem !important;
  --bs-gutter-y: 0.5rem !important;
}

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

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

/* Typography */
.h4 {
  font-size: 1.5rem !important;
  font-weight: 700 !important;
  color: #e0e0e0 !important;
}

.h5 {
  font-size: 1.25rem !important;
  font-weight: 700 !important;
  color: #e0e0e0 !important;
}

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

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

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

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

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

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

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

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

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

/* Order Classes */
.order-lg-1 {
  order: 1 !important;
}

.order-lg-2 {
  order: 2 !important;
}

/* Modal Styles */
.modal {
  z-index: 1055 !important;
}

.modal.fade {
  transition: opacity 0.15s linear;
}

.modal-dialog {
  max-width: 800px !important;
}

.modal-xl {
  max-width: 1140px !important;
}

.modal-dialog-centered {
  display: flex;
  align-items: center;
  min-height: calc(100% - 1rem);
}

.modal-content {
  background-color: #1a1a1a !important;
  border: 2px solid #424242 !important;
  border-radius: 0 !important;
  color: #e0e0e0 !important;
}

.modal-header {
  border-bottom: 2px solid #424242 !important;
  padding: 1.5rem !important;
  background-color: rgba(46, 125, 50, 0.1) !important;
}

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

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

.btn-close,
.btn-close-white {
  background-color: transparent !important;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%232E7D32'%3e%3cpath d='M.293.293a1 1 0 011.414 0L8 6.586 14.293.293a1 1 0 111.414 1.414L9.414 8l6.293 6.293a1 1 0 01-1.414 1.414L8 9.414l-6.293 6.293a1 1 0 01-1.414-1.414L6.586 8 .293 1.707a1 1 0 010-1.414z'/%3e%3c/svg%3e") !important;
  opacity: 1 !important;
  transition: all var(--transition-speed) ease;
}

.btn-close:hover,
.btn-close-white:hover {
  opacity: 0.7 !important;
  transform: rotate(90deg);
}

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

/* Responsive Design */
@media (max-width: 991.98px) {
  .navbar-collapse {
    background-color: rgba(26, 26, 26, 0.98);
    padding: 1rem;
    margin-top: 1rem;
    border-top: 2px solid #2E7D32;
  }

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

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

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

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

  .lead {
    font-size: 1.1rem !important;
  }

  .portfolio-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

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

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

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

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

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

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

  .d-lg-inline-block {
    display: block !important;
    width: 100%;
  }

  .col-lg-2,
  .col-lg-3,
  .col-lg-4,
  .col-lg-5,
  .col-lg-6,
  .col-lg-7,
  .col-lg-8,
  .col-lg-9,
  .col-lg-10 {
    width: 100%;
    padding: 0 1rem;
  }

  .offset-lg-1 {
    margin-left: 0 !important;
  }
}

@media (max-width: 767.98px) {
  .text-md-end {
    text-align: center !important;
  }

  .col-md-4,
  .col-md-5,
  .col-md-6,
  .col-md-7 {
    width: 100%;
    padding: 0 1rem;
    margin-bottom: 1.5rem;
  }

  .modal-dialog {
    max-width: 95% !important;
    margin: 1rem auto;
  }

  .filter-btn {
    padding: 0.5rem 1rem !important;
    margin: 0.25rem !important;
    font-size: 0.875rem !important;
  }
}

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

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

  .portfolio-card {
    height: 300px;
  }

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

  .modal-body {
    padding: 1rem !important;
  }
}

/* Custom Animations */
@keyframes float {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-20px);
  }
}

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

/* Scroll Animations */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.active {
  opacity: 1;
  transform: translateY(0);
}

/* Loading States */
.loading {
  pointer-events: none;
  opacity: 0.6;
}

.loading::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 40px;
  height: 40px;
  margin: -20px 0 0 -20px;
  border: 4px solid #424242;
  border-top-color: #2E7D32;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

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

/* Hover Effects for Interactive Elements */
.interactive-hover {
  transition: all var(--transition-speed) ease;
}

.interactive-hover:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(46, 125, 50, 0.3);
}

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

::-webkit-scrollbar-track {
  background: #1a1a1a;
}

::-webkit-scrollbar-thumb {
  background: #424242;
  border-radius: 0;
}

::-webkit-scrollbar-thumb:hover {
  background: #2E7D32;
}

/* Selection Color */
::selection {
  background-color: #2E7D32;
  color: #ffffff;
}

::-moz-selection {
  background-color: #2E7D32;
  color: #ffffff;
}

/* Focus Styles */
*:focus {
  outline: 2px solid #2E7D32 !important;
  outline-offset: 2px;
}

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

  body {
    background-color: white !important;
    color: black !important;
  }
}