/* Architectural Studio - Forest Green & Amber Theme CSS */

/* === ROOT VARIABLES === */
:root {
  --primary-color: #2E7D32;
  --secondary-color: #FFC107;
  --dark-green: #1B5E20;
  --light-green: #4CAF50;
  --amber-dark: #FFA000;
  --text-dark: #212121;
  --text-light: #757575;
  --bg-light: #F5F5F5;
  --white: #FFFFFF;
  --transition: all 0.3s ease;
}

/* === GLOBAL STYLES === */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

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

/* === TYPOGRAPHY === */
.display-2, .display-3, .display-4, .display-5, .display-6 {
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-dark) !important;
}

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

/* === NAVBAR === */
.navbar {
  padding: 1rem 0;
  transition: var(--transition);
  background-color: var(--primary-color) !important;
}

.navbar-dark .navbar-brand {
  color: var(--white) !important;
  font-size: 1.5rem;
  transition: var(--transition);
}

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

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

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

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

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

.navbar-light .navbar-brand {
  color: var(--primary-color) !important;
}

.navbar-light .nav-link {
  color: var(--text-dark) !important;
}

.navbar-light .nav-link:hover,
.navbar-light .nav-link.active {
  color: var(--primary-color) !important;
  background-color: rgba(46, 125, 50, 0.1) !important;
}

.navbar-toggler {
  border: 2px solid rgba(255, 255, 255, 0.8) !important;
  padding: 0.5rem 0.75rem;
}

.navbar-toggler:focus {
  box-shadow: 0 0 0 0.2rem rgba(255, 193, 7, 0.5) !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;
}

.sticky-top {
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1) !important;
}

/* === BUTTONS === */
.btn {
  font-weight: 600;
  border-radius: 6px;
  transition: var(--transition);
  border: 2px solid transparent !important;
  text-decoration: none;
  display: inline-block;
}

.btn-lg {
  padding: 0.75rem 2rem;
  font-size: 1.1rem;
}

.btn-sm {
  padding: 0.375rem 1rem;
  font-size: 0.875rem;
}

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

.btn-primary:hover {
  background-color: var(--dark-green) !important;
  border-color: var(--dark-green) !important;
  color: var(--white) !important;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(46, 125, 50, 0.4) !important;
}

.btn-secondary {
  background-color: var(--secondary-color) !important;
  border-color: var(--secondary-color) !important;
  color: var(--text-dark) !important;
}

.btn-secondary:hover {
  background-color: var(--amber-dark) !important;
  border-color: var(--amber-dark) !important;
  color: var(--white) !important;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(255, 193, 7, 0.4) !important;
}

.btn-warning {
  background-color: var(--secondary-color) !important;
  border-color: var(--secondary-color) !important;
  color: var(--text-dark) !important;
}

.btn-warning:hover {
  background-color: var(--amber-dark) !important;
  border-color: var(--amber-dark) !important;
  color: var(--white) !important;
  transform: translateY(-2px);
}

.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;
  color: var(--primary-color) !important;
  border-color: var(--white) !important;
  transform: translateY(-2px);
}

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

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

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

.btn-outline-warning:hover {
  background-color: var(--secondary-color) !important;
  color: var(--text-dark) !important;
  border-color: var(--secondary-color) !important;
  transform: translateY(-2px);
}

.filter-btn {
  border-radius: 25px !important;
  padding: 0.5rem 1.5rem !important;
  transition: var(--transition);
}

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

.year-btn {
  min-width: 80px;
}

/* === HERO SECTION === */
.position-relative.overflow-hidden {
  min-height: 100vh;
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--dark-green) 100%);
  position: relative;
}

.position-relative.overflow-hidden::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><rect fill="rgba(255,193,7,0.05)" width="100" height="100"/><circle fill="rgba(255,193,7,0.1)" cx="50" cy="50" r="40"/></svg>') repeat;
  opacity: 0.3;
  animation: backgroundMove 20s linear infinite;
}

@keyframes backgroundMove {
  0% { transform: translate(0, 0); }
  100% { transform: translate(50px, 50px); }
}

.position-absolute.text-white {
  z-index: 2;
}

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

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

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

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

.card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15) !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;
}

.card-title {
  font-weight: 700;
  color: var(--text-dark) !important;
  margin-bottom: 0.75rem;
  font-size: 1.25rem;
}

.card-text {
  color: var(--text-light) !important;
  line-height: 1.7;
}

/* === PORTFOLIO === */
.portfolio-masonry {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
  padding: 2rem 0;
}

.portfolio-item {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  transition: var(--transition);
}

.portfolio-card {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

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

.portfolio-item:hover .portfolio-image {
  transform: scale(1.15);
}

.portfolio-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to top, rgba(46, 125, 50, 0.95) 0%, transparent 100%);
  opacity: 0;
  transition: var(--transition);
  display: flex;
  align-items: flex-end;
  padding: 2rem;
}

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

.portfolio-content {
  transform: translateY(20px);
  transition: var(--transition);
}

.portfolio-item:hover .portfolio-content {
  transform: translateY(0);
}

.portfolio-content h4 {
  color: var(--white) !important;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

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

/* === BADGES === */
.badge {
  padding: 0.5rem 1rem;
  font-weight: 600;
  border-radius: 6px;
  font-size: 0.85rem;
}

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

/* === FORMS === */
.form-control,
.form-select {
  border: 2px solid #E0E0E0 !important;
  border-radius: 8px;
  padding: 0.75rem 1rem;
  transition: var(--transition);
  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.2rem rgba(46, 125, 50, 0.25) !important;
  background-color: var(--white) !important;
  color: var(--text-dark) !important;
}

.form-label {
  font-weight: 600;
  color: var(--text-dark) !important;
  margin-bottom: 0.5rem;
}

/* === BACKGROUND UTILITIES === */
.bg-light {
  background-color: var(--bg-light) !important;
}

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

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

.bg-dark .text-white,
.bg-dark h1, .bg-dark h2, .bg-dark h3, .bg-dark h4, .bg-dark h5, .bg-dark h6 {
  color: var(--white) !important;
}

/* === TEXT UTILITIES === */
.text-dark {
  color: var(--text-dark) !important;
}

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

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

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

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

/* === SHADOWS === */
.shadow {
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1) !important;
}

.shadow-sm {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08) !important;
}

.shadow-lg {
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15) !important;
}

/* === BORDERS === */
.border-start {
  border-left: 4px solid var(--primary-color) !important;
}

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

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

/* === IMAGES === */
.img-fluid {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
}

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

.bi::before {
  display: inline-block;
  font-weight: 400;
  line-height: 1;
}

.bi-geo-alt-fill::before { content: "📍"; }
.bi-telephone-fill::before { content: "📞"; }
.bi-envelope-fill::before { content: "✉️"; }
.bi-arrow-up-right::before { content: "↗️"; }
.bi-chat-dots-fill::before { content: "💬"; }
.bi-calendar-check-fill::before { content: "📅"; }
.bi-file-earmark-text-fill::before { content: "📄"; }
.bi-calendar3::before { content: "📆"; }
.bi-check-circle-fill::before { content: "✅"; }
.bi-people-fill::before { content: "👥"; }
.bi-tree-fill::before { content: "🌳"; }
.bi-cash-stack::before { content: "💰"; }
.bi-info-circle-fill::before { content: "ℹ️"; }
.bi-chat-dots::before { content: "💭"; }
.bi-recycle::before { content: "♻️"; }
.bi-graph-up::before { content: "📈"; }
.bi-piggy-bank::before { content: "🐷"; }

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

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

/* === FLOATING ACTION BUTTONS === */
.floating-action-buttons {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.fab-button {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background-color: var(--primary-color) !important;
  color: var(--white) !important;
  border: none !important;
  box-shadow: 0 4px 15px rgba(46, 125, 50, 0.4) !important;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
  font-size: 1.5rem;
}

.fab-button:hover {
  transform: scale(1.1) rotate(10deg);
  background-color: var(--dark-green) !important;
  box-shadow: 0 6px 20px rgba(46, 125, 50, 0.6) !important;
}

/* === FOOTER === */
footer {
  background-color: var(--text-dark) !important;
  color: var(--white) !important;
}

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

footer a:hover {
  color: var(--secondary-color) !important;
  text-decoration: none;
}

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

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

/* === SPACING UTILITIES === */
.py-5 {
  padding-top: 3rem !important;
  padding-bottom: 3rem !important;
}

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

.mb-4 {
  margin-bottom: 2rem !important;
}

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

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

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

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

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

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

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

/* === GAP UTILITIES === */
.gap-2 {
  gap: 1rem !important;
}

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

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

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

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

.g-4 {
  --bs-gutter-x: 2rem;
  --bs-gutter-y: 2rem;
}

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

/* === DISPLAY UTILITIES === */
.d-block {
  display: block !important;
}

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

/* === FLEX UTILITIES === */
.flex-wrap {
  flex-wrap: wrap !important;
}

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

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

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

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

/* === OPACITY === */
.opacity-75 {
  opacity: 0.75 !important;
}

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

/* === POSITION UTILITIES === */
.position-relative {
  position: relative !important;
}

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

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

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

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

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

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

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

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

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

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

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

/* === PRIVACY CONTENT === */
.privacy-content {
  max-width: 900px;
  margin: 0 auto;
}

.privacy-content .h3 {
  color: var(--primary-color) !important;
  font-weight: 700;
  margin-top: 2rem;
  margin-bottom: 1rem;
}

.privacy-content p {
  color: var(--text-light);
  line-height: 1.8;
}

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

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

.animate-fade-in-up {
  animation: fadeInUp 0.6s ease-out forwards;
}

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

/* === RESPONSIVE === */
@media (max-width: 991.98px) {
  .navbar-collapse {
    background-color: rgba(46, 125, 50, 0.98);
    padding: 1rem;
    border-radius: 8px;
    margin-top: 1rem;
  }
  
  .navbar-dark .nav-link {
    margin: 0.25rem 0;
  }
  
  .display-2 {
    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;
  }
  
  .portfolio-masonry {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .floating-action-buttons {
    bottom: 1rem;
    right: 1rem;
  }
  
  .fab-button {
    width: 50px;
    height: 50px;
    font-size: 1.25rem;
  }
  
  .mt-lg-0 {
    margin-top: 0 !important;
  }
  
  .mt-lg-4 {
    margin-top: 2rem !important;
  }
  
  .mt-lg-5 {
    margin-top: 3rem !important;
  }
  
  .mb-lg-0 {
    margin-bottom: 0 !important;
  }
  
  .text-lg-end {
    text-align: right !important;
  }
  
  .ps-lg-4 {
    padding-left: 2rem !important;
  }
  
  .ms-lg-auto {
    margin-left: auto !important;
  }
  
  .order-lg-1 {
    order: 1 !important;
  }
  
  .order-lg-2 {
    order: 2 !important;
  }
}

@media (max-width: 767.98px) {
  .btn-lg {
    padding: 0.6rem 1.5rem;
    font-size: 1rem;
  }
  
  .card-img-top {
    height: 200px;
  }
  
  .portfolio-image {
    height: 250px;
  }
  
  .p-5 {
    padding: 2rem !important;
  }
  
  .py-5 {
    padding-top: 2rem !important;
    padding-bottom: 2rem !important;
  }
  
  .mt-md-5 {
    margin-top: 3rem !important;
  }
  
  .text-md-start {
    text-align: left !important;
  }
  
  .text-md-end {
    text-align: right !important;
  }
}

@media (max-width: 575.98px) {
  .display-2 {
    font-size: 2rem !important;
  }
  
  .lead {
    font-size: 1.1rem;
  }
  
  .btn {
    width: 100%;
    margin-bottom: 0.5rem;
  }
  
  .d-flex.gap-3 {
    flex-direction: column;
  }
  
  .portfolio-masonry {
    gap: 1rem;
  }
  
  .p-4 {
    padding: 1.5rem !important;
  }
  
  .px-4 {
    padding-left: 1.5rem !important;
    padding-right: 1.5rem !important;
  }
}

/* === ADDITIONAL UTILITIES === */
.fw-bold {
  font-weight: 700 !important;
}

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

.small {
  font-size: 0.875rem;
}

.container-fluid {
  padding-left: 15px;
  padding-right: 15px;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding-left: 15px;
  padding-right: 15px;
}

/* === SMOOTH SCROLLING === */
html {
  scroll-behavior: smooth;
}

/* === SELECTION === */
::selection {
  background-color: var(--secondary-color);
  color: var(--text-dark);
}

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

/* === ACCESSIBILITY === */
a:focus,
button:focus,
input:focus,
textarea:focus,
select: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: var(--white);
  animation: spin 1s ease-in-out infinite;
}

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