/* Forest Jade Architecture Studio Theme - CSS */

:root {
  --primary-color: #2C5530;
  --secondary-color: #A8C090;
  --light-green: #E8F3E8;
  --dark-green: #1a3a1e;
  --text-dark: #2d3436;
  --text-light: #ffffff;
  --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
}

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

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

.lead {
  color: var(--text-dark);
  font-weight: 400;
}

/* Navbar Styles */
.navbar {
  background: rgba(44, 85, 48, 0.95) !important;
  backdrop-filter: blur(10px);
  transition: var(--transition);
  padding: 1rem 0;
  box-shadow: 0 2px 20px rgba(44, 85, 48, 0.1);
}

.navbar.scrolled {
  background: var(--primary-color) !important;
  box-shadow: 0 4px 30px rgba(44, 85, 48, 0.2);
}

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

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

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

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

.nav-link {
  color: rgba(255, 255, 255, 0.9) !important;
  font-weight: 500 !important;
  padding: 0.5rem 1rem !important;
  border-radius: 8px;
  transition: var(--transition);
  position: relative;
}

.nav-link:hover,
.nav-link.active {
  color: var(--text-light) !important;
  background: rgba(168, 192, 144, 0.2) !important;
  transform: translateY(-2px);
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 1rem;
  right: 1rem;
  height: 2px;
  background: var(--secondary-color);
}

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

.position-relative::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(44, 85, 48, 0.85) 0%, rgba(26, 58, 30, 0.7) 100%);
  z-index: 1;
}

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

.object-fit-cover {
  object-fit: cover;
  filter: brightness(0.7);
}

/* Buttons */
.btn {
  border-radius: 12px !important;
  font-weight: 600 !important;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: var(--transition) !important;
  border: none !important;
  position: relative;
  overflow: hidden;
}

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

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

.btn-lg {
  background: var(--secondary-color) !important;
  color: var(--primary-color) !important;
  box-shadow: 0 10px 30px rgba(168, 192, 144, 0.3);
}

.btn-lg:hover {
  background: var(--primary-color) !important;
  color: var(--text-light) !important;
  transform: translateY(-3px);
  box-shadow: 0 15px 40px rgba(44, 85, 48, 0.4);
}

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

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

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

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

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

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

/* Cards */
.card {
  border: none !important;
  border-radius: 16px !important;
  transition: var(--transition);
  overflow: hidden;
  background: var(--text-light);
}

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

.card-body {
  padding: 2rem;
}

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

.shadow-sm {
  box-shadow: 0 5px 20px rgba(44, 85, 48, 0.08) !important;
}

.shadow-lg {
  box-shadow: 0 20px 60px rgba(44, 85, 48, 0.15) !important;
}

/* Portfolio Items */
.portfolio-item {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  cursor: pointer;
  height: 350px;
}

.portfolio-card {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.portfolio-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to top, rgba(44, 85, 48, 0.95) 0%, rgba(44, 85, 48, 0) 60%);
  opacity: 0;
  transition: var(--transition);
  display: flex;
  align-items: flex-end;
  padding: 2rem;
  color: var(--text-light) !important;
}

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

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

.view-project {
  color: var(--secondary-color) !important;
  text-decoration: none !important;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: var(--transition);
}

.view-project:hover {
  color: var(--text-light) !important;
  gap: 1rem;
}

/* Filter Buttons */
.filter-btn {
  margin: 0.5rem;
}

/* Badges */
.badge {
  background: var(--secondary-color) !important;
  color: var(--primary-color) !important;
  font-weight: 600 !important;
  padding: 0.5rem 1rem !important;
  font-size: 0.875rem !important;
}

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

/* Forms */
.form-control,
.form-select {
  border: 2px solid #e0e0e0 !important;
  border-radius: 10px !important;
  padding: 0.75rem 1rem !important;
  transition: var(--transition) !important;
  background: var(--text-light) !important;
  color: var(--text-dark) !important;
}

.form-control:focus,
.form-select:focus {
  border-color: var(--secondary-color) !important;
  box-shadow: 0 0 0 0.25rem rgba(168, 192, 144, 0.25) !important;
  background: var(--text-light) !important;
}

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

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

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

.invalid-feedback {
  color: #dc3545;
  font-size: 0.875rem;
  margin-top: 0.25rem;
}

.form-control.is-invalid,
.form-select.is-invalid {
  border-color: #dc3545 !important;
}

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

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

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

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

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

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

.bi-geo-alt-fill,
.bi-telephone-fill,
.bi-envelope-fill,
.bi-cup-hot-fill,
.bi-send,
.bi-arrow-up-right-circle,
.bi-building,
.bi-1-circle-fill,
.bi-2-circle-fill,
.bi-3-circle-fill,
.bi-arrow-right,
.bi-geo-alt,
.bi-telephone,
.bi-envelope,
.bi-house-door,
.bi-check-circle-fill,
.bi-brightness-high,
.bi-grid-3x3,
.bi-kanban,
.bi-badge-3d {
  color: var(--secondary-color);
  transition: var(--transition);
}

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

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

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

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

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

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

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

/* Opacity */
.opacity-25 {
  opacity: 0.25 !important;
}

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

.opacity-90 {
  opacity: 0.9 !important;
}

/* Border */
.border-0 {
  border: 0 !important;
}

.border-bottom {
  border-bottom: 1px solid rgba(44, 85, 48, 0.1) !important;
}

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

.modal-header {
  background: var(--primary-color);
  color: var(--text-light) !important;
  border: none;
  padding: 1.5rem 2rem;
}

.modal-body {
  padding: 2rem;
}

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

.btn-close:hover {
  opacity: 0.8;
}

/* Sticky Elements */
.sticky-top,
.sticky-lg-top {
  position: sticky;
  top: 80px;
  z-index: 1020;
}

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

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

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-40px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

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

.animate-fadeInUp {
  animation: fadeInUp 0.8s ease-out forwards;
}

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

.animate-slideInLeft {
  animation: slideInLeft 0.8s ease-out forwards;
}

.animate-slideInRight {
  animation: slideInRight 0.8s ease-out forwards;
}

/* Scroll animations */
.scroll-animate {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

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

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

.list-unstyled li {
  padding: 0.5rem 0;
  transition: var(--transition);
}

.list-unstyled li:hover {
  padding-left: 0.5rem;
  color: var(--primary-color);
}

/* Links */
a {
  color: var(--primary-color);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--secondary-color);
}

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

/* Typography Utilities */
.fw-bold {
  font-weight: 700 !important;
}

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

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

.lh-lg {
  line-height: 2 !important;
}

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

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

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

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

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

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

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

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

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

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

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

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

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

/* Responsive Typography */
@media (max-width: 768px) {
  .display-3 {
    font-size: 2.5rem !important;
  }

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

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

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

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

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

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

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

/* Responsive Utilities */
@media (min-width: 992px) {
  .d-lg-block {
    display: block !important;
  }

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

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

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

  .mt-lg-0 {
    margin-top: 0 !important;
  }

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

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

  .ps-lg-4 {
    padding-left: 1.5rem !important;
  }

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

  .pe-lg-4 {
    padding-right: 1.5rem !important;
  }
}

@media (max-width: 991px) {
  .navbar-collapse {
    background: rgba(44, 85, 48, 0.98);
    padding: 1.5rem;
    border-radius: 12px;
    margin-top: 1rem;
  }

  .nav-link {
    padding: 0.75rem 1rem !important;
    margin: 0.25rem 0;
  }

  .portfolio-item {
    height: 280px;
  }

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

@media (max-width: 576px) {
  .btn-lg {
    padding: 0.75rem 2rem !important;
    font-size: 1rem !important;
  }

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

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

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

  .portfolio-item {
    height: 240px;
  }

  .card-body {
    padding: 1.5rem;
  }

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

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

.hover-lift:hover {
  transform: translateY(-5px);
}

/* Loading Animation */
@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

.pulse {
  animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

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

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

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

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

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

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

/* Focus Styles */
:focus-visible {
  outline: 2px solid var(--secondary-color);
  outline-offset: 2px;
}

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