/* Forest Gold Architecture Studio Theme */
/* Primary Color: #2C5530 (Forest Green) */
/* Secondary Color: #B8860B (Dark Goldenrod) */

:root {
  --primary: #2C5530;
  --secondary: #B8860B;
  --primary-light: #3a6f3f;
  --primary-dark: #1f3d22;
  --secondary-light: #daa520;
  --secondary-dark: #996b08;
  --white: #ffffff;
  --light: #f8f9fa;
  --dark: #212529;
  --text-muted: #6c757d;
  --transition: all 0.3s ease;
}

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

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

/* Typography */
.display-1, .display-2, .display-3, .display-4, .display-5, .display-6 {
  font-weight: 700;
  line-height: 1.2;
  color: var(--primary);
}

.lead {
  font-size: 1.25rem;
  font-weight: 400;
  color: var(--text-muted);
}

/* Navbar Styles */
.navbar {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%) !important;
  box-shadow: 0 2px 15px rgba(44, 85, 48, 0.1);
  transition: var(--transition);
  padding: 1rem 0;
}

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

.navbar.scrolled {
  padding: 0.5rem 0;
  box-shadow: 0 4px 20px rgba(44, 85, 48, 0.2);
}

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

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

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

.navbar-toggler:focus {
  box-shadow: 0 0 0 0.25rem rgba(184, 134, 11, 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='%23B8860B' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
}

.navbar-nav {
  gap: 0.5rem;
}

.nav-item {
  margin: 0 0.25rem;
}

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

.nav-link:hover {
  color: var(--secondary) !important;
  background-color: rgba(184, 134, 11, 0.1) !important;
  transform: translateY(-2px);
}

.nav-link.active {
  color: var(--secondary) !important;
  background-color: rgba(184, 134, 11, 0.15) !important;
  font-weight: 600;
}

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

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

/* Buttons */
.btn {
  font-weight: 600;
  border-radius: 8px;
  transition: var(--transition);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border: 2px solid transparent;
}

.btn:focus {
  box-shadow: 0 0 0 0.25rem rgba(44, 85, 48, 0.25) !important;
}

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

.btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%) !important;
  border-color: var(--primary) !important;
  color: var(--white) !important;
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%) !important;
  border-color: var(--primary-dark) !important;
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(44, 85, 48, 0.3) !important;
  color: var(--white) !important;
}

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

.btn-secondary:hover {
  background: linear-gradient(135deg, var(--secondary-dark) 0%, var(--secondary) 100%) !important;
  border-color: var(--secondary-dark) !important;
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(184, 134, 11, 0.3) !important;
  color: var(--white) !important;
}

.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) !important;
  border-color: var(--white) !important;
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(255, 255, 255, 0.3) !important;
}

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

.btn-light:hover {
  background-color: var(--light) !important;
  color: var(--primary-dark) !important;
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1) !important;
}

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

.btn-outline-dark:hover {
  background-color: var(--primary) !important;
  color: var(--white) !important;
  border-color: var(--primary) !important;
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(44, 85, 48, 0.3) !important;
}

/* Hero Section */
.position-relative.overflow-hidden {
  min-height: 100vh;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 50%, var(--primary-light) 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,%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='%23B8860B' 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;
  animation: patternMove 60s linear infinite;
}

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

.position-relative .display-1 {
  color: var(--white) !important;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
  animation: fadeInUp 1s ease-out;
}

.position-relative .lead {
  color: rgba(255, 255, 255, 0.95) !important;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
  animation: fadeInUp 1.2s ease-out;
}

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

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

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

.card-body {
  padding: 2rem;
}

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

.card-text {
  color: var(--text-muted);
  line-height: 1.8;
}

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

/* Shadows */
.shadow {
  box-shadow: 0 10px 30px rgba(44, 85, 48, 0.1) !important;
}

.shadow-sm {
  box-shadow: 0 5px 15px rgba(44, 85, 48, 0.08) !important;
}

.shadow-lg {
  box-shadow: 0 20px 50px rgba(44, 85, 48, 0.15) !important;
}

/* Rounded Elements */
.rounded {
  border-radius: 10px !important;
}

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

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

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

.img-fluid:hover {
  transform: scale(1.05);
  box-shadow: 0 15px 35px rgba(44, 85, 48, 0.2);
}

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

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

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

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

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

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

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

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

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

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

/* Borders */
.border {
  border: 1px solid rgba(44, 85, 48, 0.15) !important;
}

.border-end {
  border-right: 1px solid rgba(44, 85, 48, 0.15) !important;
}

.border-start {
  border-left: 1px solid rgba(44, 85, 48, 0.15) !important;
}

.border-3 {
  border-width: 3px !important;
  border-color: var(--secondary) !important;
}

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

.filter-btn:hover,
.filter-btn.active {
  background-color: var(--primary) !important;
  color: var(--white) !important;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(44, 85, 48, 0.3);
}

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

.portfolio-item {
  position: relative;
  overflow: hidden;
  border-radius: 15px;
  cursor: pointer;
  transition: var(--transition);
  background-color: var(--white);
}

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

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

.portfolio-item:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(44, 85, 48, 0.3);
}

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

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

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

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

/* Forms */
.form-control,
.form-select {
  border: 2px solid rgba(44, 85, 48, 0.2);
  border-radius: 8px;
  padding: 0.75rem 1rem;
  transition: var(--transition);
  background-color: var(--white);
  color: var(--dark);
}

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

.form-control::placeholder {
  color: var(--text-muted);
}

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

.form-check-input {
  border: 2px solid rgba(44, 85, 48, 0.3);
  width: 1.25rem;
  height: 1.25rem;
}

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

.form-check-input:focus {
  box-shadow: 0 0 0 0.25rem rgba(44, 85, 48, 0.15) !important;
}

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

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

.bi-geo-alt-fill,
.bi-telephone-fill,
.bi-envelope-fill,
.bi-house-door,
.bi-building,
.bi-leaf,
.bi-grid-3x3,
.bi-file-earmark-text,
.bi-clipboard-check,
.bi-geo-alt,
.bi-telephone,
.bi-envelope,
.bi-arrow-right,
.bi-check-circle-fill,
.bi-facebook,
.bi-instagram,
.bi-linkedin,
.bi-twitter {
  color: var(--secondary);
  transition: var(--transition);
}

a:hover .bi,
.nav-link:hover .bi {
  color: var(--primary);
  transform: scale(1.1);
}

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

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

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

/* Links */
a {
  color: var(--primary);
  text-decoration: none;
  transition: var(--transition);
}

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

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

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

/* Spacing Utilities */
.p-0 { padding: 0 !important; }
.p-3 { padding: 1rem !important; }
.p-4 { padding: 1.5rem !important; }
.p-5 { padding: 3rem !important; }
.py-0 { padding-top: 0 !important; padding-bottom: 0 !important; }
.py-2 { padding-top: 0.5rem !important; padding-bottom: 0.5rem !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; }
.py-7 { padding-top: 5rem !important; padding-bottom: 5rem !important; }
.px-0 { padding-left: 0 !important; padding-right: 0 !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; }
.pt-5 { padding-top: 3rem !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-0 { margin: 0 !important; }
.m-3 { margin: 1rem !important; }
.m-4 { margin: 1.5rem !important; }
.my-3 { margin-top: 1rem !important; margin-bottom: 1rem !important; }
.my-4 { margin-top: 1.5rem !important; margin-bottom: 1.5rem !important; }
.my-5 { margin-top: 3rem !important; margin-bottom: 3rem !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-lg-0 { margin-top: 0 !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; }
.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; }
.ms-lg-5 { margin-left: 3rem !important; }
.me-1 { margin-right: 0.25rem !important; }
.me-2 { margin-right: 0.5rem !important; }
.me-3 { margin-right: 1rem !important; }

/* Gaps */
.g-0 { gap: 0 !important; }
.g-3 { gap: 1rem !important; }
.g-4 { gap: 1.5rem !important; }
.g-5 { gap: 3rem !important; }
.gap-3 { gap: 1rem !important; }

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

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

/* Flex */
.flex-column { flex-direction: column !important; }
.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; }
.align-items-end { align-items: flex-end !important; }
.justify-content-center { justify-content: center !important; }
.justify-content-end { justify-content: flex-end !important; }

/* Position */
.position-relative { position: relative !important; }
.position-absolute { position: absolute !important; }
.sticky-lg-top { position: sticky !important; top: 0 !important; }
.top-0 { top: 0 !important; }
.top-50 { top: 50% !important; }
.bottom-0 { bottom: 0 !important; }
.start-0 { left: 0 !important; }
.start-50 { left: 50% !important; }
.end-0 { right: 0 !important; }
.translate-middle { transform: translate(-50%, -50%) !important; }

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

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

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

/* Font Sizes */
.fs-4 { font-size: 1.5rem !important; }
.fs-5 { font-size: 1.25rem !important; }
.small { font-size: 0.875rem !important; }

/* Font Weight */
.fw-bold { font-weight: 700 !important; }

/* Scroll Animations */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.slide-in-left {
  opacity: 0;
  transform: translateX(-50px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.slide-in-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.slide-in-right {
  opacity: 0;
  transform: translateX(50px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.slide-in-right.visible {
  opacity: 1;
  transform: translateX(0);
}

/* Responsive Design */
@media (max-width: 991.98px) {
  .navbar-collapse {
    background-color: rgba(44, 85, 48, 0.98);
    padding: 1rem;
    border-radius: 10px;
    margin-top: 1rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  }
  
  .nav-link {
    padding: 0.75rem 1rem !important;
    margin: 0.25rem 0;
  }
  
  .display-1 {
    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;
  }
  
  .display-6 {
    font-size: 1.25rem !important;
  }
  
  .portfolio-grid {
    grid-template-columns: 1fr;
  }
  
  .border-end {
    border-right: none !important;
    border-bottom: 1px solid rgba(44, 85, 48, 0.15) !important;
    padding-bottom: 1rem;
    margin-bottom: 1rem;
  }
  
  .px-lg-5 {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }
  
  .py-7 {
    padding-top: 3rem !important;
    padding-bottom: 3rem !important;
  }
  
  .order-lg-1 {
    order: 1 !important;
  }
  
  .order-lg-2 {
    order: 2 !important;
  }
  
  .text-md-end {
    text-align: left !important;
  }
  
  .text-lg-end {
    text-align: left !important;
  }
}

@media (max-width: 767.98px) {
  .display-1 {
    font-size: 2rem !important;
  }
  
  .btn-lg {
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
  }
  
  .filter-btn {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
  }
  
  .col-md-6,
  .col-md-7,
  .col-md-5,
  .col-md-4,
  .col-md-8,
  .col-md-3 {
    margin-bottom: 1.5rem;
  }
}

@media (max-width: 575.98px) {
  .container-fluid {
    padding-left: 1rem;
    padding-right: 1rem;
  }
  
  .px-4 {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }
  
  .px-5 {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }
}

/* Loading Animation */
@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

.loading {
  animation: pulse 1.5s ease-in-out infinite;
}

/* Hover Effects */
.hover-lift {
  transition: var(--transition);
}

.hover-lift:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(44, 85, 48, 0.2);
}

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

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

::-webkit-scrollbar-thumb {
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  border-radius: 6px;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--secondary-dark) 100%);
}

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

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

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

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