/* Forest Horizon Architecture Studio - Custom Styles */

:root {
  --primary-color: #2E7D32;
  --secondary-color: #81C784;
  --dark-green: #1B5E20;
  --light-green: #C8E6C9;
  --text-dark: #263238;
  --text-light: #ffffff;
  --transition: all 0.3s ease;
}

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

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

/* Navigation Styles */
.floating-nav {
  transition: var(--transition);
  background: rgba(46, 125, 50, 0.95) !important;
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

.navbar {
  padding: 1rem 0;
}

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

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

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

.navbar-dark .nav-link:hover,
.navbar-dark .nav-link.active {
  background-color: var(--secondary-color) !important;
  color: var(--dark-green) !important;
  transform: translateY(-2px);
}

.navbar-light {
  background-color: #ffffff !important;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
}

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

.navbar-light .nav-link:hover,
.navbar-light .nav-link.active {
  background-color: var(--light-green) !important;
  color: var(--dark-green) !important;
}

.navbar-toggler {
  border-color: var(--text-light) !important;
  padding: 0.5rem;
}

.navbar-toggler:focus {
  box-shadow: 0 0 0 0.25rem rgba(129, 199, 132, 0.5) !important;
}

.sticky-top {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

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

.skyline-animation {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  z-index: 1;
  animation: parallaxScroll 30s linear infinite;
}

@keyframes parallaxScroll {
  0% {
    transform: translateX(0) translateY(0);
  }
  50% {
    transform: translateX(-10px) translateY(-10px);
  }
  100% {
    transform: translateX(0) translateY(0);
  }
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(46, 125, 50, 0.7);
  z-index: 2;
}

.hero-section .container {
  position: relative;
  z-index: 3;
}

.hero-section h1 {
  font-size: clamp(2.5rem, 8vw, 4rem);
  font-weight: 800;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
  animation: fadeInUp 1s ease-out;
  color: var(--text-light) !important;
}

.hero-section .lead {
  font-size: clamp(1.1rem, 3vw, 1.5rem);
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
  animation: fadeInUp 1.2s ease-out;
  color: var(--text-light) !important;
}

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

.scroll-indicator {
  animation: bounce 2s infinite;
  z-index: 3;
  color: var(--text-light) !important;
}

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

.animate-bounce {
  animation: bounce 2s infinite;
}

/* Buttons */
.btn {
  border-radius: 50px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: var(--transition);
  border: 2px solid transparent;
  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-primary {
  background-color: var(--primary-color) !important;
  border-color: var(--primary-color) !important;
  color: var(--text-light) !important;
}

.btn-primary:hover {
  background-color: var(--dark-green) !important;
  border-color: var(--dark-green) !important;
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(46, 125, 50, 0.3);
  color: var(--text-light) !important;
}

.btn-outline-light {
  border-color: var(--text-light) !important;
  color: var(--text-light) !important;
  border-width: 2px !important;
}

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

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

.btn-light:hover {
  background-color: var(--secondary-color) !important;
  color: var(--dark-green) !important;
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(129, 199, 132, 0.4);
}

.btn-outline-success {
  border-color: var(--primary-color) !important;
  color: var(--primary-color) !important;
  border-width: 2px !important;
}

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

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

.btn-lg {
  padding: 1rem 2.5rem;
  font-size: 1.1rem;
}

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

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

.card-body {
  padding: 2rem;
}

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

.card-text {
  color: var(--text-dark);
  line-height: 1.7;
}

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

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

.shadow-sm {
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1) !important;
}

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

.shadow {
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12) !important;
}

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

.project-item {
  opacity: 0;
  animation: fadeIn 0.6s ease-out forwards;
}

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

.project-card {
  position: relative;
  overflow: hidden;
  border-radius: 15px;
  cursor: pointer;
}

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

.project-card:hover img {
  transform: scale(1.15);
}

.filter-btn {
  background-color: transparent;
  border: 2px solid var(--primary-color) !important;
  color: var(--primary-color) !important;
  padding: 0.6rem 1.5rem;
  margin: 0.5rem;
  border-radius: 50px;
  font-weight: 600;
  transition: var(--transition);
  cursor: pointer;
}

.filter-btn:hover,
.filter-btn.active {
  background-color: var(--primary-color) !important;
  color: var(--text-light) !important;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(46, 125, 50, 0.3);
}

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

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

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

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

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

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

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

.form-control:focus,
.form-select:focus {
  border-color: var(--primary-color) !important;
  box-shadow: 0 0 0 0.25rem rgba(46, 125, 50, 0.15) !important;
  outline: none;
}

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

/* Alert */
.alert {
  border-radius: 10px;
  border: none;
  padding: 1.25rem;
}

.alert-light {
  background-color: var(--light-green);
  color: var(--dark-green);
}

/* Progress Bar */
.progress {
  height: 10px;
  border-radius: 10px;
  background-color: var(--light-green);
  overflow: hidden;
}

.progress-bar {
  background-color: var(--primary-color) !important;
  transition: width 1s ease;
}

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

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

.modal-header h5 {
  color: var(--text-light) !important;
  font-weight: 700;
}

.btn-close {
  background-color: var(--text-light);
  opacity: 1;
  border-radius: 50%;
  padding: 0.5rem;
}

.modal-body {
  padding: 2rem;
}

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

.bi-geo-alt-fill,
.bi-telephone-fill,
.bi-envelope-fill,
.bi-tree-fill,
.bi-droplet-fill,
.bi-lightning-charge-fill,
.bi-recycle,
.bi-award-fill,
.bi-shield-check,
.bi-globe,
.bi-house-heart-fill,
.bi-graph-up,
.bi-tree,
.bi-check-circle-fill {
  color: var(--primary-color);
}

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

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

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

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

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

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

/* Background Colors */
.bg-white {
  background-color: #ffffff !important;
}

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

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

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

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

.list-unstyled a {
  color: var(--text-dark);
  text-decoration: none;
  transition: var(--transition);
}

.list-unstyled a:hover {
  color: var(--primary-color) !important;
  padding-left: 5px;
}

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

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

/* Footer */
footer {
  background: linear-gradient(135deg, var(--dark-green) 0%, var(--primary-color) 100%);
  color: var(--text-light) !important;
  padding: 4rem 0 2rem;
}

footer h5 {
  color: var(--text-light) !important;
  font-weight: 700;
  margin-bottom: 1.5rem;
}

footer a {
  color: var(--text-light) !important;
  text-decoration: none;
  transition: var(--transition);
  opacity: 0.9;
}

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

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

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

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

.border-white {
  border-color: rgba(255, 255, 255, 0.2) !important;
}

/* Typography */
.display-2 {
  font-size: clamp(2.5rem, 6vw, 3.5rem);
  font-weight: 800;
}

.display-3 {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
}

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

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

.h2, h2 {
  font-size: clamp(1.75rem, 3vw, 2rem);
  font-weight: 700;
  color: var(--primary-color);
}

.h3, h3 {
  font-size: clamp(1.5rem, 2.5vw, 1.75rem);
  font-weight: 700;
  color: var(--primary-color);
}

.h4, h4 {
  font-size: clamp(1.25rem, 2vw, 1.5rem);
  font-weight: 600;
  color: var(--primary-color);
}

.h5, h5 {
  font-size: clamp(1.1rem, 1.5vw, 1.25rem);
  font-weight: 600;
}

.fs-2 {
  font-size: calc(1.325rem + 0.9vw) !important;
}

.fs-3 {
  font-size: calc(1.3rem + 0.6vw) !important;
}

.fs-4 {
  font-size: calc(1.275rem + 0.3vw) !important;
}

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

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

.small {
  font-size: 0.875rem;
}

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

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

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

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

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

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

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

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

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

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

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

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

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

.mb-0 {
  margin-bottom: 0 !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-1 {
  margin-top: 0.25rem !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;
}

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

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

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

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

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

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

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

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

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

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

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

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

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

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

.gap-5 {
  gap: 3rem !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;
}

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

/* Opacity */
.opacity-50 {
  opacity: 0.5 !important;
}

/* Responsive Grid */
.g-4 {
  gap: 1.5rem !important;
}

.g-5 {
  gap: 3rem !important;
}

/* Nav */
.nav {
  display: flex;
  flex-wrap: wrap;
  padding-left: 0;
  margin-bottom: 0;
  list-style: none;
}

.nav-link {
  display: block;
  padding: 0.5rem 1rem;
  transition: var(--transition);
}

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

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

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

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

/* Responsive Breakpoints */
@media (max-width: 991.98px) {
  .navbar-collapse {
    background-color: rgba(46, 125, 50, 0.98);
    padding: 1rem;
    border-radius: 10px;
    margin-top: 1rem;
  }
  
  .navbar-dark .nav-link {
    margin: 0.25rem 0;
  }
  
  .hero-section {
    min-height: 80vh;
  }
  
  .projects-masonry {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
  }
  
  .ps-lg-5 {
    padding-left: 1rem !important;
  }
  
  .position-sticky {
    position: relative !important;
  }
  
  .offset-lg-1,
  .offset-lg-2 {
    margin-left: 0;
  }
  
  .order-lg-1 {
    order: 1;
  }
  
  .order-lg-2 {
    order: 2;
  }
  
  .mb-lg-0 {
    margin-bottom: 1.5rem !important;
  }
  
  .mt-lg-0 {
    margin-top: 1.5rem !important;
  }
}

@media (max-width: 767.98px) {
  .container-fluid {
    padding-left: 1rem;
    padding-right: 1rem;
  }
  
  .hero-section h1 {
    font-size: 2rem;
  }
  
  .hero-section .lead {
    font-size: 1.1rem;
  }
  
  .btn-lg {
    padding: 0.75rem 2rem;
    font-size: 1rem;
  }
  
  .px-5 {
    padding-left: 1.5rem !important;
    padding-right: 1.5rem !important;
  }
  
  .py-5 {
    padding-top: 2rem !important;
    padding-bottom: 2rem !important;
  }
  
  .display-2 {
    font-size: 2rem;
  }
  
  .display-3 {
    font-size: 1.75rem;
  }
  
  .display-4 {
    font-size: 1.5rem;
  }
  
  .projects-masonry {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .card-img-top {
    height: 200px;
  }
  
  .filter-btn {
    padding: 0.5rem 1rem;
    margin: 0.25rem;
    font-size: 0.875rem;
  }
  
  .text-md-start,
  .text-md-end {
    text-align: center !important;
  }
  
  .mb-md-0 {
    margin-bottom: 1rem !important;
  }
  
  .mt-md-0 {
    margin-top: 1rem !important;
  }
  
  .justify-content-lg-end {
    justify-content: center !important;
  }
}

@media (max-width: 575.98px) {
  .navbar-brand {
    font-size: 1.25rem;
  }
  
  .btn {
    font-size: 0.875rem;
    padding: 0.5rem 1.5rem;
  }
  
  .modal-dialog {
    margin: 0.5rem;
  }
  
  .p-5 {
    padding: 1.5rem !important;
  }
  
  .p-4 {
    padding: 1rem !important;
  }
}

/* Print Styles */
@media print {
  .navbar,
  .scroll-indicator,
  .btn,
  footer {
    display: none !important;
  }
  
  body {
    background: white;
    color: black;
  }
}

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

/* Focus Styles for Accessibility */
a:focus,
button:focus,
input:focus,
textarea:focus,
select:focus {
  outline: 3px solid var(--secondary-color);
  outline-offset: 2px;
}

/* Smooth Scrolling */
html {
  scroll-behavior: smooth;
}

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

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

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