/* Forest Gold Architectural Studio Theme */

:root {
  --primary-color: #2C5530;
  --secondary-color: #D4AF37;
  --primary-dark: #1a3320;
  --primary-light: #3d7342;
  --secondary-dark: #b8952d;
  --secondary-light: #e8c965;
  --text-dark: #1a1a1a;
  --text-light: #ffffff;
  --background-light: #f8f9fa;
  --shadow-color: rgba(44, 85, 48, 0.15);
  --transition-speed: 0.3s;
}

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

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

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

/* Typography */
.display-2, .display-3, .display-4, .display-5, .display-6 {
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--primary-dark) !important;
}

.text-white .display-2,
.text-white .display-3,
.text-white .display-4,
.text-white .display-5,
.text-white .display-6 {
  color: var(--text-light) !important;
}

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

.h2, .h3, .h4, .h5, h2, h3, h4, h5 {
  color: var(--primary-dark);
  font-weight: 600;
}

/* Navbar Styles */
.navbar {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-color) 100%) !important;
  padding: 1rem 0;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
  transition: all var(--transition-speed) ease;
  z-index: 1050;
}

.navbar.fixed-top {
  backdrop-filter: blur(10px);
}

.navbar-brand {
  font-size: 1.5rem;
  color: var(--text-light) !important;
  letter-spacing: 0.05em;
  transition: all var(--transition-speed) ease;
  position: relative;
}

.navbar-brand::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--secondary-color);
  transition: width var(--transition-speed) ease;
}

.navbar-brand:hover::after {
  width: 100%;
}

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

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

.navbar-dark .navbar-nav .nav-link.active {
  font-weight: 600;
}

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

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

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

.position-relative.vh-100::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(28, 53, 48, 0.5);
  z-index: 1;
}

.position-relative.vh-100 .position-absolute {
  z-index: 0;
  filter: brightness(0.7);
}

.position-relative.vh-100 .container,
.position-relative.vh-100 .row,
.position-relative.vh-100 .col-lg-8 {
  z-index: 2;
}

.position-relative .text-white {
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.3);
}

/* Buttons */
.btn {
  font-weight: 600;
  letter-spacing: 0.03em;
  border-radius: 8px;
  transition: all var(--transition-speed) ease;
  border-width: 2px;
  text-transform: uppercase;
  font-size: 0.9rem;
}

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

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

.btn-outline-light:hover {
  background-color: var(--secondary-color) !important;
  border-color: var(--secondary-color) !important;
  color: var(--primary-dark) !important;
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(212, 175, 55, 0.3) !important;
}

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

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

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

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

.btn-secondary:hover {
  background-color: var(--secondary-dark) !important;
  border-color: var(--secondary-dark) !important;
  color: var(--text-light) !important;
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(212, 175, 55, 0.3) !important;
}

.btn-sm {
  padding: 0.5rem 1.5rem !important;
  font-size: 0.85rem !important;
}

/* Filter Buttons */
.filter-btn {
  margin: 0.5rem;
  border-radius: 25px !important;
}

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

/* Cards */
.card {
  border: none !important;
  border-radius: 12px !important;
  transition: all var(--transition-speed) ease;
  overflow: hidden;
  background-color: #ffffff !important;
}

.card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 40px var(--shadow-color) !important;
}

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

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

.portfolio-card img {
  transition: all 0.5s ease;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

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

.portfolio-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(44, 85, 48, 0.95) 0%, rgba(212, 175, 55, 0.95) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: all 0.4s ease;
}

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

.overlay-content {
  text-align: center;
  color: var(--text-light) !important;
  transform: translateY(20px);
  transition: all 0.4s ease;
}

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

.overlay-content h3,
.overlay-content .h3 {
  color: var(--text-light) !important;
  margin-bottom: 0.5rem;
}

/* Masonry Grid */
.masonry-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  grid-gap: 1.5rem;
  grid-auto-rows: 250px;
  grid-auto-flow: dense;
}

.masonry-item {
  position: relative;
  overflow: hidden;
}

.masonry-tall {
  grid-row: span 2;
}

.masonry-wide {
  grid-column: span 2;
}

/* Images */
.img-fluid {
  transition: all 0.5s ease;
}

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

.shadow-lg {
  box-shadow: 0 15px 40px var(--shadow-color) !important;
}

.shadow-sm {
  box-shadow: 0 5px 15px var(--shadow-color) !important;
}

.shadow {
  box-shadow: 0 10px 25px var(--shadow-color) !important;
}

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

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

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

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

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

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

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

/* Timeline Section */
.timeline-section {
  position: relative;
}

.timeline-section::before {
  content: '';
  position: absolute;
  left: 30px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, var(--primary-color) 0%, var(--secondary-color) 100%);
}

.timeline-item {
  position: relative;
  padding-left: 4rem;
  padding-bottom: 3rem;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: 19px;
  top: 0;
  width: 24px;
  height: 24px;
  background-color: var(--secondary-color);
  border: 4px solid #ffffff;
  border-radius: 50%;
  box-shadow: 0 0 0 4px var(--primary-color);
  z-index: 1;
}

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

/* Forms */
.form-control,
.form-select {
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  padding: 0.75rem 1rem;
  transition: all var(--transition-speed) 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, 85, 48, 0.15) !important;
  outline: none;
}

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

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

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

/* Progress Bar */
.progress {
  height: 8px;
  border-radius: 10px;
  background-color: #e0e0e0;
  overflow: hidden;
}

.progress-bar {
  background: linear-gradient(90deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  transition: width 1s ease;
}

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

.bi-geo-alt-fill,
.bi-geo-alt,
.bi-telephone-fill,
.bi-telephone,
.bi-envelope-fill,
.bi-envelope {
  color: var(--secondary-color) !important;
  font-size: 1.25rem;
}

/* Links */
a {
  color: var(--primary-color) !important;
  text-decoration: none;
  transition: all var(--transition-speed) ease;
}

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

.nav-link {
  color: var(--primary-dark) !important;
}

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

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

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

/* Social Icons */
.bi-linkedin,
.bi-instagram,
.bi-facebook,
.bi-twitter {
  font-size: 1.5rem;
  transition: all var(--transition-speed) ease;
  color: var(--primary-color) !important;
}

.bi-linkedin:hover,
.bi-instagram:hover,
.bi-facebook:hover,
.bi-twitter:hover {
  color: var(--secondary-color) !important;
  transform: translateY(-3px);
}

.text-light .bi-linkedin,
.text-light .bi-instagram,
.text-light .bi-facebook,
.text-light .bi-twitter {
  color: var(--text-light) !important;
}

.text-light .bi-linkedin:hover,
.text-light .bi-instagram:hover,
.text-light .bi-facebook:hover,
.text-light .bi-twitter:hover {
  color: var(--secondary-color) !important;
}

/* Service Icons */
.bi-house-door,
.bi-building,
.bi-tree,
.bi-grid-3x3,
.bi-clipboard-check,
.bi-diagram-3,
.bi-brightness-high-fill,
.bi-droplet-fill,
.bi-recycle,
.bi-lightning-charge-fill,
.bi-award-fill,
.bi-house-check-fill,
.bi-globe-americas,
.bi-arrow-repeat {
  font-size: 2.5rem;
  color: var(--secondary-color) !important;
  display: block;
  margin-bottom: 1rem;
}

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

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

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

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

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

/* Utility Classes */
.max-w-800 {
  max-width: 800px;
}

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

.vh-100 {
  height: 100vh;
}

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

.position-sticky {
  position: sticky;
  top: 80px;
}

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

.overflow-hidden {
  overflow: hidden;
}

/* Border */
.border-top {
  border-top: 1px solid rgba(0, 0, 0, 0.1) !important;
}

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

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

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

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

.rounded-pill {
  border-radius: 50rem !important;
}

/* Ratio */
.ratio {
  position: relative;
  width: 100%;
}

.ratio::before {
  display: block;
  padding-top: var(--bs-aspect-ratio);
  content: '';
}

.ratio > * {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.ratio-21x9 {
  --bs-aspect-ratio: 42.857143%;
}

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

.list-unstyled li {
  padding: 0.5rem 0;
}

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

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

@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.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.animate-on-scroll {
  opacity: 0;
  animation: fadeInUp 0.8s ease forwards;
}

.animate-delay-1 {
  animation-delay: 0.1s;
}

.animate-delay-2 {
  animation-delay: 0.2s;
}

.animate-delay-3 {
  animation-delay: 0.3s;
}

.animate-delay-4 {
  animation-delay: 0.4s;
}

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

.hover-lift:hover {
  transform: translateY(-5px);
}

.hover-shadow {
  transition: all var(--transition-speed) ease;
}

.hover-shadow:hover {
  box-shadow: 0 15px 40px var(--shadow-color) !important;
}

/* Responsive Typography */
@media (max-width: 768px) {
  .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;
  }
  
  .display-6 {
    font-size: 1.25rem !important;
  }
  
  .fs-2 {
    font-size: 1.5rem !important;
  }
  
  .fs-3 {
    font-size: 1.25rem !important;
  }
  
  .fs-4 {
    font-size: 1.1rem !important;
  }
  
  .fs-5 {
    font-size: 1rem !important;
  }
}

/* Mobile Responsive */
@media (max-width: 991px) {
  .navbar-collapse {
    background-color: var(--primary-dark);
    padding: 1rem;
    border-radius: 8px;
    margin-top: 1rem;
  }
  
  .navbar-nav .gap-3 {
    gap: 0 !important;
  }
  
  .py-5 {
    padding-top: 3rem !important;
    padding-bottom: 3rem !important;
  }
  
  .px-4 {
    padding-left: 1.5rem !important;
    padding-right: 1.5rem !important;
  }
  
  .masonry-grid {
    grid-template-columns: 1fr;
    grid-auto-rows: 300px;
  }
  
  .masonry-wide {
    grid-column: span 1;
  }
  
  .btn-lg {
    padding: 0.75rem 2rem !important;
    font-size: 0.95rem !important;
  }
}

@media (max-width: 576px) {
  .container-fluid {
    padding-left: 1rem;
    padding-right: 1rem;
  }
  
  .px-5 {
    padding-left: 1.5rem !important;
    padding-right: 1.5rem !important;
  }
  
  .py-5 {
    padding-top: 2.5rem !important;
    padding-bottom: 2.5rem !important;
  }
  
  .p-5 {
    padding: 1.5rem !important;
  }
  
  .p-4 {
    padding: 1.25rem !important;
  }
  
  .btn-lg {
    padding: 0.65rem 1.5rem !important;
    font-size: 0.9rem !important;
  }
  
  .card-body {
    padding: 1.5rem !important;
  }
}

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

footer h5,
footer .h5,
footer h4,
footer .h4 {
  color: var(--text-light) !important;
}

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

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

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

/* Scroll to Top Button */
.scroll-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, var(--secondary-color) 0%, var(--secondary-dark) 100%);
  color: var(--primary-dark) !important;
  border: none;
  border-radius: 50%;
  display: none;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  cursor: pointer;
  z-index: 1000;
  box-shadow: 0 5px 20px rgba(212, 175, 55, 0.4);
  transition: all var(--transition-speed) ease;
}

.scroll-to-top:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(212, 175, 55, 0.5);
}

.scroll-to-top.show {
  display: flex;
  animation: fadeIn 0.3s ease;
}

/* Loading Animation */
.loading {
  opacity: 0.6;
  pointer-events: none;
}

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

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

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

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

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

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

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