/* Forest Professional Architecture Studio - Custom Styles */

:root {
  --primary-color: #2C5530;
  --secondary-color: #8FBC8F;
  --primary-dark: #1a3d1f;
  --primary-light: #3d7043;
  --secondary-dark: #6b9a6b;
  --secondary-light: #a8d0a8;
  --text-dark: #1f1f1f;
  --text-light: #f8f9fa;
  --shadow: rgba(44, 85, 48, 0.15);
  --shadow-hover: rgba(44, 85, 48, 0.25);
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

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

/* Typography */
h1, h2, h3, h4, h5, h6,
.display-3, .display-4, .display-5 {
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-dark);
}

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

/* Navbar Styles */
.navbar {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-color) 100%) !important;
  padding: 1rem 0;
  transition: var(--transition);
  box-shadow: 0 2px 15px var(--shadow);
  position: sticky;
  top: 0;
  z-index: 1030;
}

.navbar-dark .navbar-brand {
  color: #ffffff !important;
  font-size: 1.5rem;
  letter-spacing: 0.5px;
  transition: var(--transition);
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.navbar-brand.fw-bold {
  font-weight: 800 !important;
}

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

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

.navbar-toggler:focus {
  box-shadow: 0 0 0 0.25rem rgba(255, 255, 255, 0.25);
}

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

.navbar-nav .nav-link {
  color: rgba(255, 255, 255, 0.9) !important;
  padding: 0.5rem 1.25rem !important;
  margin: 0 0.25rem;
  border-radius: 6px;
  transition: var(--transition);
  font-weight: 500;
  position: relative;
  overflow: hidden;
}

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

.navbar-nav .nav-link:hover {
  color: #ffffff !important;
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
}

.navbar-nav .nav-link:hover::before {
  width: 80%;
}

.navbar-nav .nav-link.active {
  color: #ffffff !important;
  background: rgba(255, 255, 255, 0.15) !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

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

.btn-primary {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%) !important;
  color: #ffffff !important;
  box-shadow: 0 4px 15px var(--shadow);
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-color) 100%) !important;
  color: #ffffff !important;
  transform: translateY(-3px);
  box-shadow: 0 6px 20px var(--shadow-hover);
}

.btn-secondary {
  background: linear-gradient(135deg, var(--secondary-color) 0%, var(--secondary-light) 100%) !important;
  color: var(--primary-dark) !important;
  box-shadow: 0 4px 15px var(--shadow);
}

.btn-secondary:hover {
  background: linear-gradient(135deg, var(--secondary-dark) 0%, var(--secondary-color) 100%) !important;
  color: #ffffff !important;
  transform: translateY(-3px);
  box-shadow: 0 6px 20px var(--shadow-hover);
}

.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: #ffffff !important;
  border-color: var(--primary-color) !important;
  transform: translateY(-3px);
  box-shadow: 0 6px 20px var(--shadow-hover);
}

.btn-outline-light {
  border: 2px solid #ffffff !important;
  color: #ffffff !important;
  background: transparent !important;
}

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

.btn-light {
  background: #ffffff !important;
  color: var(--primary-color) !important;
  border: 2px solid #ffffff !important;
}

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

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

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

.filter-btn {
  margin: 0.25rem;
  transition: var(--transition);
}

.btn-group {
  gap: 0.5rem;
}

/* Hero Section */
.position-relative {
  position: relative;
}

.hero-section {
  min-height: 90vh;
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-color) 50%, var(--primary-light) 100%);
  position: relative;
  overflow: hidden;
}

.hero-section::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.05"%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;
}

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

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

/* Cards */
.card {
  border: none;
  border-radius: 12px;
  transition: var(--transition);
  overflow: hidden;
  background: #ffffff;
}

.card-body {
  padding: 2rem;
}

.card.shadow,
.shadow {
  box-shadow: 0 5px 25px var(--shadow) !important;
}

.card.shadow-sm {
  box-shadow: 0 2px 12px var(--shadow) !important;
}

.card.shadow-lg {
  box-shadow: 0 10px 40px var(--shadow-hover) !important;
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 50px var(--shadow-hover) !important;
}

.card-title {
  color: var(--primary-color);
  font-weight: 700;
  margin-bottom: 1rem;
}

.card-text {
  color: #6c757d;
  line-height: 1.7;
}

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

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

.border-0 {
  border: none !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;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 5px 25px var(--shadow);
  transition: var(--transition);
  cursor: pointer;
}

.portfolio-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to top, rgba(44, 85, 48, 0.9) 0%, transparent 100%);
  opacity: 0;
  transition: var(--transition);
  z-index: 1;
}

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

.portfolio-item:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 50px var(--shadow-hover);
}

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

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

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

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

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

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

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

/* Backgrounds */
.bg-primary {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%) !important;
}

.bg-secondary {
  background: linear-gradient(135deg, var(--secondary-color) 0%, var(--secondary-light) 100%) !important;
}

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

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

/* Badges */
.badge {
  padding: 0.5rem 1rem;
  border-radius: 6px;
  font-weight: 600;
  letter-spacing: 0.5px;
  background: var(--secondary-color) !important;
  color: #ffffff !important;
}

/* Alerts */
.alert {
  border-radius: 12px;
  padding: 1.5rem;
  border: none;
}

.alert-light {
  background-color: #ffffff !important;
  color: var(--text-dark) !important;
  box-shadow: 0 2px 12px var(--shadow);
}

.border-start {
  border-left-width: 4px !important;
  border-left-style: solid !important;
}

.border-5 {
  border-width: 5px !important;
}

.border-3 {
  border-width: 3px !important;
}

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

.border {
  border: 1px solid rgba(0, 0, 0, 0.1) !important;
}

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

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

.form-control:focus,
.form-select:focus {
  border-color: var(--secondary-color) !important;
  box-shadow: 0 0 0 0.25rem rgba(143, 188, 143, 0.25) !important;
  outline: none;
}

.form-control::placeholder {
  color: #adb5bd;
}

.form-check-input {
  width: 1.25rem;
  height: 1.25rem;
  border: 2px solid #e0e0e0;
  border-radius: 4px;
  transition: var(--transition);
}

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

.form-check-input:focus {
  box-shadow: 0 0 0 0.25rem rgba(143, 188, 143, 0.25);
}

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

/* Progress Bar */
.progress {
  height: 1.5rem;
  border-radius: 8px;
  background-color: #e9ecef;
  overflow: hidden;
}

.progress-bar {
  background: linear-gradient(135deg, var(--secondary-color) 0%, var(--secondary-light) 100%);
  transition: width 0.6s ease;
}

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

.d-inline-flex {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
}

.bi-geo-alt-fill,
.bi-geo-alt,
.bi-telephone-fill,
.bi-envelope-fill,
.bi-check-circle-fill,
.bi-chat-quote-fill,
.bi-star-fill {
  color: var(--secondary-color);
}

/* Spacing Utilities */
.p-0 { padding: 0 !important; }
.p-2 { padding: 0.5rem !important; }
.p-3 { padding: 1rem !important; }
.p-4 { padding: 1.5rem !important; }
.p-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; }

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

.pt-5 { padding-top: 3rem !important; }
.pb-3 { padding-bottom: 1rem !important; }
.pb-4 { padding-bottom: 1.5rem !important; }

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

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

.mx-auto { margin-left: auto !important; margin-right: auto !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; }

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

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

/* Gap Utilities */
.gap-2 { gap: 0.5rem !important; }
.gap-3 { gap: 1rem !important; }

.g-0 { gap: 0 !important; }
.g-2 { gap: 0.5rem !important; }
.g-3 { gap: 1rem !important; }
.g-4 { gap: 1.5rem !important; }

/* Text Utilities */
.text-center { text-align: center !important; }
.text-start { text-align: left !important; }
.text-end { text-align: right !important; }

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

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

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

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

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

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

.flex-column { flex-direction: column !important; }
.flex-sm-row { flex-direction: row !important; }
.flex-wrap { flex-wrap: wrap !important; }
.flex-lg-row-reverse { flex-direction: row-reverse !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; }

/* Position Utilities */
.position-relative { position: relative !important; }
.position-absolute { position: absolute !important; }
.position-sticky { position: sticky !important; top: 100px; }

.top-0 { top: 0 !important; }
.top-50 { top: 50% !important; }
.start-0 { left: 0 !important; }
.end-0 { right: 0 !important; }

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

/* Size Utilities */
.w-100 { width: 100% !important; }
.h-100 { height: 100% !important; }

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

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

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

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

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

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

/* Grid System */
.container,
.container-fluid {
  width: 100%;
  padding-right: 15px;
  padding-left: 15px;
  margin-right: auto;
  margin-left: auto;
}

.row {
  display: flex;
  flex-wrap: wrap;
  margin-right: -15px;
  margin-left: -15px;
}

[class*="col-"] {
  position: relative;
  width: 100%;
  padding-right: 15px;
  padding-left: 15px;
}

.col-6 { flex: 0 0 50%; max-width: 50%; }
.col-12 { flex: 0 0 100%; max-width: 100%; }

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

@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);
  }
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.8);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

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

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

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

.scale-in {
  animation: scaleIn 0.6s ease-out forwards;
}

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

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

/* Small Text */
.small {
  font-size: 0.875rem;
}

/* Font Sizes */
.fs-1 { font-size: 2.5rem !important; }
.fs-2 { font-size: 2rem !important; }
.fs-3 { font-size: 1.75rem !important; }
.fs-4 { font-size: 1.5rem !important; }
.fs-5 { font-size: 1.25rem !important; }

.h3 { font-size: 1.75rem; }
.h4 { font-size: 1.5rem; }
.h5 { font-size: 1.25rem; }

/* Responsive Design */
@media (max-width: 575.98px) {
  .display-3 { font-size: 2.5rem; }
  .display-4 { font-size: 2rem; }
  .display-5 { font-size: 1.75rem; }
  
  .btn-lg { padding: 0.75rem 1.5rem !important; font-size: 1rem; }
  
  .py-5 { padding-top: 2rem !important; padding-bottom: 2rem !important; }
  .px-5 { padding-left: 1rem !important; padding-right: 1rem !important; }
  
  .hero-section { min-height: 70vh; }
  
  .card-body { padding: 1.5rem; }
  
  .portfolio-grid { grid-template-columns: 1fr; gap: 1rem; }
}

@media (min-width: 576px) {
  .col-sm-6 { flex: 0 0 50%; max-width: 50%; }
  
  .flex-sm-row { flex-direction: row !important; }
}

@media (min-width: 768px) {
  .col-md-3 { flex: 0 0 25%; max-width: 25%; }
  .col-md-4 { flex: 0 0 33.333333%; max-width: 33.333333%; }
  .col-md-5 { flex: 0 0 41.666667%; max-width: 41.666667%; }
  .col-md-6 { flex: 0 0 50%; max-width: 50%; }
  .col-md-7 { flex: 0 0 58.333333%; max-width: 58.333333%; }
  
  .offset-md-3 { margin-left: 25%; }
  
  .text-md-start { text-align: left !important; }
  .text-md-end { text-align: right !important; }
  
  .mb-md-0 { margin-bottom: 0 !important; }
  
  .flex-md-row { flex-direction: row !important; }
}

@media (min-width: 992px) {
  .col-lg-2 { flex: 0 0 16.666667%; max-width: 16.666667%; }
  .col-lg-3 { flex: 0 0 25%; max-width: 25%; }
  .col-lg-4 { flex: 0 0 33.333333%; max-width: 33.333333%; }
  .col-lg-5 { flex: 0 0 41.666667%; max-width: 41.666667%; }
  .col-lg-6 { flex: 0 0 50%; max-width: 50%; }
  .col-lg-7 { flex: 0 0 58.333333%; max-width: 58.333333%; }
  .col-lg-8 { flex: 0 0 66.666667%; max-width: 66.666667%; }
  .col-lg-9 { flex: 0 0 75%; max-width: 75%; }
  .col-lg-10 { flex: 0 0 83.333333%; max-width: 83.333333%; }
  
  .offset-lg-2 { margin-left: 16.666667%; }
  
  .navbar-expand-lg .navbar-nav { flex-direction: row; }
  .navbar-expand-lg .navbar-collapse { display: flex !important; }
  .navbar-expand-lg .navbar-toggler { display: none; }
  
  .mb-lg-0 { margin-bottom: 0 !important; }
  
  .ps-lg-5 { padding-left: 3rem !important; }
  .pe-lg-5 { padding-right: 3rem !important; }
  
  .order-lg-1 { order: 1; }
  .order-lg-2 { order: 2; }
  
  .flex-lg-row-reverse { flex-direction: row-reverse !important; }
  
  .text-lg-end { text-align: right !important; }
}

@media (max-width: 991.98px) {
  .navbar-collapse {
    background: rgba(44, 85, 48, 0.98);
    padding: 1rem;
    border-radius: 8px;
    margin-top: 1rem;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
  }
  
  .navbar-nav .nav-link {
    padding: 0.75rem 1rem !important;
    margin: 0.25rem 0;
  }
  
  .position-sticky {
    position: relative !important;
  }
}

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

.btn:focus {
  outline: 2px solid var(--secondary-light);
}

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