/* Jade Forest Architecture Studio - Custom Styles */

:root {
  --primary-color: #2C5F2D;
  --secondary-color: #97BC62;
  --dark-green: #1a3a1b;
  --light-green: #d4e7c5;
  --forest-mist: #e8f5e9;
  --text-dark: #1f1f1f;
  --text-light: #ffffff;
}

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  color: var(--text-dark);
  line-height: 1.7;
  overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.3;
  color: var(--primary-color);
}

.display-1, .display-2, .display-3, .display-4, .display-5, .display-6 {
  font-weight: 800;
  color: var(--primary-color) !important;
}

/* Navbar Styles */
.navbar {
  background: rgba(44, 95, 45, 0.95) !important;
  backdrop-filter: blur(10px);
  transition: all 0.4s ease;
  padding: 1rem 0;
  box-shadow: 0 2px 20px rgba(44, 95, 45, 0.1);
}

.navbar.scrolled {
  background: rgba(44, 95, 45, 0.98) !important;
  padding: 0.5rem 0;
  box-shadow: 0 4px 30px rgba(44, 95, 45, 0.2);
}

.navbar-brand {
  color: #ffffff !important;
  font-size: 1.8rem !important;
  font-weight: 700 !important;
  transition: all 0.3s ease;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

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

.navbar-nav .nav-link {
  color: #ffffff !important;
  font-weight: 500;
  margin: 0 0.5rem;
  padding: 0.5rem 1rem !important;
  transition: all 0.3s ease;
  position: relative;
  border-radius: 8px;
}

.navbar-nav .nav-link::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 3px;
  background: var(--secondary-color);
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
  color: var(--secondary-color) !important;
  background: rgba(151, 188, 98, 0.1);
}

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

.navbar-toggler {
  border: 2px solid #ffffff !important;
  padding: 0.5rem;
  transition: all 0.3s ease;
}

.navbar-toggler:hover {
  background: rgba(255, 255, 255, 0.1) !important;
  border-color: var(--secondary-color) !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(255, 255, 255, 1)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
}

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

.position-absolute.w-100.h-100.object-fit-cover {
  opacity: 0.3;
  filter: brightness(0.8);
  z-index: 0;
}

.position-relative.d-flex.align-items-center.justify-content-center {
  z-index: 2;
  min-height: 100vh;
  color: #ffffff !important;
}

.position-relative.d-flex.align-items-center.justify-content-center .display-1,
.position-relative.d-flex.align-items-center.justify-content-center .fs-3,
.position-relative.d-flex.align-items-center.justify-content-center .display-3 {
  color: #ffffff !important;
  text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.4);
}

.position-relative.d-flex.align-items-center.justify-content-center .lead {
  color: #ffffff !important;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

/* Buttons */
.btn {
  border-radius: 50px;
  font-weight: 600;
  transition: all 0.3s ease;
  border: none;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  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 ease, height 0.6s ease;
  z-index: -1;
}

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

.btn-primary,
.btn.bg-primary,
.btn[style*="background"] {
  background: var(--primary-color) !important;
  color: #ffffff !important;
  border: 2px solid var(--primary-color) !important;
  box-shadow: 0 4px 15px rgba(44, 95, 45, 0.3);
}

.btn-primary:hover,
.btn.bg-primary:hover {
  background: var(--dark-green) !important;
  border-color: var(--dark-green) !important;
  color: #ffffff !important;
  transform: translateY(-3px);
  box-shadow: 0 6px 25px rgba(44, 95, 45, 0.4);
}

.btn-secondary,
.btn.bg-secondary {
  background: var(--secondary-color) !important;
  color: var(--primary-color) !important;
  border: 2px solid var(--secondary-color) !important;
  box-shadow: 0 4px 15px rgba(151, 188, 98, 0.3);
}

.btn-secondary:hover,
.btn.bg-secondary:hover {
  background: #7da34f !important;
  border-color: #7da34f !important;
  color: #ffffff !important;
  transform: translateY(-3px);
  box-shadow: 0 6px 25px rgba(151, 188, 98, 0.4);
}

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

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

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

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

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

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

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

/* Badges */
.badge {
  background: var(--secondary-color) !important;
  color: var(--primary-color) !important;
  font-weight: 600;
  padding: 0.5rem 1.2rem !important;
  border-radius: 30px;
  font-size: 0.9rem;
  letter-spacing: 0.5px;
}

.badge.bg-primary {
  background: var(--primary-color) !important;
  color: #ffffff !important;
}

/* Cards */
.card {
  border: none !important;
  border-radius: 16px;
  transition: all 0.4s ease;
  overflow: hidden;
  background: #ffffff;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

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

.card-img-top {
  transition: all 0.5s ease;
  height: 250px;
  object-fit: cover;
}

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

.card-body {
  padding: 1.5rem;
}

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

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

/* Images */
.img-fluid {
  border-radius: 12px;
  transition: all 0.4s ease;
}

.img-fluid:hover {
  transform: scale(1.02);
  box-shadow: 0 8px 30px rgba(44, 95, 45, 0.15);
}

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

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

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

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

.shadow-lg {
  box-shadow: 0 10px 40px rgba(44, 95, 45, 0.15) !important;
}

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

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

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

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

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

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

/* Text Colors */
.text-white {
  color: #ffffff !important;
}

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

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

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

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

/* Icons */
.bi {
  color: var(--primary-color);
  transition: all 0.3s ease;
}

.bi:hover {
  color: var(--secondary-color);
  transform: scale(1.1);
}

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

.bi-star-fill,
.bi-heart-fill {
  color: var(--secondary-color) !important;
}

/* Forms */
.form-control,
.form-select {
  border: 2px solid #e0e0e0;
  border-radius: 10px;
  padding: 0.75rem 1rem;
  transition: all 0.3s ease;
  font-size: 1rem;
}

.form-control:focus,
.form-select:focus {
  border-color: var(--primary-color) !important;
  box-shadow: 0 0 0 0.2rem rgba(44, 95, 45, 0.15) !important;
  outline: none;
}

.form-control-lg,
.form-select-lg {
  padding: 1rem 1.5rem;
  font-size: 1.1rem;
}

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

.form-check-input {
  border: 2px solid var(--primary-color);
  width: 1.5rem;
  height: 1.5rem;
}

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

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

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

.was-validated .form-control:invalid ~ .invalid-feedback,
.was-validated .form-select:invalid ~ .invalid-feedback {
  display: block;
}

.was-validated .form-control:invalid,
.was-validated .form-select:invalid {
  border-color: #dc3545;
}

/* Animations */
@keyframes bounce {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-15px);
  }
}

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

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

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

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

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

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

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

/* Sections */
section {
  padding: 5rem 0;
  position: relative;
}

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

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

/* Container */
.container-fluid {
  padding-left: 2rem;
  padding-right: 2rem;
}

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

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

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

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

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

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

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

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

.list-unstyled a {
  color: var(--text-dark);
  text-decoration: none;
  transition: all 0.3s ease;
  display: inline-block;
}

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

/* Footer */
footer {
  background: var(--primary-color);
  color: #ffffff;
  padding: 3rem 0 1rem;
}

footer h5,
footer .h5,
footer .h4 {
  color: #ffffff !important;
}

footer a {
  color: #ffffff !important;
}

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

footer .bi {
  color: #ffffff !important;
}

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

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

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

.border-secondary {
  border-color: rgba(151, 188, 98, 0.3) !important;
}

/* Responsive Design */
@media (max-width: 991.98px) {
  .navbar-collapse {
    background: rgba(44, 95, 45, 0.98);
    padding: 1rem;
    border-radius: 12px;
    margin-top: 1rem;
  }
  
  .navbar-nav .nav-link {
    margin: 0.25rem 0;
  }
  
  .display-1 {
    font-size: 3rem !important;
  }
  
  .display-3 {
    font-size: 2.5rem !important;
  }
  
  .display-4 {
    font-size: 2rem !important;
  }
  
  section {
    padding: 3rem 0;
  }
  
  .py-5 {
    padding-top: 3rem !important;
    padding-bottom: 3rem !important;
  }
  
  .container-fluid {
    padding-left: 1rem;
    padding-right: 1rem;
  }
}

@media (max-width: 767.98px) {
  .display-1 {
    font-size: 2.5rem !important;
  }
  
  .display-3 {
    font-size: 2rem !important;
  }
  
  .display-4 {
    font-size: 1.75rem !important;
  }
  
  .btn-lg {
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
  }
  
  .card-img-top {
    height: 200px;
  }
}

@media (max-width: 575.98px) {
  .navbar-brand {
    font-size: 1.5rem !important;
  }
  
  .display-1 {
    font-size: 2rem !important;
  }
  
  .display-3 {
    font-size: 1.75rem !important;
  }
  
  .display-4 {
    font-size: 1.5rem !important;
  }
  
  section {
    padding: 2rem 0;
  }
  
  .py-5 {
    padding-top: 2rem !important;
    padding-bottom: 2rem !important;
  }
}

/* Sticky Elements */
.sticky-top {
  position: sticky;
  top: 0;
  z-index: 1020;
}

.sticky-lg-top {
  position: sticky;
  top: 0;
  z-index: 1020;
}

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

/* Scroll Reveal */
.reveal {
  opacity: 0;
  transform: translateY(50px);
  transition: all 0.8s ease;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

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

::-webkit-scrollbar-track {
  background: var(--forest-mist);
}

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

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

/* Additional Utility Classes */
.cursor-pointer {
  cursor: pointer;
}

.transition-all {
  transition: all 0.3s ease;
}

.hover-lift:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 30px rgba(44, 95, 45, 0.2);
}

/* Loading Animation */
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.spinner {
  animation: spin 1s linear infinite;
}

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

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

/* Focus Styles */
a:focus,
button:focus,
.btn:focus {
  outline: 2px solid var(--secondary-color);
  outline-offset: 2px;
}

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