/* Forest Jade Architectural Studio Theme - CSS */

/* ===== ROOT VARIABLES ===== */
:root {
  --primary-color: #2C5530;
  --secondary-color: #A8C090;
  --primary-dark: #1a3d1e;
  --primary-light: #3d6d42;
  --secondary-dark: #8aa772;
  --secondary-light: #c0d4af;
  --text-dark: #1a1a1a;
  --text-light: #f5f5f5;
  --accent-gold: #d4af37;
  --gradient-primary: linear-gradient(135deg, #2C5530 0%, #3d6d42 100%);
  --gradient-secondary: linear-gradient(135deg, #A8C090 0%, #c0d4af 100%);
  --shadow-sm: 0 2px 8px rgba(44, 85, 48, 0.1);
  --shadow: 0 4px 16px rgba(44, 85, 48, 0.15);
  --shadow-lg: 0 8px 32px rgba(44, 85, 48, 0.2);
  --transition-base: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

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

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

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

/* ===== BOOTSTRAP OVERRIDES ===== */
.btn {
  font-weight: 600 !important;
  letter-spacing: 0.5px !important;
  transition: var(--transition-base) !important;
  border-radius: 8px !important;
  text-transform: uppercase;
  font-size: 0.9rem !important;
}

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

.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active {
  background-color: var(--primary-dark) !important;
  border-color: var(--primary-dark) !important;
  color: #ffffff !important;
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg) !important;
}

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

.btn-outline-light:hover,
.btn-outline-light:focus,
.btn-outline-light:active {
  background-color: #ffffff !important;
  border-color: #ffffff !important;
  color: var(--primary-color) !important;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(255, 255, 255, 0.3) !important;
}

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

.btn-outline-secondary:hover,
.btn-outline-secondary:focus {
  background-color: var(--secondary-color) !important;
  border-color: var(--secondary-color) !important;
  color: var(--primary-dark) !important;
}

.btn-lg {
  font-size: 1rem !important;
  padding: 0.875rem 2rem !important;
}

.card {
  border: none !important;
  border-radius: 12px !important;
  overflow: hidden;
  transition: var(--transition-base) !important;
}

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

.card-body {
  padding: 2rem !important;
}

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

.form-control:focus,
.form-select:focus {
  border-color: var(--primary-color) !important;
  box-shadow: 0 0 0 0.25rem rgba(44, 85, 48, 0.15) !important;
  background-color: #ffffff !important;
  color: var(--text-dark) !important;
}

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

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

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

.badge {
  padding: 0.5rem 1rem !important;
  font-weight: 600 !important;
  border-radius: 6px !important;
  background-color: var(--secondary-color) !important;
  color: var(--primary-dark) !important;
}

/* ===== NAVIGATION ===== */
.navbar {
  background: linear-gradient(180deg, rgba(44, 85, 48, 0.98) 0%, rgba(44, 85, 48, 0.95) 100%) !important;
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow);
  transition: var(--transition-base) !important;
}

.navbar.scrolled {
  background: rgba(44, 85, 48, 0.98) !important;
  padding-top: 1rem !important;
  padding-bottom: 1rem !important;
}

.navbar-brand {
  color: #ffffff !important;
  font-weight: 700 !important;
  letter-spacing: 1px !important;
  transition: var(--transition-base) !important;
  text-transform: uppercase;
}

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

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

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

.nav-link {
  color: rgba(255, 255, 255, 0.9) !important;
  font-weight: 500 !important;
  padding: 0.5rem 1rem !important;
  position: relative;
  transition: var(--transition-base) !important;
  font-size: 0.95rem !important;
  letter-spacing: 0.3px;
}

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

.nav-link:hover,
.nav-link.active {
  color: #ffffff !important;
  background-color: rgba(255, 255, 255, 0.1) !important;
  border-radius: 6px;
}

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

/* ===== HERO SECTION ===== */
.position-relative.vh-100 {
  background: var(--gradient-primary);
  position: relative;
  overflow: hidden;
}

.position-relative.vh-100::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: 
    repeating-linear-gradient(45deg, transparent, transparent 35px, rgba(255, 255, 255, 0.03) 35px, rgba(255, 255, 255, 0.03) 70px),
    repeating-linear-gradient(-45deg, transparent, transparent 35px, rgba(0, 0, 0, 0.03) 35px, rgba(0, 0, 0, 0.03) 70px);
  opacity: 0.5;
  animation: patternMove 60s linear infinite;
}

@keyframes patternMove {
  0% { transform: translate(0, 0); }
  100% { transform: translate(70px, 70px); }
}

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

.text-white.display-2 {
  font-weight: 800 !important;
  line-height: 1.2 !important;
  text-shadow: 2px 4px 8px rgba(0, 0, 0, 0.3);
  animation: fadeInUp 0.8s ease-out;
  color: #ffffff !important;
}

.text-white.fs-4 {
  color: rgba(255, 255, 255, 0.95) !important;
  text-shadow: 1px 2px 4px rgba(0, 0, 0, 0.2);
  animation: fadeInUp 1s ease-out 0.2s backwards;
  line-height: 1.8 !important;
}

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

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

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

.position-absolute.bottom-0 {
  animation: bounce 2s ease-in-out infinite;
  color: rgba(255, 255, 255, 0.75) !important;
  font-size: 2rem;
}

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

/* ===== SECTIONS ===== */
section {
  position: relative;
}

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

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

.display-2,
.display-3,
.display-4,
.display-5 {
  font-weight: 700 !important;
  color: var(--primary-color) !important;
  line-height: 1.3 !important;
}

.lead {
  font-size: 1.15rem !important;
  color: var(--text-dark) !important;
  line-height: 1.8 !important;
}

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

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

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

/* ===== SERVICE CARDS ===== */
.col-md-6.col-lg-4 .card {
  background-color: #ffffff;
  height: 100%;
  border: 1px solid rgba(44, 85, 48, 0.1) !important;
}

.col-md-6.col-lg-4 .d-inline-block {
  background: var(--gradient-secondary);
  border-radius: 12px;
  transition: var(--transition-base);
}

.col-md-6.col-lg-4:hover .d-inline-block {
  transform: rotate(5deg) scale(1.05);
  box-shadow: var(--shadow);
}

.bi {
  color: var(--primary-color) !important;
  font-size: 1.5rem;
}

.h4,
.h5,
.h6 {
  color: var(--primary-color) !important;
  font-weight: 700 !important;
}

.h3 {
  color: var(--primary-color) !important;
  font-weight: 700 !important;
}

/* ===== PORTFOLIO / MASONRY GRID ===== */
.masonry-grid {
  column-count: 1;
  column-gap: 1.5rem;
}

@media (min-width: 768px) {
  .masonry-grid {
    column-count: 2;
  }
}

@media (min-width: 992px) {
  .masonry-grid {
    column-count: 3;
  }
}

.portfolio-item {
  break-inside: avoid;
  margin-bottom: 1.5rem;
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  cursor: pointer;
  transition: var(--transition-base);
}

.portfolio-item img {
  width: 100%;
  height: auto;
  display: block;
  transition: var(--transition-slow);
}

.portfolio-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(180deg, rgba(44, 85, 48, 0) 0%, rgba(44, 85, 48, 0.95) 100%);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 2rem;
  opacity: 0;
  transition: var(--transition-base);
  color: #ffffff !important;
}

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

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

.portfolio-overlay h5,
.portfolio-overlay p {
  color: #ffffff !important;
  text-shadow: 1px 2px 4px rgba(0, 0, 0, 0.5);
}

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

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

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

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

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

.shadow-sm {
  box-shadow: var(--shadow-sm) !important;
}

.shadow {
  box-shadow: var(--shadow) !important;
}

.shadow-lg {
  box-shadow: var(--shadow-lg) !important;
}

/* ===== BACKGROUND COLORS ===== */
.bg-white {
  background-color: #ffffff !important;
}

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

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

/* ===== UTILITY CLASSES ===== */
.position-fixed {
  position: fixed !important;
}

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

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

.position-sticky,
.sticky-top {
  position: -webkit-sticky !important;
  position: sticky !important;
  top: 0 !important;
  z-index: 1020;
}

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

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

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

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

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

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

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

.vh-100 {
  min-height: 100vh !important;
}

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

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

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

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

.flex-wrap {
  flex-wrap: wrap !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;
}

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

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

.overflow-hidden {
  overflow: hidden !important;
}

.z-3 {
  z-index: 3 !important;
}

.opacity-25 {
  opacity: 0.25 !important;
}

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

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

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

/* ===== LINKS ===== */
a {
  color: var(--primary-color) !important;
  text-decoration: none;
  transition: var(--transition-base);
}

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

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

.list-unstyled a {
  color: var(--text-dark) !important;
  transition: var(--transition-base);
  display: inline-block;
  padding: 0.25rem 0;
}

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

/* ===== FOOTER ===== */
footer {
  background: var(--gradient-primary);
  color: rgba(255, 255, 255, 0.9) !important;
  margin-top: 4rem;
}

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

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

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

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

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

/* ===== CONTACT SECTION ===== */
.bi-geo-alt-fill,
.bi-telephone-fill,
.bi-envelope-fill,
.bi-geo-alt,
.bi-telephone,
.bi-envelope {
  color: var(--primary-color) !important;
}

/* ===== ANIMATIONS ===== */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: var(--transition-slow);
}

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

/* ===== MODAL/OVERLAY IMPROVEMENTS ===== */
.modal-content {
  border-radius: 16px !important;
  border: none !important;
}

.modal-header {
  background: var(--gradient-primary);
  color: #ffffff !important;
  border-radius: 16px 16px 0 0 !important;
}

/* ===== SCROLLBAR STYLING ===== */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
}

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

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

/* ===== RESPONSIVE ADJUSTMENTS ===== */
@media (max-width: 991.98px) {
  .navbar-collapse {
    background-color: rgba(44, 85, 48, 0.98);
    padding: 1.5rem;
    border-radius: 0 0 12px 12px;
    margin-top: 1rem;
    box-shadow: var(--shadow);
  }
  
  .display-2 {
    font-size: 2.5rem !important;
  }
  
  .display-3 {
    font-size: 2.2rem !important;
  }
  
  .display-4 {
    font-size: 2rem !important;
  }
  
  .display-5 {
    font-size: 1.8rem !important;
  }
  
  .vh-100 {
    min-height: auto !important;
    padding: 8rem 0 4rem !important;
  }
}

@media (max-width: 767.98px) {
  .px-lg-5 {
    padding-left: 1.5rem !important;
    padding-right: 1.5rem !important;
  }
  
  .py-5 {
    padding-top: 3rem !important;
    padding-bottom: 3rem !important;
  }
  
  .py-6 {
    padding-top: 4rem !important;
    padding-bottom: 4rem !important;
  }
  
  .btn-lg {
    padding: 0.75rem 1.5rem !important;
    font-size: 0.9rem !important;
  }
}

@media (max-width: 575.98px) {
  .display-2 {
    font-size: 2rem !important;
  }
  
  .display-3 {
    font-size: 1.8rem !important;
  }
  
  .fs-4 {
    font-size: 1rem !important;
  }
  
  .card-body {
    padding: 1.5rem !important;
  }
}

/* ===== ACCESSIBILITY ===== */
.btn:focus,
.form-control:focus,
.form-select:focus,
.nav-link:focus {
  outline: 2px solid var(--primary-color) !important;
  outline-offset: 2px;
}

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

/* ===== ADDITIONAL ICON STYLING ===== */
.bi-house-door,
.bi-building,
.bi-leaf,
.bi-diagram-3,
.bi-clipboard-check,
.bi-arrow-clockwise,
.bi-chat-dots,
.bi-pin-map,
.bi-pencil-square,
.bi-layers,
.bi-file-earmark-text,
.bi-calculator,
.bi-hammer,
.bi-check-circle-fill,
.bi-house-heart,
.bi-tree,
.bi-speedometer2,
.bi-moisture,
.bi-cloud-sun,
.bi-droplet,
.bi-briefcase-fill,
.bi-newspaper,
.bi-pin-map-fill,
.bi-send {
  transition: var(--transition-base);
}

/* ===== HOVER EFFECTS ===== */
.card:hover .bi,
.nav-link:hover .bi {
  transform: scale(1.1);
}

/* ===== SPACING UTILITIES ===== */
.gap-3 {
  gap: 1rem !important;
}

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

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

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

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

/* ===== PRINT STYLES ===== */
@media print {
  .navbar,
  .btn,
  footer {
    display: none !important;
  }
  
  body {
    background: white;
    color: black;
  }
}