/* Forest Harmony Architecture Studio - CSS */

/* === Root Variables === */
:root {
  --primary-color: #2C5530;
  --secondary-color: #A8C090;
  --light-green: #E8F5E9;
  --dark-green: #1B3A1F;
  --accent-gold: #D4AF37;
  --text-dark: #212529;
  --text-light: #6C757D;
  --white: #FFFFFF;
  --transition: all 0.3s ease;
}

/* === Global Styles === */
* {
  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.7;
  overflow-x: hidden;
  background-color: var(--white);
}

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

.text-white.display-2,
.text-white.display-3,
.text-white.display-4 {
  color: var(--white) !important;
  text-shadow: 2px 4px 8px rgba(0, 0, 0, 0.4);
}

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

.fs-3 {
  text-shadow: 2px 3px 6px rgba(0, 0, 0, 0.3);
}

h2, .h2 {
  color: var(--primary-color) !important;
  margin-bottom: 1.5rem;
}

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

/* === Navigation === */
.navbar {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--dark-green) 100%) !important;
  padding: 1rem 0;
  transition: var(--transition);
  box-shadow: 0 2px 10px rgba(44, 85, 48, 0.15);
}

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

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

.navbar-brand:hover {
  color: var(--secondary-color) !important;
  transform: scale(1.05);
}

.navbar-dark .navbar-nav .nav-link {
  color: rgba(255, 255, 255, 0.9) !important;
  font-weight: 500 !important;
  padding: 0.5rem 1rem !important;
  margin: 0 0.25rem;
  transition: var(--transition);
  position: relative;
}

.navbar-dark .navbar-nav .nav-link:hover,
.navbar-dark .navbar-nav .nav-link.active {
  color: var(--white) !important;
  background-color: rgba(255, 255, 255, 0.1) !important;
  border-radius: 5px;
}

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

.navbar-toggler {
  border-color: rgba(255, 255, 255, 0.3) !important;
  padding: 0.5rem;
}

.navbar-toggler:focus {
  box-shadow: 0 0 0 0.25rem rgba(168, 192, 144, 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='rgba%28255, 255, 255, 1%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.vh-100 {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--dark-green) 100%);
}

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

.object-fit-cover {
  object-fit: cover;
  object-position: center;
}

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

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

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

.text-center.text-white .display-2 {
  color: var(--white) !important;
  animation: fadeInUp 1s ease-out;
}

.text-center.text-white .lead {
  color: rgba(255, 255, 255, 0.95) !important;
  animation: fadeInUp 1.2s ease-out;
}

/* === Buttons === */
.btn {
  font-weight: 600 !important;
  border-radius: 8px !important;
  transition: var(--transition) !important;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-width: 2px !important;
}

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

.btn-primary,
.btn.btn-primary {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--dark-green) 100%) !important;
  border-color: var(--primary-color) !important;
  color: var(--white) !important;
}

.btn-primary:hover,
.btn.btn-primary:hover {
  background: linear-gradient(135deg, var(--dark-green) 0%, var(--primary-color) 100%) !important;
  border-color: var(--dark-green) !important;
  color: var(--white) !important;
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(44, 85, 48, 0.3) !important;
}

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

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

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

.btn-light:hover {
  background-color: var(--secondary-color) !important;
  border-color: var(--secondary-color) !important;
  color: var(--white) !important;
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(168, 192, 144, 0.3) !important;
}

.btn-outline-success {
  border-color: var(--primary-color) !important;
  color: var(--primary-color) !important;
  background-color: transparent !important;
}

.btn-outline-success:hover,
.btn-outline-success.active {
  background-color: var(--primary-color) !important;
  border-color: var(--primary-color) !important;
  color: var(--white) !important;
}

.filter-btn {
  margin: 0.5rem;
  min-width: 120px;
}

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

@keyframes bounce {
  0%, 100% {
    transform: translateY(0) translateX(-50%);
  }
  50% {
    transform: translateY(-20px) translateX(-50%);
  }
}

.animate-bounce {
  animation: bounce 2s infinite;
  cursor: pointer;
  color: var(--white) !important;
  font-size: 2rem;
  opacity: 0.8;
  transition: var(--transition);
}

.animate-bounce:hover {
  opacity: 1;
}

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

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

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

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

section {
  position: relative;
  overflow: hidden;
}

/* === Cards === */
.card {
  border: none !important;
  border-radius: 12px !important;
  overflow: hidden;
  transition: var(--transition) !important;
  height: 100%;
}

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

.card.shadow,
.shadow-lg {
  box-shadow: 0 10px 30px rgba(44, 85, 48, 0.1) !important;
}

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

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

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

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

.card-body h4,
.card-body .h4 {
  color: var(--primary-color) !important;
  margin-bottom: 1rem;
}

.card-body p {
  color: var(--text-light);
  margin-bottom: 0;
}

/* === Carousel === */
.carousel {
  position: relative;
}

.carousel-indicators {
  margin-bottom: 2rem;
}

.carousel-indicators [data-bs-target] {
  background-color: var(--secondary-color) !important;
  opacity: 0.5;
  height: 8px;
  border-radius: 4px;
}

.carousel-indicators .active {
  opacity: 1;
  background-color: var(--primary-color) !important;
}

.carousel-control-prev,
.carousel-control-next {
  width: 5% !important;
  opacity: 0.8 !important;
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
  opacity: 1 !important;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
  background-color: var(--primary-color);
  border-radius: 50%;
  padding: 1.5rem;
}

.carousel-item {
  transition: transform 0.6s ease-in-out !important;
}

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

.portfolio-item {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 5px 20px rgba(44, 85, 48, 0.1);
  transition: var(--transition);
  cursor: pointer;
  background: var(--white);
}

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

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

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

.portfolio-item .card-body {
  position: relative;
  z-index: 2;
}

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

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

.form-control,
.form-select {
  border: 2px solid var(--secondary-color) !important;
  border-radius: 8px !important;
  padding: 0.75rem 1rem !important;
  transition: var(--transition) !important;
  background-color: var(--white) !important;
  color: var(--text-dark) !important;
}

.form-control:focus,
.form-select:focus {
  border-color: var(--primary-color) !important;
  box-shadow: 0 0 0 0.25rem rgba(44, 85, 48, 0.15) !important;
  background-color: var(--white) !important;
}

.form-control::placeholder {
  color: var(--text-light) !important;
  opacity: 0.7;
}

.form-check-input {
  border: 2px solid var(--secondary-color) !important;
  width: 1.25rem;
  height: 1.25rem;
}

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

.form-check-input:focus {
  box-shadow: 0 0 0 0.25rem rgba(44, 85, 48, 0.15) !important;
}

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

/* === Icons === */
.fas, .fab, .bi {
  color: var(--primary-color);
}

.fa-lg {
  font-size: 1.5rem;
}

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

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

.fs-4 {
  font-size: 1.5rem !important;
}

.bi-house-door,
.bi-check-circle,
.bi-building,
.bi-leaf,
.bi-map,
.bi-clipboard-data,
.bi-clock-history {
  color: var(--primary-color) !important;
}

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

.d-inline-flex {
  background-color: var(--light-green);
  width: 80px;
  height: 80px;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  transition: var(--transition);
}

.d-inline-flex:hover {
  background-color: var(--secondary-color);
  transform: scale(1.1) rotate(5deg);
}

/* === Footer === */
footer {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--dark-green) 100%);
  color: var(--white) !important;
  padding: 3rem 0 1rem;
}

footer h6,
footer .h6 {
  color: var(--white) !important;
  font-weight: 700;
  margin-bottom: 1.5rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

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

footer a {
  color: rgba(255, 255, 255, 0.8) !important;
  text-decoration: none !important;
  transition: var(--transition);
}

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

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

footer .border-top {
  border-top: 1px solid rgba(255, 255, 255, 0.2) !important;
}

footer .small {
  color: rgba(255, 255, 255, 0.7) !important;
}

footer .fab,
footer .bi {
  color: var(--white) !important;
  transition: var(--transition);
}

footer .fab:hover,
footer .bi:hover {
  color: var(--secondary-color) !important;
  transform: scale(1.2);
}

/* === Utilities === */
.text-muted {
  color: var(--text-light) !important;
}

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

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

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

.img-fluid {
  max-width: 100%;
  height: auto;
  display: block;
}

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

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

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

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

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

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

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

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

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

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

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

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

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

.me-3 {
  margin-right: 1rem !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;
}

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

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

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

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

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

.px-0 {
  padding-left: 0 !important;
  padding-right: 0 !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;
}

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

/* === Responsive Design === */
@media (max-width: 991.98px) {
  .navbar-collapse {
    background: rgba(44, 85, 48, 0.95);
    padding: 1rem;
    border-radius: 8px;
    margin-top: 1rem;
  }
  
  .display-2 {
    font-size: 2.5rem !important;
  }
  
  .display-3 {
    font-size: 2.2rem !important;
  }
  
  .display-4 {
    font-size: 2rem !important;
  }
  
  .display-5 {
    font-size: 1.8rem !important;
  }
  
  .fs-3 {
    font-size: 1.5rem !important;
  }
  
  .mb-lg-0 {
    margin-bottom: 2rem !important;
  }
  
  .text-lg-end,
  .text-md-end {
    text-align: left !important;
  }
  
  .text-md-start {
    text-align: left !important;
  }
  
  .order-1 {
    order: 1 !important;
  }
  
  .order-2 {
    order: 2 !important;
  }
  
  .ps-lg-5 {
    padding-left: 1rem !important;
  }
  
  .portfolio-grid {
    grid-template-columns: 1fr;
  }
  
  .btn-lg {
    width: 100%;
    margin-bottom: 1rem;
  }
  
  .me-3 {
    margin-right: 0 !important;
  }
}

@media (min-width: 992px) {
  .order-lg-1 {
    order: 1 !important;
  }
  
  .order-lg-2 {
    order: 2 !important;
  }
  
  .text-lg-end {
    text-align: right !important;
  }
}

@media (max-width: 767.98px) {
  .display-2 {
    font-size: 2rem !important;
  }
  
  .vh-100 {
    min-height: 80vh;
  }
  
  .py-5 {
    padding-top: 2rem !important;
    padding-bottom: 2rem !important;
  }
  
  .btn-lg.px-5 {
    padding-left: 2rem !important;
    padding-right: 2rem !important;
  }
  
  .card-img-top {
    height: 200px;
  }
  
  footer .col-lg-3,
  footer .col-lg-2,
  footer .col-lg-4 {
    margin-bottom: 2rem;
  }
}

@media (min-width: 768px) {
  .col-md-3 {
    flex: 0 0 auto;
    width: 25%;
  }
  
  .col-md-4 {
    flex: 0 0 auto;
    width: 33.333333%;
  }
  
  .col-md-5 {
    flex: 0 0 auto;
    width: 41.666667%;
  }
  
  .col-md-6 {
    flex: 0 0 auto;
    width: 50%;
  }
  
  .col-md-7 {
    flex: 0 0 auto;
    width: 58.333333%;
  }
  
  .col-md-8 {
    flex: 0 0 auto;
    width: 66.666667%;
  }
  
  .col-md-12 {
    flex: 0 0 auto;
    width: 100%;
  }
  
  .text-md-start {
    text-align: left !important;
  }
  
  .text-md-end {
    text-align: right !important;
  }
}

@media (max-width: 575.98px) {
  .container-fluid {
    padding-left: 1rem;
    padding-right: 1rem;
  }
  
  .px-4 {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }
  
  .d-inline-flex {
    width: 60px;
    height: 60px;
  }
  
  .fs-1 {
    font-size: 2rem !important;
  }
  
  .fs-2 {
    font-size: 1.5rem !important;
  }
}

/* === Smooth Transitions === */
a, button, .btn, .card, .form-control, .form-select, .nav-link {
  transition: var(--transition);
}

/* === Focus States === */
a:focus,
button:focus,
.btn:focus,
.form-control:focus,
.form-select:focus {
  outline: 3px solid rgba(44, 85, 48, 0.3);
  outline-offset: 2px;
}

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

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

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

::-webkit-scrollbar-track {
  background: var(--light-green);
}

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

::-webkit-scrollbar-thumb:hover {
  background: var(--dark-green);
}

/* === Loading Animation === */
.fade-in {
  animation: fadeInUp 0.6s ease-out;
}

/* === Hover Effects === */
.hover-lift {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-lift:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(44, 85, 48, 0.15);
}